verify

package
v2.12.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Verifier

type Verifier interface {
	// Verify should ensure that the verify test is run to completion
	Verify(context.Context, io.Writer, []graph.Artifact) error

	// Dependencies returns a list of files that the deployer depends on.
	// In dev mode, a redeploy will be triggered
	Dependencies() ([]string, error)

	// Cleanup deletes what was deployed/executed by calling Verify.
	Cleanup(context.Context, io.Writer, bool) error

	// GetLogger returns a Verifier's implementation of a Logger
	GetLogger() log.Logger

	// TrackBuildArtifacts registers build artifacts to be tracked by a Verifier
	TrackBuildArtifacts([]graph.Artifact)

	// RegisterLocalImages tracks all local images to be loaded by the Verifier
	RegisterLocalImages([]graph.Artifact)

	// GetStatusMonitor returns a Verifier's implementation of a StatusMonitor
	GetStatusMonitor() status.Monitor
}

Verifier is the Verify API of skaffold and responsible for deploying the build results to a Kubernetes cluster

func NewVerifierMux

func NewVerifierMux(verifiers []Verifier, iterativeStatusCheck bool) Verifier

type VerifierMux

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

VerifierMux forwards all method calls to the verifiers it contains. When encountering an error, it aborts and returns the error. Otherwise, it collects the results and returns it in bulk.

func (VerifierMux) Cleanup

func (m VerifierMux) Cleanup(ctx context.Context, w io.Writer, dryRun bool) error

func (VerifierMux) Dependencies

func (m VerifierMux) Dependencies() ([]string, error)

func (VerifierMux) GetLogger

func (m VerifierMux) GetLogger() log.Logger

func (VerifierMux) GetStatusMonitor

func (m VerifierMux) GetStatusMonitor() status.Monitor

func (VerifierMux) GetVerifiers

func (m VerifierMux) GetVerifiers() []Verifier

func (VerifierMux) RegisterLocalImages

func (m VerifierMux) RegisterLocalImages(images []graph.Artifact)

func (VerifierMux) TrackBuildArtifacts

func (m VerifierMux) TrackBuildArtifacts(_ []graph.Artifact)

TrackBuildArtifacts should *only* be called on individual verifiers. This is a noop.

func (VerifierMux) Verify

func (m VerifierMux) Verify(ctx context.Context, w io.Writer, as []graph.Artifact) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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