slsa

package
v2.27.3 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "v2.5.1"

Variables

This section is empty.

Functions

func Checksums

func Checksums() map[string]string

func ExePath

func ExePath(param *ParamExePath) string

Types

type CommandExecutor

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

type Executor

type Executor interface {
	Verify(ctx context.Context, logE *logrus.Entry, param *ParamVerify, provenancePath string) error
}

type ExecutorImpl

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

func NewExecutor

func NewExecutor(executor CommandExecutor, param *config.Param) *ExecutorImpl

func (*ExecutorImpl) Verify

func (e *ExecutorImpl) Verify(ctx context.Context, logE *logrus.Entry, param *ParamVerify, provenancePath string) error

type MockExecutor

type MockExecutor struct {
	Err error
}

func (*MockExecutor) Verify

func (m *MockExecutor) Verify(ctx context.Context, logE *logrus.Entry, param *ParamVerify, provenancePath string) error

type MockVerifier

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

func (*MockVerifier) Verify

type ParamExePath

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

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 Executor) *Verifier

func (*Verifier) Verify

func (v *Verifier) 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