perkeep/doc/schema
luz paz d605f86c82 Fix various typos
Found via `codespell -q 3 -S ./clients/web/embed,./clients/chrome -L ba,everytime,impres,keypair,msdos,pres,ro,te,ue`
2022-05-02 14:31:09 -07:00
..
README.md docs: standardize on <=1MB schema blobs 2021-01-14 09:20:39 -05:00
TODO Fix various typos 2022-05-02 14:31:09 -07:00
attributes.md website: keep doc/schema flat 2016-04-26 17:34:47 -07:00
blob-magic.md website: first pass of s/Camlistore/Perkeep/ on contents 2017-12-18 16:46:08 +01:00
bytes.md bytes.md: document size-only parts 2021-01-14 09:20:06 -05:00
common.md website: keep doc/schema flat 2016-04-26 17:34:47 -07:00
delete.md website: keep doc/schema flat 2016-04-26 17:34:47 -07:00
directory.md website: keep doc/schema flat 2016-04-26 17:34:47 -07:00
fifo.md website: keep doc/schema flat 2016-04-26 17:34:47 -07:00
file.md website: keep doc/schema flat 2016-04-26 17:34:47 -07:00
inode.md website: keep doc/schema flat 2016-04-26 17:34:47 -07:00
keep.md website: keep doc/schema flat 2016-04-26 17:34:47 -07:00
permanode.md doc: warn that multi claims are not implemented 2018-01-24 01:34:52 +01:00
share.md website: first pass of s/Camlistore/Perkeep/ on contents 2017-12-18 16:46:08 +01:00
socket.md website: keep doc/schema flat 2016-04-26 17:34:47 -07:00
static-set.md pkg/schema: break static-sets in subsets for large directories 2018-02-09 01:36:38 +01:00
symlink.md website: keep doc/schema flat 2016-04-26 17:34:47 -07:00

README.md

Schema

At the lowest layer, Perkeep doesn't care what you put in it (everything is just dumb bytes) and you're free to adopt your own data model. However, the upper layers of Perkeep standardize on a common schema to represent various classes of data.

Schema blobs are JSON objects with at least two attributes always set: camliVersion, which is always 1, and camliType, which tells you the type of metadata the blob contains. The blob must not be larger than 1MB.

Here are some of the data types we've started to formalize a JSON schema for:

  • Bytes

  • Common Attributes

  • Delete Claim

  • Directory

  • FIFO

  • Files: traditional filesystems. Files, directories, inodes, symlinks, etc. Uses the file, directory, symlink, and inode camliTypes.

  • Inode

  • "Keep" claims: Normally, any object that isn't referenced by a permanode could theoretically be garbage collected. Keep claims prevent that from happening. Indicated by the keep camliType.

  • Permanodes: the immutable root "anchor" of mutable Perkeep objects (see terminology). Users create signed claim schema blobs which reference a permanode and define some mutation for the permanode.

    Permanodes are used to model many kinds of mutable data, including mutable files, dynamic directories, and more.

    Uses the permanode and claim camliTypes.

  • Permanode Attributes

  • Share Claim

  • Socket

  • Static Sets: Immutable lists of other blobs by their refs. Indicated by the static-set camliType.

  • Symlink