Documentation
¶
Overview ¶
Package plugin implements the interface github.com/notaryproject/notation-plugin-framework-go/plugin, enabling its use as a library in the notation-go package and to generate executable
Index ¶
- Constants
- type AWSSignerPlugin
- func (sp *AWSSignerPlugin) DescribeKey(_ context.Context, _ *plugin.DescribeKeyRequest) (*plugin.DescribeKeyResponse, error)
- func (sp *AWSSignerPlugin) GenerateEnvelope(ctx context.Context, req *plugin.GenerateEnvelopeRequest) (*plugin.GenerateEnvelopeResponse, error)
- func (sp *AWSSignerPlugin) GenerateSignature(_ context.Context, _ *plugin.GenerateSignatureRequest) (*plugin.GenerateSignatureResponse, error)
- func (sp *AWSSignerPlugin) GetMetadata(_ context.Context, _ *plugin.GetMetadataRequest) (*plugin.GetMetadataResponse, error)
- func (sp *AWSSignerPlugin) VerifySignature(ctx context.Context, req *plugin.VerifySignatureRequest) (*plugin.VerifySignatureResponse, error)
Constants ¶
const Name = "com.amazonaws.signer.notation.plugin"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWSSignerPlugin ¶
type AWSSignerPlugin struct {
// contains filtered or unexported fields
}
AWSSignerPlugin provides functionality for signing and verification in accordance with the NotaryProject AWSSignerPlugin contract.
func NewAWSSigner ¶
func NewAWSSigner(s client.Interface) *AWSSignerPlugin
NewAWSSigner creates new AWSSignerPlugin
func NewAWSSignerForCLI ¶
func NewAWSSignerForCLI() *AWSSignerPlugin
NewAWSSignerForCLI creates a new AWSSignerPlugin and is intended solely for generating executables.
func (*AWSSignerPlugin) DescribeKey ¶
func (sp *AWSSignerPlugin) DescribeKey(_ context.Context, _ *plugin.DescribeKeyRequest) (*plugin.DescribeKeyResponse, error)
DescribeKey describes the key being used for signing. This method is not supported by AWS Signer's plugin.
func (*AWSSignerPlugin) GenerateEnvelope ¶
func (sp *AWSSignerPlugin) GenerateEnvelope(ctx context.Context, req *plugin.GenerateEnvelopeRequest) (*plugin.GenerateEnvelopeResponse, error)
GenerateEnvelope returns the signature envelope generated by calling AWS Signer.
func (*AWSSignerPlugin) GenerateSignature ¶
func (sp *AWSSignerPlugin) GenerateSignature(_ context.Context, _ *plugin.GenerateSignatureRequest) (*plugin.GenerateSignatureResponse, error)
GenerateSignature generates the raw signature. This method is not supported by AWS Signer's plugin.
func (*AWSSignerPlugin) GetMetadata ¶
func (sp *AWSSignerPlugin) GetMetadata(_ context.Context, _ *plugin.GetMetadataRequest) (*plugin.GetMetadataResponse, error)
GetMetadata returns the metadata information of the plugin.
func (*AWSSignerPlugin) VerifySignature ¶
func (sp *AWSSignerPlugin) VerifySignature(ctx context.Context, req *plugin.VerifySignatureRequest) (*plugin.VerifySignatureResponse, error)
VerifySignature performs the extended verification of signature by optionally calling AWS Signer.