mocks

package
v0.0.0-...-a0ef6f9 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IKubernetesClient

type IKubernetesClient struct {
	mock.Mock
}

IKubernetesClient is an autogenerated mock type for the IKubernetesClient type

func NewIKubernetesClient

func NewIKubernetesClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *IKubernetesClient

NewIKubernetesClient creates a new instance of IKubernetesClient. 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 (*IKubernetesClient) ApplyCRD

func (_m *IKubernetesClient) ApplyCRD(obj *unstructured.Unstructured) error

ApplyCRD provides a mock function with given fields: obj

func (*IKubernetesClient) CreateDynamic

CreateDynamic provides a mock function with given fields: _a0, _a1, _a2

func (*IKubernetesClient) CreateModule

func (_m *IKubernetesClient) CreateModule(module v1alpha1.Module) error

CreateModule provides a mock function with given fields: module

func (*IKubernetesClient) CreateTemplateStore

func (_m *IKubernetesClient) CreateTemplateStore(ts *v1alpha1.TemplateStore) error

CreateTemplateStore provides a mock function with given fields: ts

func (*IKubernetesClient) Delete

func (_m *IKubernetesClient) Delete(resource dto.Resource) error

Delete provides a mock function with given fields: resource

func (*IKubernetesClient) DeleteModule

func (_m *IKubernetesClient) DeleteModule(name string) error

DeleteModule provides a mock function with given fields: name

func (*IKubernetesClient) DeleteReleaseSecret

func (_m *IKubernetesClient) DeleteReleaseSecret(releaseName string, releaseNamespace string) error

DeleteReleaseSecret provides a mock function with given fields: releaseName, releaseNamespace

func (*IKubernetesClient) DeleteTemplateStore

func (_m *IKubernetesClient) DeleteTemplateStore(name string) error

DeleteTemplateStore provides a mock function with given fields: name

func (*IKubernetesClient) EXPECT

func (*IKubernetesClient) GVKtoAPIResourceName

func (_m *IKubernetesClient) GVKtoAPIResourceName(gv schema.GroupVersion, kind string) (string, error)

GVKtoAPIResourceName provides a mock function with given fields: gv, kind

func (*IKubernetesClient) GetDeletedResources

func (_m *IKubernetesClient) GetDeletedResources(_a0 []dto.Resource, _a1 string, _a2 string) ([]dto.Resource, error)

GetDeletedResources provides a mock function with given fields: _a0, _a1, _a2

func (*IKubernetesClient) GetDeploymentLogs

func (_m *IKubernetesClient) GetDeploymentLogs(namespace string, container string, deployment string, numLogs *int64) ([]string, error)

GetDeploymentLogs provides a mock function with given fields: namespace, container, deployment, numLogs

func (*IKubernetesClient) GetManifest

func (_m *IKubernetesClient) GetManifest(group string, _a1 string, kind string, name string, namespace string, includeManagedFields bool) (string, error)

GetManifest provides a mock function with given fields: group, _a1, kind, name, namespace, includeManagedFields

func (*IKubernetesClient) GetModule

func (_m *IKubernetesClient) GetModule(name string) (*v1alpha1.Module, error)

GetModule provides a mock function with given fields: name

func (*IKubernetesClient) GetModuleResourcesHealth

func (_m *IKubernetesClient) GetModuleResourcesHealth(name string) (string, error)

GetModuleResourcesHealth provides a mock function with given fields: name

func (*IKubernetesClient) GetNode

func (_m *IKubernetesClient) GetNode(name string) (*v1.Node, error)

GetNode provides a mock function with given fields: name

func (*IKubernetesClient) GetPodLogs

func (_m *IKubernetesClient) GetPodLogs(namespace string, container string, name string, numLogs *int64) ([]string, error)

GetPodLogs provides a mock function with given fields: namespace, container, name, numLogs

func (*IKubernetesClient) GetPodsForNode

func (_m *IKubernetesClient) GetPodsForNode(nodeName string) ([]v1.Pod, error)

GetPodsForNode provides a mock function with given fields: nodeName

func (*IKubernetesClient) GetResource

func (_m *IKubernetesClient) GetResource(group string, _a1 string, kind string, name string, namespace string) (interface{}, error)

GetResource provides a mock function with given fields: group, _a1, kind, name, namespace

func (*IKubernetesClient) GetResourcesForModule

func (_m *IKubernetesClient) GetResourcesForModule(name string) ([]dto.Resource, error)

GetResourcesForModule provides a mock function with given fields: name

func (*IKubernetesClient) GetResourcesForRelease

func (_m *IKubernetesClient) GetResourcesForRelease(release string) ([]dto.Resource, error)

GetResourcesForRelease provides a mock function with given fields: release

func (*IKubernetesClient) GetStatefulSetsLogs

func (_m *IKubernetesClient) GetStatefulSetsLogs(namespace string, container string, name string, numLogs *int64) ([]string, error)

GetStatefulSetsLogs provides a mock function with given fields: namespace, container, name, numLogs

func (*IKubernetesClient) GetStreamedPodLogs

func (_m *IKubernetesClient) GetStreamedPodLogs(ctx context.Context, namespace string, container string, name string, logCount *int64, logChan chan<- string) error

GetStreamedPodLogs provides a mock function with given fields: ctx, namespace, container, name, logCount, logChan

func (*IKubernetesClient) GetTemplateAuthRuleSecret

func (_m *IKubernetesClient) GetTemplateAuthRuleSecret(name string, key string) (string, error)

GetTemplateAuthRuleSecret provides a mock function with given fields: name, key

func (*IKubernetesClient) GetWorkloadsForModule

func (_m *IKubernetesClient) GetWorkloadsForModule(name string) ([]dto.Resource, error)

GetWorkloadsForModule provides a mock function with given fields: name

func (*IKubernetesClient) GetWorkloadsForRelease

func (_m *IKubernetesClient) GetWorkloadsForRelease(name string) ([]dto.Resource, error)

GetWorkloadsForRelease provides a mock function with given fields: name

func (*IKubernetesClient) ListModules

func (_m *IKubernetesClient) ListModules() ([]v1alpha1.Module, error)

ListModules provides a mock function with no fields

func (*IKubernetesClient) ListNamespaces

func (_m *IKubernetesClient) ListNamespaces() ([]string, error)

ListNamespaces provides a mock function with no fields

func (*IKubernetesClient) ListNodes

func (_m *IKubernetesClient) ListNodes() ([]v1.Node, error)

ListNodes provides a mock function with no fields

func (*IKubernetesClient) ListTemplateAuthRules

func (_m *IKubernetesClient) ListTemplateAuthRules() ([]v1alpha1.TemplateAuthRule, error)

ListTemplateAuthRules provides a mock function with no fields

func (*IKubernetesClient) ListTemplateStore

func (_m *IKubernetesClient) ListTemplateStore() ([]v1alpha1.TemplateStore, error)

ListTemplateStore provides a mock function with no fields

func (*IKubernetesClient) MapUnstructuredResource

func (_m *IKubernetesClient) MapUnstructuredResource(u unstructured.Unstructured) (dto.Resource, error)

MapUnstructuredResource provides a mock function with given fields: u

func (*IKubernetesClient) Restart

func (_m *IKubernetesClient) Restart(group string, _a1 string, kind string, name string, namespace string) error

Restart provides a mock function with given fields: group, _a1, kind, name, namespace

func (*IKubernetesClient) RestartDaemonSet

func (_m *IKubernetesClient) RestartDaemonSet(name string, namespace string) error

RestartDaemonSet provides a mock function with given fields: name, namespace

func (*IKubernetesClient) RestartDeployment

func (_m *IKubernetesClient) RestartDeployment(name string, namespace string) error

RestartDeployment provides a mock function with given fields: name, namespace

func (*IKubernetesClient) RestartStatefulSet

func (_m *IKubernetesClient) RestartStatefulSet(name string, namespace string) error

RestartStatefulSet provides a mock function with given fields: name, namespace

func (*IKubernetesClient) UpdateModule

func (_m *IKubernetesClient) UpdateModule(module *v1alpha1.Module) error

UpdateModule provides a mock function with given fields: module

func (*IKubernetesClient) UpdateModuleStatus

func (_m *IKubernetesClient) UpdateModuleStatus(module *v1alpha1.Module) (*v1alpha1.Module, error)

UpdateModuleStatus provides a mock function with given fields: module

func (*IKubernetesClient) UpdateTemplateStore

func (_m *IKubernetesClient) UpdateTemplateStore(ts *v1alpha1.TemplateStore) error

UpdateTemplateStore provides a mock function with given fields: ts

func (*IKubernetesClient) VersionInfo

func (_m *IKubernetesClient) VersionInfo() (*version.Info, error)

VersionInfo provides a mock function with no fields

func (*IKubernetesClient) WatchKubernetesResources

func (_m *IKubernetesClient) WatchKubernetesResources(gvrs []k8sclient.ResourceWatchSpec, stopCh chan struct{}) (chan *unstructured.Unstructured, error)

WatchKubernetesResources provides a mock function with given fields: gvrs, stopCh

func (*IKubernetesClient) WatchResource

func (_m *IKubernetesClient) WatchResource(group string, _a1 string, resource string, name string, namespace string) (watch.Interface, error)

WatchResource provides a mock function with given fields: group, _a1, resource, name, namespace

type IKubernetesClient_ApplyCRD_Call

type IKubernetesClient_ApplyCRD_Call struct {
	*mock.Call
}

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

func (*IKubernetesClient_ApplyCRD_Call) Return

func (*IKubernetesClient_ApplyCRD_Call) Run

func (*IKubernetesClient_ApplyCRD_Call) RunAndReturn

type IKubernetesClient_CreateDynamic_Call

type IKubernetesClient_CreateDynamic_Call struct {
	*mock.Call
}

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

func (*IKubernetesClient_CreateDynamic_Call) Return

func (*IKubernetesClient_CreateDynamic_Call) Run

type IKubernetesClient_CreateModule_Call

type IKubernetesClient_CreateModule_Call struct {
	*mock.Call
}

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

func (*IKubernetesClient_CreateModule_Call) Return

func (*IKubernetesClient_CreateModule_Call) Run

func (*IKubernetesClient_CreateModule_Call) RunAndReturn

type IKubernetesClient_CreateTemplateStore_Call

type IKubernetesClient_CreateTemplateStore_Call struct {
	*mock.Call
}

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

func (*IKubernetesClient_CreateTemplateStore_Call) Return

func (*IKubernetesClient_CreateTemplateStore_Call) Run

func (*IKubernetesClient_CreateTemplateStore_Call) RunAndReturn

type IKubernetesClient_DeleteModule_Call

type IKubernetesClient_DeleteModule_Call struct {
	*mock.Call
}

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

func (*IKubernetesClient_DeleteModule_Call) Return

func (*IKubernetesClient_DeleteModule_Call) Run

func (*IKubernetesClient_DeleteModule_Call) RunAndReturn

type IKubernetesClient_DeleteReleaseSecret_Call

type IKubernetesClient_DeleteReleaseSecret_Call struct {
	*mock.Call
}

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

func (*IKubernetesClient_DeleteReleaseSecret_Call) Return

func (*IKubernetesClient_DeleteReleaseSecret_Call) Run

func (*IKubernetesClient_DeleteReleaseSecret_Call) RunAndReturn

type IKubernetesClient_DeleteTemplateStore_Call

type IKubernetesClient_DeleteTemplateStore_Call struct {
	*mock.Call
}

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

func (*IKubernetesClient_DeleteTemplateStore_Call) Return

func (*IKubernetesClient_DeleteTemplateStore_Call) Run

func (*IKubernetesClient_DeleteTemplateStore_Call) RunAndReturn

type IKubernetesClient_Delete_Call

type IKubernetesClient_Delete_Call struct {
	*mock.Call
}

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

func (*IKubernetesClient_Delete_Call) Return

func (*IKubernetesClient_Delete_Call) Run

func (*IKubernetesClient_Delete_Call) RunAndReturn

type IKubernetesClient_Expecter

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

func (*IKubernetesClient_Expecter) ApplyCRD

func (_e *IKubernetesClient_Expecter) ApplyCRD(obj interface{}) *IKubernetesClient_ApplyCRD_Call

ApplyCRD is a helper method to define mock.On call

  • obj *unstructured.Unstructured

func (*IKubernetesClient_Expecter) CreateDynamic

func (_e *IKubernetesClient_Expecter) CreateDynamic(_a0 interface{}, _a1 interface{}, _a2 interface{}) *IKubernetesClient_CreateDynamic_Call

CreateDynamic is a helper method to define mock.On call

  • _a0 v1alpha1.GroupVersionResource
  • _a1 *unstructured.Unstructured
  • _a2 string

func (*IKubernetesClient_Expecter) CreateModule

func (_e *IKubernetesClient_Expecter) CreateModule(module interface{}) *IKubernetesClient_CreateModule_Call

CreateModule is a helper method to define mock.On call

  • module v1alpha1.Module

func (*IKubernetesClient_Expecter) CreateTemplateStore

func (_e *IKubernetesClient_Expecter) CreateTemplateStore(ts interface{}) *IKubernetesClient_CreateTemplateStore_Call

CreateTemplateStore is a helper method to define mock.On call

  • ts *v1alpha1.TemplateStore

func (*IKubernetesClient_Expecter) Delete

func (_e *IKubernetesClient_Expecter) Delete(resource interface{}) *IKubernetesClient_Delete_Call

Delete is a helper method to define mock.On call

  • resource dto.Resource

func (*IKubernetesClient_Expecter) DeleteModule

func (_e *IKubernetesClient_Expecter) DeleteModule(name interface{}) *IKubernetesClient_DeleteModule_Call

DeleteModule is a helper method to define mock.On call

  • name string

func (*IKubernetesClient_Expecter) DeleteReleaseSecret

func (_e *IKubernetesClient_Expecter) DeleteReleaseSecret(releaseName interface{}, releaseNamespace interface{}) *IKubernetesClient_DeleteReleaseSecret_Call

DeleteReleaseSecret is a helper method to define mock.On call

  • releaseName string
  • releaseNamespace string

func (*IKubernetesClient_Expecter) DeleteTemplateStore

func (_e *IKubernetesClient_Expecter) DeleteTemplateStore(name interface{}) *IKubernetesClient_DeleteTemplateStore_Call

DeleteTemplateStore is a helper method to define mock.On call

  • name string

func (*IKubernetesClient_Expecter) GVKtoAPIResourceName

func (_e *IKubernetesClient_Expecter) GVKtoAPIResourceName(gv interface{}, kind interface{}) *IKubernetesClient_GVKtoAPIResourceName_Call

GVKtoAPIResourceName is a helper method to define mock.On call

  • gv schema.GroupVersion
  • kind string

func (*IKubernetesClient_Expecter) GetDeletedResources

func (_e *IKubernetesClient_Expecter) GetDeletedResources(_a0 interface{}, _a1 interface{}, _a2 interface{}) *IKubernetesClient_GetDeletedResources_Call

GetDeletedResources is a helper method to define mock.On call

  • _a0 []dto.Resource
  • _a1 string
  • _a2 string

func (*IKubernetesClient_Expecter) GetDeploymentLogs

func (_e *IKubernetesClient_Expecter) GetDeploymentLogs(namespace interface{}, container interface{}, deployment interface{}, numLogs interface{}) *IKubernetesClient_GetDeploymentLogs_Call

GetDeploymentLogs is a helper method to define mock.On call

  • namespace string
  • container string
  • deployment string
  • numLogs *int64

func (*IKubernetesClient_Expecter) GetManifest

func (_e *IKubernetesClient_Expecter) GetManifest(group interface{}, _a1 interface{}, kind interface{}, name interface{}, namespace interface{}, includeManagedFields interface{}) *IKubernetesClient_GetManifest_Call

GetManifest is a helper method to define mock.On call

  • group string
  • _a1 string
  • kind string
  • name string
  • namespace string
  • includeManagedFields bool

func (*IKubernetesClient_Expecter) GetModule

func (_e *IKubernetesClient_Expecter) GetModule(name interface{}) *IKubernetesClient_GetModule_Call

GetModule is a helper method to define mock.On call

  • name string

func (*IKubernetesClient_Expecter) GetModuleResourcesHealth

func (_e *IKubernetesClient_Expecter) GetModuleResourcesHealth(name interface{}) *IKubernetesClient_GetModuleResourcesHealth_Call

GetModuleResourcesHealth is a helper method to define mock.On call

  • name string

func (*IKubernetesClient_Expecter) GetNode

func (_e *IKubernetesClient_Expecter) GetNode(name interface{}) *IKubernetesClient_GetNode_Call

GetNode is a helper method to define mock.On call

  • name string

func (*IKubernetesClient_Expecter) GetPodLogs

func (_e *IKubernetesClient_Expecter) GetPodLogs(namespace interface{}, container interface{}, name interface{}, numLogs interface{}) *IKubernetesClient_GetPodLogs_Call

GetPodLogs is a helper method to define mock.On call

  • namespace string
  • container string
  • name string
  • numLogs *int64

func (*IKubernetesClient_Expecter) GetPodsForNode

func (_e *IKubernetesClient_Expecter) GetPodsForNode(nodeName interface{}) *IKubernetesClient_GetPodsForNode_Call

GetPodsForNode is a helper method to define mock.On call

  • nodeName string

func (*IKubernetesClient_Expecter) GetResource

func (_e *IKubernetesClient_Expecter) GetResource(group interface{}, _a1 interface{}, kind interface{}, name interface{}, namespace interface{}) *IKubernetesClient_GetResource_Call

GetResource is a helper method to define mock.On call

  • group string
  • _a1 string
  • kind string
  • name string
  • namespace string

func (*IKubernetesClient_Expecter) GetResourcesForModule

func (_e *IKubernetesClient_Expecter) GetResourcesForModule(name interface{}) *IKubernetesClient_GetResourcesForModule_Call

GetResourcesForModule is a helper method to define mock.On call

  • name string

func (*IKubernetesClient_Expecter) GetResourcesForRelease

func (_e *IKubernetesClient_Expecter) GetResourcesForRelease(release interface{}) *IKubernetesClient_GetResourcesForRelease_Call

GetResourcesForRelease is a helper method to define mock.On call

  • release string

func (*IKubernetesClient_Expecter) GetStatefulSetsLogs

func (_e *IKubernetesClient_Expecter) GetStatefulSetsLogs(namespace interface{}, container interface{}, name interface{}, numLogs interface{}) *IKubernetesClient_GetStatefulSetsLogs_Call

GetStatefulSetsLogs is a helper method to define mock.On call

  • namespace string
  • container string
  • name string
  • numLogs *int64

func (*IKubernetesClient_Expecter) GetStreamedPodLogs

func (_e *IKubernetesClient_Expecter) GetStreamedPodLogs(ctx interface{}, namespace interface{}, container interface{}, name interface{}, logCount interface{}, logChan interface{}) *IKubernetesClient_GetStreamedPodLogs_Call

GetStreamedPodLogs is a helper method to define mock.On call

  • ctx context.Context
  • namespace string
  • container string
  • name string
  • logCount *int64
  • logChan chan<- string

func (*IKubernetesClient_Expecter) GetTemplateAuthRuleSecret

func (_e *IKubernetesClient_Expecter) GetTemplateAuthRuleSecret(name interface{}, key interface{}) *IKubernetesClient_GetTemplateAuthRuleSecret_Call

GetTemplateAuthRuleSecret is a helper method to define mock.On call

  • name string
  • key string

func (*IKubernetesClient_Expecter) GetWorkloadsForModule

func (_e *IKubernetesClient_Expecter) GetWorkloadsForModule(name interface{}) *IKubernetesClient_GetWorkloadsForModule_Call

GetWorkloadsForModule is a helper method to define mock.On call

  • name string

func (*IKubernetesClient_Expecter) GetWorkloadsForRelease

func (_e *IKubernetesClient_Expecter) GetWorkloadsForRelease(name interface{}) *IKubernetesClient_GetWorkloadsForRelease_Call

GetWorkloadsForRelease is a helper method to define mock.On call

  • name string

func (*IKubernetesClient_Expecter) ListModules

ListModules is a helper method to define mock.On call

func (*IKubernetesClient_Expecter) ListNamespaces

ListNamespaces is a helper method to define mock.On call

func (*IKubernetesClient_Expecter) ListNodes

ListNodes is a helper method to define mock.On call

func (*IKubernetesClient_Expecter) ListTemplateAuthRules

ListTemplateAuthRules is a helper method to define mock.On call

func (*IKubernetesClient_Expecter) ListTemplateStore

ListTemplateStore is a helper method to define mock.On call

func (*IKubernetesClient_Expecter) MapUnstructuredResource

func (_e *IKubernetesClient_Expecter) MapUnstructuredResource(u interface{}) *IKubernetesClient_MapUnstructuredResource_Call

MapUnstructuredResource is a helper method to define mock.On call

  • u unstructured.Unstructured

func (*IKubernetesClient_Expecter) Restart

func (_e *IKubernetesClient_Expecter) Restart(group interface{}, _a1 interface{}, kind interface{}, name interface{}, namespace interface{}) *IKubernetesClient_Restart_Call

Restart is a helper method to define mock.On call

  • group string
  • _a1 string
  • kind string
  • name string
  • namespace string

func (*IKubernetesClient_Expecter) RestartDaemonSet

func (_e *IKubernetesClient_Expecter) RestartDaemonSet(name interface{}, namespace interface{}) *IKubernetesClient_RestartDaemonSet_Call

RestartDaemonSet is a helper method to define mock.On call

  • name string
  • namespace string

func (*IKubernetesClient_Expecter) RestartDeployment

func (_e *IKubernetesClient_Expecter) RestartDeployment(name interface{}, namespace interface{}) *IKubernetesClient_RestartDeployment_Call

RestartDeployment is a helper method to define mock.On call

  • name string
  • namespace string

func (*IKubernetesClient_Expecter) RestartStatefulSet

func (_e *IKubernetesClient_Expecter) RestartStatefulSet(name interface{}, namespace interface{}) *IKubernetesClient_RestartStatefulSet_Call

RestartStatefulSet is a helper method to define mock.On call

  • name string
  • namespace string

func (*IKubernetesClient_Expecter) UpdateModule

func (_e *IKubernetesClient_Expecter) UpdateModule(module interface{}) *IKubernetesClient_UpdateModule_Call

UpdateModule is a helper method to define mock.On call

  • module *v1alpha1.Module

func (*IKubernetesClient_Expecter) UpdateModuleStatus

func (_e *IKubernetesClient_Expecter) UpdateModuleStatus(module interface{}) *IKubernetesClient_UpdateModuleStatus_Call

UpdateModuleStatus is a helper method to define mock.On call

  • module *v1alpha1.Module

func (*IKubernetesClient_Expecter) UpdateTemplateStore

func (_e *IKubernetesClient_Expecter) UpdateTemplateStore(ts interface{}) *IKubernetesClient_UpdateTemplateStore_Call

UpdateTemplateStore is a helper method to define mock.On call

  • ts *v1alpha1.TemplateStore

func (*IKubernetesClient_Expecter) VersionInfo

VersionInfo is a helper method to define mock.On call

func (*IKubernetesClient_Expecter) WatchKubernetesResources

func (_e *IKubernetesClient_Expecter) WatchKubernetesResources(gvrs interface{}, stopCh interface{}) *IKubernetesClient_WatchKubernetesResources_Call

WatchKubernetesResources is a helper method to define mock.On call

  • gvrs []k8sclient.ResourceWatchSpec
  • stopCh chan struct{}

func (*IKubernetesClient_Expecter) WatchResource

func (_e *IKubernetesClient_Expecter) WatchResource(group interface{}, _a1 interface{}, resource interface{}, name interface{}, namespace interface{}) *IKubernetesClient_WatchResource_Call

WatchResource is a helper method to define mock.On call

  • group string
  • _a1 string
  • resource string
  • name string
  • namespace string

type IKubernetesClient_GVKtoAPIResourceName_Call

type IKubernetesClient_GVKtoAPIResourceName_Call struct {
	*mock.Call
}

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

func (*IKubernetesClient_GVKtoAPIResourceName_Call) Return

func (*IKubernetesClient_GVKtoAPIResourceName_Call) Run

func (*IKubernetesClient_GVKtoAPIResourceName_Call) RunAndReturn

type IKubernetesClient_GetDeletedResources_Call

type IKubernetesClient_GetDeletedResources_Call struct {
	*mock.Call
}

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

func (*IKubernetesClient_GetDeletedResources_Call) Return

func (*IKubernetesClient_GetDeletedResources_Call) Run

func (*IKubernetesClient_GetDeletedResources_Call) RunAndReturn

type IKubernetesClient_GetDeploymentLogs_Call

type IKubernetesClient_GetDeploymentLogs_Call struct {
	*mock.Call
}

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

func (*IKubernetesClient_GetDeploymentLogs_Call) Return

func (*IKubernetesClient_GetDeploymentLogs_Call) Run

func (_c *IKubernetesClient_GetDeploymentLogs_Call) Run(run func(namespace string, container string, deployment string, numLogs *int64)) *IKubernetesClient_GetDeploymentLogs_Call

func (*IKubernetesClient_GetDeploymentLogs_Call) RunAndReturn

type IKubernetesClient_GetManifest_Call

type IKubernetesClient_GetManifest_Call struct {
	*mock.Call
}

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

func (*IKubernetesClient_GetManifest_Call) Return

func (*IKubernetesClient_GetManifest_Call) Run

func (_c *IKubernetesClient_GetManifest_Call) Run(run func(group string, _a1 string, kind string, name string, namespace string, includeManagedFields bool)) *IKubernetesClient_GetManifest_Call

func (*IKubernetesClient_GetManifest_Call) RunAndReturn

type IKubernetesClient_GetModuleResourcesHealth_Call

type IKubernetesClient_GetModuleResourcesHealth_Call struct {
	*mock.Call
}

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

func (*IKubernetesClient_GetModuleResourcesHealth_Call) Return

func (*IKubernetesClient_GetModuleResourcesHealth_Call) Run

func (*IKubernetesClient_GetModuleResourcesHealth_Call) RunAndReturn

type IKubernetesClient_GetModule_Call

type IKubernetesClient_GetModule_Call struct {
	*mock.Call
}

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

func (*IKubernetesClient_GetModule_Call) Return

func (*IKubernetesClient_GetModule_Call) Run

func (*IKubernetesClient_GetModule_Call) RunAndReturn

type IKubernetesClient_GetNode_Call

type IKubernetesClient_GetNode_Call struct {
	*mock.Call
}

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

func (*IKubernetesClient_GetNode_Call) Return

func (*IKubernetesClient_GetNode_Call) Run

func (*IKubernetesClient_GetNode_Call) RunAndReturn

type IKubernetesClient_GetPodLogs_Call

type IKubernetesClient_GetPodLogs_Call struct {
	*mock.Call
}

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

func (*IKubernetesClient_GetPodLogs_Call) Return

func (*IKubernetesClient_GetPodLogs_Call) Run

func (_c *IKubernetesClient_GetPodLogs_Call) Run(run func(namespace string, container string, name string, numLogs *int64)) *IKubernetesClient_GetPodLogs_Call

func (*IKubernetesClient_GetPodLogs_Call) RunAndReturn

type IKubernetesClient_GetPodsForNode_Call

type IKubernetesClient_GetPodsForNode_Call struct {
	*mock.Call
}

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

func (*IKubernetesClient_GetPodsForNode_Call) Return

func (*IKubernetesClient_GetPodsForNode_Call) Run

func (*IKubernetesClient_GetPodsForNode_Call) RunAndReturn

type IKubernetesClient_GetResource_Call

type IKubernetesClient_GetResource_Call struct {
	*mock.Call
}

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

func (*IKubernetesClient_GetResource_Call) Return

func (*IKubernetesClient_GetResource_Call) Run

func (_c *IKubernetesClient_GetResource_Call) Run(run func(group string, _a1 string, kind string, name string, namespace string)) *IKubernetesClient_GetResource_Call

func (*IKubernetesClient_GetResource_Call) RunAndReturn

type IKubernetesClient_GetResourcesForModule_Call

type IKubernetesClient_GetResourcesForModule_Call struct {
	*mock.Call
}

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

func (*IKubernetesClient_GetResourcesForModule_Call) Return

func (*IKubernetesClient_GetResourcesForModule_Call) Run

func (*IKubernetesClient_GetResourcesForModule_Call) RunAndReturn

type IKubernetesClient_GetResourcesForRelease_Call

type IKubernetesClient_GetResourcesForRelease_Call struct {
	*mock.Call
}

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

func (*IKubernetesClient_GetResourcesForRelease_Call) Return

func (*IKubernetesClient_GetResourcesForRelease_Call) Run

func (*IKubernetesClient_GetResourcesForRelease_Call) RunAndReturn

type IKubernetesClient_GetStatefulSetsLogs_Call

type IKubernetesClient_GetStatefulSetsLogs_Call struct {
	*mock.Call
}

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

func (*IKubernetesClient_GetStatefulSetsLogs_Call) Return

func (*IKubernetesClient_GetStatefulSetsLogs_Call) Run

func (*IKubernetesClient_GetStatefulSetsLogs_Call) RunAndReturn

type IKubernetesClient_GetStreamedPodLogs_Call

type IKubernetesClient_GetStreamedPodLogs_Call struct {
	*mock.Call
}

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

func (*IKubernetesClient_GetStreamedPodLogs_Call) Return

func (*IKubernetesClient_GetStreamedPodLogs_Call) Run

func (_c *IKubernetesClient_GetStreamedPodLogs_Call) Run(run func(ctx context.Context, namespace string, container string, name string, logCount *int64, logChan chan<- string)) *IKubernetesClient_GetStreamedPodLogs_Call

func (*IKubernetesClient_GetStreamedPodLogs_Call) RunAndReturn

type IKubernetesClient_GetTemplateAuthRuleSecret_Call

type IKubernetesClient_GetTemplateAuthRuleSecret_Call struct {
	*mock.Call
}

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

func (*IKubernetesClient_GetTemplateAuthRuleSecret_Call) Return

func (*IKubernetesClient_GetTemplateAuthRuleSecret_Call) Run

func (*IKubernetesClient_GetTemplateAuthRuleSecret_Call) RunAndReturn

type IKubernetesClient_GetWorkloadsForModule_Call

type IKubernetesClient_GetWorkloadsForModule_Call struct {
	*mock.Call
}

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

func (*IKubernetesClient_GetWorkloadsForModule_Call) Return

func (*IKubernetesClient_GetWorkloadsForModule_Call) Run

func (*IKubernetesClient_GetWorkloadsForModule_Call) RunAndReturn

type IKubernetesClient_GetWorkloadsForRelease_Call

type IKubernetesClient_GetWorkloadsForRelease_Call struct {
	*mock.Call
}

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

func (*IKubernetesClient_GetWorkloadsForRelease_Call) Return

func (*IKubernetesClient_GetWorkloadsForRelease_Call) Run

func (*IKubernetesClient_GetWorkloadsForRelease_Call) RunAndReturn

type IKubernetesClient_ListModules_Call

type IKubernetesClient_ListModules_Call struct {
	*mock.Call
}

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

func (*IKubernetesClient_ListModules_Call) Return

func (*IKubernetesClient_ListModules_Call) Run

func (*IKubernetesClient_ListModules_Call) RunAndReturn

type IKubernetesClient_ListNamespaces_Call

type IKubernetesClient_ListNamespaces_Call struct {
	*mock.Call
}

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

func (*IKubernetesClient_ListNamespaces_Call) Return

func (*IKubernetesClient_ListNamespaces_Call) Run

func (*IKubernetesClient_ListNamespaces_Call) RunAndReturn

type IKubernetesClient_ListNodes_Call

type IKubernetesClient_ListNodes_Call struct {
	*mock.Call
}

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

func (*IKubernetesClient_ListNodes_Call) Return

func (*IKubernetesClient_ListNodes_Call) Run

func (*IKubernetesClient_ListNodes_Call) RunAndReturn

type IKubernetesClient_ListTemplateAuthRules_Call

type IKubernetesClient_ListTemplateAuthRules_Call struct {
	*mock.Call
}

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

func (*IKubernetesClient_ListTemplateAuthRules_Call) Return

func (*IKubernetesClient_ListTemplateAuthRules_Call) Run

func (*IKubernetesClient_ListTemplateAuthRules_Call) RunAndReturn

type IKubernetesClient_ListTemplateStore_Call

type IKubernetesClient_ListTemplateStore_Call struct {
	*mock.Call
}

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

func (*IKubernetesClient_ListTemplateStore_Call) Return

func (*IKubernetesClient_ListTemplateStore_Call) Run

func (*IKubernetesClient_ListTemplateStore_Call) RunAndReturn

type IKubernetesClient_MapUnstructuredResource_Call

type IKubernetesClient_MapUnstructuredResource_Call struct {
	*mock.Call
}

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

func (*IKubernetesClient_MapUnstructuredResource_Call) Return

func (*IKubernetesClient_MapUnstructuredResource_Call) Run

func (*IKubernetesClient_MapUnstructuredResource_Call) RunAndReturn

type IKubernetesClient_RestartDaemonSet_Call

type IKubernetesClient_RestartDaemonSet_Call struct {
	*mock.Call
}

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

func (*IKubernetesClient_RestartDaemonSet_Call) Return

func (*IKubernetesClient_RestartDaemonSet_Call) Run

func (*IKubernetesClient_RestartDaemonSet_Call) RunAndReturn

type IKubernetesClient_RestartDeployment_Call

type IKubernetesClient_RestartDeployment_Call struct {
	*mock.Call
}

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

func (*IKubernetesClient_RestartDeployment_Call) Return

func (*IKubernetesClient_RestartDeployment_Call) Run

func (*IKubernetesClient_RestartDeployment_Call) RunAndReturn

type IKubernetesClient_RestartStatefulSet_Call

type IKubernetesClient_RestartStatefulSet_Call struct {
	*mock.Call
}

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

func (*IKubernetesClient_RestartStatefulSet_Call) Return

func (*IKubernetesClient_RestartStatefulSet_Call) Run

func (*IKubernetesClient_RestartStatefulSet_Call) RunAndReturn

type IKubernetesClient_Restart_Call

type IKubernetesClient_Restart_Call struct {
	*mock.Call
}

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

func (*IKubernetesClient_Restart_Call) Return

func (*IKubernetesClient_Restart_Call) Run

func (_c *IKubernetesClient_Restart_Call) Run(run func(group string, _a1 string, kind string, name string, namespace string)) *IKubernetesClient_Restart_Call

func (*IKubernetesClient_Restart_Call) RunAndReturn

type IKubernetesClient_UpdateModuleStatus_Call

type IKubernetesClient_UpdateModuleStatus_Call struct {
	*mock.Call
}

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

func (*IKubernetesClient_UpdateModuleStatus_Call) Return

func (*IKubernetesClient_UpdateModuleStatus_Call) Run

func (*IKubernetesClient_UpdateModuleStatus_Call) RunAndReturn

type IKubernetesClient_UpdateModule_Call

type IKubernetesClient_UpdateModule_Call struct {
	*mock.Call
}

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

func (*IKubernetesClient_UpdateModule_Call) Return

func (*IKubernetesClient_UpdateModule_Call) Run

func (*IKubernetesClient_UpdateModule_Call) RunAndReturn

type IKubernetesClient_UpdateTemplateStore_Call

type IKubernetesClient_UpdateTemplateStore_Call struct {
	*mock.Call
}

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

func (*IKubernetesClient_UpdateTemplateStore_Call) Return

func (*IKubernetesClient_UpdateTemplateStore_Call) Run

func (*IKubernetesClient_UpdateTemplateStore_Call) RunAndReturn

type IKubernetesClient_VersionInfo_Call

type IKubernetesClient_VersionInfo_Call struct {
	*mock.Call
}

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

func (*IKubernetesClient_VersionInfo_Call) Return

func (*IKubernetesClient_VersionInfo_Call) Run

func (*IKubernetesClient_VersionInfo_Call) RunAndReturn

type IKubernetesClient_WatchKubernetesResources_Call

type IKubernetesClient_WatchKubernetesResources_Call struct {
	*mock.Call
}

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

func (*IKubernetesClient_WatchKubernetesResources_Call) Return

func (*IKubernetesClient_WatchKubernetesResources_Call) Run

func (*IKubernetesClient_WatchKubernetesResources_Call) RunAndReturn

type IKubernetesClient_WatchResource_Call

type IKubernetesClient_WatchResource_Call struct {
	*mock.Call
}

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

func (*IKubernetesClient_WatchResource_Call) Return

func (*IKubernetesClient_WatchResource_Call) Run

func (_c *IKubernetesClient_WatchResource_Call) Run(run func(group string, _a1 string, resource string, name string, namespace string)) *IKubernetesClient_WatchResource_Call

func (*IKubernetesClient_WatchResource_Call) RunAndReturn

Jump to

Keyboard shortcuts

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