package build
import "github.com/docker/buildx/build"
Index ¶
- 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(inp Inputs, target *client.SolveOpt) (func(), error)
- func ParseCacheEntry(in []string) ([]client.CacheOptionsEntry, 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, pw progress.Writer) (resp map[string]*client.SolveResponse, err error)
func LoadInputs ¶
func ParseCacheEntry ¶
func ParseCacheEntry(in []string) ([]client.CacheOptionsEntry, 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 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 }
Source Files ¶
build.go cache.go output.go secrets.go ssh.go utils.go
- Version
- v0.2.0
- Published
- Apr 25, 2019
- Platform
- js/wasm
- Imports
- 34 packages
- Last checked
- 9 hours ago –
Tools for package owners.