cosign

package
v1.38.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "v1.13.1"

Variables

This section is empty.

Functions

func Checksums added in v1.30.0

func Checksums() map[string]string

func ExePath

func ExePath(param *ParamExePath) string

func GetMutex added in v1.36.1

func GetMutex() *sync.Mutex

Types

type Executor

type Executor interface {
	ExecWithEnvsAndGetCombinedOutput(ctx context.Context, exePath string, args, envs []string) (string, int, error)
}

type MockVerifier

type MockVerifier struct {
	// contains filtered or unexported fields
}

func (*MockVerifier) Verify

func (mock *MockVerifier) Verify(ctx context.Context, logE *logrus.Entry, rt *runtime.Runtime, file *download.File, cos *registry.Cosign, art *template.Artifact, verifiedFilePath string) error

type ParamExePath

type ParamExePath struct {
	RootDir string
	Runtime *runtime.Runtime
}

type ParamVerify

type ParamVerify struct {
	CosignExperimental bool
	Opts               []string
	Target             string
	CosignExePath      string
}

type Verifier

type Verifier interface {
	Verify(ctx context.Context, logE *logrus.Entry, rt *runtime.Runtime, file *download.File, cos *registry.Cosign, art *template.Artifact, verifiedFilePath string) error
}

type VerifierImpl added in v1.29.0

type VerifierImpl struct {
	// contains filtered or unexported fields
}

func NewVerifier

func NewVerifier(executor Executor, fs afero.Fs, downloader download.ClientAPI, param *config.Param) *VerifierImpl

func (*VerifierImpl) Verify added in v1.29.0

func (verifier *VerifierImpl) Verify(ctx context.Context, logE *logrus.Entry, rt *runtime.Runtime, file *download.File, cos *registry.Cosign, art *template.Artifact, verifiedFilePath string) error

Jump to

Keyboard shortcuts

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