Documentation ¶
Index ¶
- Variables
- func WithNotification(d deploy.Deployer) deploy.Deployer
- func WithTimings(b build.Builder, t test.Tester, d deploy.Deployer, cacheArtifacts bool) (build.Builder, test.Tester, deploy.Deployer)
- type Listener
- type Runner
- type SkaffoldListener
- type SkaffoldRunner
- func (r *SkaffoldRunner) BuildAndTest(ctx context.Context, out io.Writer, artifacts []*latest.Artifact) ([]build.Artifact, error)
- func (r *SkaffoldRunner) Cleanup(ctx context.Context, out io.Writer) error
- func (r *SkaffoldRunner) Deploy(ctx context.Context, out io.Writer, artifacts []build.Artifact) error
- func (r *SkaffoldRunner) DeployAndLog(ctx context.Context, out io.Writer, artifacts []build.Artifact) error
- func (r *SkaffoldRunner) Dev(ctx context.Context, out io.Writer, artifacts []*latest.Artifact) error
- func (r *SkaffoldRunner) DiagnoseArtifacts(out io.Writer) error
- func (r *SkaffoldRunner) GeneratePipeline(ctx context.Context, out io.Writer, config *latest.SkaffoldConfig, ...) error
- func (r *SkaffoldRunner) HasBuilt() bool
- func (r *SkaffoldRunner) HasDeployed() bool
- func (r *SkaffoldRunner) Prune(ctx context.Context, out io.Writer) error
Constants ¶
This section is empty.
Variables ¶
var ErrorConfigurationChanged = errors.New("configuration changed")
ErrorConfigurationChanged is a special error that's returned when the skaffold configuration was changed.
Functions ¶
func WithNotification ¶ added in v0.6.1
WithNotification creates a deployer that bips each time a deploy is done.
Types ¶
type Runner ¶ added in v0.33.0
type Runner interface { DiagnoseArtifacts(io.Writer) error Dev(context.Context, io.Writer, []*latest.Artifact) error BuildAndTest(context.Context, io.Writer, []*latest.Artifact) ([]build.Artifact, error) DeployAndLog(context.Context, io.Writer, []build.Artifact) error GeneratePipeline(context.Context, io.Writer, *latest.SkaffoldConfig, string) error Cleanup(context.Context, io.Writer) error Prune(context.Context, io.Writer) error HasDeployed() bool HasBuilt() bool }
Runner is responsible for running the skaffold build, test and deploy config.
type SkaffoldListener ¶ added in v0.34.0
type SkaffoldListener struct { Monitor filemon.Monitor Trigger trigger.Trigger // contains filtered or unexported fields }
func (*SkaffoldListener) LogWatchToUser ¶ added in v0.34.0
func (l *SkaffoldListener) LogWatchToUser(out io.Writer)
func (*SkaffoldListener) WatchForChanges ¶ added in v0.34.0
func (l *SkaffoldListener) WatchForChanges(ctx context.Context, out io.Writer, devLoop func(context.Context, io.Writer) error) error
WatchForChanges listens to a trigger, and when one is received, computes file changes and conditionally runs the dev loop.
type SkaffoldRunner ¶
type SkaffoldRunner struct {
// contains filtered or unexported fields
}
SkaffoldRunner is responsible for running the skaffold build, test and deploy config.
func NewForConfig ¶
func NewForConfig(runCtx *runcontext.RunContext) (*SkaffoldRunner, error)
NewForConfig returns a new SkaffoldRunner for a SkaffoldConfig
func (*SkaffoldRunner) BuildAndTest ¶ added in v0.19.0
func (r *SkaffoldRunner) BuildAndTest(ctx context.Context, out io.Writer, artifacts []*latest.Artifact) ([]build.Artifact, error)
BuildAndTest builds and tests a list of artifacts.
func (*SkaffoldRunner) DeployAndLog ¶ added in v0.33.0
func (r *SkaffoldRunner) DeployAndLog(ctx context.Context, out io.Writer, artifacts []build.Artifact) error
DeployAndLog deploys a list of already built artifacts and optionally show the logs.
func (*SkaffoldRunner) Dev ¶ added in v0.6.0
func (r *SkaffoldRunner) Dev(ctx context.Context, out io.Writer, artifacts []*latest.Artifact) error
Dev watches for changes and runs the skaffold build and deploy config until interrupted by the user.
func (*SkaffoldRunner) DiagnoseArtifacts ¶ added in v0.27.0
func (r *SkaffoldRunner) DiagnoseArtifacts(out io.Writer) error
func (*SkaffoldRunner) GeneratePipeline ¶ added in v0.36.0
func (r *SkaffoldRunner) GeneratePipeline(ctx context.Context, out io.Writer, config *latest.SkaffoldConfig, fileOut string) error
func (*SkaffoldRunner) HasBuilt ¶ added in v0.27.0
func (r *SkaffoldRunner) HasBuilt() bool
HasBuilt returns true if this runner has built something.
func (*SkaffoldRunner) HasDeployed ¶ added in v0.20.0
func (r *SkaffoldRunner) HasDeployed() bool
HasDeployed returns true if this runner has deployed something.