Documentation ¶
Index ¶
- type Kubeconfig
- func (_m *Kubeconfig) ConfigFile() string
- func (_m *Kubeconfig) EXPECT() *Kubeconfig_Expecter
- func (_m *Kubeconfig) ForEnvironment(env terra.Environment) ([]kubecfg.Kubectx, error)
- func (_m *Kubeconfig) ForRelease(_a0 terra.Release) (kubecfg.Kubectx, error)
- func (_m *Kubeconfig) ForReleases(releases ...terra.Release) ([]kubecfg.ReleaseKtx, error)
- type Kubeconfig_ConfigFile_Call
- type Kubeconfig_Expecter
- func (_e *Kubeconfig_Expecter) ConfigFile() *Kubeconfig_ConfigFile_Call
- func (_e *Kubeconfig_Expecter) ForEnvironment(env interface{}) *Kubeconfig_ForEnvironment_Call
- func (_e *Kubeconfig_Expecter) ForRelease(_a0 interface{}) *Kubeconfig_ForRelease_Call
- func (_e *Kubeconfig_Expecter) ForReleases(releases ...interface{}) *Kubeconfig_ForReleases_Call
- type Kubeconfig_ForEnvironment_Call
- type Kubeconfig_ForRelease_Call
- type Kubeconfig_ForReleases_Call
- type Kubectx
- type Kubectx_ContextName_Call
- type Kubectx_Expecter
- type Kubectx_Namespace_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Kubeconfig ¶
Kubeconfig is an autogenerated mock type for the Kubeconfig type
func NewKubeconfig ¶
func NewKubeconfig(t mockConstructorTestingTNewKubeconfig) *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.
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) ForEnvironment ¶
func (_m *Kubeconfig) ForEnvironment(env terra.Environment) ([]kubecfg.Kubectx, error)
ForEnvironment provides a mock function with given fields: env
func (*Kubeconfig) ForRelease ¶
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 ¶
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 (_c *Kubeconfig_ConfigFile_Call) Return(_a0 string) *Kubeconfig_ConfigFile_Call
func (*Kubeconfig_ConfigFile_Call) Run ¶
func (_c *Kubeconfig_ConfigFile_Call) Run(run func()) *Kubeconfig_ConfigFile_Call
type Kubeconfig_Expecter ¶
type Kubeconfig_Expecter struct {
// contains filtered or unexported fields
}
func (*Kubeconfig_Expecter) ConfigFile ¶
func (_e *Kubeconfig_Expecter) ConfigFile() *Kubeconfig_ConfigFile_Call
ConfigFile is a helper method to define mock.On call
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_ForEnvironment_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 (_c *Kubeconfig_ForEnvironment_Call) Return(_a0 []kubecfg.Kubectx, _a1 error) *Kubeconfig_ForEnvironment_Call
func (*Kubeconfig_ForEnvironment_Call) Run ¶
func (_c *Kubeconfig_ForEnvironment_Call) Run(run func(env terra.Environment)) *Kubeconfig_ForEnvironment_Call
type Kubeconfig_ForRelease_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 (_c *Kubeconfig_ForRelease_Call) Return(_a0 kubecfg.Kubectx, _a1 error) *Kubeconfig_ForRelease_Call
func (*Kubeconfig_ForRelease_Call) Run ¶
func (_c *Kubeconfig_ForRelease_Call) Run(run func(_a0 terra.Release)) *Kubeconfig_ForRelease_Call
type Kubeconfig_ForReleases_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 (_c *Kubeconfig_ForReleases_Call) Return(_a0 []kubecfg.ReleaseKtx, _a1 error) *Kubeconfig_ForReleases_Call
func (*Kubeconfig_ForReleases_Call) Run ¶
func (_c *Kubeconfig_ForReleases_Call) Run(run func(releases ...terra.Release)) *Kubeconfig_ForReleases_Call
type Kubectx ¶
Kubectx is an autogenerated mock type for the Kubectx type
func NewKubectx ¶
func NewKubectx(t mockConstructorTestingTNewKubectx) *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.
func (*Kubectx) ContextName ¶
ContextName provides a mock function with given fields:
func (*Kubectx) EXPECT ¶
func (_m *Kubectx) EXPECT() *Kubectx_Expecter
type Kubectx_ContextName_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 (_c *Kubectx_ContextName_Call) Return(_a0 string) *Kubectx_ContextName_Call
func (*Kubectx_ContextName_Call) Run ¶
func (_c *Kubectx_ContextName_Call) Run(run func()) *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 ¶
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 (_c *Kubectx_Namespace_Call) Return(_a0 string) *Kubectx_Namespace_Call
func (*Kubectx_Namespace_Call) Run ¶
func (_c *Kubectx_Namespace_Call) Run(run func()) *Kubectx_Namespace_Call