Documentation
¶
Overview ¶
Package cosign provides functionality for signing and verifying container images using cosign (sigstore's container signing tool).
Index ¶
- type Signer
- func (s *Signer) GenerateKeyPair(ctx context.Context, outputDir string) error
- func (s *Signer) GetPublicKey(_ context.Context) (string, error)
- func (s *Signer) IsImageSigned(ctx context.Context, imageRef string) (bool, error)
- func (s *Signer) SignImage(ctx context.Context, imageRef string) error
- func (s *Signer) SignIndex(ctx context.Context, indexRef string) error
- func (s *Signer) VerifyImage(ctx context.Context, imageRef string) error
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 provides functionality for signing container images using cosign
func NewSigner ¶
func NewSigner(opts *config.KanikoOptions) *Signer
NewSigner creates a new cosign signer instance
func (*Signer) GenerateKeyPair ¶
GenerateKeyPair generates a new cosign key pair
func (*Signer) GetPublicKey ¶
GetPublicKey returns the public key from a key file
func (*Signer) IsImageSigned ¶
IsImageSigned checks if an image is signed using cosign
Click to show internal directories.
Click to hide internal directories.