claimstore

package
v0.22.0-beta.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const PluginInterface = "instance-store"

PluginInterface for the instance-store interface.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func (*Client) Delete

func (g *Client) Delete(name string) error

func (*Client) List

func (g *Client) List() ([]string, error)

func (*Client) Read

func (g *Client) Read(name string) ([]byte, error)

func (*Client) Store

func (g *Client) Store(name string, data []byte) error

type Plugin

type Plugin struct {
	Impl crud.Store
}

Plugin is a generic type of plugin for working with any implementation of a claim store.

func (Plugin) Client

func (Plugin) Client(b *plugin.MuxBroker, c *rpc.Client) (interface{}, error)

func (*Plugin) Server

func (p *Plugin) Server(*plugin.MuxBroker) (interface{}, error)

type Server

type Server struct {
	Impl crud.Store
}

func (*Server) Delete

func (s *Server) Delete(name string, resp *interface{}) error

func (*Server) List

func (s *Server) List(args interface{}, resp *[]string) error

func (*Server) Read

func (s *Server) Read(name string, resp *[]byte) error

func (*Server) Store

func (s *Server) Store(args map[string]interface{}, resp *interface{}) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL