slsa

package
v1.26.2-1 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

type Executor struct{}

func NewExecutor

func NewExecutor() *Executor

func (*Executor) Verify

func (exe *Executor) Verify(ctx context.Context, param *ParamVerify, provenancePath string) error

type ExecutorAPI

type ExecutorAPI interface {
	Verify(ctx context.Context, param *ParamVerify, provenancePath string) error
}

type MockExecutor

type MockExecutor struct {
	Err error
}

func (*MockExecutor) Verify

func (mock *MockExecutor) Verify(ctx context.Context, param *ParamVerify, provenancePath string) 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, sp *registry.SLSAProvenance, art *template.Artifact, file *download.File, param *ParamVerify) error

type ParamVerify

type ParamVerify struct {
	// e.g. github.com/suzuki-shunsuke/test-cosign-keyless-aqua
	SourceURI string
	// e.g. v0.1.0-7
	SourceTag    string
	ArtifactPath string
}

type Verifier

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

func New

func New(downloader download.ClientAPI, fs afero.Fs, exe ExecutorAPI) *Verifier

func (*Verifier) Verify

func (verifier *Verifier) Verify(ctx context.Context, logE *logrus.Entry, rt *runtime.Runtime, sp *registry.SLSAProvenance, art *template.Artifact, file *download.File, param *ParamVerify) error

type VerifierAPI

type VerifierAPI interface {
	Verify(ctx context.Context, logE *logrus.Entry, rt *runtime.Runtime, sp *registry.SLSAProvenance, art *template.Artifact, file *download.File, param *ParamVerify) error
}

Jump to

Keyboard shortcuts

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