Documentation ¶
Overview ¶
Package signer implements simplified cosign-compatible OCI image signer.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Signer ¶
type Signer struct {
// contains filtered or unexported fields
}
Signer holds a key used to sign the images.
We are not using directly 'cosign' implementation here, as it's behind series of internal/ packages.
func NewSigner ¶
func NewSigner(key crypto.PrivateKey) (*Signer, error)
NewSigner creates a new signer.
func (*Signer) GetCheckOpts ¶
GetCheckOpts returns cosign compatible image signature verification options.
func (*Signer) GetPublicKeyPEM ¶
GetPublicKeyPEM returns the public key in PEM format.
func (*Signer) GetVerifier ¶
GetVerifier returns the verifier for the signature.
Click to show internal directories.
Click to hide internal directories.