mocks

package
v1.1.47 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Kubeconfig

type Kubeconfig struct {
	mock.Mock
}

Kubeconfig is an autogenerated mock type for the Kubeconfig type

func NewKubeconfig

func NewKubeconfig(t interface {
	mock.TestingT
	Cleanup(func())
}) *Kubeconfig

NewKubeconfig creates a new instance of Kubeconfig. 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 (*Kubeconfig) ConfigFile

func (_m *Kubeconfig) ConfigFile() string

ConfigFile provides a mock function with given fields:

func (*Kubeconfig) EXPECT

func (_m *Kubeconfig) EXPECT() *Kubeconfig_Expecter

func (*Kubeconfig) ForCluster added in v1.0.55

func (_m *Kubeconfig) ForCluster(cluster terra.Cluster) (kubecfg.Kubectx, error)

ForCluster provides a mock function with given fields: cluster

func (*Kubeconfig) ForEnvironment

func (_m *Kubeconfig) ForEnvironment(env terra.Environment) ([]kubecfg.Kubectx, error)

ForEnvironment provides a mock function with given fields: env

func (*Kubeconfig) ForRelease

func (_m *Kubeconfig) ForRelease(_a0 terra.Release) (kubecfg.Kubectx, error)

ForRelease provides a mock function with given fields: _a0

func (*Kubeconfig) ForReleases

func (_m *Kubeconfig) ForReleases(releases ...terra.Release) ([]kubecfg.ReleaseKtx, error)

ForReleases provides a mock function with given fields: releases

type Kubeconfig_ConfigFile_Call

type Kubeconfig_ConfigFile_Call struct {
	*mock.Call
}

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

func (*Kubeconfig_ConfigFile_Call) Return

func (*Kubeconfig_ConfigFile_Call) Run

func (*Kubeconfig_ConfigFile_Call) RunAndReturn added in v1.0.73

func (_c *Kubeconfig_ConfigFile_Call) RunAndReturn(run func() string) *Kubeconfig_ConfigFile_Call

type Kubeconfig_Expecter

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

func (*Kubeconfig_Expecter) ConfigFile

ConfigFile is a helper method to define mock.On call

func (*Kubeconfig_Expecter) ForCluster added in v1.0.55

func (_e *Kubeconfig_Expecter) ForCluster(cluster interface{}) *Kubeconfig_ForCluster_Call

ForCluster is a helper method to define mock.On call

  • cluster terra.Cluster

func (*Kubeconfig_Expecter) ForEnvironment

func (_e *Kubeconfig_Expecter) ForEnvironment(env interface{}) *Kubeconfig_ForEnvironment_Call

ForEnvironment is a helper method to define mock.On call

  • env terra.Environment

func (*Kubeconfig_Expecter) ForRelease

func (_e *Kubeconfig_Expecter) ForRelease(_a0 interface{}) *Kubeconfig_ForRelease_Call

ForRelease is a helper method to define mock.On call

  • _a0 terra.Release

func (*Kubeconfig_Expecter) ForReleases

func (_e *Kubeconfig_Expecter) ForReleases(releases ...interface{}) *Kubeconfig_ForReleases_Call

ForReleases is a helper method to define mock.On call

  • releases ...terra.Release

type Kubeconfig_ForCluster_Call added in v1.0.55

type Kubeconfig_ForCluster_Call struct {
	*mock.Call
}

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

func (*Kubeconfig_ForCluster_Call) Return added in v1.0.55

func (*Kubeconfig_ForCluster_Call) Run added in v1.0.55

func (*Kubeconfig_ForCluster_Call) RunAndReturn added in v1.0.73

type Kubeconfig_ForEnvironment_Call

type Kubeconfig_ForEnvironment_Call struct {
	*mock.Call
}

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

func (*Kubeconfig_ForEnvironment_Call) Return

func (*Kubeconfig_ForEnvironment_Call) Run

func (*Kubeconfig_ForEnvironment_Call) RunAndReturn added in v1.0.73

type Kubeconfig_ForRelease_Call

type Kubeconfig_ForRelease_Call struct {
	*mock.Call
}

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

func (*Kubeconfig_ForRelease_Call) Return

func (*Kubeconfig_ForRelease_Call) Run

func (*Kubeconfig_ForRelease_Call) RunAndReturn added in v1.0.73

type Kubeconfig_ForReleases_Call

type Kubeconfig_ForReleases_Call struct {
	*mock.Call
}

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

func (*Kubeconfig_ForReleases_Call) Return

func (*Kubeconfig_ForReleases_Call) Run

func (_c *Kubeconfig_ForReleases_Call) Run(run func(releases ...terra.Release)) *Kubeconfig_ForReleases_Call

func (*Kubeconfig_ForReleases_Call) RunAndReturn added in v1.0.73

type Kubectx

type Kubectx struct {
	mock.Mock
}

Kubectx is an autogenerated mock type for the Kubectx type

func NewKubectx

func NewKubectx(t interface {
	mock.TestingT
	Cleanup(func())
}) *Kubectx

NewKubectx creates a new instance of Kubectx. 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 (*Kubectx) ContextName

func (_m *Kubectx) ContextName() string

ContextName provides a mock function with given fields:

func (*Kubectx) EXPECT

func (_m *Kubectx) EXPECT() *Kubectx_Expecter

func (*Kubectx) Namespace

func (_m *Kubectx) Namespace() string

Namespace provides a mock function with given fields:

type Kubectx_ContextName_Call

type Kubectx_ContextName_Call struct {
	*mock.Call
}

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

func (*Kubectx_ContextName_Call) Return

func (*Kubectx_ContextName_Call) Run

func (*Kubectx_ContextName_Call) RunAndReturn added in v1.0.73

func (_c *Kubectx_ContextName_Call) RunAndReturn(run func() string) *Kubectx_ContextName_Call

type Kubectx_Expecter

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

func (*Kubectx_Expecter) ContextName

func (_e *Kubectx_Expecter) ContextName() *Kubectx_ContextName_Call

ContextName is a helper method to define mock.On call

func (*Kubectx_Expecter) Namespace

func (_e *Kubectx_Expecter) Namespace() *Kubectx_Namespace_Call

Namespace is a helper method to define mock.On call

type Kubectx_Namespace_Call

type Kubectx_Namespace_Call struct {
	*mock.Call
}

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

func (*Kubectx_Namespace_Call) Return

func (*Kubectx_Namespace_Call) Run

func (_c *Kubectx_Namespace_Call) Run(run func()) *Kubectx_Namespace_Call

func (*Kubectx_Namespace_Call) RunAndReturn added in v1.0.73

func (_c *Kubectx_Namespace_Call) RunAndReturn(run func() string) *Kubectx_Namespace_Call

Jump to

Keyboard shortcuts

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