Documentation ¶
Index ¶
- type Verifier
- type VerifierMux
- func (m VerifierMux) Cleanup(ctx context.Context, w io.Writer, dryRun bool) error
- func (m VerifierMux) Dependencies() ([]string, error)
- func (m VerifierMux) GetLogger() log.Logger
- func (m VerifierMux) GetStatusMonitor() status.Monitor
- func (m VerifierMux) GetVerifiers() []Verifier
- func (m VerifierMux) RegisterLocalImages(images []graph.Artifact)
- func (m VerifierMux) TrackBuildArtifacts(_ []graph.Artifact)
- func (m VerifierMux) Verify(ctx context.Context, w io.Writer, as []graph.Artifact) error
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 ¶
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) 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.
Click to show internal directories.
Click to hide internal directories.