misc

package
v2.11.1 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 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"
	Ko        = "ko"
)

Variables

This section is empty.

Functions

func ArtifactType

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

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

EvaluateEnv evaluates templated environment variables.

func FormatArtifact

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