Documentation ¶
Index ¶
- func Execute(pluginLogLevel hclog.Level) func() error
- type Builder
- func (b *Builder) Build(ctx context.Context, out io.Writer, tags tag.ImageTags, ...) ([]build.Artifact, error)
- func (b *Builder) BuildArtifact(ctx context.Context, out io.Writer, a *latest.Artifact, tag string) (string, error)
- func (b *Builder) DependenciesForArtifact(ctx context.Context, artifact *latest.Artifact) ([]string, error)
- func (b *Builder) Init(runCtx *runcontext.RunContext) error
- func (b *Builder) Labels() map[string]string
- func (b *Builder) Prune(ctx context.Context, out io.Writer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Builder ¶ added in v0.25.0
type Builder struct { *latest.LocalBuild LocalDocker docker.LocalDaemon LocalCluster bool PushImages bool // TODO: remove once old docker build functionality is removed (priyawadhwa@) PluginMode bool KubeContext string // contains filtered or unexported fields }
Builder builds artifacts with Docker.
func NewBuilder ¶ added in v0.25.0
func NewBuilder() *Builder
NewBuilder creates a new Builder that builds artifacts with Docker.
func (*Builder) Build ¶ added in v0.25.0
func (b *Builder) Build(ctx context.Context, out io.Writer, tags tag.ImageTags, artifacts []*latest.Artifact) ([]build.Artifact, error)
Build is responsible for building artifacts in their respective execution environments The builder plugin is also responsible for setting any necessary defaults
func (*Builder) BuildArtifact ¶ added in v0.25.0
func (b *Builder) BuildArtifact(ctx context.Context, out io.Writer, a *latest.Artifact, tag string) (string, error)
BuildArtifact builds the docker artifact
func (*Builder) DependenciesForArtifact ¶ added in v0.25.0
func (b *Builder) DependenciesForArtifact(ctx context.Context, artifact *latest.Artifact) ([]string, error)
DependenciesForArtifact returns the dependencies for this docker artifact
func (*Builder) Init ¶ added in v0.25.0
func (b *Builder) Init(runCtx *runcontext.RunContext) error
Init stores skaffold options and the execution environment
Click to show internal directories.
Click to hide internal directories.