misc

package
v1.22.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Docker    = "docker"
	Kaniko    = "kaniko"
	Bazel     = "bazel"
	Jib       = "jib"
	Custom    = "custom"
	Buildpack = "buildpack"
)

Variables

This section is empty.

Functions

func ArtifactType added in v1.7.1

func ArtifactType(a *latest.Artifact) string

ArtifactType returns a string representing the type found in an artifact. Used for error messages. (this would normally be implemented as a String() method on the type, but types are versioned)

func EvaluateEnv added in v1.1.0

func EvaluateEnv(env []string) ([]string, error)

EvaluateEnv evaluates templated environment variables.

func FormatArtifact added in v1.7.1

func FormatArtifact(a *latest.Artifact) string

FormatArtifact returns a string representation of an artifact for usage in error messages

func HandleGracefulTermination

func HandleGracefulTermination(ctx context.Context, cmd *exec.Cmd) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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