cosign

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 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 DSSEAttestor added in v1.5.0

type DSSEAttestor interface {
	// Attest creates an attestation, in the form of an `oci.Signature`, from the given payload.
	// The signature and payload are stored as a DSSE envelope in `osi.Signature.Payload()`
	DSSEAttest(ctx context.Context, payload io.Reader) (oci.Signature, crypto.PublicKey, error)
}

DSSEAttestor creates attestations in the form of `oci.Signature`s

type Signer

type Signer interface {
	// Sign signs the given payload, returning the results as an `oci.Signature` which can be verified using the returned `crypto.PublicKey`.
	Sign(ctx context.Context, payload io.Reader) (oci.Signature, crypto.PublicKey, error)
}

Signer signs payloads in the form of `oci.Signature`s

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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