package build
import "github.com/docker/buildx/build"
Index ¶
- func Build(ctx context.Context, drivers []DriverInfo, opt map[string]Options, docker DockerAPI, auth Auth, w progress.Writer) (resp map[string]*client.SolveResponse, err error)
- func LoadInputs(ctx context.Context, d driver.Driver, inp Inputs, pw progress.Writer, target *client.SolveOpt) (func(), error)
- type Auth
- type DockerAPI
- type DriverInfo
- type Inputs
- type Options
Functions ¶
func Build ¶
func Build(ctx context.Context, drivers []DriverInfo, opt map[string]Options, docker DockerAPI, auth Auth, w progress.Writer) (resp map[string]*client.SolveResponse, err error)
func LoadInputs ¶
func LoadInputs(ctx context.Context, d driver.Driver, inp Inputs, pw progress.Writer, target *client.SolveOpt) (func(), 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 Inputs ¶
type Inputs struct { ContextPath string DockerfilePath string InStream io.Reader ContextState *llb.State DockerfileInline string }
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 ¶
- Version
- v0.6.0-rc1
- Published
- Jul 13, 2021
- Platform
- js/wasm
- Imports
- 41 packages
- Last checked
- 6 hours ago –
Tools for package owners.