cosignhelper

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package cosignhelper implements cosign verification functionality using cosign libraries

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CosignVerifyOptions

type CosignVerifyOptions struct {
	PublicKeyPath string
}

CosignVerifyOptions implements the "cosign verify" command using cosign library

func (*CosignVerifyOptions) Verify

func (vo *CosignVerifyOptions) Verify(ctx context.Context, images []string) error

Verify verifies the signature on the images

type Cosignhelper

type Cosignhelper interface {
	// Verify verifies the signature on the images using cosign library
	Verify(ctx context.Context, images []string) error
}

Cosignhelper is the interface to provide wrapper implementation for cosign libraries

func NewCosignVerifier

func NewCosignVerifier(publicKeyPath string) Cosignhelper

Jump to

Keyboard shortcuts

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