Documentation
¶
Overview ¶
Copyright 2021 The Skaffold Authors
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
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 Builder
- type ChangeSet
- type Intents
- type Listener
- type Pruner
- type Runner
- type SkaffoldListener
- type SkaffoldRunner
- func (r *SkaffoldRunner) Apply(ctx context.Context, out io.Writer) error
- func (r *SkaffoldRunner) Cleanup(ctx context.Context, out io.Writer) error
- func (r *SkaffoldRunner) Deploy(ctx context.Context, out io.Writer, artifacts []graph.Artifact) error
- func (r *SkaffoldRunner) DeployAndLog(ctx context.Context, out io.Writer, artifacts []graph.Artifact) error
- func (r *SkaffoldRunner) Dev(ctx context.Context, out io.Writer, artifacts []*latest.Artifact) error
- func (r *SkaffoldRunner) GeneratePipeline(ctx context.Context, out io.Writer, configs []*latest.SkaffoldConfig, ...) error
- func (r *SkaffoldRunner) HasDeployed() bool
- func (r *SkaffoldRunner) Render(ctx context.Context, out io.Writer, builds []graph.Artifact, offline bool, ...) error
- type Tester
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 Builder ¶ added in v1.23.0
type Builder struct {
// contains filtered or unexported fields
}
func (*Builder) ApplyDefaultRepo ¶ added in v1.23.0
ApplyDefaultRepo applies the default repo to a given image tag.
type ChangeSet ¶ added in v1.23.0
type ChangeSet struct {
// contains filtered or unexported fields
}
func (*ChangeSet) AddRebuild ¶ added in v1.23.0
type Intents ¶ added in v1.23.0
type Intents struct {
// contains filtered or unexported fields
}
func (*Intents) GetIntents ¶ added in v1.23.0
returns build, sync, and deploy intents (in that order)
func (*Intents) IsAnyAutoEnabled ¶ added in v1.23.0
type Runner ¶ added in v0.33.0
type Runner interface {
Apply(context.Context, io.Writer) error
ApplyDefaultRepo(tag string) (string, error)
Build(context.Context, io.Writer, []*latest.Artifact) ([]graph.Artifact, error)
Cleanup(context.Context, io.Writer) error
Dev(context.Context, io.Writer, []*latest.Artifact) error
Deploy(context.Context, io.Writer, []graph.Artifact) error
DeployAndLog(context.Context, io.Writer, []graph.Artifact) error
GeneratePipeline(context.Context, io.Writer, []*latest.SkaffoldConfig, []string, string) error
HasBuilt() bool
HasDeployed() bool
Prune(context.Context, io.Writer) error
Render(context.Context, io.Writer, []graph.Artifact, bool, string) error
Test(context.Context, io.Writer, []graph.Artifact) error
}
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() error) error
WatchForChanges listens to a trigger, and when one is received, computes file changes and conditionally runs the dev loop.
type SkaffoldRunner ¶
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) DeployAndLog ¶ added in v0.33.0
func (r *SkaffoldRunner) DeployAndLog(ctx context.Context, out io.Writer, artifacts []graph.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, test and deploy config until interrupted by the user.
func (*SkaffoldRunner) GeneratePipeline ¶ added in v0.36.0
func (r *SkaffoldRunner) GeneratePipeline(ctx context.Context, out io.Writer, configs []*latest.SkaffoldConfig, configPaths []string, fileOut string) error
func (*SkaffoldRunner) HasDeployed ¶ added in v0.20.0
func (r *SkaffoldRunner) HasDeployed() bool
HasDeployed returns true if this runner has deployed something.