Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDependencies ¶ added in v1.33.0
func GetDependencies(ctx context.Context, workspace string, a *latestV1.KoArtifact) ([]string, error)
GetDependencies returns a list of files to watch for changes to rebuild. TODO(halvards)09/17/2021: Call this function from sourceDependenciesForArtifact() in pkg/skaffold/graph/dependencies.go
Types ¶
type Builder ¶ added in v1.31.0
type Builder struct {
// contains filtered or unexported fields
}
Builder is an artifact builder that uses ko
func NewArtifactBuilder ¶ added in v1.31.0
func NewArtifactBuilder(localDocker docker.LocalDaemon, pushImages bool, runMode config.RunMode, insecureRegistries map[string]bool) *Builder
NewArtifactBuilder returns a new ko artifact builder TODO(halvards)09/17/2021: Call this function from newPerArtifactBuilder() in pkg/skaffold/build/local/types.go
func (*Builder) Build ¶ added in v1.31.0
func (b *Builder) Build(ctx context.Context, out io.Writer, a *latestV1.Artifact, ref string) (string, error)
Build an artifact using ko, and either push it to an image registry, or sideload it to the local docker daemon. Build prints the image name to the out io.Writer and returns the image identifier. The image identifier is the tag or digest for pushed images, or the docker image ID for sideloaded images.