contain

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunLayers added in v0.4.0

func RunLayers(config schemav1.ContainConfig) ([]v1.Layer, error)

RunLayers is the file system access part of a run

Types

type Artifact added in v0.4.0

type Artifact struct {
	// Name without :tag or digest
	ImageName string `json:"imageName"`
	// Tag here includes name and digest, i.e. the config Tag to push to (use .Http.Tag for image tag)
	Tag string `json:"tag"`
	// contains filtered or unexported fields
}

func Run added in v0.4.0

func Run(config schemav1.ContainConfig) (*Artifact, error)

Run is what you call if you have a complete config and want to push an artifact - Depends on a zap.ReplaceGlobals logger - No side effects other than push to config.Tag (and child tags in case of an index) - Not affected by environment, i.e. config defines a repeatable build

func (*Artifact) Http added in v0.4.0

func (a *Artifact) Http() ArtifactHttp

func (*Artifact) Reference added in v0.4.0

func (a *Artifact) Reference() name.Reference

type ArtifactHttp added in v0.4.0

type ArtifactHttp struct {
	// Host is the registry host without protocol but with port
	Host string
	// Repository returns the path part of the image, excluding the /v2 http api prefix
	Repository string
	// Tag returns the tag name or "latest" if not specified
	Tag string
	// Hash returns digest, with algorithm and hex separable
	Hash v1.Hash
}

type BuildOutput added in v0.4.0

type BuildOutput struct {
	Builds []Artifact `json:"builds"`
}

BuildOutput is used to produce a similar output file that Skaffold does

func NewBuildOutput added in v0.4.0

func NewBuildOutput(tag string, hash v1.Hash) (*BuildOutput, error)

NewBuildOutput takes tag from config.Tag wich is name:tag and hash from for example append to produce build output for a single image.

func RunAppend added in v0.4.0

func RunAppend(config schemav1.ContainConfig, layers []v1.Layer) (*BuildOutput, error)

RunAppend is the remote access part of a run

func (*BuildOutput) Print added in v0.4.0

func (b *BuildOutput) Print()

func (*BuildOutput) WriteJSON added in v0.4.0

func (b *BuildOutput) WriteJSON(f *os.File) error

Jump to

Keyboard shortcuts

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