object_store: Public interface for every object store.

Description Usage Arguments Value

Description

Basic operations:

  1. store (write) an object with its tags

  2. restore (read) an object given its id

  3. find objects (ids) by tags

  4. extra utility calls

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
is_object_store(x)

os_remove(store)

os_remove_objects(store, ids = os_list(store))

os_write(store, object, tags, id = compute_id(object))

os_update_tags(store, id, tags)

os_read(store, id)

os_read_object(store, id)

os_read_tags(store, id)

os_exists(store, id)

os_find(store, tags)

os_list(store)

Arguments

x

object to be tested.

store

object store.

ids

multiple object identifiers.

object

R object to be written into object store.

tags

a named 'list' of tags for an object.

id

object identifier; see [compute_id].

Value

os_write returns object id.


lbartnik/storage documentation built on May 20, 2019, 8:27 p.m.