package build

import "github.com/docker/buildx/build"

Index

Functions

func Build

func Build(ctx context.Context, drivers []DriverInfo, opt map[string]Options, docker DockerAPI, auth Auth, pw progress.Writer) (resp map[string]*client.SolveResponse, err error)

func LoadInputs

func LoadInputs(inp Inputs, target *client.SolveOpt) (func(), error)

func ParseCacheEntry

func ParseCacheEntry(in []string) ([]client.CacheOptionsEntry, error)

func ParseEntitlements

func ParseEntitlements(in []string) ([]entitlements.Entitlement, error)

func ParseOutputs

func ParseOutputs(inp []string) ([]client.ExportEntry, error)

func ParseSSHSpecs

func ParseSSHSpecs(sl []string) (session.Attachable, error)

func ParseSecretSpecs

func ParseSecretSpecs(sl []string) (session.Attachable, error)

Types

type Auth

type Auth interface {
	GetAuthConfig(registryHostname string) (clitypes.AuthConfig, error)
}

type DockerAPI

type DockerAPI interface {
	DockerAPI(name string) (dockerclient.APIClient, error)
}

type DriverInfo

type DriverInfo struct {
	Driver   driver.Driver
	Name     string
	Platform []specs.Platform
	Err      error
}

type Inputs

type Inputs struct {
	ContextPath    string
	DockerfilePath string
	InStream       io.Reader
}

type Options

type Options struct {
	Inputs      Inputs
	Tags        []string
	Labels      map[string]string
	BuildArgs   map[string]string
	Pull        bool
	ImageIDFile string
	ExtraHosts  []string
	NetworkMode string

	NoCache   bool
	Target    string
	Platforms []specs.Platform
	Exports   []client.ExportEntry
	Session   []session.Attachable

	CacheFrom []client.CacheOptionsEntry
	CacheTo   []client.CacheOptionsEntry

	Allow []entitlements.Entitlement
}

Source Files

build.go cache.go entitlements.go output.go secrets.go ssh.go utils.go

Version
v0.4.1
Published
Apr 30, 2020
Platform
js/wasm
Imports
35 packages
Last checked
9 hours ago

Tools for package owners.