noop

package
v0.3.27 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NoopVerifier

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

func NewNoopVerifier

func NewNoopVerifier(
	_ context.Context, cm *system.CleanupManager,
) (*NoopVerifier, error)

func NewNoopVerifierWithConfig added in v0.3.25

func NewNoopVerifierWithConfig(ctx context.Context, cm *system.CleanupManager, config VerifierConfig) (*NoopVerifier, error)

func (*NoopVerifier) GetProposal added in v0.3.24

func (noopVerifier *NoopVerifier) GetProposal(
	ctx context.Context,
	job model.Job,
	s string,
) ([]byte, error)

func (*NoopVerifier) GetResultPath added in v0.3.24

func (noopVerifier *NoopVerifier) GetResultPath(
	ctx context.Context,
	executionID string,
	job model.Job,
) (string, error)

func (*NoopVerifier) IsInstalled

func (noopVerifier *NoopVerifier) IsInstalled(ctx context.Context) (bool, error)

func (*NoopVerifier) Verify added in v0.3.24

func (noopVerifier *NoopVerifier) Verify(
	ctx context.Context,
	job model.Job,
	executionStates []model.ExecutionState,
) ([]verifier.VerifierResult, error)

type VerifierConfig added in v0.3.25

type VerifierConfig struct {
	ExternalHooks VerifierExternalHooks
}

type VerifierExternalHooks added in v0.3.25

type VerifierExternalHooks struct {
	IsInstalled   VerifierHandlerIsInstalled
	GetResultPath VerifierHandlerGetResultPath
	GetProposal   VerifierHandlerGetProposal
	Verify        VerifierHandlerVerify
}

type VerifierHandlerGetProposal added in v0.3.25

type VerifierHandlerGetProposal func(context.Context, model.Job, string) ([]byte, error)

type VerifierHandlerGetResultPath added in v0.3.25

type VerifierHandlerGetResultPath func(ctx context.Context, executionID string, job model.Job) (string, error)

type VerifierHandlerIsInstalled added in v0.3.25

type VerifierHandlerIsInstalled func(ctx context.Context) (bool, error)

type VerifierHandlerVerify added in v0.3.25

type VerifierHandlerVerify func(context.Context, model.Job, []model.ExecutionState) ([]verifier.VerifierResult, error)

Jump to

Keyboard shortcuts

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