docker

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: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArtifactResolver

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

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 *latest.Artifact, tag string, matcher platform.Matcher) (string, error)

func (*Builder) SupportedPlatforms

func (b *Builder) SupportedPlatforms() platform.Matcher

type TransitiveSourceDependenciesResolver

type TransitiveSourceDependenciesResolver interface {
	TransitiveArtifactDependencies(ctx context.Context, a *latest.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