minisign

package
v2.38.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "0.11"

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, signature string) 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, signature string) 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, rt *runtime.Runtime, ms *registry.Minisign, art *template.Artifact, file *download.File, param *ParamVerify) error

type ParamVerify

type ParamVerify struct {
	ArtifactPath string
	PublicKey    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, m *registry.Minisign, 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