cosign

package
v2.38.3 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "v2.4.1"

Variables

This section is empty.

Functions

func Checksums

func Checksums() map[string]string

func ExePath

func ExePath(param *ParamExePath) string

func GetMutex

func GetMutex() *sync.Mutex

func Package added in v2.34.0

func Package() *config.Package

Types

type Executor

type Executor interface {
	ExecStderrAndGetCombinedOutput(cmd *osexec.Cmd) (string, int, error)
}

type MockVerifier

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

func (*MockVerifier) Verify

func (v *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 {
	Opts          []string
	Target        string
	CosignExePath string
}

type Verifier

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

func NewVerifier

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

func (*Verifier) Verify

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

art is used to render the template.

Jump to

Keyboard shortcuts

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