runner

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2018 License: Apache-2.0 Imports: 30 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrorConfigurationChanged = errors.New("configuration changed")

ErrorConfigurationChanged is a special error that's returned when the skaffold configuration was changed.

Functions

func DependenciesForArtifact added in v0.16.0

func DependenciesForArtifact(ctx context.Context, a *latest.Artifact) ([]string, error)

DependenciesForArtifact lists the dependencies for a given artifact.

func WithNotification added in v0.6.1

func WithNotification(d deploy.Deployer) deploy.Deployer

WithNotification creates a deployer that bips each time a deploy is done.

func WithTimings added in v0.6.1

WithTimings creates a deployer that logs the duration of each phase.

Types

type SkaffoldRunner

type SkaffoldRunner struct {
	build.Builder
	deploy.Deployer
	test.Tester
	tag.Tagger
	watch.Trigger
	sync.Syncer
	// contains filtered or unexported fields
}

SkaffoldRunner is responsible for running the skaffold build and deploy pipeline.

func NewForConfig

func NewForConfig(opts *config.SkaffoldOptions, cfg *latest.SkaffoldPipeline) (*SkaffoldRunner, error)

NewForConfig returns a new SkaffoldRunner for a SkaffoldPipeline

func (*SkaffoldRunner) Dev added in v0.6.0

func (r *SkaffoldRunner) Dev(ctx context.Context, out io.Writer, artifacts []*latest.Artifact) ([]build.Artifact, error)

Dev watches for changes and runs the skaffold build and deploy pipeline until interrrupted by the user.

func (*SkaffoldRunner) Run

func (r *SkaffoldRunner) Run(ctx context.Context, out io.Writer, artifacts []*latest.Artifact) error

Run builds artifacts, runs tests on built artifacts, and then deploys them.

func (*SkaffoldRunner) TailLogs added in v0.13.0

func (r *SkaffoldRunner) TailLogs(ctx context.Context, out io.Writer, artifacts []*latest.Artifact, bRes []build.Artifact) error

TailLogs prints the logs for deployed artifacts.

Jump to

Keyboard shortcuts

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