ko

package
v1.39.18 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDependencies added in v1.33.0

func GetDependencies(_ context.Context, workspace string, a *latest.KoArtifact) ([]string, error)

GetDependencies returns a list of files to watch for changes to rebuild.

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

func (*Builder) Build added in v1.31.0

func (b *Builder) Build(ctx context.Context, out io.Writer, a *latest.Artifact, ref string, platforms platform.Matcher) (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.

func (*Builder) SupportedPlatforms added in v1.36.0

func (b *Builder) SupportedPlatforms() platform.Matcher

Jump to

Keyboard shortcuts

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