Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComputedAttrs ¶
type ComputedAttrs struct { URL string `hcl:"url,attr"` Sha256 string `hcl:"sha256,attr"` Decompress bool `hcl:"decompress,optional"` }
ComputedAttrs used to store the computed attributes of a local_file target
type Target ¶
type Target struct { *base.RawTarget `json:"-"` URL hcl.Expression `hcl:"url,attr"` Sha256 hcl.Expression `hcl:"sha256,attr"` Decompress hcl.Expression `hcl:"decompress,attr"` }
Target an executable target, when built, it creates a file from provided data
func (Target) Attributes ¶
Attributes returns a combined map of rawTarget.Attributes and typedTarget.Attributes
func (Target) Build ¶
Build creates the file from the content in the location specified with the permissions specified
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.
Click to show internal directories.
Click to hide internal directories.