Documentation ¶
Index ¶
Constants ¶
View Source
const Type = "kube_exec"
Type is the string value of the Target type
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct { Artifact *Artifact Target *Target K8sClient kube.Client Logger logz.FieldLogger }
Action is the executor for implementing a Kube Exec
func (*Action) UseK8sClient ¶
UseK8sClient injects the Kubernetes client
func (*Action) UseLogger ¶
func (a *Action) UseLogger(logger logz.FieldLogger)
UseLogger injects a logger into the target's action
type Artifact ¶
type Artifact struct {
ark.RawArtifact `mapstructure:",squash"`
}
Artifact the result of a successful kube_exec.Produce() call
func (Artifact) Cacheable ¶
Cacheable always returns false as an exec should run regardless of state
func (Artifact) LocallyCached ¶
LocallyCached is an unused function as the target is not cacheable
type Target ¶
type Target struct { ark.RawTarget `mapstructure:",squash"` ResourceType string `json:"resourceType" mapstructure:"resourceType"` ResourceName string `json:"resourceName" mapstructure:"resourceName"` Command []string `json:"command" mapstructure:"command"` ContainerName string `json:"containerName" mapstructure:"containerName"` TimeoutSeconds int `json:"timeoutSeconds" mapstructure:"timeoutSeconds"` }
Target expresses the intention to implement a kube_exec target
Click to show internal directories.
Click to hide internal directories.