kube_exec

package
v0.0.0-...-841f565 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComputedAttrs

type ComputedAttrs struct {
	ResourceType  string   `hcl:"resource_type,attr"`
	ResourceName  string   `hcl:"resource_name,attr"`
	ContainerName string   `hcl:"container_name,optional"`
	Command       []string `hcl:"command,attr"`
	GetPodTimeout string   `hcl:"get_pod_timeout,optional"`
}

ComputedAttrs used to store the computed attributes of a kube_exec target

type Target

type Target struct {
	*base.RawTarget `json:"-"`

	ResourceType  hcl.Expression `hcl:"resource_type,attr"`
	ResourceName  hcl.Expression `hcl:"resource_name,attr"`
	ContainerName hcl.Expression `hcl:"container_name,optional"`
	Command       hcl.Expression `hcl:"command,attr"`
	GetPodTimeout hcl.Expression `hcl:"get_pod_timeout,optional"`
}

Target an executable target, when built it runs the specified command

func (Target) Attributes

func (t Target) Attributes() map[string]cty.Value

Attributes return a combined map of rawTarget.Attributes and typedTarget.Attributes

func (Target) Build

func (t Target) Build() error

Build executes the command specified in this target

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) PreBuild

func (t Target) PreBuild() error

PreBuild a lifecycle hook for calculating state before the build

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL