package bake
import "github.com/docker/buildx/bake"
Index ¶
- func ReadTargets(ctx context.Context, files, targets, overrides []string) (map[string]Target, error)
- func TargetsToBuildOpt(m map[string]Target) (map[string]build.Options, error)
- type Config
- func ParseCompose(dt []byte) (*Config, error)
- func ParseFile(fn string) (*Config, error)
- func ParseHCL(dt []byte) (*Config, error)
- func (c Config) ResolveGroup(name string) []string
- func (c Config) ResolveTarget(name string) (*Target, error)
- type Group
- type Target
Functions ¶
func ReadTargets ¶
func ReadTargets(ctx context.Context, files, targets, overrides []string) (map[string]Target, error)
func TargetsToBuildOpt ¶
Types ¶
type Config ¶
func ParseCompose ¶
func ParseFile ¶
func ParseHCL ¶
func (Config) ResolveGroup ¶
func (Config) ResolveTarget ¶
type Group ¶
type Group struct { Targets []string }
type Target ¶
type Target struct { Inherits []string `json:"inherits,omitempty" hcl:"inherits,omitempty"` Context *string `json:"context,omitempty" hcl:"context,omitempty"` Dockerfile *string `json:"dockerfile,omitempty" hcl:"dockerfile,omitempty"` Args map[string]string `json:"args,omitempty" hcl:"args,omitempty"` Labels map[string]string `json:"labels,omitempty" hcl:"labels,omitempty"` Tags []string `json:"tags,omitempty" hcl:"tags,omitempty"` CacheFrom []string `json:"cache-from,omitempty" hcl:"cache-from,omitempty"` CacheTo []string `json:"cache-to,omitempty" hcl:"cache-to,omitempty"` Target *string `json:"target,omitempty" hcl:"target,omitempty"` Secrets []string `json:"secret,omitempty" hcl:"secret,omitempty"` SSH []string `json:"ssh,omitempty" hcl:"ssh,omitempty"` Platforms []string `json:"platforms,omitempty" hcl:"platforms,omitempty"` Outputs []string `json:"output,omitempty" hcl:"output,omitempty"` }
Source Files ¶
- Version
- v0.2.0
- Published
- Apr 25, 2019
- Platform
- js/wasm
- Imports
- 10 packages
- Last checked
- 7 hours ago –
Tools for package owners.