Documentation ¶
Index ¶
- type Actions
- func (a *Actions) And(block func()) *Actions
- func (a *Actions) Create() *Actions
- func (a *Actions) Delete(cascade bool) *Actions
- func (a *Actions) DeleteFile(file string) *Actions
- func (a *Actions) PatchApp(patch string) *Actions
- func (a *Actions) PatchFile(file string, jsonPath string) *Actions
- func (a *Actions) Refresh(refreshType RefreshType) *Actions
- func (a *Actions) Sync() *Actions
- func (a *Actions) TerminateOp() *Actions
- func (a *Actions) Then() *Consequences
- type Consequences
- type Context
- func (c *Context) And(block func()) *Context
- func (c *Context) Async(async bool) *Context
- func (c *Context) ConfigManagementPlugin(plugin v1alpha1.ConfigManagementPlugin) *Context
- func (c *Context) DestServer(destServer string) *Context
- func (c *Context) Env(env string) *Context
- func (c *Context) HTTPSRepo() *Context
- func (c *Context) NamePrefix(namePrefix string) *Context
- func (c *Context) Parameter(parameter string) *Context
- func (c *Context) Path(path string) *Context
- func (c *Context) Prune(prune bool) *Context
- func (c *Context) Repo(url string) *Context
- func (c *Context) ResourceOverrides(overrides map[string]v1alpha1.ResourceOverride) *Context
- func (c *Context) SSHRepo() *Context
- func (c *Context) SelectedResource(resource string) *Context
- func (c *Context) When() *Actions
- type Expectation
- func Condition(conditionType ApplicationConditionType) Expectation
- func DoesNotExist() Expectation
- func Error(message string) Expectation
- func Event(reason string, message string) Expectation
- func HealthIs(expected HealthStatusCode) Expectation
- func NotPod(predicate func(p v1.Pod) bool) Expectation
- func OperationPhaseIs(expected OperationPhase) Expectation
- func Pod(predicate func(p v1.Pod) bool) Expectation
- func ResourceHealthIs(kind, resource string, expected HealthStatusCode) Expectation
- func ResourceResultIs(result ResourceResult) Expectation
- func ResourceResultNumbering(num int) Expectation
- func ResourceSyncStatusIs(kind, resource string, expected SyncStatusCode) Expectation
- func Success(message string) Expectation
- func SyncStatusIs(expected SyncStatusCode) Expectation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Actions ¶
type Actions struct {
// contains filtered or unexported fields
}
this implements the "when" part of given/when/then
none of the func implement error checks, and that is complete intended, you should check for errors using the Then()
func (*Actions) DeleteFile ¶
func (*Actions) TerminateOp ¶
func (*Actions) Then ¶
func (a *Actions) Then() *Consequences
type Consequences ¶
type Consequences struct {
// contains filtered or unexported fields
}
this implements the "then" part of given/when/then
func (*Consequences) And ¶
func (c *Consequences) And(block func(app *Application)) *Consequences
func (*Consequences) Expect ¶
func (c *Consequences) Expect(e Expectation) *Consequences
func (*Consequences) Given ¶
func (c *Consequences) Given() *Context
func (*Consequences) When ¶
func (c *Consequences) When() *Actions
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
this implements the "given" part of given/when/then
func (*Context) ConfigManagementPlugin ¶
func (c *Context) ConfigManagementPlugin(plugin v1alpha1.ConfigManagementPlugin) *Context
this both configures the plugin, but forces use of it
func (*Context) DestServer ¶
func (*Context) NamePrefix ¶
func (*Context) ResourceOverrides ¶
func (c *Context) ResourceOverrides(overrides map[string]v1alpha1.ResourceOverride) *Context
func (*Context) SelectedResource ¶
group:kind:name
type Expectation ¶
type Expectation func(c *Consequences) (state state, message string)
func Condition ¶
func Condition(conditionType ApplicationConditionType) Expectation
func DoesNotExist ¶
func DoesNotExist() Expectation
func Error ¶
func Error(message string) Expectation
asserts that the last command was an error with substring match
func Event ¶
func Event(reason string, message string) Expectation
func HealthIs ¶
func HealthIs(expected HealthStatusCode) Expectation
func OperationPhaseIs ¶
func OperationPhaseIs(expected OperationPhase) Expectation
func ResourceHealthIs ¶
func ResourceHealthIs(kind, resource string, expected HealthStatusCode) Expectation
func ResourceResultIs ¶
func ResourceResultIs(result ResourceResult) Expectation
func ResourceResultNumbering ¶
func ResourceResultNumbering(num int) Expectation
func ResourceSyncStatusIs ¶
func ResourceSyncStatusIs(kind, resource string, expected SyncStatusCode) Expectation
func Success ¶
func Success(message string) Expectation
asserts that the last command was successful
func SyncStatusIs ¶
func SyncStatusIs(expected SyncStatusCode) Expectation
Click to show internal directories.
Click to hide internal directories.