Documentation ¶
Index ¶
- type ComputedAttrs
- type Target
- func (t Target) Attributes() map[string]cty.Value
- func (t Target) Build() error
- func (t Target) CheckLocalBuildCache() (bool, error)
- func (t Target) CheckRemoteCache() (bool, error)
- func (t Target) ComputedAttrs() *ComputedAttrs
- func (t Target) PreBuild() error
- func (t Target) PullRemoteCache() error
- func (t Target) PushRemoteCache() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComputedAttrs ¶
type ComputedAttrs struct { Optional bool `hcl:"optional,attr"` SecretName string `hcl:"secret_name,attr"` Namespace string `hcl:"namespace,optional"` Files []string `hcl:"files,optional"` Environment []string `hcl:"environment,optional"` }
ComputedAttrs is used to store the computed values from the Target expressions
type Target ¶
type Target struct { *base.RawTarget `json:"-"` Optional hcl.Expression `hcl:"optional,attr"` SecretName hcl.Expression `hcl:"secret_name,attr"` Namespace hcl.Expression `hcl:"namespace,optional"` Files hcl.Expression `hcl:"files,optional"` Environment hcl.Expression `hcl:"environment,optional"` }
Target defines the required and optional attributes for defining a secret
func (Target) Attributes ¶
Attributes return a combined map of rawTarget.Attributes and typedTarget.Attributes
func (Target) CheckLocalBuildCache ¶
CheckLocalBuildCache checks the configured K8s context to see if a secret with the same target hash already exists in the cluster
func (Target) CheckRemoteCache ¶
CheckRemoteCache overrides the RawTarget interface method because it wouldn't work for this target
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) PullRemoteCache ¶
PullRemoteCache overrides the RawTarget interface method because it wouldn't work for this target
func (Target) PushRemoteCache ¶
PushRemoteCache overrides the RawTarget interface method because it wouldn't work for this target