Documentation ¶
Index ¶
- func Fatal(message string, args ...interface{})
- func Info(message string, args ...interface{})
- type ApproveAssertion
- type Assertion
- type GcloudProjectAssertion
- type Goal
- type Goals
- type KubectlContextAssertion
- type RefAssertion
- type TerraformWorkspaceAssertion
- type YamlAssert
- type YamlEnvGoal
- type YamlGoal
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ApproveAssertion ¶
type ApproveAssertion struct{}
ApproveAssertion asks user whether to proceed to execution
type GcloudProjectAssertion ¶
type GcloudProjectAssertion struct {
Expect string
}
GcloudProjectAssertion checks current `gcloud` project by executing `gcloud config get-value project` and compares its output with Expect
type Goals ¶
type Goals struct {
Commands []Goal
}
func ParseCommands ¶
ParseCommands from byte input (YAML)
type KubectlContextAssertion ¶
type KubectlContextAssertion struct {
Expect string
}
KubectlContextAssertion checks current `kubectl` context by executing `kubectl config current-context` and compares its output with Expect
type RefAssertion ¶
RefAssertion calls another goal and compares its trimmed output with Expect
type TerraformWorkspaceAssertion ¶
type TerraformWorkspaceAssertion struct {
Expect string
}
TerraformWorkspaceAssertion checks current Terraform workspace by executing `terraform workspace show` and compares its output with Expect
type YamlAssert ¶
type YamlAssert struct { Desc string `yaml:"desc,omitempty"` Ref string `yaml:"ref,omitempty"` Expect string `yaml:"expect,omitempty"` Fix string `yaml:"fix,omitempty"` Approval string `yaml:"approval,omitempty"` TerraformWorkspace string `yaml:"terraform_workspace,omitempty"` KubectlContext string `yaml:"kubectl_context,omitempty"` GcloudProject string `yaml:"gcloud_project,omitempty"` }
func (YamlAssert) String ¶
func (a YamlAssert) String() string
type YamlEnvGoal ¶
type YamlEnvGoal struct { Cmd string `yaml:"cmd"` Args []string `yaml:"args,omitempty"` Assert []YamlAssert `yaml:"assert,omitempty"` Desc string `yaml:"desc"` }
type YamlGoal ¶
type YamlGoal struct { Envs *map[string]YamlEnvGoal `yaml:"envs,omitempty"` Cmd string `yaml:"cmd,omitempty"` Args []string `yaml:"args,omitempty"` Assert []YamlAssert `yaml:"assert,omitempty"` Desc string `yaml:"desc,omitempty"` }
Click to show internal directories.
Click to hide internal directories.