ghattestation

package
v2.45.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version string //nolint:gochecknoglobals

)

Functions

func Checksums

func Checksums() *checksum.Checksums

func Package

func Package() *config.Package

Types

type AuthError added in v2.45.0

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

func (*AuthError) Error added in v2.45.0

func (e *AuthError) Error() string

func (*AuthError) Unwrap added in v2.45.0

func (e *AuthError) Unwrap() error

type CommandExecutor

type CommandExecutor interface {
	ExecStderrAndGetCombinedOutput(cmd *exec.Cmd) (string, 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