Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PluginAdapter ¶
type PluginAdapter struct {
// contains filtered or unexported fields
}
PluginAdapter converts between the low-level plugins.SigningProtocol and the signing.Signer interface.
func NewPluginAdapter ¶
func NewPluginAdapter(plugin plugins.SigningProtocol) PluginAdapter
NewPluginAdapter wraps the specified storage plugin.
func (PluginAdapter) Close ¶
func (a PluginAdapter) Close() error
type Signer ¶
type Signer interface { Close() error // Sign generates a signature for the specified reference, which // can be a Porter bundle or an invocation image. Sign(ctx context.Context, ref string) error // Verify attempts to verify a signature for the specified // reference, which can be a Porter bundle or an invocation image. Verify(ctx context.Context, ref string) error // TODO Connect(ctx context.Context) error }
Signer is an interface for signing and verifying Porter bundles and invocation images.
type TestSigningProvider ¶
type TestSigningProvider struct { PluginAdapter // contains filtered or unexported fields }
func NewTestSigningProvider ¶
func NewTestSigningProvider() TestSigningProvider
Directories ¶
Path | Synopsis |
---|---|
cosign
Package mock provides an in-memory implementation of a secret store suitable for unit testing.
|
Package mock provides an in-memory implementation of a secret store suitable for unit testing. |
mock
Package mock provides an in-memory implementation of a secret store suitable for unit testing.
|
Package mock provides an in-memory implementation of a secret store suitable for unit testing. |
notation
Package notation provides an implementation of a signing plugin using the users's local notation installation
|
Package notation provides an implementation of a signing plugin using the users's local notation installation |
proto
Package proto is the protobuf definition for the SigningProtocol
|
Package proto is the protobuf definition for the SigningProtocol |
Package pluginstore is an internal Porter package that implements the plugins.SigningPlugin interface.
|
Package pluginstore is an internal Porter package that implements the plugins.SigningPlugin interface. |
Click to show internal directories.
Click to hide internal directories.