imip-agent

Annotated docs/wiki/FilesystemUsage

1059:861e86e687af
2016-02-09 Paul Boddie Changed the recording of reservations for quotas to use free/busy records.
paul@988 1
= Filesystem Usage =
paul@988 2
paul@988 3
The behaviour and operation of imip-agent is controlled by resources stored
paul@988 4
in the filesystem on the host on which the software is running. These resources
paul@988 5
are organised as follows:
paul@988 6
paul@988 7
{{{#!table
paul@988 8
'''Resource''' || '''Default Location''' || '''Purpose'''
paul@988 9
==
paul@1039 10
Free/busy || `/var/www/imip-agent/static`
paul@1039 11
|| Per-user directories containing [[../FreeBusyPublishing|free/busy resources]]
paul@1039 12
.. for publication over the Web
paul@1039 13
==
paul@1039 14
Journal || `/var/lib/imip-agent/journal`
paul@1039 15
|| Per-quota directories containing journal information recording
paul@1039 16
.. [[../Resources|resource]] usage
paul@988 17
==
paul@988 18
Preferences || `/var/lib/imip-agent/preferences`
paul@988 19
|| Per-user directories containing [[../Preferences|preferences]] controlling
paul@988 20
.. each user's experience of the software
paul@988 21
==
paul@1039 22
Store || `/var/lib/imip-agent/store`
paul@1039 23
|| Per-user directories containing calendar objects and scheduling information
paul@988 24
}}}
paul@988 25
paul@988 26
Note that the free/busy resources are located in `/var/www` as opposed to
paul@1039 27
`/var/lib` since they are intended to be published on the Web.
paul@1039 28
paul@1039 29
== Journal Structure ==
paul@1039 30
paul@1039 31
Within the journal directory are a collection of subdirectories, each of which
paul@1039 32
represent a distinct quota group for one or more resources. When a user attempts
paul@1039 33
to reserve a resource in such a group, their ability to schedule that resource
paul@1039 34
will depend on how much they are using the other resources in that group.
paul@1039 35
paul@1039 36
The directory for each quota group contains the following entries:
paul@1039 37
paul@1039 38
{{{{#!table
paul@1039 39
'''Entry''' || '''Purpose'''
paul@1039 40
==
paul@1039 41
`freebusy`
paul@1039 42
|| A directory containing files, one per user, each containing period descriptions
paul@1039 43
.. for reservations made by that user, in chronological order, structured
paul@1039 44
.. similarly to the `freebusy` file found in each user's own store; the record is
paul@1039 45
.. consolidated for all resources in a quota group, but it is not consolidated for
paul@1039 46
.. groups of users
paul@1039 47
{{{
paul@1039 48
freebusy/USER
paul@1039 49
}}}
paul@1039 50
==
paul@1039 51
`groups`
paul@1039 52
|| A mapping from user identities to group identifiers indicating the sharing
paul@1039 53
.. of a quota across a number of users
paul@1039 54
==
paul@1039 55
`journal`
paul@1059 56
|| A directory containing consolidated schedules, one per user or user group,
paul@1059 57
.. describing reservations for resources sharing a quota made by the indicated
paul@1059 58
.. user or group, structured similarly to the `freebusy` file found in each
paul@1059 59
.. resource's own store
paul@1039 60
{{{
paul@1039 61
journal/GROUP
paul@1039 62
journal/USER
paul@1039 63
}}}
paul@1039 64
==
paul@1039 65
`limits`
paul@1039 66
|| A mapping from user identities or group identifiers to quota limits
paul@1039 67
}}}}
paul@988 68
paul@988 69
== Store Structure ==
paul@988 70
paul@1039 71
Within the store directory are a collection of user-specific subdirectories
paul@1039 72
acting as each user's own store directory containing various files and further
paul@1039 73
subdirectories.
paul@1039 74
paul@988 75
The store directory for each user is considered in isolation from all other
paul@1039 76
users' directories: imip-agent ''does not'' go looking for information belonging
paul@1039 77
to other users when processing information on behalf of a particular user.
paul@988 78
paul@1039 79
The following entries are defined within a user's own store directory:
paul@988 80
paul@988 81
{{{{#!table
paul@1039 82
'''Entry''' || '''Purpose'''
paul@988 83
==
paul@988 84
`cancellations`
paul@988 85
|| Retains cancelled event details in `objects` and `recurrences` structures
paul@988 86
.. corresponding to those at the top level of the store from which the
paul@988 87
.. cancelled events originate:
paul@988 88
{{{
paul@988 89
cancellations/objects/UID
paul@988 90
cancellations/recurrences/UID/RECURRENCE-ID
paul@988 91
}}}
paul@988 92
==
paul@988 93
`counters`
paul@988 94
|| Retains counter-proposals for events in `objects` and `recurrences`
paul@988 95
.. structures corresponding to those at the top level of the store for which
paul@988 96
.. the counter-proposals are received, with a counter-proposal for each
paul@988 97
.. respondent being held for each object or recurrence involved:
paul@988 98
{{{
paul@988 99
counters/objects/UID/ATTENDEE
paul@988 100
counters/recurrences/UID/RECURRENCE-ID/ATTENDEE
paul@988 101
}}}
paul@988 102
==
paul@988 103
`freebusy`
paul@988 104
|| A file containing period descriptions in chronological order, one per line,
paul@988 105
.. indicating start and end datetimes (in UTC), unique identifier (`UID`),
paul@988 106
.. transparency, summary and organiser
paul@988 107
==
paul@988 108
`freebusy-offers`
paul@988 109
|| A file containing period descriptions in chronological order for
paul@988 110
.. scheduling offers made by counter-proposals sent by the user
paul@988 111
==
paul@988 112
`freebusy-other`
paul@988 113
|| A collection of files, one per user, each containing period descriptions
paul@988 114
.. received or deduced for that user in chronological order, structured similarly
paul@988 115
.. to the store user's own `freebusy` file
paul@1039 116
{{{
paul@1039 117
freebusy-other/USER
paul@1039 118
}}}
paul@988 119
==
paul@988 120
`freebusy-providers`
paul@988 121
|| A file containing details of [[../EventRecurrences|recurring events]] for which
paul@988 122
.. new free/busy records must be [[../CronIntegration|periodically generated]]
paul@988 123
.. because these events recur indefinitely
paul@988 124
==
paul@988 125
`objects`
paul@988 126
|| A collection of files, one per event, each bearing as its name the unique
paul@988 127
.. identifier (`UID`) of the event, with each file containing the event data:
paul@988 128
{{{
paul@988 129
objects/UID
paul@988 130
}}}
paul@988 131
==
paul@988 132
`recurrences`
paul@988 133
|| A collection of directories, one per "parent" event, each bearing as its name
paul@988 134
.. the unique identifier (`UID`) of the event, with each directory containing a
paul@988 135
.. collection of files, one per event recurrence, each bearing as its name the
paul@988 136
.. normalised recurrence identifier (`RECURRENCE-ID`) of the recurrence, with each
paul@988 137
.. file containing the data of the event recurrence:
paul@988 138
{{{
paul@988 139
recurrences/UID/RECURRENCE-ID
paul@988 140
}}}
paul@988 141
==
paul@988 142
`requests`
paul@988 143
|| A list of records, one per line, each consisting of a unique identifier (`UID`),
paul@988 144
.. normalised recurrence identifier (`RECURRENCE-ID`) if appropriate, and
paul@988 145
.. (optionally) a scheduling method, indicating the availability of an incoming
paul@988 146
.. scheduling request for handling by a user
paul@988 147
}}}}