Documentation ¶
Overview ¶
Package pluginstore is an internal Porter package that implements the plugins.SigningPlugin interface.
Index ¶
- func NewSigningPluginConfig() pluggable.PluginTypeConfig
- type GClient
- type GServer
- func (m *GServer) Connect(ctx context.Context, request *proto.ConnectRequest) (*proto.ConnectResponse, error)
- func (m *GServer) Sign(ctx context.Context, request *proto.SignRequest) (*proto.SignResponse, error)
- func (m *GServer) Verify(ctx context.Context, request *proto.VerifyRequest) (*proto.VerifyResponse, error)
- type Plugin
- type Signer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSigningPluginConfig ¶
func NewSigningPluginConfig() pluggable.PluginTypeConfig
NewSigningPluginConfig for signing sources.
Types ¶
type GClient ¶
type GClient struct {
// contains filtered or unexported fields
}
GClient is a gRPC implementation of the signing client.
func NewClient ¶
func NewClient(client proto.SigningProtocolClient) *GClient
type GServer ¶
type GServer struct { proto.UnsafeSigningProtocolServer // contains filtered or unexported fields }
GServer is a gRPC wrapper around a SecretsProtocol plugin
func NewServer ¶
func NewServer(c *portercontext.Context, impl plugins.SigningProtocol) *GServer
func (*GServer) Connect ¶
func (m *GServer) Connect(ctx context.Context, request *proto.ConnectRequest) (*proto.ConnectResponse, error)
func (*GServer) Sign ¶
func (m *GServer) Sign(ctx context.Context, request *proto.SignRequest) (*proto.SignResponse, error)
func (*GServer) Verify ¶
func (m *GServer) Verify(ctx context.Context, request *proto.VerifyRequest) (*proto.VerifyResponse, error)
type Plugin ¶
type Plugin struct { plugin.Plugin // contains filtered or unexported fields }
Plugin is the shared implementation of a storage plugin wrapper.
func NewPlugin ¶
func NewPlugin(c *portercontext.Context, impl plugins.SigningProtocol) Plugin
NewPlugin creates an instance of a storage plugin.
func (Plugin) GRPCClient ¶
type Signer ¶
Signer is a plugin-backed source of signing. It resolves the appropriate plugin based on Porter's config and implements the plugins.SigningProtocol interface using the backing plugin.
Connects just-in-time, but you must call Close to release resources.
Click to show internal directories.
Click to hide internal directories.