mocks

package
v1.1.38 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 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 Clients

type Clients struct {
	mock.Mock
}

Clients is an autogenerated mock type for the Clients type

func NewClients

func NewClients(t interface {
	mock.TestingT
	Cleanup(func())
}) *Clients

NewClients creates a new instance of Clients. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Clients) EXPECT

func (_m *Clients) EXPECT() *Clients_Expecter

func (*Clients) ForKubectx

func (_m *Clients) ForKubectx(kubectx kubecfg.Kubectx) (kubernetes.Interface, error)

ForKubectx provides a mock function with given fields: kubectx

func (*Clients) ForRelease

func (_m *Clients) ForRelease(release terra.Release) (kubernetes.Interface, error)

ForRelease provides a mock function with given fields: release

func (*Clients) Kubecfg

func (_m *Clients) Kubecfg() (kubecfg.Kubeconfig, error)

Kubecfg provides a mock function with given fields:

func (*Clients) Kubectl

func (_m *Clients) Kubectl() (kubectl.Kubectl, error)

Kubectl provides a mock function with given fields:

type Clients_Expecter

type Clients_Expecter struct {
	// contains filtered or unexported fields
}

func (*Clients_Expecter) ForKubectx

func (_e *Clients_Expecter) ForKubectx(kubectx interface{}) *Clients_ForKubectx_Call

ForKubectx is a helper method to define mock.On call

  • kubectx kubecfg.Kubectx

func (*Clients_Expecter) ForRelease

func (_e *Clients_Expecter) ForRelease(release interface{}) *Clients_ForRelease_Call

ForRelease is a helper method to define mock.On call

  • release terra.Release

func (*Clients_Expecter) Kubecfg

func (_e *Clients_Expecter) Kubecfg() *Clients_Kubecfg_Call

Kubecfg is a helper method to define mock.On call

func (*Clients_Expecter) Kubectl

func (_e *Clients_Expecter) Kubectl() *Clients_Kubectl_Call

Kubectl is a helper method to define mock.On call

type Clients_ForKubectx_Call

type Clients_ForKubectx_Call struct {
	*mock.Call
}

Clients_ForKubectx_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ForKubectx'

func (*Clients_ForKubectx_Call) Return

func (*Clients_ForKubectx_Call) Run

func (_c *Clients_ForKubectx_Call) Run(run func(kubectx kubecfg.Kubectx)) *Clients_ForKubectx_Call

func (*Clients_ForKubectx_Call) RunAndReturn added in v1.0.73

type Clients_ForRelease_Call

type Clients_ForRelease_Call struct {
	*mock.Call
}

Clients_ForRelease_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ForRelease'

func (*Clients_ForRelease_Call) Return

func (*Clients_ForRelease_Call) Run

func (_c *Clients_ForRelease_Call) Run(run func(release terra.Release)) *Clients_ForRelease_Call

func (*Clients_ForRelease_Call) RunAndReturn added in v1.0.73

type Clients_Kubecfg_Call

type Clients_Kubecfg_Call struct {
	*mock.Call
}

Clients_Kubecfg_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Kubecfg'

func (*Clients_Kubecfg_Call) Return

func (*Clients_Kubecfg_Call) Run

func (_c *Clients_Kubecfg_Call) Run(run func()) *Clients_Kubecfg_Call

func (*Clients_Kubecfg_Call) RunAndReturn added in v1.0.73

func (_c *Clients_Kubecfg_Call) RunAndReturn(run func() (kubecfg.Kubeconfig, error)) *Clients_Kubecfg_Call

type Clients_Kubectl_Call

type Clients_Kubectl_Call struct {
	*mock.Call
}

Clients_Kubectl_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Kubectl'

func (*Clients_Kubectl_Call) Return

func (*Clients_Kubectl_Call) Run

func (_c *Clients_Kubectl_Call) Run(run func()) *Clients_Kubectl_Call

func (*Clients_Kubectl_Call) RunAndReturn added in v1.0.73

func (_c *Clients_Kubectl_Call) RunAndReturn(run func() (kubectl.Kubectl, error)) *Clients_Kubectl_Call

Jump to

Keyboard shortcuts

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