Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Handshake = plugin.HandshakeConfig{
ProtocolVersion: 1,
MagicCookieKey: "CDS_SECRET_BACKEND_MAGIC_COOKIE",
MagicCookieValue: "Q0RTX1NFQ1JFVF9CQUNLRU5EX01BR0lDX0NPT0tJRQ==",
}
Handshake is the HandshakeConfig used to configure clients and servers.
Functions ¶
Types ¶
type CDSSecretBackendPlugin ¶
type CDSSecretBackendPlugin struct {
Driver
}
CDSSecretBackendPlugin is the implementation of plugin.Plugin so we can serve/consume this
func (CDSSecretBackendPlugin) Client ¶
func (a CDSSecretBackendPlugin) Client(b *plugin.MuxBroker, c *rpc.Client) (interface{}, error)
Client must return an implementation of our interface that communicates over an RPC client. We return CDSActionRPC for this.
func (CDSSecretBackendPlugin) PluginName ¶
func (a CDSSecretBackendPlugin) PluginName() string
PluginName is name for the plugin
func (CDSSecretBackendPlugin) Server ¶
func (a CDSSecretBackendPlugin) Server(*plugin.MuxBroker) (interface{}, error)
Server must return an RPC server for this plugin type. We construct a CDSActionRPCServer for this.
type Client ¶
type Client struct { *plugin.Client // contains filtered or unexported fields }
Client must be used from client side to call the plugin. It's managing plugin instanciation and initializing
type Options ¶
func NewOptions ¶
type RPCClient ¶
type RPCClient struct {
// contains filtered or unexported fields
}
RPCClient is the struct used by the CDS engine
func (*RPCClient) GetSecrets ¶
GetSecrets makes rpc call to GetSecrets()
type RPCServer ¶
type RPCServer struct {
Impl Driver
}
RPCServer is the struct called to serve the plugin
func (*RPCServer) GetSecrets ¶
GetSecrets serves rpc call to GetSecrets()
type SecretError ¶
type SecretError string
func Error ¶
func Error(err error) *SecretError
func (SecretError) Error ¶
func (e SecretError) Error() string