Documentation ¶
Index ¶
- type Actions
- func (a *Actions) AddDestination(cluster string, namespace string) *Actions
- func (a *Actions) AddSource(repo string) *Actions
- func (a *Actions) And(block func()) *Actions
- func (a *Actions) Create(args ...string) *Actions
- func (a *Actions) Delete() *Actions
- func (a *Actions) DoNotIgnoreErrors() *Actions
- func (a *Actions) IgnoreErrors() *Actions
- func (a *Actions) Name(name string) *Actions
- func (a *Actions) Then() *Consequences
- func (a *Actions) UpdateProject(updater func(project *v1alpha1.AppProject)) *Actions
- type Consequences
- type Context
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) AddDestination ¶
func (*Actions) DoNotIgnoreErrors ¶
func (*Actions) IgnoreErrors ¶
func (*Actions) Then ¶
func (a *Actions) Then() *Consequences
func (*Actions) UpdateProject ¶
func (a *Actions) UpdateProject(updater func(project *v1alpha1.AppProject)) *Actions
type Consequences ¶
type Consequences struct {
// contains filtered or unexported fields
}
this implements the "then" part of given/when/then
func (*Consequences) And ¶ added in v2.2.0
func (c *Consequences) And(block func(app *project.DetailedProjectsResponse, err error)) *Consequences
func (*Consequences) Expect ¶
func (c *Consequences) Expect() *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 GivenWithSameState ¶
func (*Context) Destination ¶
func (*Context) SourceRepositories ¶ added in v2.4.6
Click to show internal directories.
Click to hide internal directories.