Documentation ¶
Overview ¶
Package pluginstore is an internal Porter package that implements the plugins.SecretsPlugin interface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSecretsPluginConfig ¶
func NewSecretsPluginConfig() pluggable.PluginTypeConfig
NewSecretsPluginConfig for secret sources.
Types ¶
type GClient ¶ added in v1.0.1
type GClient struct {
// contains filtered or unexported fields
}
GClient is a gRPC implementation of the storage client.
func NewClient ¶ added in v1.0.1
func NewClient(client proto.SecretsProtocolClient) *GClient
type GServer ¶ added in v1.0.1
type GServer struct { proto.UnsafeSecretsProtocolServer // contains filtered or unexported fields }
GServer is a gRPC wrapper around a SecretsProtocol plugin
func NewServer ¶ added in v1.0.1
func NewServer(c *portercontext.Context, impl plugins.SecretsProtocol) *GServer
func (*GServer) Create ¶ added in v1.0.1
func (m *GServer) Create(ctx context.Context, request *proto.CreateRequest) (*proto.CreateResponse, error)
func (*GServer) Resolve ¶ added in v1.0.1
func (m *GServer) Resolve(ctx context.Context, request *proto.ResolveRequest) (*proto.ResolveResponse, error)
type Plugin ¶ added in v1.0.1
type Plugin struct { plugin.Plugin // contains filtered or unexported fields }
Plugin is the shared implementation of a storage plugin wrapper.
func NewPlugin ¶ added in v1.0.1
func NewPlugin(c *portercontext.Context, impl plugins.SecretsProtocol) Plugin
NewPlugin creates an instance of a storage plugin.
func (Plugin) GRPCClient ¶ added in v1.0.1
type Store ¶
Store is a plugin-backed source of secrets. It resolves the appropriate plugin based on Porter's config and implements the plugins.SecretsProtocol interface using the backing plugin.
Connects just-in-time, but you must call Close to release resources.
func (*Store) Connect ¶
Connect initializes the plugin for use. The plugin itself is responsible for ensuring it was called. Close is called automatically when the plugin is used by Porter.