Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComputedAttrs ¶
type ComputedAttrs struct { Engine string `hcl:"string,attr"` EngineURL string `hcl:"engine_url,attr"` Timeout string `hcl:"timeout,attr"` Token string `hcl:"token,attr"` }
ComputedAttrs used to store the computed attributes of a kv_sync target
type Target ¶
type Target struct { *base.RawTarget `json:"-"` Engine hcl.Expression `hcl:"engine,attr"` EngineURL hcl.Expression `hcl:"engine_url,attr"` Timeout hcl.Expression `hcl:"timeout,attr"` Token hcl.Expression `hcl:"token,attr"` }
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.
Click to show internal directories.
Click to hide internal directories.