Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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
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()
Click to show internal directories.
Click to hide internal directories.