Method | Args | Description |
---|---|---|
is-collection? |
Return #t if the repository behaves as a
collection, which is almost certainly what you want. If the
repository is (not (... 'is-collection?)) , you
won't be able to retrieve its contents from the server. You
should still be able to retrieve objects within the
repository, though.
|
|
is-version? |
Should almost certainly return #t if
is-collection? returns
#t . However, it is not inconceivable that
having different views of the top-level repository contents
might be desirable, in which case this would return
#f .
|
|
has-object? | name |
Return #t iff there is an object corresponding
to name in this repository, #f
otherwise.
|
get-object | name |
Returns the object corresponding to name which
answers the versioned object
protocol.
|
get-view | view |
For a store which
If the store |
object |
If the store
If the store |
|
metadata | tag | |
all-metadata | ||
as-byte-bucket | ||
create-object | view name | |
delete-object | view name |
Method | Args | Description |
---|---|---|
is-version? |
Should return #f .
|
|
is-collection? |
Returns #t if the add and
remove methods are supported by this
object. Having a content-type of
"x-cryptognome/collection" is also
strongly suggested when is-collection? is
#t .
|
|
name | Returns the name of the repository object. |
|
all-metadata | Returns an a-list of all of the metadata associated with this versioned object. This will be a subset of the metadata associated with the object version. | |
metadata | tag | |
metadata! | tag value | |
has-view? | view | |
has-version? | view | |
has-branch? | view | |
get-view | view | |
delete-version | view | |
latest-version | view | |
next-version | view | |
add-objects | view objects | |
remove-objects | view objects | |
get-object | name | |
create-object) | view name | |
delete-object) | view name | |
last-write-time | view |
Method | Args | Description |
---|---|---|
is-version? |
Should be #t if this protocol is supported
|
|
is-collection? |
Return #t if this instance supports collection
operations.
|
|
object | Return the parent versioned object of this instance. | |
metadata | tag |
Return the metadata associated with tag for
this instance. This will almost always be identical to the
metadata associated with the versioned object, but there
are some metadata items that are only available for object versions.
|
metadata! | tag value |
Set the metadata value associated with the
tag for this instance. Not all of the metadata
tag s are settable, so be careful.
|
all-metadata |
Returns the a-list of all the metadata associated with this object version. This will typically be a superset of the metadata associated with the object. The metadata keys are always lower-case symbols. |
|
last-write-time | Returns a string which contains a timestamp of the last time the object version was written. The timestamp will have a granularity no larger than one second. | |
as-byte-bucket |
Returns a byte-bucket which is suitable for
streaming the data to wherever it should finally go.
|
|
store | bucket |
Replaces the contents of this object version with the
contents of the bucket .
|