ghattestation

package
v2.38.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const Version = "v2.57.0"

Variables

This section is empty.

Functions

func Checksums

func Checksums() map[string]string

func Package

func Package() *config.Package

Types

type CommandExecutor

type CommandExecutor interface {
	ExecStderr(cmd *osexec.Cmd) (int, error)
}

type Executor

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

type ExecutorImpl

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

func NewExecutor

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

func (*ExecutorImpl) Verify

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

type MockExecutor

type MockExecutor struct {
	Err error
}

func (*MockExecutor) Verify

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

type MockVerifier

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

func (*MockVerifier) Verify

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

type ParamVerify

type ParamVerify struct {
	ArtifactPath   string
	Repository     string
	SignerWorkflow string
}

type Verifier

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

func New

func New(exe Executor) *Verifier

func (*Verifier) Verify

func (v *Verifier) Verify(ctx context.Context, logE *logrus.Entry, param *ParamVerify) error

Jump to

Keyboard shortcuts

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