Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComputedAttrs ¶
type ComputedAttrs struct { Command []string `hcl:"command,attr"` Image string `hcl:"image,attr"` Volumes *[]string `hcl:"volumes,attr"` Environment *map[string]string `hcl:"environment,attr"` WorkingDirectory *string `hcl:"working_directory,attr"` Ports []string `hcl:"ports,optional"` Detach bool `hcl:"detach,optional"` KillTimeout string `hcl:"kill_timeout,optional"` Privileged bool `hcl:"privileged,optional"` NetworkMode string `hcl:"network_mode,optional"` }
ComputedAttrs used to store the computed attributes of a local_exec target
type Target ¶
type Target struct { *base.RawTarget `json:"-"` Command hcl.Expression `hcl:"command,attr"` Image hcl.Expression `hcl:"image,attr"` Environment hcl.Expression `hcl:"environment,attr"` Volumes hcl.Expression `hcl:"volumes,attr"` WorkingDirectory hcl.Expression `hcl:"working_directory,attr"` Ports hcl.Expression `hcl:"ports,optional"` Detach hcl.Expression `hcl:"detach,optional"` KillTimeout hcl.Expression `hcl:"kill_timeout,optional"` Privileged hcl.Expression `hcl:"privileged,optional"` NetworkMode hcl.Expression `hcl:"network_mode,optional"` }
Target an executable target, when built it runs the specified command
func (Target) Attributes ¶
Attributes return a combined map of rawTarget.Attributes and typedTarget.Attributes
func (Target) CacheEnabled ¶
func (t Target) CacheEnabled()
CacheEnabled overrides the default target caching behavior
func (Target) ComputedAttrs ¶
func (t Target) ComputedAttrs() *ComputedAttrs
ComputedAttrs returns a pointer to computed attributes from the state store. If attributes are not in the state store it will create a new pointer and insert it into the state store.
func (Target) WorkingDir ¶
WorkingDir the working directory of the container
Click to show internal directories.
Click to hide internal directories.