docker

package
v1.35.0-alpha Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArtifactResolver added in v1.7.1

type ArtifactResolver interface {
	GetImageTag(imageName string) (string, bool)
}

ArtifactResolver provides an interface to resolve built artifact tags by image name.

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

Builder is an artifact builder that uses docker

func NewArtifactBuilder added in v1.7.1

func NewArtifactBuilder(localDocker docker.LocalDaemon, cfg docker.Config, useCLI bool, useBuildKit *bool, pushImages bool, ar ArtifactResolver, dr TransitiveSourceDependenciesResolver) *Builder

NewBuilder returns an new instance of a docker builder

func (*Builder) Build

func (b *Builder) Build(ctx context.Context, out io.Writer, a *latestV1.Artifact, tag string) (string, error)

type TransitiveSourceDependenciesResolver added in v1.22.0

type TransitiveSourceDependenciesResolver interface {
	TransitiveArtifactDependencies(ctx context.Context, a *latestV1.Artifact) ([]string, error)
}

TransitiveSourceDependenciesResolver provides an interface to to evaluate the source dependencies for artifacts.

Jump to

Keyboard shortcuts

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