class StoreSet(Command): """ Adding a key (permissioned, recursive) Adding a key (permissionless, non-recursive) """ """ sends: object recieves: lifetime, signature PUBLISH TYPE foobar HASH abc AUTHOR author OBJECT object SIGNATURE sig [ 2016-10-11 20:10:10, signature ] sends: object recieves: lifetime, signature DEPLOY TYPE foobar HASH abc AUTHOR author OBJECT object SIGNATURE sig [ 2016-10-11 20:10:10, signature ] """ arguments = [ (b'author', String()), # permissioned + recursive || permissionless + unrecursive (b'authority', Boolean()), (b'hash', String()), (b'signature', String()), (b'object', String()), (b'type', String()) ] response = [(b'lifetime', DateTime()), (b'signature', String())] arguments = [(b'blob', ObjBlob()), (b'type', String())] # should be providing auths Responses = [(b'done', Boolean()), (b'ttl', DateTime())] """
class StoreGet(Command): """ Geting a key (permissioned, recursive) Geting a key (permissionless, non-recursive) """ """ MONITOR TYPE foobar HASH hash READER reader SIGNATURE sig [ Results[], 2016-10-11 20:10:10, signature ] SUBSCRIBE TYPE foobar HASH hash READER reader SIGNATURE sig [ Results[], 2016-10-11 20:10:10, signature ] """ arguments = [ (b'reader', String()), # permissioned + recursive || permissionless + unrecursive (b'authority', Boolean()), (b'hash', String()), (b'signature', String()), (b'object', String()), (b'type', String()) ] response = [(b'lifetime', DateTime()), (b'signature', String())] arguments = [(b'hash', ObjHash()), (b'type', String())] # should be providing auths Responses = [(b'blob', ObjBlob()), (b'ttl', DateTime())] """
class SubscribeRequest(Command): arguments = [(b'my_pubkey', ObjPubKey()), (b'my_start', DateTime()), (b'my_ttl', DateTime()), (b'my_hash', ObjHash()), (b'my_sig', ObjSig())] response = [(b'your_pubkey', ObjPubKey()), (b'your_start', DateTime()), (b'your_ttl', DateTime()), (b'your_hash', ObjHash()), (b'my_sig', ObjSig())]
class SearchRun(Command): """ Search from content-containing objects """ """ type : hash : [list] foos : bar : [ abc, def, ghi, jkl, mno, pqr, stu, vwx, yz ] GET SEARCH foo TERM "cats" OFFSET 10 COUNT 100 [ bar, otherbar ] """ arguments = [(b'type', String()), (b'term', String()), (b'offset', Integer()), (b'count', Integer())] # response = [(b'hashes', String())] # list of strings... arguments = [(b'hash', ObjHash()), (b'type', String())] # should be providing auths responses = [(b'blob', ObjBlob()), (b'ttl', DateTime())] """
class EncryptedStoreGet(Command): arguments = [(b'hash', ObjHash()), (b'type', String())] # should be providing auths Responses = [(b'blob', ObjBlob()), (b'ttl', DateTime())] """
class EncryptedStoreSet(Command): arguments = [(b'blob', ObjBlob()), (b'type', String())] # should be providing auths Responses = [(b'done', Boolean()), (b'ttl', DateTime())] """