signing

package
v1.1.0-rc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

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

func (PluginAdapter) Connect

func (a PluginAdapter) Connect(ctx context.Context) error

func (PluginAdapter) Sign

func (a PluginAdapter) Sign(ctx context.Context, ref string) error

func (PluginAdapter) Verify

func (a PluginAdapter) Verify(ctx context.Context, ref string) 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL