Documentation ¶
Index ¶
- func IsRemoteURL(url string) bool
- func ParseHCLFile(dt []byte, fn string) (*hcl.File, bool, error)
- func ReadRemoteFiles(ctx context.Context, dis []build.DriverInfo, url string, names []string, ...) ([]File, *Input, error)
- func TargetsToBuildOpt(m map[string]*Target, inp *Input) (map[string]build.Options, error)
- type Config
- type File
- type Group
- type Input
- type Override
- type Target
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsRemoteURL ¶ added in v0.5.0
func ParseHCLFile ¶ added in v0.6.0
func ReadRemoteFiles ¶ added in v0.5.0
Types ¶
type Config ¶
type Config struct { Groups []*Group `json:"group" hcl:"group,block"` Targets []*Target `json:"target" hcl:"target,block"` }
func ParseComposeFile ¶ added in v0.6.0
func ParseFiles ¶ added in v0.6.0
func (Config) ResolveGroup ¶
type File ¶ added in v0.5.0
func ReadLocalFiles ¶ added in v0.5.0
type Group ¶
type Target ¶
type Target struct { Name string `json:"-" hcl:"name,label"` // Inherits is the only field that cannot be overridden with --set Inherits []string `json:"inherits,omitempty" hcl:"inherits,optional"` Context *string `json:"context,omitempty" hcl:"context,optional"` Contexts map[string]string `json:"contexts,omitempty" hcl:"contexts,optional"` Dockerfile *string `json:"dockerfile,omitempty" hcl:"dockerfile,optional"` DockerfileInline *string `json:"dockerfile-inline,omitempty" hcl:"dockerfile-inline,optional"` Args map[string]string `json:"args,omitempty" hcl:"args,optional"` Labels map[string]string `json:"labels,omitempty" hcl:"labels,optional"` Tags []string `json:"tags,omitempty" hcl:"tags,optional"` CacheFrom []string `json:"cache-from,omitempty" hcl:"cache-from,optional"` CacheTo []string `json:"cache-to,omitempty" hcl:"cache-to,optional"` Target *string `json:"target,omitempty" hcl:"target,optional"` Secrets []string `json:"secret,omitempty" hcl:"secret,optional"` SSH []string `json:"ssh,omitempty" hcl:"ssh,optional"` Platforms []string `json:"platforms,omitempty" hcl:"platforms,optional"` Outputs []string `json:"output,omitempty" hcl:"output,optional"` Pull *bool `json:"pull,omitempty" hcl:"pull,optional"` NoCache *bool `json:"no-cache,omitempty" hcl:"no-cache,optional"` NetworkMode *string `json:"-" hcl:"-"` NoCacheFilter []string `json:"no-cache-filter,omitempty" hcl:"no-cache-filter,optional"` // contains filtered or unexported fields }
func (*Target) AddOverrides ¶ added in v0.7.0
Click to show internal directories.
Click to hide internal directories.