Documentation ¶
Index ¶
- type Kubectl
- func (_m *Kubectl) CreateNamespace(env terra.Environment) error
- func (_m *Kubectl) DeleteNamespace(env terra.Environment) error
- func (_m *Kubectl) DeletePVCs(env terra.Environment) error
- func (_m *Kubectl) EXPECT() *Kubectl_Expecter
- func (_m *Kubectl) Exec(ktx kubecfg.Kubectx, container kubectl.Container, command []string, ...) error
- func (_m *Kubectl) ExecInteractive(ktx kubecfg.Kubectx, container kubectl.Container, command []string) error
- func (_m *Kubectl) Logs(ktx kubecfg.Kubectx, podSelector map[string]string, ...) error
- func (_m *Kubectl) PortForward(targetRelease terra.Release, targetResource string, targetPort int) (int, func() error, error)
- func (_m *Kubectl) ShutDown(env terra.Environment) error
- type Kubectl_CreateNamespace_Call
- type Kubectl_DeleteNamespace_Call
- type Kubectl_DeletePVCs_Call
- type Kubectl_ExecInteractive_Call
- type Kubectl_Exec_Call
- type Kubectl_Expecter
- func (_e *Kubectl_Expecter) CreateNamespace(env interface{}) *Kubectl_CreateNamespace_Call
- func (_e *Kubectl_Expecter) DeleteNamespace(env interface{}) *Kubectl_DeleteNamespace_Call
- func (_e *Kubectl_Expecter) DeletePVCs(env interface{}) *Kubectl_DeletePVCs_Call
- func (_e *Kubectl_Expecter) Exec(ktx interface{}, container interface{}, command interface{}, ...) *Kubectl_Exec_Call
- func (_e *Kubectl_Expecter) ExecInteractive(ktx interface{}, container interface{}, command interface{}) *Kubectl_ExecInteractive_Call
- func (_e *Kubectl_Expecter) Logs(ktx interface{}, podSelector interface{}, option ...interface{}) *Kubectl_Logs_Call
- func (_e *Kubectl_Expecter) PortForward(targetRelease interface{}, targetResource interface{}, targetPort interface{}) *Kubectl_PortForward_Call
- func (_e *Kubectl_Expecter) ShutDown(env interface{}) *Kubectl_ShutDown_Call
- type Kubectl_Logs_Call
- type Kubectl_PortForward_Call
- type Kubectl_ShutDown_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Kubectl ¶
Kubectl is an autogenerated mock type for the Kubectl type
func NewKubectl ¶
func NewKubectl(t mockConstructorTestingTNewKubectl) *Kubectl
NewKubectl creates a new instance of Kubectl. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Kubectl) CreateNamespace ¶
func (_m *Kubectl) CreateNamespace(env terra.Environment) error
CreateNamespace provides a mock function with given fields: env
func (*Kubectl) DeleteNamespace ¶
func (_m *Kubectl) DeleteNamespace(env terra.Environment) error
DeleteNamespace provides a mock function with given fields: env
func (*Kubectl) DeletePVCs ¶
func (_m *Kubectl) DeletePVCs(env terra.Environment) error
DeletePVCs provides a mock function with given fields: env
func (*Kubectl) EXPECT ¶
func (_m *Kubectl) EXPECT() *Kubectl_Expecter
func (*Kubectl) Exec ¶
func (_m *Kubectl) Exec(ktx kubecfg.Kubectx, container kubectl.Container, command []string, opts ...shell.RunOption) error
Exec provides a mock function with given fields: ktx, container, command, opts
func (*Kubectl) ExecInteractive ¶
func (_m *Kubectl) ExecInteractive(ktx kubecfg.Kubectx, container kubectl.Container, command []string) error
ExecInteractive provides a mock function with given fields: ktx, container, command
func (*Kubectl) Logs ¶
func (_m *Kubectl) Logs(ktx kubecfg.Kubectx, podSelector map[string]string, option ...kubectl.LogsOption) error
Logs provides a mock function with given fields: ktx, podSelector, option
type Kubectl_CreateNamespace_Call ¶
Kubectl_CreateNamespace_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateNamespace'
func (*Kubectl_CreateNamespace_Call) Return ¶
func (_c *Kubectl_CreateNamespace_Call) Return(_a0 error) *Kubectl_CreateNamespace_Call
func (*Kubectl_CreateNamespace_Call) Run ¶
func (_c *Kubectl_CreateNamespace_Call) Run(run func(env terra.Environment)) *Kubectl_CreateNamespace_Call
type Kubectl_DeleteNamespace_Call ¶
Kubectl_DeleteNamespace_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteNamespace'
func (*Kubectl_DeleteNamespace_Call) Return ¶
func (_c *Kubectl_DeleteNamespace_Call) Return(_a0 error) *Kubectl_DeleteNamespace_Call
func (*Kubectl_DeleteNamespace_Call) Run ¶
func (_c *Kubectl_DeleteNamespace_Call) Run(run func(env terra.Environment)) *Kubectl_DeleteNamespace_Call
type Kubectl_DeletePVCs_Call ¶
Kubectl_DeletePVCs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeletePVCs'
func (*Kubectl_DeletePVCs_Call) Return ¶
func (_c *Kubectl_DeletePVCs_Call) Return(_a0 error) *Kubectl_DeletePVCs_Call
func (*Kubectl_DeletePVCs_Call) Run ¶
func (_c *Kubectl_DeletePVCs_Call) Run(run func(env terra.Environment)) *Kubectl_DeletePVCs_Call
type Kubectl_ExecInteractive_Call ¶
Kubectl_ExecInteractive_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExecInteractive'
func (*Kubectl_ExecInteractive_Call) Return ¶
func (_c *Kubectl_ExecInteractive_Call) Return(_a0 error) *Kubectl_ExecInteractive_Call
func (*Kubectl_ExecInteractive_Call) Run ¶
func (_c *Kubectl_ExecInteractive_Call) Run(run func(ktx kubecfg.Kubectx, container kubectl.Container, command []string)) *Kubectl_ExecInteractive_Call
type Kubectl_Exec_Call ¶
Kubectl_Exec_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Exec'
func (*Kubectl_Exec_Call) Return ¶
func (_c *Kubectl_Exec_Call) Return(_a0 error) *Kubectl_Exec_Call
type Kubectl_Expecter ¶
type Kubectl_Expecter struct {
// contains filtered or unexported fields
}
func (*Kubectl_Expecter) CreateNamespace ¶
func (_e *Kubectl_Expecter) CreateNamespace(env interface{}) *Kubectl_CreateNamespace_Call
CreateNamespace is a helper method to define mock.On call
- env terra.Environment
func (*Kubectl_Expecter) DeleteNamespace ¶
func (_e *Kubectl_Expecter) DeleteNamespace(env interface{}) *Kubectl_DeleteNamespace_Call
DeleteNamespace is a helper method to define mock.On call
- env terra.Environment
func (*Kubectl_Expecter) DeletePVCs ¶
func (_e *Kubectl_Expecter) DeletePVCs(env interface{}) *Kubectl_DeletePVCs_Call
DeletePVCs is a helper method to define mock.On call
- env terra.Environment
func (*Kubectl_Expecter) Exec ¶
func (_e *Kubectl_Expecter) Exec(ktx interface{}, container interface{}, command interface{}, opts ...interface{}) *Kubectl_Exec_Call
Exec is a helper method to define mock.On call
- ktx kubecfg.Kubectx
- container kubectl.Container
- command []string
- opts ...shell.RunOption
func (*Kubectl_Expecter) ExecInteractive ¶
func (_e *Kubectl_Expecter) ExecInteractive(ktx interface{}, container interface{}, command interface{}) *Kubectl_ExecInteractive_Call
ExecInteractive is a helper method to define mock.On call
- ktx kubecfg.Kubectx
- container kubectl.Container
- command []string
func (*Kubectl_Expecter) Logs ¶
func (_e *Kubectl_Expecter) Logs(ktx interface{}, podSelector interface{}, option ...interface{}) *Kubectl_Logs_Call
Logs is a helper method to define mock.On call
- ktx kubecfg.Kubectx
- podSelector map[string]string
- option ...kubectl.LogsOption
func (*Kubectl_Expecter) PortForward ¶
func (_e *Kubectl_Expecter) PortForward(targetRelease interface{}, targetResource interface{}, targetPort interface{}) *Kubectl_PortForward_Call
PortForward is a helper method to define mock.On call
- targetRelease terra.Release
- targetResource string
- targetPort int
func (*Kubectl_Expecter) ShutDown ¶
func (_e *Kubectl_Expecter) ShutDown(env interface{}) *Kubectl_ShutDown_Call
ShutDown is a helper method to define mock.On call
- env terra.Environment
type Kubectl_Logs_Call ¶
Kubectl_Logs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Logs'
func (*Kubectl_Logs_Call) Return ¶
func (_c *Kubectl_Logs_Call) Return(_a0 error) *Kubectl_Logs_Call
func (*Kubectl_Logs_Call) Run ¶
func (_c *Kubectl_Logs_Call) Run(run func(ktx kubecfg.Kubectx, podSelector map[string]string, option ...kubectl.LogsOption)) *Kubectl_Logs_Call
type Kubectl_PortForward_Call ¶
Kubectl_PortForward_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PortForward'
func (*Kubectl_PortForward_Call) Return ¶
func (_c *Kubectl_PortForward_Call) Return(_a0 int, _a1 func() error, _a2 error) *Kubectl_PortForward_Call
func (*Kubectl_PortForward_Call) Run ¶
func (_c *Kubectl_PortForward_Call) Run(run func(targetRelease terra.Release, targetResource string, targetPort int)) *Kubectl_PortForward_Call
type Kubectl_ShutDown_Call ¶
Kubectl_ShutDown_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ShutDown'
func (*Kubectl_ShutDown_Call) Return ¶
func (_c *Kubectl_ShutDown_Call) Return(_a0 error) *Kubectl_ShutDown_Call
func (*Kubectl_ShutDown_Call) Run ¶
func (_c *Kubectl_ShutDown_Call) Run(run func(env terra.Environment)) *Kubectl_ShutDown_Call