plugins

package
v1.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// PluginInterface for signing. This first part of the
	// three-part plugin key is only seen/used by the plugins when the host is
	// communicating with the plugin and is not exposed to users.
	PluginInterface = "signing"

	// PluginProtocolVersion is the currently supported plugin protocol version for secrets.
	PluginProtocolVersion = 1
)

Variables

View Source
var (
	// ErrNotImplemented is the error to be returned if a method is not implemented
	// in a secret plugin
	ErrNotImplemented = errors.New("not implemented")
)

Functions

This section is empty.

Types

type SigningProtocol

type SigningProtocol interface {
	Connect(ctx context.Context) error

	// Resolve a secret value from a secret store
	// - ref is OCI reference to verify
	Sign(ctx context.Context, ref string) error

	// Verify attempts to verify the signature of a given reference
	// - ref is OCI reference to verify
	Verify(ctx context.Context, ref string) error
}

SigningProtocol is the interface that signing plugins must implement. This defines the protocol used to communicate with signing plugins.

Directories

Path Synopsis
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.
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.
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
Package proto is the protobuf definition for the SigningProtocol
Package proto is the protobuf definition for the SigningProtocol

Jump to

Keyboard shortcuts

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