Documentation ¶
Index ¶
Constants ¶
View Source
const Type = "test"
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 ManifestDir string K8sClient kube.Client Logger logz.FieldLogger }
Action is the executor for implementing a test
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 test.Produce() call
func (Artifact) Cacheable ¶
Cacheable currently returns false as caching for a test is very nebulous and needs more thought
func (Artifact) LocallyCached ¶
LocallyCached currently does nothing as caching is disabled
type Target ¶
type Target struct { ark.RawTarget `mapstructure:",squash"` Command []string `json:"command" mapstructure:"command"` Args []string `json:"args" mapstructure:"args"` Image string `json:"image" mapstructure:"image"` Environment map[string]string `json:"environment" mapstructure:"environment"` WorkingDirectory string `json:"workingDirectory" mapstructure:"workingDirectory"` TimeoutSeconds int `json:"timeoutSeconds" mapstructure:"timeoutSeconds"` DisableCleanup bool `json:"disableCleanup" mapstructure:"disableCleanup"` }
Target expresses the intention to implement a Test target
Click to show internal directories.
Click to hide internal directories.