Documentation ¶
Overview ¶
Package crudstore defines the crudstore plugin interface shared between Porter and its plugin.
Index ¶
- Constants
- type Client
- func (g *Client) Count(itemType string, group string) (int, error)
- func (g *Client) Delete(itemType string, name string) error
- func (g *Client) List(itemType string, group string) ([]string, error)
- func (g *Client) Read(itemType string, name string) ([]byte, error)
- func (g *Client) Save(itemType string, group string, name string, data []byte) error
- type Plugin
- type Server
- func (s *Server) Count(args map[string]interface{}, resp *int) error
- func (s *Server) Delete(args map[string]interface{}, resp *interface{}) error
- func (s *Server) List(args map[string]interface{}, resp *[]string) error
- func (s *Server) Read(args map[string]interface{}, resp *[]byte) error
- func (s *Server) Save(args map[string]interface{}, resp *interface{}) error
Constants ¶
View Source
const PluginInterface = "storage"
PluginInterface for the data storage. This first part of the three-part plugin key is only seen/used by the plugins when the host is communicating with the plugin and is not exposed to users.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
type Plugin ¶
Plugin is a generic type of plugin for working with any implementation of a crud store.
Click to show internal directories.
Click to hide internal directories.