Const Readonly methods: { Readonly addAddObserver adds an observer to the storage. The underlying implementation should ensure that the observer is added to the storage and that the storage is in a consistent state before returning. If observers are not supported the underlying implementation can silently ignore this RPC, but it should keep track of the observer in the GetStatus RPC if possible.
from rpc v1.StorageProviderPlugin.AddObserver
Readonly I: typeof StoragePeerReadonly O: typeof AddObserverResponseReadonly kind: UnaryReadonly name: "AddObserver"Readonly addAddVoter adds a voter to the storage. The underlying implementation should ensure that the voter is added to the storage and that the storage is in a consistent state before returning.
from rpc v1.StorageProviderPlugin.AddVoter
Readonly I: typeof StoragePeerReadonly O: typeof AddVoterResponseReadonly kind: UnaryReadonly name: "AddVoter"Readonly bootstrap: { Bootstrap is called when the storage is created for the first time. It is assumed that this node has been elected as the leader of the cluster. FailedPrecondition should be returned if the storage is already bootstrapped.
from rpc v1.StorageProviderPlugin.Bootstrap
Readonly I: typeof BootstrapRequestReadonly O: typeof BootstrapResponseReadonly kind: UnaryReadonly name: "Bootstrap"Readonly deleteDeleteValue deletes a value for a key.
from rpc v1.StorageProviderPlugin.DeleteValue
Readonly I: typeof DeleteValueRequestReadonly O: typeof DeleteValueResponseReadonly kind: UnaryReadonly name: "DeleteValue"Readonly demoteDemoteVoter demotes a voter to an observer. The underlying implementation should ensure that the voter is demoted and that the storage is in a consistent state before returning. If observers are not supported the underlying implementation can silently ignore this RPC, but it should keep track of the observer in the GetStatus RPC if possible.
from rpc v1.StorageProviderPlugin.DemoteVoter
Readonly I: typeof StoragePeerReadonly O: typeof DemoteVoterResponseReadonly kind: UnaryReadonly name: "DemoteVoter"Readonly getGetLeader returns the leader of the storage. Leader may be loosely defined by the implementation, but must be a node that can reliably be used to mutate the storage.
from rpc v1.StorageProviderPlugin.GetLeader
Readonly I: typeof GetLeaderRequestReadonly O: typeof StoragePeerReadonly kind: UnaryReadonly name: "GetLeader"Readonly getGetPeers returns all peers of the storage. Peer status may be loosely defined by the implementation, but must correlate to nodes that can reliably be used to mutate the storage.
from rpc v1.StorageProviderPlugin.GetPeers
Readonly I: typeof GetPeersRequestReadonly O: typeof StoragePeersReadonly kind: UnaryReadonly name: "GetPeers"Readonly getGetStatus returns the status of the storage.
from rpc v1.StorageProviderPlugin.GetStatus
Readonly I: typeof StorageStatusRequestReadonly O: typeof StorageStatusReadonly kind: UnaryReadonly name: "GetStatus"Readonly getGetValue returns the value for a key.
from rpc v1.StorageProviderPlugin.GetValue
Readonly I: typeof GetValueRequestReadonly O: typeof GetValueResponseReadonly kind: UnaryReadonly name: "GetValue"Readonly listListKeys lists all keys for a prefix.
from rpc v1.StorageProviderPlugin.ListKeys
Readonly I: typeof ListKeysRequestReadonly O: typeof ListKeysResponseReadonly kind: UnaryReadonly name: "ListKeys"Readonly listListValues lists all values for a prefix.
from rpc v1.StorageProviderPlugin.ListValues
Readonly I: typeof ListValuesRequestReadonly O: typeof ListValuesResponseReadonly kind: UnaryReadonly name: "ListValues"Readonly putPutValue puts a value for a key.
from rpc v1.StorageProviderPlugin.PutValue
Readonly I: typeof PutValueRequestReadonly O: typeof PutValueResponseReadonly kind: UnaryReadonly name: "PutValue"Readonly removeRemovePeer removes a peer from the storage. The underlying implementation should ensure that the server is removed and that the storage is in a consistent state before returning. When called with the current ID of the leader, the underlying implementation should relinquish leadership to another peer if possible.
from rpc v1.StorageProviderPlugin.RemovePeer
Readonly I: typeof StoragePeerReadonly O: typeof RemoveServerResponseReadonly kind: UnaryReadonly name: "RemovePeer"Readonly subscribeSubscribePrefix subscribes to events for a prefix.
from rpc v1.StorageProviderPlugin.SubscribePrefix
Readonly I: typeof SubscribePrefixRequestReadonly O: typeof PrefixEventReadonly kind: ServerStreamingReadonly name: "SubscribePrefix"Readonly typefrom service v1.StorageProviderPlugin
Generated using TypeDoc
StorageProviderPlugin is the service definition for a Webmesh storage provider.