fake

package
v2.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

README

Generic Controller, Client, and Cache Mocks

This package leverages https://github.com/golang/mock for using generic mocks in tests. gomock holds more specific information on different ways to use gomock in test.

Usage

This package has four entry points for creating a mock controller, client, or cache interface.
Note: A mock controller will implement both a generic.ControllerInterface and a generic.ClientInterface.

  • NewMockControllerInterface[T runtime.Object, TList runtime.Object](*gomock.Controller)
  • NewMockNonNamespacedControllerInterface[T runtime.Object, TList runtime.Object](*gomock.Controller)
  • NewCacheInterface[T runtime.Object](*gomock.Controller)
  • NewNonNamespaceCacheInterface[T runtime.Object](*gomock.Controller)

Examples

Example use of generic/fake with a generated Deployment Controller.

// Generated controller interface to mock.
type DeploymentController interface {
	generic.ControllerInterface[*v1.Deployment, *v1.DeploymentList]
}
// Example Test Function 
import (
	"testing"
    
	"github.com/golang/mock/gomock"
	wranglerv1 "github.com/rancher/wrangler/v2/pkg/generated/controllers/rbac/v1"
	"github.com/rancher/wrangler/v2/pkg/generic/fake"
	v1 "k8s.io/api/apps/v1"
)

func TestController(t *testing.T){
    // Create gomock controller. This is used by the gomock library.
	gomockCtrl := gomock.NewController(t)

    // Create a new Generic Controller Mock with type apps1.Deployment.
	deployMock := fake.NewMockControllerInterface[*v1.Deployment, *v1.DeploymentList](ctrl)

    // Define expected calls to our mock controller using gomock.
    deployMock.EXPECT().Enqueue("test-namespace", "test-name").AnyTimes()

    // Start Test Code.
    // .
    // . 
    // .

    // Test calls Enqueue with expected parameters nothing happens.
    deployMock.Enqueue("test-namespace", "test-name")

    // Test calls Enqueue with unexpected parameters.
    // gomock will fail the test because it did not expect the call.
    deployMock.Enqueue("unexpected-namespace", "unexpected-name")
}
NonNamespacedController
ctrl := gomock.NewController(t)

mock := fake.NewMockNonNamespacedControllerInterface[*v3.RoleTemplate, *v3.RoleTemplateList](ctrl)

mock.EXPECT().List(gomock.Any()).Return(nil, nil)

Fake Generation

This package was generated with mockgen -package fake -destination ./controller.go -source ../controller.go and mockgen -package fake -destination ./cache.go -source ../cache.go

Due to an open issue with mockgen https://github.com/golang/mock/issues/649 controller.go must be modified for the generation to succeed.

  1. Comment out the comparable in RuntimeMetaObject

  2. Remove [T, TList] on ClientInterface embedded into ControllerInterface and NonNamespacedControllerInterface. This will cause the file to no longer build but the generation will succeed.

        type ControllerInterface[T RuntimeMetaObject, TList runtime.Object interface {
            ControllerMeta
            ClientInterface //[T, TList]
    
    

Documentation

Overview

Package fake is a generated GoMock package.

Package fake is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCacheInterface

type MockCacheInterface[T runtime.Object] struct {
	// contains filtered or unexported fields
}

MockCacheInterface is a mock of CacheInterface interface.

func NewMockCacheInterface

func NewMockCacheInterface[T runtime.Object](ctrl *gomock.Controller) *MockCacheInterface[T]

NewMockCacheInterface creates a new mock instance.

func (*MockCacheInterface[T]) AddIndexer

func (m *MockCacheInterface[T]) AddIndexer(indexName string, indexer generic.Indexer[T])

AddIndexer mocks base method.

func (*MockCacheInterface[T]) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockCacheInterface[T]) Get

func (m *MockCacheInterface[T]) Get(namespace, name string) (T, error)

Get mocks base method.

func (*MockCacheInterface[T]) GetByIndex

func (m *MockCacheInterface[T]) GetByIndex(indexName, key string) ([]T, error)

GetByIndex mocks base method.

func (*MockCacheInterface[T]) List

func (m *MockCacheInterface[T]) List(namespace string, selector labels.Selector) ([]T, error)

List mocks base method.

type MockCacheInterfaceMockRecorder

type MockCacheInterfaceMockRecorder[T runtime.Object] struct {
	// contains filtered or unexported fields
}

MockCacheInterfaceMockRecorder is the mock recorder for MockCacheInterface.

func (*MockCacheInterfaceMockRecorder[T]) AddIndexer

func (mr *MockCacheInterfaceMockRecorder[T]) AddIndexer(indexName, indexer interface{}) *gomock.Call

AddIndexer indicates an expected call of AddIndexer.

func (*MockCacheInterfaceMockRecorder[T]) Get

func (mr *MockCacheInterfaceMockRecorder[T]) Get(namespace, name interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockCacheInterfaceMockRecorder[T]) GetByIndex

func (mr *MockCacheInterfaceMockRecorder[T]) GetByIndex(indexName, key interface{}) *gomock.Call

GetByIndex indicates an expected call of GetByIndex.

func (*MockCacheInterfaceMockRecorder[T]) List

func (mr *MockCacheInterfaceMockRecorder[T]) List(namespace, selector interface{}) *gomock.Call

List indicates an expected call of List.

type MockClientInterface

type MockClientInterface[T generic.RuntimeMetaObject, TList runtime.Object] struct {
	// contains filtered or unexported fields
}

MockClientInterface is a mock of ClientInterface interface.

func NewMockClientInterface

func NewMockClientInterface[T generic.RuntimeMetaObject, TList runtime.Object](ctrl *gomock.Controller) *MockClientInterface[T, TList]

NewMockClientInterface creates a new mock instance.

func (*MockClientInterface[T, TList]) Create

func (m *MockClientInterface[T, TList]) Create(arg0 T) (T, error)

Create mocks base method.

func (*MockClientInterface[T, TList]) Delete

func (m *MockClientInterface[T, TList]) Delete(namespace, name string, options *v1.DeleteOptions) error

Delete mocks base method.

func (*MockClientInterface[T, TList]) EXPECT

func (m *MockClientInterface[T, TList]) EXPECT() *MockClientInterfaceMockRecorder[T, TList]

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockClientInterface[T, TList]) Get

func (m *MockClientInterface[T, TList]) Get(namespace, name string, options v1.GetOptions) (T, error)

Get mocks base method.

func (*MockClientInterface[T, TList]) List

func (m *MockClientInterface[T, TList]) List(namespace string, opts v1.ListOptions) (TList, error)

List mocks base method.

func (*MockClientInterface[T, TList]) Patch

func (m *MockClientInterface[T, TList]) Patch(namespace, name string, pt types.PatchType, data []byte, subresources ...string) (T, error)

Patch mocks base method.

func (*MockClientInterface[T, TList]) Update

func (m *MockClientInterface[T, TList]) Update(arg0 T) (T, error)

Update mocks base method.

func (*MockClientInterface[T, TList]) UpdateStatus

func (m *MockClientInterface[T, TList]) UpdateStatus(arg0 T) (T, error)

UpdateStatus mocks base method.

func (*MockClientInterface[T, TList]) Watch

func (m *MockClientInterface[T, TList]) Watch(namespace string, opts v1.ListOptions) (watch.Interface, error)

Watch mocks base method.

func (*MockClientInterface[T, TList]) WithImpersonation

func (m *MockClientInterface[T, TList]) WithImpersonation(impersonate rest.ImpersonationConfig) (generic.ClientInterface[T, TList], error)

WithImpersonation mocks base method.

type MockClientInterfaceMockRecorder

type MockClientInterfaceMockRecorder[T generic.RuntimeMetaObject, TList runtime.Object] struct {
	// contains filtered or unexported fields
}

MockClientInterfaceMockRecorder is the mock recorder for MockClientInterface.

func (*MockClientInterfaceMockRecorder[T, TList]) Create

func (mr *MockClientInterfaceMockRecorder[T, TList]) Create(arg0 interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockClientInterfaceMockRecorder[T, TList]) Delete

func (mr *MockClientInterfaceMockRecorder[T, TList]) Delete(namespace, name, options interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockClientInterfaceMockRecorder[T, TList]) Get

func (mr *MockClientInterfaceMockRecorder[T, TList]) Get(namespace, name, options interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockClientInterfaceMockRecorder[T, TList]) List

func (mr *MockClientInterfaceMockRecorder[T, TList]) List(namespace, opts interface{}) *gomock.Call

List indicates an expected call of List.

func (*MockClientInterfaceMockRecorder[T, TList]) Patch

func (mr *MockClientInterfaceMockRecorder[T, TList]) Patch(namespace, name, pt, data interface{}, subresources ...interface{}) *gomock.Call

Patch indicates an expected call of Patch.

func (*MockClientInterfaceMockRecorder[T, TList]) Update

func (mr *MockClientInterfaceMockRecorder[T, TList]) Update(arg0 interface{}) *gomock.Call

Update indicates an expected call of Update.

func (*MockClientInterfaceMockRecorder[T, TList]) UpdateStatus

func (mr *MockClientInterfaceMockRecorder[T, TList]) UpdateStatus(arg0 interface{}) *gomock.Call

UpdateStatus indicates an expected call of UpdateStatus.

func (*MockClientInterfaceMockRecorder[T, TList]) Watch

func (mr *MockClientInterfaceMockRecorder[T, TList]) Watch(namespace, opts interface{}) *gomock.Call

Watch indicates an expected call of Watch.

func (*MockClientInterfaceMockRecorder[T, TList]) WithImpersonation

func (mr *MockClientInterfaceMockRecorder[T, TList]) WithImpersonation(impersonate interface{}) *gomock.Call

WithImpersonation indicates an expected call of WithImpersonation.

type MockControllerInterface

type MockControllerInterface[T generic.RuntimeMetaObject, TList runtime.Object] struct {
	// contains filtered or unexported fields
}

MockControllerInterface is a mock of ControllerInterface interface.

func NewMockControllerInterface

func NewMockControllerInterface[T generic.RuntimeMetaObject, TList runtime.Object](ctrl *gomock.Controller) *MockControllerInterface[T, TList]

NewMockControllerInterface creates a new mock instance.

func (*MockControllerInterface[T, TList]) AddGenericHandler

func (m *MockControllerInterface[T, TList]) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)

AddGenericHandler mocks base method.

func (*MockControllerInterface[T, TList]) AddGenericRemoveHandler

func (m *MockControllerInterface[T, TList]) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)

AddGenericRemoveHandler mocks base method.

func (*MockControllerInterface[T, TList]) Cache

func (m *MockControllerInterface[T, TList]) Cache() generic.CacheInterface[T]

Cache mocks base method.

func (*MockControllerInterface[T, TList]) Create

func (m *MockControllerInterface[T, TList]) Create(arg0 T) (T, error)

Create mocks base method.

func (*MockControllerInterface[T, TList]) Delete

func (m *MockControllerInterface[T, TList]) Delete(namespace, name string, options *v1.DeleteOptions) error

Delete mocks base method.

func (*MockControllerInterface[T, TList]) EXPECT

func (m *MockControllerInterface[T, TList]) EXPECT() *MockControllerInterfaceMockRecorder[T, TList]

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockControllerInterface[T, TList]) Enqueue

func (m *MockControllerInterface[T, TList]) Enqueue(namespace, name string)

Enqueue mocks base method.

func (*MockControllerInterface[T, TList]) EnqueueAfter

func (m *MockControllerInterface[T, TList]) EnqueueAfter(namespace, name string, duration time.Duration)

EnqueueAfter mocks base method.

func (*MockControllerInterface[T, TList]) Get

func (m *MockControllerInterface[T, TList]) Get(namespace, name string, options v1.GetOptions) (T, error)

Get mocks base method.

func (*MockControllerInterface[T, TList]) GroupVersionKind

func (m *MockControllerInterface[T, TList]) GroupVersionKind() schema.GroupVersionKind

GroupVersionKind mocks base method.

func (*MockControllerInterface[T, TList]) Informer

func (m *MockControllerInterface[T, TList]) Informer() cache.SharedIndexInformer

Informer mocks base method.

func (*MockControllerInterface[T, TList]) List

func (m *MockControllerInterface[T, TList]) List(namespace string, opts v1.ListOptions) (TList, error)

List mocks base method.

func (*MockControllerInterface[T, TList]) OnChange

func (m *MockControllerInterface[T, TList]) OnChange(ctx context.Context, name string, sync generic.ObjectHandler[T])

OnChange mocks base method.

func (*MockControllerInterface[T, TList]) OnRemove

func (m *MockControllerInterface[T, TList]) OnRemove(ctx context.Context, name string, sync generic.ObjectHandler[T])

OnRemove mocks base method.

func (*MockControllerInterface[T, TList]) Patch

func (m *MockControllerInterface[T, TList]) Patch(namespace, name string, pt types.PatchType, data []byte, subresources ...string) (T, error)

Patch mocks base method.

func (*MockControllerInterface[T, TList]) Update

func (m *MockControllerInterface[T, TList]) Update(arg0 T) (T, error)

Update mocks base method.

func (*MockControllerInterface[T, TList]) UpdateStatus

func (m *MockControllerInterface[T, TList]) UpdateStatus(arg0 T) (T, error)

UpdateStatus mocks base method.

func (*MockControllerInterface[T, TList]) Updater

func (m *MockControllerInterface[T, TList]) Updater() generic.Updater

Updater mocks base method.

func (*MockControllerInterface[T, TList]) Watch

func (m *MockControllerInterface[T, TList]) Watch(namespace string, opts v1.ListOptions) (watch.Interface, error)

Watch mocks base method.

func (*MockControllerInterface[T, TList]) WithImpersonation

func (m *MockControllerInterface[T, TList]) WithImpersonation(impersonate rest.ImpersonationConfig) (generic.ClientInterface[T, TList], error)

WithImpersonation mocks base method.

type MockControllerInterfaceMockRecorder

type MockControllerInterfaceMockRecorder[T generic.RuntimeMetaObject, TList runtime.Object] struct {
	// contains filtered or unexported fields
}

MockControllerInterfaceMockRecorder is the mock recorder for MockControllerInterface.

func (*MockControllerInterfaceMockRecorder[T, TList]) AddGenericHandler

func (mr *MockControllerInterfaceMockRecorder[T, TList]) AddGenericHandler(ctx, name, handler interface{}) *gomock.Call

AddGenericHandler indicates an expected call of AddGenericHandler.

func (*MockControllerInterfaceMockRecorder[T, TList]) AddGenericRemoveHandler

func (mr *MockControllerInterfaceMockRecorder[T, TList]) AddGenericRemoveHandler(ctx, name, handler interface{}) *gomock.Call

AddGenericRemoveHandler indicates an expected call of AddGenericRemoveHandler.

func (*MockControllerInterfaceMockRecorder[T, TList]) Cache

func (mr *MockControllerInterfaceMockRecorder[T, TList]) Cache() *gomock.Call

Cache indicates an expected call of Cache.

func (*MockControllerInterfaceMockRecorder[T, TList]) Create

func (mr *MockControllerInterfaceMockRecorder[T, TList]) Create(arg0 interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockControllerInterfaceMockRecorder[T, TList]) Delete

func (mr *MockControllerInterfaceMockRecorder[T, TList]) Delete(namespace, name, options interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockControllerInterfaceMockRecorder[T, TList]) Enqueue

func (mr *MockControllerInterfaceMockRecorder[T, TList]) Enqueue(namespace, name interface{}) *gomock.Call

Enqueue indicates an expected call of Enqueue.

func (*MockControllerInterfaceMockRecorder[T, TList]) EnqueueAfter

func (mr *MockControllerInterfaceMockRecorder[T, TList]) EnqueueAfter(namespace, name, duration interface{}) *gomock.Call

EnqueueAfter indicates an expected call of EnqueueAfter.

func (*MockControllerInterfaceMockRecorder[T, TList]) Get

func (mr *MockControllerInterfaceMockRecorder[T, TList]) Get(namespace, name, options interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockControllerInterfaceMockRecorder[T, TList]) GroupVersionKind

func (mr *MockControllerInterfaceMockRecorder[T, TList]) GroupVersionKind() *gomock.Call

GroupVersionKind indicates an expected call of GroupVersionKind.

func (*MockControllerInterfaceMockRecorder[T, TList]) Informer

func (mr *MockControllerInterfaceMockRecorder[T, TList]) Informer() *gomock.Call

Informer indicates an expected call of Informer.

func (*MockControllerInterfaceMockRecorder[T, TList]) List

func (mr *MockControllerInterfaceMockRecorder[T, TList]) List(namespace, opts interface{}) *gomock.Call

List indicates an expected call of List.

func (*MockControllerInterfaceMockRecorder[T, TList]) OnChange

func (mr *MockControllerInterfaceMockRecorder[T, TList]) OnChange(ctx, name, sync interface{}) *gomock.Call

OnChange indicates an expected call of OnChange.

func (*MockControllerInterfaceMockRecorder[T, TList]) OnRemove

func (mr *MockControllerInterfaceMockRecorder[T, TList]) OnRemove(ctx, name, sync interface{}) *gomock.Call

OnRemove indicates an expected call of OnRemove.

func (*MockControllerInterfaceMockRecorder[T, TList]) Patch

func (mr *MockControllerInterfaceMockRecorder[T, TList]) Patch(namespace, name, pt, data interface{}, subresources ...interface{}) *gomock.Call

Patch indicates an expected call of Patch.

func (*MockControllerInterfaceMockRecorder[T, TList]) Update

func (mr *MockControllerInterfaceMockRecorder[T, TList]) Update(arg0 interface{}) *gomock.Call

Update indicates an expected call of Update.

func (*MockControllerInterfaceMockRecorder[T, TList]) UpdateStatus

func (mr *MockControllerInterfaceMockRecorder[T, TList]) UpdateStatus(arg0 interface{}) *gomock.Call

UpdateStatus indicates an expected call of UpdateStatus.

func (*MockControllerInterfaceMockRecorder[T, TList]) Updater

func (mr *MockControllerInterfaceMockRecorder[T, TList]) Updater() *gomock.Call

Updater indicates an expected call of Updater.

func (*MockControllerInterfaceMockRecorder[T, TList]) Watch

func (mr *MockControllerInterfaceMockRecorder[T, TList]) Watch(namespace, opts interface{}) *gomock.Call

Watch indicates an expected call of Watch.

func (*MockControllerInterfaceMockRecorder[T, TList]) WithImpersonation

func (mr *MockControllerInterfaceMockRecorder[T, TList]) WithImpersonation(impersonate interface{}) *gomock.Call

WithImpersonation indicates an expected call of WithImpersonation.

type MockControllerMeta

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

MockControllerMeta is a mock of ControllerMeta interface.

func NewMockControllerMeta

func NewMockControllerMeta(ctrl *gomock.Controller) *MockControllerMeta

NewMockControllerMeta creates a new mock instance.

func (*MockControllerMeta) AddGenericHandler

func (m *MockControllerMeta) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)

AddGenericHandler mocks base method.

func (*MockControllerMeta) AddGenericRemoveHandler

func (m *MockControllerMeta) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)

AddGenericRemoveHandler mocks base method.

func (*MockControllerMeta) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockControllerMeta) GroupVersionKind

func (m *MockControllerMeta) GroupVersionKind() schema.GroupVersionKind

GroupVersionKind mocks base method.

func (*MockControllerMeta) Informer

Informer mocks base method.

func (*MockControllerMeta) Updater

func (m *MockControllerMeta) Updater() generic.Updater

Updater mocks base method.

type MockControllerMetaMockRecorder

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

MockControllerMetaMockRecorder is the mock recorder for MockControllerMeta.

func (*MockControllerMetaMockRecorder) AddGenericHandler

func (mr *MockControllerMetaMockRecorder) AddGenericHandler(ctx, name, handler interface{}) *gomock.Call

AddGenericHandler indicates an expected call of AddGenericHandler.

func (*MockControllerMetaMockRecorder) AddGenericRemoveHandler

func (mr *MockControllerMetaMockRecorder) AddGenericRemoveHandler(ctx, name, handler interface{}) *gomock.Call

AddGenericRemoveHandler indicates an expected call of AddGenericRemoveHandler.

func (*MockControllerMetaMockRecorder) GroupVersionKind

func (mr *MockControllerMetaMockRecorder) GroupVersionKind() *gomock.Call

GroupVersionKind indicates an expected call of GroupVersionKind.

func (*MockControllerMetaMockRecorder) Informer

func (mr *MockControllerMetaMockRecorder) Informer() *gomock.Call

Informer indicates an expected call of Informer.

func (*MockControllerMetaMockRecorder) Updater

Updater indicates an expected call of Updater.

type MockNonNamespacedCacheInterface

type MockNonNamespacedCacheInterface[T runtime.Object] struct {
	// contains filtered or unexported fields
}

MockNonNamespacedCacheInterface is a mock of NonNamespacedCacheInterface interface.

func NewMockNonNamespacedCacheInterface

func NewMockNonNamespacedCacheInterface[T runtime.Object](ctrl *gomock.Controller) *MockNonNamespacedCacheInterface[T]

NewMockNonNamespacedCacheInterface creates a new mock instance.

func (*MockNonNamespacedCacheInterface[T]) AddIndexer

func (m *MockNonNamespacedCacheInterface[T]) AddIndexer(indexName string, indexer generic.Indexer[T])

AddIndexer mocks base method.

func (*MockNonNamespacedCacheInterface[T]) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockNonNamespacedCacheInterface[T]) Get

func (m *MockNonNamespacedCacheInterface[T]) Get(name string) (T, error)

Get mocks base method.

func (*MockNonNamespacedCacheInterface[T]) GetByIndex

func (m *MockNonNamespacedCacheInterface[T]) GetByIndex(indexName, key string) ([]T, error)

GetByIndex mocks base method.

func (*MockNonNamespacedCacheInterface[T]) List

func (m *MockNonNamespacedCacheInterface[T]) List(selector labels.Selector) ([]T, error)

List mocks base method.

type MockNonNamespacedCacheInterfaceMockRecorder

type MockNonNamespacedCacheInterfaceMockRecorder[T runtime.Object] struct {
	// contains filtered or unexported fields
}

MockNonNamespacedCacheInterfaceMockRecorder is the mock recorder for MockNonNamespacedCacheInterface.

func (*MockNonNamespacedCacheInterfaceMockRecorder[T]) AddIndexer

func (mr *MockNonNamespacedCacheInterfaceMockRecorder[T]) AddIndexer(indexName, indexer interface{}) *gomock.Call

AddIndexer indicates an expected call of AddIndexer.

func (*MockNonNamespacedCacheInterfaceMockRecorder[T]) Get

func (mr *MockNonNamespacedCacheInterfaceMockRecorder[T]) Get(name interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockNonNamespacedCacheInterfaceMockRecorder[T]) GetByIndex

func (mr *MockNonNamespacedCacheInterfaceMockRecorder[T]) GetByIndex(indexName, key interface{}) *gomock.Call

GetByIndex indicates an expected call of GetByIndex.

func (*MockNonNamespacedCacheInterfaceMockRecorder[T]) List

func (mr *MockNonNamespacedCacheInterfaceMockRecorder[T]) List(selector interface{}) *gomock.Call

List indicates an expected call of List.

type MockNonNamespacedClientInterface

type MockNonNamespacedClientInterface[T generic.RuntimeMetaObject, TList runtime.Object] struct {
	// contains filtered or unexported fields
}

MockNonNamespacedClientInterface is a mock of NonNamespacedClientInterface interface.

func NewMockNonNamespacedClientInterface

func NewMockNonNamespacedClientInterface[T generic.RuntimeMetaObject, TList runtime.Object](ctrl *gomock.Controller) *MockNonNamespacedClientInterface[T, TList]

NewMockNonNamespacedClientInterface creates a new mock instance.

func (*MockNonNamespacedClientInterface[T, TList]) Create

func (m *MockNonNamespacedClientInterface[T, TList]) Create(arg0 T) (T, error)

Create mocks base method.

func (*MockNonNamespacedClientInterface[T, TList]) Delete

func (m *MockNonNamespacedClientInterface[T, TList]) Delete(name string, options *v1.DeleteOptions) error

Delete mocks base method.

func (*MockNonNamespacedClientInterface[T, TList]) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockNonNamespacedClientInterface[T, TList]) Get

func (m *MockNonNamespacedClientInterface[T, TList]) Get(name string, options v1.GetOptions) (T, error)

Get mocks base method.

func (*MockNonNamespacedClientInterface[T, TList]) List

func (m *MockNonNamespacedClientInterface[T, TList]) List(opts v1.ListOptions) (TList, error)

List mocks base method.

func (*MockNonNamespacedClientInterface[T, TList]) Patch

func (m *MockNonNamespacedClientInterface[T, TList]) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (T, error)

Patch mocks base method.

func (*MockNonNamespacedClientInterface[T, TList]) Update

func (m *MockNonNamespacedClientInterface[T, TList]) Update(arg0 T) (T, error)

Update mocks base method.

func (*MockNonNamespacedClientInterface[T, TList]) UpdateStatus

func (m *MockNonNamespacedClientInterface[T, TList]) UpdateStatus(arg0 T) (T, error)

UpdateStatus mocks base method.

func (*MockNonNamespacedClientInterface[T, TList]) Watch

Watch mocks base method.

func (*MockNonNamespacedClientInterface[T, TList]) WithImpersonation

func (m *MockNonNamespacedClientInterface[T, TList]) WithImpersonation(impersonate rest.ImpersonationConfig) (generic.NonNamespacedClientInterface[T, TList], error)

WithImpersonation mocks base method.

type MockNonNamespacedClientInterfaceMockRecorder

type MockNonNamespacedClientInterfaceMockRecorder[T generic.RuntimeMetaObject, TList runtime.Object] struct {
	// contains filtered or unexported fields
}

MockNonNamespacedClientInterfaceMockRecorder is the mock recorder for MockNonNamespacedClientInterface.

func (*MockNonNamespacedClientInterfaceMockRecorder[T, TList]) Create

func (mr *MockNonNamespacedClientInterfaceMockRecorder[T, TList]) Create(arg0 interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockNonNamespacedClientInterfaceMockRecorder[T, TList]) Delete

func (mr *MockNonNamespacedClientInterfaceMockRecorder[T, TList]) Delete(name, options interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockNonNamespacedClientInterfaceMockRecorder[T, TList]) Get

func (mr *MockNonNamespacedClientInterfaceMockRecorder[T, TList]) Get(name, options interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockNonNamespacedClientInterfaceMockRecorder[T, TList]) List

func (mr *MockNonNamespacedClientInterfaceMockRecorder[T, TList]) List(opts interface{}) *gomock.Call

List indicates an expected call of List.

func (*MockNonNamespacedClientInterfaceMockRecorder[T, TList]) Patch

func (mr *MockNonNamespacedClientInterfaceMockRecorder[T, TList]) Patch(name, pt, data interface{}, subresources ...interface{}) *gomock.Call

Patch indicates an expected call of Patch.

func (*MockNonNamespacedClientInterfaceMockRecorder[T, TList]) Update

func (mr *MockNonNamespacedClientInterfaceMockRecorder[T, TList]) Update(arg0 interface{}) *gomock.Call

Update indicates an expected call of Update.

func (*MockNonNamespacedClientInterfaceMockRecorder[T, TList]) UpdateStatus

func (mr *MockNonNamespacedClientInterfaceMockRecorder[T, TList]) UpdateStatus(arg0 interface{}) *gomock.Call

UpdateStatus indicates an expected call of UpdateStatus.

func (*MockNonNamespacedClientInterfaceMockRecorder[T, TList]) Watch

func (mr *MockNonNamespacedClientInterfaceMockRecorder[T, TList]) Watch(opts interface{}) *gomock.Call

Watch indicates an expected call of Watch.

func (*MockNonNamespacedClientInterfaceMockRecorder[T, TList]) WithImpersonation

func (mr *MockNonNamespacedClientInterfaceMockRecorder[T, TList]) WithImpersonation(impersonate interface{}) *gomock.Call

WithImpersonation indicates an expected call of WithImpersonation.

type MockNonNamespacedControllerInterface

type MockNonNamespacedControllerInterface[T generic.RuntimeMetaObject, TList runtime.Object] struct {
	// contains filtered or unexported fields
}

MockNonNamespacedControllerInterface is a mock of NonNamespacedControllerInterface interface.

func NewMockNonNamespacedControllerInterface

func NewMockNonNamespacedControllerInterface[T generic.RuntimeMetaObject, TList runtime.Object](ctrl *gomock.Controller) *MockNonNamespacedControllerInterface[T, TList]

NewMockNonNamespacedControllerInterface creates a new mock instance.

func (*MockNonNamespacedControllerInterface[T, TList]) AddGenericHandler

func (m *MockNonNamespacedControllerInterface[T, TList]) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)

AddGenericHandler mocks base method.

func (*MockNonNamespacedControllerInterface[T, TList]) AddGenericRemoveHandler

func (m *MockNonNamespacedControllerInterface[T, TList]) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)

AddGenericRemoveHandler mocks base method.

func (*MockNonNamespacedControllerInterface[T, TList]) Cache

Cache mocks base method.

func (*MockNonNamespacedControllerInterface[T, TList]) Create

func (m *MockNonNamespacedControllerInterface[T, TList]) Create(arg0 T) (T, error)

Create mocks base method.

func (*MockNonNamespacedControllerInterface[T, TList]) Delete

func (m *MockNonNamespacedControllerInterface[T, TList]) Delete(name string, options *v1.DeleteOptions) error

Delete mocks base method.

func (*MockNonNamespacedControllerInterface[T, TList]) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockNonNamespacedControllerInterface[T, TList]) Enqueue

func (m *MockNonNamespacedControllerInterface[T, TList]) Enqueue(name string)

Enqueue mocks base method.

func (*MockNonNamespacedControllerInterface[T, TList]) EnqueueAfter

func (m *MockNonNamespacedControllerInterface[T, TList]) EnqueueAfter(name string, duration time.Duration)

EnqueueAfter mocks base method.

func (*MockNonNamespacedControllerInterface[T, TList]) Get

func (m *MockNonNamespacedControllerInterface[T, TList]) Get(name string, options v1.GetOptions) (T, error)

Get mocks base method.

func (*MockNonNamespacedControllerInterface[T, TList]) GroupVersionKind

func (m *MockNonNamespacedControllerInterface[T, TList]) GroupVersionKind() schema.GroupVersionKind

GroupVersionKind mocks base method.

func (*MockNonNamespacedControllerInterface[T, TList]) Informer

Informer mocks base method.

func (*MockNonNamespacedControllerInterface[T, TList]) List

func (m *MockNonNamespacedControllerInterface[T, TList]) List(opts v1.ListOptions) (TList, error)

List mocks base method.

func (*MockNonNamespacedControllerInterface[T, TList]) OnChange

func (m *MockNonNamespacedControllerInterface[T, TList]) OnChange(ctx context.Context, name string, sync generic.ObjectHandler[T])

OnChange mocks base method.

func (*MockNonNamespacedControllerInterface[T, TList]) OnRemove

func (m *MockNonNamespacedControllerInterface[T, TList]) OnRemove(ctx context.Context, name string, sync generic.ObjectHandler[T])

OnRemove mocks base method.

func (*MockNonNamespacedControllerInterface[T, TList]) Patch

func (m *MockNonNamespacedControllerInterface[T, TList]) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (T, error)

Patch mocks base method.

func (*MockNonNamespacedControllerInterface[T, TList]) Update

func (m *MockNonNamespacedControllerInterface[T, TList]) Update(arg0 T) (T, error)

Update mocks base method.

func (*MockNonNamespacedControllerInterface[T, TList]) UpdateStatus

func (m *MockNonNamespacedControllerInterface[T, TList]) UpdateStatus(arg0 T) (T, error)

UpdateStatus mocks base method.

func (*MockNonNamespacedControllerInterface[T, TList]) Updater

func (m *MockNonNamespacedControllerInterface[T, TList]) Updater() generic.Updater

Updater mocks base method.

func (*MockNonNamespacedControllerInterface[T, TList]) Watch

Watch mocks base method.

func (*MockNonNamespacedControllerInterface[T, TList]) WithImpersonation

func (m *MockNonNamespacedControllerInterface[T, TList]) WithImpersonation(impersonate rest.ImpersonationConfig) (generic.NonNamespacedClientInterface[T, TList], error)

WithImpersonation mocks base method.

type MockNonNamespacedControllerInterfaceMockRecorder

type MockNonNamespacedControllerInterfaceMockRecorder[T generic.RuntimeMetaObject, TList runtime.Object] struct {
	// contains filtered or unexported fields
}

MockNonNamespacedControllerInterfaceMockRecorder is the mock recorder for MockNonNamespacedControllerInterface.

func (*MockNonNamespacedControllerInterfaceMockRecorder[T, TList]) AddGenericHandler

func (mr *MockNonNamespacedControllerInterfaceMockRecorder[T, TList]) AddGenericHandler(ctx, name, handler interface{}) *gomock.Call

AddGenericHandler indicates an expected call of AddGenericHandler.

func (*MockNonNamespacedControllerInterfaceMockRecorder[T, TList]) AddGenericRemoveHandler

func (mr *MockNonNamespacedControllerInterfaceMockRecorder[T, TList]) AddGenericRemoveHandler(ctx, name, handler interface{}) *gomock.Call

AddGenericRemoveHandler indicates an expected call of AddGenericRemoveHandler.

func (*MockNonNamespacedControllerInterfaceMockRecorder[T, TList]) Cache

Cache indicates an expected call of Cache.

func (*MockNonNamespacedControllerInterfaceMockRecorder[T, TList]) Create

func (mr *MockNonNamespacedControllerInterfaceMockRecorder[T, TList]) Create(arg0 interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockNonNamespacedControllerInterfaceMockRecorder[T, TList]) Delete

func (mr *MockNonNamespacedControllerInterfaceMockRecorder[T, TList]) Delete(name, options interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockNonNamespacedControllerInterfaceMockRecorder[T, TList]) Enqueue

func (mr *MockNonNamespacedControllerInterfaceMockRecorder[T, TList]) Enqueue(name interface{}) *gomock.Call

Enqueue indicates an expected call of Enqueue.

func (*MockNonNamespacedControllerInterfaceMockRecorder[T, TList]) EnqueueAfter

func (mr *MockNonNamespacedControllerInterfaceMockRecorder[T, TList]) EnqueueAfter(name, duration interface{}) *gomock.Call

EnqueueAfter indicates an expected call of EnqueueAfter.

func (*MockNonNamespacedControllerInterfaceMockRecorder[T, TList]) Get

func (mr *MockNonNamespacedControllerInterfaceMockRecorder[T, TList]) Get(name, options interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockNonNamespacedControllerInterfaceMockRecorder[T, TList]) GroupVersionKind

func (mr *MockNonNamespacedControllerInterfaceMockRecorder[T, TList]) GroupVersionKind() *gomock.Call

GroupVersionKind indicates an expected call of GroupVersionKind.

func (*MockNonNamespacedControllerInterfaceMockRecorder[T, TList]) Informer

Informer indicates an expected call of Informer.

func (*MockNonNamespacedControllerInterfaceMockRecorder[T, TList]) List

func (mr *MockNonNamespacedControllerInterfaceMockRecorder[T, TList]) List(opts interface{}) *gomock.Call

List indicates an expected call of List.

func (*MockNonNamespacedControllerInterfaceMockRecorder[T, TList]) OnChange

func (mr *MockNonNamespacedControllerInterfaceMockRecorder[T, TList]) OnChange(ctx, name, sync interface{}) *gomock.Call

OnChange indicates an expected call of OnChange.

func (*MockNonNamespacedControllerInterfaceMockRecorder[T, TList]) OnRemove

func (mr *MockNonNamespacedControllerInterfaceMockRecorder[T, TList]) OnRemove(ctx, name, sync interface{}) *gomock.Call

OnRemove indicates an expected call of OnRemove.

func (*MockNonNamespacedControllerInterfaceMockRecorder[T, TList]) Patch

func (mr *MockNonNamespacedControllerInterfaceMockRecorder[T, TList]) Patch(name, pt, data interface{}, subresources ...interface{}) *gomock.Call

Patch indicates an expected call of Patch.

func (*MockNonNamespacedControllerInterfaceMockRecorder[T, TList]) Update

func (mr *MockNonNamespacedControllerInterfaceMockRecorder[T, TList]) Update(arg0 interface{}) *gomock.Call

Update indicates an expected call of Update.

func (*MockNonNamespacedControllerInterfaceMockRecorder[T, TList]) UpdateStatus

func (mr *MockNonNamespacedControllerInterfaceMockRecorder[T, TList]) UpdateStatus(arg0 interface{}) *gomock.Call

UpdateStatus indicates an expected call of UpdateStatus.

func (*MockNonNamespacedControllerInterfaceMockRecorder[T, TList]) Updater

Updater indicates an expected call of Updater.

func (*MockNonNamespacedControllerInterfaceMockRecorder[T, TList]) Watch

func (mr *MockNonNamespacedControllerInterfaceMockRecorder[T, TList]) Watch(opts interface{}) *gomock.Call

Watch indicates an expected call of Watch.

func (*MockNonNamespacedControllerInterfaceMockRecorder[T, TList]) WithImpersonation

func (mr *MockNonNamespacedControllerInterfaceMockRecorder[T, TList]) WithImpersonation(impersonate interface{}) *gomock.Call

WithImpersonation indicates an expected call of WithImpersonation.

type MockRuntimeMetaObject

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

MockRuntimeMetaObject is a mock of RuntimeMetaObject interface.

func NewMockRuntimeMetaObject

func NewMockRuntimeMetaObject(ctrl *gomock.Controller) *MockRuntimeMetaObject

NewMockRuntimeMetaObject creates a new mock instance.

func (*MockRuntimeMetaObject) DeepCopyObject

func (m *MockRuntimeMetaObject) DeepCopyObject() runtime.Object

DeepCopyObject mocks base method.

func (*MockRuntimeMetaObject) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockRuntimeMetaObject) GetAnnotations

func (m *MockRuntimeMetaObject) GetAnnotations() map[string]string

GetAnnotations mocks base method.

func (*MockRuntimeMetaObject) GetCreationTimestamp

func (m *MockRuntimeMetaObject) GetCreationTimestamp() v1.Time

GetCreationTimestamp mocks base method.

func (*MockRuntimeMetaObject) GetDeletionGracePeriodSeconds

func (m *MockRuntimeMetaObject) GetDeletionGracePeriodSeconds() *int64

GetDeletionGracePeriodSeconds mocks base method.

func (*MockRuntimeMetaObject) GetDeletionTimestamp

func (m *MockRuntimeMetaObject) GetDeletionTimestamp() *v1.Time

GetDeletionTimestamp mocks base method.

func (*MockRuntimeMetaObject) GetFinalizers

func (m *MockRuntimeMetaObject) GetFinalizers() []string

GetFinalizers mocks base method.

func (*MockRuntimeMetaObject) GetGenerateName

func (m *MockRuntimeMetaObject) GetGenerateName() string

GetGenerateName mocks base method.

func (*MockRuntimeMetaObject) GetGeneration

func (m *MockRuntimeMetaObject) GetGeneration() int64

GetGeneration mocks base method.

func (*MockRuntimeMetaObject) GetLabels

func (m *MockRuntimeMetaObject) GetLabels() map[string]string

GetLabels mocks base method.

func (*MockRuntimeMetaObject) GetManagedFields

func (m *MockRuntimeMetaObject) GetManagedFields() []v1.ManagedFieldsEntry

GetManagedFields mocks base method.

func (*MockRuntimeMetaObject) GetName

func (m *MockRuntimeMetaObject) GetName() string

GetName mocks base method.

func (*MockRuntimeMetaObject) GetNamespace

func (m *MockRuntimeMetaObject) GetNamespace() string

GetNamespace mocks base method.

func (*MockRuntimeMetaObject) GetObjectKind

func (m *MockRuntimeMetaObject) GetObjectKind() schema.ObjectKind

GetObjectKind mocks base method.

func (*MockRuntimeMetaObject) GetOwnerReferences

func (m *MockRuntimeMetaObject) GetOwnerReferences() []v1.OwnerReference

GetOwnerReferences mocks base method.

func (*MockRuntimeMetaObject) GetResourceVersion

func (m *MockRuntimeMetaObject) GetResourceVersion() string

GetResourceVersion mocks base method.

func (m *MockRuntimeMetaObject) GetSelfLink() string

GetSelfLink mocks base method.

func (*MockRuntimeMetaObject) GetUID

func (m *MockRuntimeMetaObject) GetUID() types.UID

GetUID mocks base method.

func (*MockRuntimeMetaObject) SetAnnotations

func (m *MockRuntimeMetaObject) SetAnnotations(annotations map[string]string)

SetAnnotations mocks base method.

func (*MockRuntimeMetaObject) SetCreationTimestamp

func (m *MockRuntimeMetaObject) SetCreationTimestamp(timestamp v1.Time)

SetCreationTimestamp mocks base method.

func (*MockRuntimeMetaObject) SetDeletionGracePeriodSeconds

func (m *MockRuntimeMetaObject) SetDeletionGracePeriodSeconds(arg0 *int64)

SetDeletionGracePeriodSeconds mocks base method.

func (*MockRuntimeMetaObject) SetDeletionTimestamp

func (m *MockRuntimeMetaObject) SetDeletionTimestamp(timestamp *v1.Time)

SetDeletionTimestamp mocks base method.

func (*MockRuntimeMetaObject) SetFinalizers

func (m *MockRuntimeMetaObject) SetFinalizers(finalizers []string)

SetFinalizers mocks base method.

func (*MockRuntimeMetaObject) SetGenerateName

func (m *MockRuntimeMetaObject) SetGenerateName(name string)

SetGenerateName mocks base method.

func (*MockRuntimeMetaObject) SetGeneration

func (m *MockRuntimeMetaObject) SetGeneration(generation int64)

SetGeneration mocks base method.

func (*MockRuntimeMetaObject) SetLabels

func (m *MockRuntimeMetaObject) SetLabels(labels map[string]string)

SetLabels mocks base method.

func (*MockRuntimeMetaObject) SetManagedFields

func (m *MockRuntimeMetaObject) SetManagedFields(managedFields []v1.ManagedFieldsEntry)

SetManagedFields mocks base method.

func (*MockRuntimeMetaObject) SetName

func (m *MockRuntimeMetaObject) SetName(name string)

SetName mocks base method.

func (*MockRuntimeMetaObject) SetNamespace

func (m *MockRuntimeMetaObject) SetNamespace(namespace string)

SetNamespace mocks base method.

func (*MockRuntimeMetaObject) SetOwnerReferences

func (m *MockRuntimeMetaObject) SetOwnerReferences(arg0 []v1.OwnerReference)

SetOwnerReferences mocks base method.

func (*MockRuntimeMetaObject) SetResourceVersion

func (m *MockRuntimeMetaObject) SetResourceVersion(version string)

SetResourceVersion mocks base method.

func (m *MockRuntimeMetaObject) SetSelfLink(selfLink string)

SetSelfLink mocks base method.

func (*MockRuntimeMetaObject) SetUID

func (m *MockRuntimeMetaObject) SetUID(uid types.UID)

SetUID mocks base method.

type MockRuntimeMetaObjectMockRecorder

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

MockRuntimeMetaObjectMockRecorder is the mock recorder for MockRuntimeMetaObject.

func (*MockRuntimeMetaObjectMockRecorder) DeepCopyObject

func (mr *MockRuntimeMetaObjectMockRecorder) DeepCopyObject() *gomock.Call

DeepCopyObject indicates an expected call of DeepCopyObject.

func (*MockRuntimeMetaObjectMockRecorder) GetAnnotations

func (mr *MockRuntimeMetaObjectMockRecorder) GetAnnotations() *gomock.Call

GetAnnotations indicates an expected call of GetAnnotations.

func (*MockRuntimeMetaObjectMockRecorder) GetCreationTimestamp

func (mr *MockRuntimeMetaObjectMockRecorder) GetCreationTimestamp() *gomock.Call

GetCreationTimestamp indicates an expected call of GetCreationTimestamp.

func (*MockRuntimeMetaObjectMockRecorder) GetDeletionGracePeriodSeconds

func (mr *MockRuntimeMetaObjectMockRecorder) GetDeletionGracePeriodSeconds() *gomock.Call

GetDeletionGracePeriodSeconds indicates an expected call of GetDeletionGracePeriodSeconds.

func (*MockRuntimeMetaObjectMockRecorder) GetDeletionTimestamp

func (mr *MockRuntimeMetaObjectMockRecorder) GetDeletionTimestamp() *gomock.Call

GetDeletionTimestamp indicates an expected call of GetDeletionTimestamp.

func (*MockRuntimeMetaObjectMockRecorder) GetFinalizers

func (mr *MockRuntimeMetaObjectMockRecorder) GetFinalizers() *gomock.Call

GetFinalizers indicates an expected call of GetFinalizers.

func (*MockRuntimeMetaObjectMockRecorder) GetGenerateName

func (mr *MockRuntimeMetaObjectMockRecorder) GetGenerateName() *gomock.Call

GetGenerateName indicates an expected call of GetGenerateName.

func (*MockRuntimeMetaObjectMockRecorder) GetGeneration

func (mr *MockRuntimeMetaObjectMockRecorder) GetGeneration() *gomock.Call

GetGeneration indicates an expected call of GetGeneration.

func (*MockRuntimeMetaObjectMockRecorder) GetLabels

GetLabels indicates an expected call of GetLabels.

func (*MockRuntimeMetaObjectMockRecorder) GetManagedFields

func (mr *MockRuntimeMetaObjectMockRecorder) GetManagedFields() *gomock.Call

GetManagedFields indicates an expected call of GetManagedFields.

func (*MockRuntimeMetaObjectMockRecorder) GetName

GetName indicates an expected call of GetName.

func (*MockRuntimeMetaObjectMockRecorder) GetNamespace

func (mr *MockRuntimeMetaObjectMockRecorder) GetNamespace() *gomock.Call

GetNamespace indicates an expected call of GetNamespace.

func (*MockRuntimeMetaObjectMockRecorder) GetObjectKind

func (mr *MockRuntimeMetaObjectMockRecorder) GetObjectKind() *gomock.Call

GetObjectKind indicates an expected call of GetObjectKind.

func (*MockRuntimeMetaObjectMockRecorder) GetOwnerReferences

func (mr *MockRuntimeMetaObjectMockRecorder) GetOwnerReferences() *gomock.Call

GetOwnerReferences indicates an expected call of GetOwnerReferences.

func (*MockRuntimeMetaObjectMockRecorder) GetResourceVersion

func (mr *MockRuntimeMetaObjectMockRecorder) GetResourceVersion() *gomock.Call

GetResourceVersion indicates an expected call of GetResourceVersion.

func (mr *MockRuntimeMetaObjectMockRecorder) GetSelfLink() *gomock.Call

GetSelfLink indicates an expected call of GetSelfLink.

func (*MockRuntimeMetaObjectMockRecorder) GetUID

GetUID indicates an expected call of GetUID.

func (*MockRuntimeMetaObjectMockRecorder) SetAnnotations

func (mr *MockRuntimeMetaObjectMockRecorder) SetAnnotations(annotations interface{}) *gomock.Call

SetAnnotations indicates an expected call of SetAnnotations.

func (*MockRuntimeMetaObjectMockRecorder) SetCreationTimestamp

func (mr *MockRuntimeMetaObjectMockRecorder) SetCreationTimestamp(timestamp interface{}) *gomock.Call

SetCreationTimestamp indicates an expected call of SetCreationTimestamp.

func (*MockRuntimeMetaObjectMockRecorder) SetDeletionGracePeriodSeconds

func (mr *MockRuntimeMetaObjectMockRecorder) SetDeletionGracePeriodSeconds(arg0 interface{}) *gomock.Call

SetDeletionGracePeriodSeconds indicates an expected call of SetDeletionGracePeriodSeconds.

func (*MockRuntimeMetaObjectMockRecorder) SetDeletionTimestamp

func (mr *MockRuntimeMetaObjectMockRecorder) SetDeletionTimestamp(timestamp interface{}) *gomock.Call

SetDeletionTimestamp indicates an expected call of SetDeletionTimestamp.

func (*MockRuntimeMetaObjectMockRecorder) SetFinalizers

func (mr *MockRuntimeMetaObjectMockRecorder) SetFinalizers(finalizers interface{}) *gomock.Call

SetFinalizers indicates an expected call of SetFinalizers.

func (*MockRuntimeMetaObjectMockRecorder) SetGenerateName

func (mr *MockRuntimeMetaObjectMockRecorder) SetGenerateName(name interface{}) *gomock.Call

SetGenerateName indicates an expected call of SetGenerateName.

func (*MockRuntimeMetaObjectMockRecorder) SetGeneration

func (mr *MockRuntimeMetaObjectMockRecorder) SetGeneration(generation interface{}) *gomock.Call

SetGeneration indicates an expected call of SetGeneration.

func (*MockRuntimeMetaObjectMockRecorder) SetLabels

func (mr *MockRuntimeMetaObjectMockRecorder) SetLabels(labels interface{}) *gomock.Call

SetLabels indicates an expected call of SetLabels.

func (*MockRuntimeMetaObjectMockRecorder) SetManagedFields

func (mr *MockRuntimeMetaObjectMockRecorder) SetManagedFields(managedFields interface{}) *gomock.Call

SetManagedFields indicates an expected call of SetManagedFields.

func (*MockRuntimeMetaObjectMockRecorder) SetName

func (mr *MockRuntimeMetaObjectMockRecorder) SetName(name interface{}) *gomock.Call

SetName indicates an expected call of SetName.

func (*MockRuntimeMetaObjectMockRecorder) SetNamespace

func (mr *MockRuntimeMetaObjectMockRecorder) SetNamespace(namespace interface{}) *gomock.Call

SetNamespace indicates an expected call of SetNamespace.

func (*MockRuntimeMetaObjectMockRecorder) SetOwnerReferences

func (mr *MockRuntimeMetaObjectMockRecorder) SetOwnerReferences(arg0 interface{}) *gomock.Call

SetOwnerReferences indicates an expected call of SetOwnerReferences.

func (*MockRuntimeMetaObjectMockRecorder) SetResourceVersion

func (mr *MockRuntimeMetaObjectMockRecorder) SetResourceVersion(version interface{}) *gomock.Call

SetResourceVersion indicates an expected call of SetResourceVersion.

func (mr *MockRuntimeMetaObjectMockRecorder) SetSelfLink(selfLink interface{}) *gomock.Call

SetSelfLink indicates an expected call of SetSelfLink.

func (*MockRuntimeMetaObjectMockRecorder) SetUID

func (mr *MockRuntimeMetaObjectMockRecorder) SetUID(uid interface{}) *gomock.Call

SetUID indicates an expected call of SetUID.

Jump to

Keyboard shortcuts

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