Documentation ¶
Index ¶
- type Actions
- func (a *Actions) Create(args ...string) *Actions
- func (a *Actions) CreateWithRBAC(args ...string) *Actions
- func (a *Actions) DeleteByName() *Actions
- func (a *Actions) DeleteByServer() *Actions
- func (a *Actions) DoNotIgnoreErrors() *Actions
- func (a *Actions) Get() *Actions
- func (a *Actions) GetByName(name string) *Actions
- func (a *Actions) IgnoreErrors() *Actions
- func (a *Actions) List() *Actions
- func (a *Actions) SetNamespaces() *Actions
- func (a *Actions) Then() *Consequences
- type Consequences
- func (c *Consequences) And(block func(cluster *v1alpha1.Cluster, err error)) *Consequences
- func (c *Consequences) AndCLIOutput(block func(output string, err error)) *Consequences
- func (c *Consequences) Expect() *Consequences
- func (c *Consequences) Given() *Context
- func (c *Consequences) When() *Actions
- type Context
- func (c *Context) And(block func()) *Context
- func (c *Context) BearerToken(bearerToken string) *Context
- func (c *Context) GetName() string
- func (c *Context) Name(name string) *Context
- func (c *Context) Namespaces(namespaces []string) *Context
- func (c *Context) Project(project string) *Context
- func (c *Context) Server(server string) *Context
- func (c *Context) Upsert(upsert bool) *Context
- func (c *Context) When() *Actions
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) CreateWithRBAC ¶ added in v2.2.12
func (*Actions) DeleteByName ¶ added in v2.2.12
func (*Actions) DeleteByServer ¶ added in v2.2.12
func (*Actions) DoNotIgnoreErrors ¶
func (*Actions) IgnoreErrors ¶
func (*Actions) SetNamespaces ¶ added in v2.7.0
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(cluster *v1alpha1.Cluster, err error)) *Consequences
func (*Consequences) AndCLIOutput ¶
func (c *Consequences) AndCLIOutput(block func(output string, 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) BearerToken ¶ added in v2.9.0
func (*Context) Namespaces ¶ added in v2.7.0
Click to show internal directories.
Click to hide internal directories.