mocks

package
v1.0.65 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2023 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Kubectl

type Kubectl struct {
	mock.Mock
}

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

func (*Kubectl) PortForward

func (_m *Kubectl) PortForward(targetRelease terra.Release, targetResource string, targetPort int) (int, func() error, error)

PortForward provides a mock function with given fields: targetRelease, targetResource, targetPort

func (*Kubectl) ShutDown

func (_m *Kubectl) ShutDown(env terra.Environment) error

ShutDown provides a mock function with given fields: env

type Kubectl_CreateNamespace_Call

type Kubectl_CreateNamespace_Call struct {
	*mock.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 (*Kubectl_CreateNamespace_Call) Run

type Kubectl_DeleteNamespace_Call

type Kubectl_DeleteNamespace_Call struct {
	*mock.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 (*Kubectl_DeleteNamespace_Call) Run

type Kubectl_DeletePVCs_Call

type Kubectl_DeletePVCs_Call struct {
	*mock.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 (*Kubectl_DeletePVCs_Call) Run

type Kubectl_ExecInteractive_Call

type Kubectl_ExecInteractive_Call struct {
	*mock.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 (*Kubectl_ExecInteractive_Call) Run

type Kubectl_Exec_Call

type Kubectl_Exec_Call struct {
	*mock.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

func (*Kubectl_Exec_Call) Run

func (_c *Kubectl_Exec_Call) Run(run func(ktx kubecfg.Kubectx, container kubectl.Container, command []string, opts ...shell.RunOption)) *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

type Kubectl_Logs_Call struct {
	*mock.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

type Kubectl_PortForward_Call struct {
	*mock.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

type Kubectl_ShutDown_Call struct {
	*mock.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 (*Kubectl_ShutDown_Call) Run

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL