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)
- func ParseCacheEntry(in []string) ([]client.CacheOptionsEntry, error)
- func ParseEntitlements(in []string) ([]entitlements.Entitlement, error)
- func ParseOutputs(inp []string) ([]client.ExportEntry, error)
- func ParseSSHSpecs(sl []string) (session.Attachable, error)
- func ParseSecretSpecs(sl []string) (session.Attachable, 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)
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 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 ¶
build.go cache.go entitlements.go output.go secrets.go ssh.go url.go utils.go
- Version
- v0.5.0
- Published
- Dec 10, 2020
- Platform
- js/wasm
- Imports
- 42 packages
- Last checked
- 7 hours ago –
Tools for package owners.