Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Types = []Type{ TypeBackend, }
Types is a wrapper around plugin type constants for discovery purposes.
var VersionedPlugins = map[int]plugin.PluginSet{ 1: { "backend": &BackendPlugin{}, }, }
VersionedPlugins is a map of PluginSets used to negotiate a compatible version between stori and plugin servers.
Functions ¶
This section is empty.
Types ¶
type BackendPlugin ¶
BackendPlugin implements plugin.Plugin.
func (*BackendPlugin) Client ¶
func (be *BackendPlugin) Client( broker *plugin.MuxBroker, c *rpc.Client, ) (interface{}, error)
Client returns client used to interact with the backend server.
func (*BackendPlugin) Server ¶
func (be *BackendPlugin) Server(broker *plugin.MuxBroker) (interface{}, error)
Server returns a backend that can communicates via RPC.
type BackendServer ¶
BackendServer is a net/rpc compatible structure for serving a backend.
type BlobStorePlugin ¶
BlobStorePlugin implements plugin.Plugin.
func (*BlobStorePlugin) Client ¶
func (bs *BlobStorePlugin) Client()
Client returns client used to interact with the blobstore server.
func (*BlobStorePlugin) Server ¶
func (bs *BlobStorePlugin) Server( broker *plugin.MuxBroker, ) (interface{}, error)
Server returns a blobstore that can communicates via RPC.
type BlobStoreServer ¶
BlobStoreServer is a net/rpc compatible structure for serving a blobstore
type TokenAuthenticator ¶
TokenAuthenticator is an implementation of authn.TokenAuthenticator that communicates over RPC.
type TokenAuthenticatorPlugin ¶
type TokenAuthenticatorPlugin struct {
TokenAuthenticator func() authn.TokenAuthenticator
}
TokenAuthenticatorPlugin implements plugin.Plugin.
func (*TokenAuthenticatorPlugin) Client ¶
func (a *TokenAuthenticatorPlugin) Client( broker *plugin.MuxBroker, c *rpc.Client, ) (interface{}, error)
Client returns a client used to interact with the authn.TokenAuthenticator server.
func (*TokenAuthenticatorPlugin) Server ¶
func (a *TokenAuthenticatorPlugin) Server(broker *plugin.MuxBroker, ) (interface{}, error)
Server returns an authn.TokenAuthenticator that communicates via RPC.
type TokenAuthenticatorServer ¶
type TokenAuthenticatorServer struct { Broker *plugin.MuxBroker TokenAuthenticator authn.TokenAuthenticator }
TokenAuthenticatorServer is a net/rpc compatible structure for serving a TokenAuthenticator.