fakes

package
v0.0.0-...-4370ff1 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 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 ClusterAuthTokenControllerMock

type ClusterAuthTokenControllerMock struct {
	// AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method.
	AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v3.ClusterAuthTokenHandlerFunc)

	// AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method.
	AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v3.ClusterAuthTokenHandlerFunc)

	// AddFeatureHandlerFunc mocks the AddFeatureHandler method.
	AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v3.ClusterAuthTokenHandlerFunc)

	// AddHandlerFunc mocks the AddHandler method.
	AddHandlerFunc func(ctx context.Context, name string, handler v3.ClusterAuthTokenHandlerFunc)

	// EnqueueFunc mocks the Enqueue method.
	EnqueueFunc func(namespace string, name string)

	// EnqueueAfterFunc mocks the EnqueueAfter method.
	EnqueueAfterFunc func(namespace string, name string, after time.Duration)

	// GenericFunc mocks the Generic method.
	GenericFunc func() controller.GenericController

	// InformerFunc mocks the Informer method.
	InformerFunc func() cache.SharedIndexInformer

	// ListerFunc mocks the Lister method.
	ListerFunc func() v3.ClusterAuthTokenLister

	// StartFunc mocks the Start method.
	StartFunc func(ctx context.Context, threadiness int) error

	// SyncFunc mocks the Sync method.
	SyncFunc func(ctx context.Context) error
	// contains filtered or unexported fields
}

ClusterAuthTokenControllerMock is a mock implementation of ClusterAuthTokenController.

    func TestSomethingThatUsesClusterAuthTokenController(t *testing.T) {

        // make and configure a mocked ClusterAuthTokenController
        mockedClusterAuthTokenController := &ClusterAuthTokenControllerMock{
            AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v3.ClusterAuthTokenHandlerFunc)  {
	               panic("mock out the AddClusterScopedFeatureHandler method")
            },
            AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v3.ClusterAuthTokenHandlerFunc)  {
	               panic("mock out the AddClusterScopedHandler method")
            },
            AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v3.ClusterAuthTokenHandlerFunc)  {
	               panic("mock out the AddFeatureHandler method")
            },
            AddHandlerFunc: func(ctx context.Context, name string, handler v3.ClusterAuthTokenHandlerFunc)  {
	               panic("mock out the AddHandler method")
            },
            EnqueueFunc: func(namespace string, name string)  {
	               panic("mock out the Enqueue method")
            },
            EnqueueAfterFunc: func(namespace string, name string, after time.Duration)  {
	               panic("mock out the EnqueueAfter method")
            },
            GenericFunc: func() controller.GenericController {
	               panic("mock out the Generic method")
            },
            InformerFunc: func() cache.SharedIndexInformer {
	               panic("mock out the Informer method")
            },
            ListerFunc: func() v3.ClusterAuthTokenLister {
	               panic("mock out the Lister method")
            },
            StartFunc: func(ctx context.Context, threadiness int) error {
	               panic("mock out the Start method")
            },
            SyncFunc: func(ctx context.Context) error {
	               panic("mock out the Sync method")
            },
        }

        // use mockedClusterAuthTokenController in code that requires ClusterAuthTokenController
        // and then make assertions.

    }

func (*ClusterAuthTokenControllerMock) AddClusterScopedFeatureHandler

func (mock *ClusterAuthTokenControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, handler v3.ClusterAuthTokenHandlerFunc)

AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.

func (*ClusterAuthTokenControllerMock) AddClusterScopedFeatureHandlerCalls

func (mock *ClusterAuthTokenControllerMock) AddClusterScopedFeatureHandlerCalls() []struct {
	Ctx         context.Context
	Enabled     func() bool
	Name        string
	ClusterName string
	Handler     v3.ClusterAuthTokenHandlerFunc
}

AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:

len(mockedClusterAuthTokenController.AddClusterScopedFeatureHandlerCalls())

func (*ClusterAuthTokenControllerMock) AddClusterScopedHandler

func (mock *ClusterAuthTokenControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v3.ClusterAuthTokenHandlerFunc)

AddClusterScopedHandler calls AddClusterScopedHandlerFunc.

func (*ClusterAuthTokenControllerMock) AddClusterScopedHandlerCalls

func (mock *ClusterAuthTokenControllerMock) AddClusterScopedHandlerCalls() []struct {
	Ctx         context.Context
	Name        string
	ClusterName string
	Handler     v3.ClusterAuthTokenHandlerFunc
}

AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:

len(mockedClusterAuthTokenController.AddClusterScopedHandlerCalls())

func (*ClusterAuthTokenControllerMock) AddFeatureHandler

func (mock *ClusterAuthTokenControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v3.ClusterAuthTokenHandlerFunc)

AddFeatureHandler calls AddFeatureHandlerFunc.

func (*ClusterAuthTokenControllerMock) AddFeatureHandlerCalls

func (mock *ClusterAuthTokenControllerMock) AddFeatureHandlerCalls() []struct {
	Ctx     context.Context
	Enabled func() bool
	Name    string
	Sync    v3.ClusterAuthTokenHandlerFunc
}

AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:

len(mockedClusterAuthTokenController.AddFeatureHandlerCalls())

func (*ClusterAuthTokenControllerMock) AddHandler

AddHandler calls AddHandlerFunc.

func (*ClusterAuthTokenControllerMock) AddHandlerCalls

func (mock *ClusterAuthTokenControllerMock) AddHandlerCalls() []struct {
	Ctx     context.Context
	Name    string
	Handler v3.ClusterAuthTokenHandlerFunc
}

AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:

len(mockedClusterAuthTokenController.AddHandlerCalls())

func (*ClusterAuthTokenControllerMock) Enqueue

func (mock *ClusterAuthTokenControllerMock) Enqueue(namespace string, name string)

Enqueue calls EnqueueFunc.

func (*ClusterAuthTokenControllerMock) EnqueueAfter

func (mock *ClusterAuthTokenControllerMock) EnqueueAfter(namespace string, name string, after time.Duration)

EnqueueAfter calls EnqueueAfterFunc.

func (*ClusterAuthTokenControllerMock) EnqueueAfterCalls

func (mock *ClusterAuthTokenControllerMock) EnqueueAfterCalls() []struct {
	Namespace string
	Name      string
	After     time.Duration
}

EnqueueAfterCalls gets all the calls that were made to EnqueueAfter. Check the length with:

len(mockedClusterAuthTokenController.EnqueueAfterCalls())

func (*ClusterAuthTokenControllerMock) EnqueueCalls

func (mock *ClusterAuthTokenControllerMock) EnqueueCalls() []struct {
	Namespace string
	Name      string
}

EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:

len(mockedClusterAuthTokenController.EnqueueCalls())

func (*ClusterAuthTokenControllerMock) Generic

Generic calls GenericFunc.

func (*ClusterAuthTokenControllerMock) GenericCalls

func (mock *ClusterAuthTokenControllerMock) GenericCalls() []struct {
}

GenericCalls gets all the calls that were made to Generic. Check the length with:

len(mockedClusterAuthTokenController.GenericCalls())

func (*ClusterAuthTokenControllerMock) Informer

Informer calls InformerFunc.

func (*ClusterAuthTokenControllerMock) InformerCalls

func (mock *ClusterAuthTokenControllerMock) InformerCalls() []struct {
}

InformerCalls gets all the calls that were made to Informer. Check the length with:

len(mockedClusterAuthTokenController.InformerCalls())

func (*ClusterAuthTokenControllerMock) Lister

Lister calls ListerFunc.

func (*ClusterAuthTokenControllerMock) ListerCalls

func (mock *ClusterAuthTokenControllerMock) ListerCalls() []struct {
}

ListerCalls gets all the calls that were made to Lister. Check the length with:

len(mockedClusterAuthTokenController.ListerCalls())

func (*ClusterAuthTokenControllerMock) Start

func (mock *ClusterAuthTokenControllerMock) Start(ctx context.Context, threadiness int) error

Start calls StartFunc.

func (*ClusterAuthTokenControllerMock) StartCalls

func (mock *ClusterAuthTokenControllerMock) StartCalls() []struct {
	Ctx         context.Context
	Threadiness int
}

StartCalls gets all the calls that were made to Start. Check the length with:

len(mockedClusterAuthTokenController.StartCalls())

func (*ClusterAuthTokenControllerMock) Sync

Sync calls SyncFunc.

func (*ClusterAuthTokenControllerMock) SyncCalls

func (mock *ClusterAuthTokenControllerMock) SyncCalls() []struct {
	Ctx context.Context
}

SyncCalls gets all the calls that were made to Sync. Check the length with:

len(mockedClusterAuthTokenController.SyncCalls())

type ClusterAuthTokenInterfaceMock

type ClusterAuthTokenInterfaceMock struct {
	// AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method.
	AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v3.ClusterAuthTokenHandlerFunc)

	// AddClusterScopedFeatureLifecycleFunc mocks the AddClusterScopedFeatureLifecycle method.
	AddClusterScopedFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v3.ClusterAuthTokenLifecycle)

	// AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method.
	AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v3.ClusterAuthTokenHandlerFunc)

	// AddClusterScopedLifecycleFunc mocks the AddClusterScopedLifecycle method.
	AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v3.ClusterAuthTokenLifecycle)

	// AddFeatureHandlerFunc mocks the AddFeatureHandler method.
	AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v3.ClusterAuthTokenHandlerFunc)

	// AddFeatureLifecycleFunc mocks the AddFeatureLifecycle method.
	AddFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, lifecycle v3.ClusterAuthTokenLifecycle)

	// AddHandlerFunc mocks the AddHandler method.
	AddHandlerFunc func(ctx context.Context, name string, sync v3.ClusterAuthTokenHandlerFunc)

	// AddLifecycleFunc mocks the AddLifecycle method.
	AddLifecycleFunc func(ctx context.Context, name string, lifecycle v3.ClusterAuthTokenLifecycle)

	// ControllerFunc mocks the Controller method.
	ControllerFunc func() v3.ClusterAuthTokenController

	// CreateFunc mocks the Create method.
	CreateFunc func(in1 *v3.ClusterAuthToken) (*v3.ClusterAuthToken, error)

	// DeleteFunc mocks the Delete method.
	DeleteFunc func(name string, options *v1.DeleteOptions) error

	// DeleteCollectionFunc mocks the DeleteCollection method.
	DeleteCollectionFunc func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error

	// DeleteNamespacedFunc mocks the DeleteNamespaced method.
	DeleteNamespacedFunc func(namespace string, name string, options *v1.DeleteOptions) error

	// GetFunc mocks the Get method.
	GetFunc func(name string, opts v1.GetOptions) (*v3.ClusterAuthToken, error)

	// GetNamespacedFunc mocks the GetNamespaced method.
	GetNamespacedFunc func(namespace string, name string, opts v1.GetOptions) (*v3.ClusterAuthToken, error)

	// ListFunc mocks the List method.
	ListFunc func(opts v1.ListOptions) (*v3.ClusterAuthTokenList, error)

	// ListNamespacedFunc mocks the ListNamespaced method.
	ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.ClusterAuthTokenList, error)

	// ObjectClientFunc mocks the ObjectClient method.
	ObjectClientFunc func() *objectclient.ObjectClient

	// UpdateFunc mocks the Update method.
	UpdateFunc func(in1 *v3.ClusterAuthToken) (*v3.ClusterAuthToken, error)

	// WatchFunc mocks the Watch method.
	WatchFunc func(opts v1.ListOptions) (watch.Interface, error)
	// contains filtered or unexported fields
}

ClusterAuthTokenInterfaceMock is a mock implementation of ClusterAuthTokenInterface.

    func TestSomethingThatUsesClusterAuthTokenInterface(t *testing.T) {

        // make and configure a mocked ClusterAuthTokenInterface
        mockedClusterAuthTokenInterface := &ClusterAuthTokenInterfaceMock{
            AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v3.ClusterAuthTokenHandlerFunc)  {
	               panic("mock out the AddClusterScopedFeatureHandler method")
            },
            AddClusterScopedFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v3.ClusterAuthTokenLifecycle)  {
	               panic("mock out the AddClusterScopedFeatureLifecycle method")
            },
            AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v3.ClusterAuthTokenHandlerFunc)  {
	               panic("mock out the AddClusterScopedHandler method")
            },
            AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v3.ClusterAuthTokenLifecycle)  {
	               panic("mock out the AddClusterScopedLifecycle method")
            },
            AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v3.ClusterAuthTokenHandlerFunc)  {
	               panic("mock out the AddFeatureHandler method")
            },
            AddFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, lifecycle v3.ClusterAuthTokenLifecycle)  {
	               panic("mock out the AddFeatureLifecycle method")
            },
            AddHandlerFunc: func(ctx context.Context, name string, sync v3.ClusterAuthTokenHandlerFunc)  {
	               panic("mock out the AddHandler method")
            },
            AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v3.ClusterAuthTokenLifecycle)  {
	               panic("mock out the AddLifecycle method")
            },
            ControllerFunc: func() v3.ClusterAuthTokenController {
	               panic("mock out the Controller method")
            },
            CreateFunc: func(in1 *v3.ClusterAuthToken) (*v3.ClusterAuthToken, error) {
	               panic("mock out the Create method")
            },
            DeleteFunc: func(name string, options *v1.DeleteOptions) error {
	               panic("mock out the Delete method")
            },
            DeleteCollectionFunc: func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error {
	               panic("mock out the DeleteCollection method")
            },
            DeleteNamespacedFunc: func(namespace string, name string, options *v1.DeleteOptions) error {
	               panic("mock out the DeleteNamespaced method")
            },
            GetFunc: func(name string, opts v1.GetOptions) (*v3.ClusterAuthToken, error) {
	               panic("mock out the Get method")
            },
            GetNamespacedFunc: func(namespace string, name string, opts v1.GetOptions) (*v3.ClusterAuthToken, error) {
	               panic("mock out the GetNamespaced method")
            },
            ListFunc: func(opts v1.ListOptions) (*v3.ClusterAuthTokenList, error) {
	               panic("mock out the List method")
            },
            ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.ClusterAuthTokenList, error) {
	               panic("mock out the ListNamespaced method")
            },
            ObjectClientFunc: func() *objectclient.ObjectClient {
	               panic("mock out the ObjectClient method")
            },
            UpdateFunc: func(in1 *v3.ClusterAuthToken) (*v3.ClusterAuthToken, error) {
	               panic("mock out the Update method")
            },
            WatchFunc: func(opts v1.ListOptions) (watch.Interface, error) {
	               panic("mock out the Watch method")
            },
        }

        // use mockedClusterAuthTokenInterface in code that requires ClusterAuthTokenInterface
        // and then make assertions.

    }

func (*ClusterAuthTokenInterfaceMock) AddClusterScopedFeatureHandler

func (mock *ClusterAuthTokenInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, sync v3.ClusterAuthTokenHandlerFunc)

AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.

func (*ClusterAuthTokenInterfaceMock) AddClusterScopedFeatureHandlerCalls

func (mock *ClusterAuthTokenInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct {
	Ctx         context.Context
	Enabled     func() bool
	Name        string
	ClusterName string
	Sync        v3.ClusterAuthTokenHandlerFunc
}

AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:

len(mockedClusterAuthTokenInterface.AddClusterScopedFeatureHandlerCalls())

func (*ClusterAuthTokenInterfaceMock) AddClusterScopedFeatureLifecycle

func (mock *ClusterAuthTokenInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v3.ClusterAuthTokenLifecycle)

AddClusterScopedFeatureLifecycle calls AddClusterScopedFeatureLifecycleFunc.

func (*ClusterAuthTokenInterfaceMock) AddClusterScopedFeatureLifecycleCalls

func (mock *ClusterAuthTokenInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct {
	Ctx         context.Context
	Enabled     func() bool
	Name        string
	ClusterName string
	Lifecycle   v3.ClusterAuthTokenLifecycle
}

AddClusterScopedFeatureLifecycleCalls gets all the calls that were made to AddClusterScopedFeatureLifecycle. Check the length with:

len(mockedClusterAuthTokenInterface.AddClusterScopedFeatureLifecycleCalls())

func (*ClusterAuthTokenInterfaceMock) AddClusterScopedHandler

func (mock *ClusterAuthTokenInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v3.ClusterAuthTokenHandlerFunc)

AddClusterScopedHandler calls AddClusterScopedHandlerFunc.

func (*ClusterAuthTokenInterfaceMock) AddClusterScopedHandlerCalls

func (mock *ClusterAuthTokenInterfaceMock) AddClusterScopedHandlerCalls() []struct {
	Ctx         context.Context
	Name        string
	ClusterName string
	Sync        v3.ClusterAuthTokenHandlerFunc
}

AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:

len(mockedClusterAuthTokenInterface.AddClusterScopedHandlerCalls())

func (*ClusterAuthTokenInterfaceMock) AddClusterScopedLifecycle

func (mock *ClusterAuthTokenInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v3.ClusterAuthTokenLifecycle)

AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc.

func (*ClusterAuthTokenInterfaceMock) AddClusterScopedLifecycleCalls

func (mock *ClusterAuthTokenInterfaceMock) AddClusterScopedLifecycleCalls() []struct {
	Ctx         context.Context
	Name        string
	ClusterName string
	Lifecycle   v3.ClusterAuthTokenLifecycle
}

AddClusterScopedLifecycleCalls gets all the calls that were made to AddClusterScopedLifecycle. Check the length with:

len(mockedClusterAuthTokenInterface.AddClusterScopedLifecycleCalls())

func (*ClusterAuthTokenInterfaceMock) AddFeatureHandler

func (mock *ClusterAuthTokenInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v3.ClusterAuthTokenHandlerFunc)

AddFeatureHandler calls AddFeatureHandlerFunc.

func (*ClusterAuthTokenInterfaceMock) AddFeatureHandlerCalls

func (mock *ClusterAuthTokenInterfaceMock) AddFeatureHandlerCalls() []struct {
	Ctx     context.Context
	Enabled func() bool
	Name    string
	Sync    v3.ClusterAuthTokenHandlerFunc
}

AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:

len(mockedClusterAuthTokenInterface.AddFeatureHandlerCalls())

func (*ClusterAuthTokenInterfaceMock) AddFeatureLifecycle

func (mock *ClusterAuthTokenInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, lifecycle v3.ClusterAuthTokenLifecycle)

AddFeatureLifecycle calls AddFeatureLifecycleFunc.

func (*ClusterAuthTokenInterfaceMock) AddFeatureLifecycleCalls

func (mock *ClusterAuthTokenInterfaceMock) AddFeatureLifecycleCalls() []struct {
	Ctx       context.Context
	Enabled   func() bool
	Name      string
	Lifecycle v3.ClusterAuthTokenLifecycle
}

AddFeatureLifecycleCalls gets all the calls that were made to AddFeatureLifecycle. Check the length with:

len(mockedClusterAuthTokenInterface.AddFeatureLifecycleCalls())

func (*ClusterAuthTokenInterfaceMock) AddHandler

AddHandler calls AddHandlerFunc.

func (*ClusterAuthTokenInterfaceMock) AddHandlerCalls

func (mock *ClusterAuthTokenInterfaceMock) AddHandlerCalls() []struct {
	Ctx  context.Context
	Name string
	Sync v3.ClusterAuthTokenHandlerFunc
}

AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:

len(mockedClusterAuthTokenInterface.AddHandlerCalls())

func (*ClusterAuthTokenInterfaceMock) AddLifecycle

func (mock *ClusterAuthTokenInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v3.ClusterAuthTokenLifecycle)

AddLifecycle calls AddLifecycleFunc.

func (*ClusterAuthTokenInterfaceMock) AddLifecycleCalls

func (mock *ClusterAuthTokenInterfaceMock) AddLifecycleCalls() []struct {
	Ctx       context.Context
	Name      string
	Lifecycle v3.ClusterAuthTokenLifecycle
}

AddLifecycleCalls gets all the calls that were made to AddLifecycle. Check the length with:

len(mockedClusterAuthTokenInterface.AddLifecycleCalls())

func (*ClusterAuthTokenInterfaceMock) Controller

Controller calls ControllerFunc.

func (*ClusterAuthTokenInterfaceMock) ControllerCalls

func (mock *ClusterAuthTokenInterfaceMock) ControllerCalls() []struct {
}

ControllerCalls gets all the calls that were made to Controller. Check the length with:

len(mockedClusterAuthTokenInterface.ControllerCalls())

func (*ClusterAuthTokenInterfaceMock) Create

Create calls CreateFunc.

func (*ClusterAuthTokenInterfaceMock) CreateCalls

func (mock *ClusterAuthTokenInterfaceMock) CreateCalls() []struct {
	In1 *v3.ClusterAuthToken
}

CreateCalls gets all the calls that were made to Create. Check the length with:

len(mockedClusterAuthTokenInterface.CreateCalls())

func (*ClusterAuthTokenInterfaceMock) Delete

func (mock *ClusterAuthTokenInterfaceMock) Delete(name string, options *v1.DeleteOptions) error

Delete calls DeleteFunc.

func (*ClusterAuthTokenInterfaceMock) DeleteCalls

func (mock *ClusterAuthTokenInterfaceMock) DeleteCalls() []struct {
	Name    string
	Options *v1.DeleteOptions
}

DeleteCalls gets all the calls that were made to Delete. Check the length with:

len(mockedClusterAuthTokenInterface.DeleteCalls())

func (*ClusterAuthTokenInterfaceMock) DeleteCollection

func (mock *ClusterAuthTokenInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection calls DeleteCollectionFunc.

func (*ClusterAuthTokenInterfaceMock) DeleteCollectionCalls

func (mock *ClusterAuthTokenInterfaceMock) DeleteCollectionCalls() []struct {
	DeleteOpts *v1.DeleteOptions
	ListOpts   v1.ListOptions
}

DeleteCollectionCalls gets all the calls that were made to DeleteCollection. Check the length with:

len(mockedClusterAuthTokenInterface.DeleteCollectionCalls())

func (*ClusterAuthTokenInterfaceMock) DeleteNamespaced

func (mock *ClusterAuthTokenInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error

DeleteNamespaced calls DeleteNamespacedFunc.

func (*ClusterAuthTokenInterfaceMock) DeleteNamespacedCalls

func (mock *ClusterAuthTokenInterfaceMock) DeleteNamespacedCalls() []struct {
	Namespace string
	Name      string
	Options   *v1.DeleteOptions
}

DeleteNamespacedCalls gets all the calls that were made to DeleteNamespaced. Check the length with:

len(mockedClusterAuthTokenInterface.DeleteNamespacedCalls())

func (*ClusterAuthTokenInterfaceMock) Get

Get calls GetFunc.

func (*ClusterAuthTokenInterfaceMock) GetCalls

func (mock *ClusterAuthTokenInterfaceMock) GetCalls() []struct {
	Name string
	Opts v1.GetOptions
}

GetCalls gets all the calls that were made to Get. Check the length with:

len(mockedClusterAuthTokenInterface.GetCalls())

func (*ClusterAuthTokenInterfaceMock) GetNamespaced

func (mock *ClusterAuthTokenInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v3.ClusterAuthToken, error)

GetNamespaced calls GetNamespacedFunc.

func (*ClusterAuthTokenInterfaceMock) GetNamespacedCalls

func (mock *ClusterAuthTokenInterfaceMock) GetNamespacedCalls() []struct {
	Namespace string
	Name      string
	Opts      v1.GetOptions
}

GetNamespacedCalls gets all the calls that were made to GetNamespaced. Check the length with:

len(mockedClusterAuthTokenInterface.GetNamespacedCalls())

func (*ClusterAuthTokenInterfaceMock) List

List calls ListFunc.

func (*ClusterAuthTokenInterfaceMock) ListCalls

func (mock *ClusterAuthTokenInterfaceMock) ListCalls() []struct {
	Opts v1.ListOptions
}

ListCalls gets all the calls that were made to List. Check the length with:

len(mockedClusterAuthTokenInterface.ListCalls())

func (*ClusterAuthTokenInterfaceMock) ListNamespaced

func (mock *ClusterAuthTokenInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.ClusterAuthTokenList, error)

ListNamespaced calls ListNamespacedFunc.

func (*ClusterAuthTokenInterfaceMock) ListNamespacedCalls

func (mock *ClusterAuthTokenInterfaceMock) ListNamespacedCalls() []struct {
	Namespace string
	Opts      v1.ListOptions
}

ListNamespacedCalls gets all the calls that were made to ListNamespaced. Check the length with:

len(mockedClusterAuthTokenInterface.ListNamespacedCalls())

func (*ClusterAuthTokenInterfaceMock) ObjectClient

ObjectClient calls ObjectClientFunc.

func (*ClusterAuthTokenInterfaceMock) ObjectClientCalls

func (mock *ClusterAuthTokenInterfaceMock) ObjectClientCalls() []struct {
}

ObjectClientCalls gets all the calls that were made to ObjectClient. Check the length with:

len(mockedClusterAuthTokenInterface.ObjectClientCalls())

func (*ClusterAuthTokenInterfaceMock) Update

Update calls UpdateFunc.

func (*ClusterAuthTokenInterfaceMock) UpdateCalls

func (mock *ClusterAuthTokenInterfaceMock) UpdateCalls() []struct {
	In1 *v3.ClusterAuthToken
}

UpdateCalls gets all the calls that were made to Update. Check the length with:

len(mockedClusterAuthTokenInterface.UpdateCalls())

func (*ClusterAuthTokenInterfaceMock) Watch

Watch calls WatchFunc.

func (*ClusterAuthTokenInterfaceMock) WatchCalls

func (mock *ClusterAuthTokenInterfaceMock) WatchCalls() []struct {
	Opts v1.ListOptions
}

WatchCalls gets all the calls that were made to Watch. Check the length with:

len(mockedClusterAuthTokenInterface.WatchCalls())

type ClusterAuthTokenListerMock

type ClusterAuthTokenListerMock struct {
	// GetFunc mocks the Get method.
	GetFunc func(namespace string, name string) (*v3.ClusterAuthToken, error)

	// ListFunc mocks the List method.
	ListFunc func(namespace string, selector labels.Selector) ([]*v3.ClusterAuthToken, error)
	// contains filtered or unexported fields
}

ClusterAuthTokenListerMock is a mock implementation of ClusterAuthTokenLister.

    func TestSomethingThatUsesClusterAuthTokenLister(t *testing.T) {

        // make and configure a mocked ClusterAuthTokenLister
        mockedClusterAuthTokenLister := &ClusterAuthTokenListerMock{
            GetFunc: func(namespace string, name string) (*v3.ClusterAuthToken, error) {
	               panic("mock out the Get method")
            },
            ListFunc: func(namespace string, selector labels.Selector) ([]*v3.ClusterAuthToken, error) {
	               panic("mock out the List method")
            },
        }

        // use mockedClusterAuthTokenLister in code that requires ClusterAuthTokenLister
        // and then make assertions.

    }

func (*ClusterAuthTokenListerMock) Get

func (mock *ClusterAuthTokenListerMock) Get(namespace string, name string) (*v3.ClusterAuthToken, error)

Get calls GetFunc.

func (*ClusterAuthTokenListerMock) GetCalls

func (mock *ClusterAuthTokenListerMock) GetCalls() []struct {
	Namespace string
	Name      string
}

GetCalls gets all the calls that were made to Get. Check the length with:

len(mockedClusterAuthTokenLister.GetCalls())

func (*ClusterAuthTokenListerMock) List

func (mock *ClusterAuthTokenListerMock) List(namespace string, selector labels.Selector) ([]*v3.ClusterAuthToken, error)

List calls ListFunc.

func (*ClusterAuthTokenListerMock) ListCalls

func (mock *ClusterAuthTokenListerMock) ListCalls() []struct {
	Namespace string
	Selector  labels.Selector
}

ListCalls gets all the calls that were made to List. Check the length with:

len(mockedClusterAuthTokenLister.ListCalls())

type ClusterAuthTokensGetterMock

type ClusterAuthTokensGetterMock struct {
	// ClusterAuthTokensFunc mocks the ClusterAuthTokens method.
	ClusterAuthTokensFunc func(namespace string) v3.ClusterAuthTokenInterface
	// contains filtered or unexported fields
}

ClusterAuthTokensGetterMock is a mock implementation of ClusterAuthTokensGetter.

    func TestSomethingThatUsesClusterAuthTokensGetter(t *testing.T) {

        // make and configure a mocked ClusterAuthTokensGetter
        mockedClusterAuthTokensGetter := &ClusterAuthTokensGetterMock{
            ClusterAuthTokensFunc: func(namespace string) v3.ClusterAuthTokenInterface {
	               panic("mock out the ClusterAuthTokens method")
            },
        }

        // use mockedClusterAuthTokensGetter in code that requires ClusterAuthTokensGetter
        // and then make assertions.

    }

func (*ClusterAuthTokensGetterMock) ClusterAuthTokens

func (mock *ClusterAuthTokensGetterMock) ClusterAuthTokens(namespace string) v3.ClusterAuthTokenInterface

ClusterAuthTokens calls ClusterAuthTokensFunc.

func (*ClusterAuthTokensGetterMock) ClusterAuthTokensCalls

func (mock *ClusterAuthTokensGetterMock) ClusterAuthTokensCalls() []struct {
	Namespace string
}

ClusterAuthTokensCalls gets all the calls that were made to ClusterAuthTokens. Check the length with:

len(mockedClusterAuthTokensGetter.ClusterAuthTokensCalls())

type ClusterUserAttributeControllerMock

type ClusterUserAttributeControllerMock struct {
	// AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method.
	AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v3.ClusterUserAttributeHandlerFunc)

	// AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method.
	AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v3.ClusterUserAttributeHandlerFunc)

	// AddFeatureHandlerFunc mocks the AddFeatureHandler method.
	AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v3.ClusterUserAttributeHandlerFunc)

	// AddHandlerFunc mocks the AddHandler method.
	AddHandlerFunc func(ctx context.Context, name string, handler v3.ClusterUserAttributeHandlerFunc)

	// EnqueueFunc mocks the Enqueue method.
	EnqueueFunc func(namespace string, name string)

	// EnqueueAfterFunc mocks the EnqueueAfter method.
	EnqueueAfterFunc func(namespace string, name string, after time.Duration)

	// GenericFunc mocks the Generic method.
	GenericFunc func() controller.GenericController

	// InformerFunc mocks the Informer method.
	InformerFunc func() cache.SharedIndexInformer

	// ListerFunc mocks the Lister method.
	ListerFunc func() v3.ClusterUserAttributeLister

	// StartFunc mocks the Start method.
	StartFunc func(ctx context.Context, threadiness int) error

	// SyncFunc mocks the Sync method.
	SyncFunc func(ctx context.Context) error
	// contains filtered or unexported fields
}

ClusterUserAttributeControllerMock is a mock implementation of ClusterUserAttributeController.

    func TestSomethingThatUsesClusterUserAttributeController(t *testing.T) {

        // make and configure a mocked ClusterUserAttributeController
        mockedClusterUserAttributeController := &ClusterUserAttributeControllerMock{
            AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v3.ClusterUserAttributeHandlerFunc)  {
	               panic("mock out the AddClusterScopedFeatureHandler method")
            },
            AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v3.ClusterUserAttributeHandlerFunc)  {
	               panic("mock out the AddClusterScopedHandler method")
            },
            AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v3.ClusterUserAttributeHandlerFunc)  {
	               panic("mock out the AddFeatureHandler method")
            },
            AddHandlerFunc: func(ctx context.Context, name string, handler v3.ClusterUserAttributeHandlerFunc)  {
	               panic("mock out the AddHandler method")
            },
            EnqueueFunc: func(namespace string, name string)  {
	               panic("mock out the Enqueue method")
            },
            EnqueueAfterFunc: func(namespace string, name string, after time.Duration)  {
	               panic("mock out the EnqueueAfter method")
            },
            GenericFunc: func() controller.GenericController {
	               panic("mock out the Generic method")
            },
            InformerFunc: func() cache.SharedIndexInformer {
	               panic("mock out the Informer method")
            },
            ListerFunc: func() v3.ClusterUserAttributeLister {
	               panic("mock out the Lister method")
            },
            StartFunc: func(ctx context.Context, threadiness int) error {
	               panic("mock out the Start method")
            },
            SyncFunc: func(ctx context.Context) error {
	               panic("mock out the Sync method")
            },
        }

        // use mockedClusterUserAttributeController in code that requires ClusterUserAttributeController
        // and then make assertions.

    }

func (*ClusterUserAttributeControllerMock) AddClusterScopedFeatureHandler

func (mock *ClusterUserAttributeControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, handler v3.ClusterUserAttributeHandlerFunc)

AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.

func (*ClusterUserAttributeControllerMock) AddClusterScopedFeatureHandlerCalls

func (mock *ClusterUserAttributeControllerMock) AddClusterScopedFeatureHandlerCalls() []struct {
	Ctx         context.Context
	Enabled     func() bool
	Name        string
	ClusterName string
	Handler     v3.ClusterUserAttributeHandlerFunc
}

AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:

len(mockedClusterUserAttributeController.AddClusterScopedFeatureHandlerCalls())

func (*ClusterUserAttributeControllerMock) AddClusterScopedHandler

func (mock *ClusterUserAttributeControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v3.ClusterUserAttributeHandlerFunc)

AddClusterScopedHandler calls AddClusterScopedHandlerFunc.

func (*ClusterUserAttributeControllerMock) AddClusterScopedHandlerCalls

func (mock *ClusterUserAttributeControllerMock) AddClusterScopedHandlerCalls() []struct {
	Ctx         context.Context
	Name        string
	ClusterName string
	Handler     v3.ClusterUserAttributeHandlerFunc
}

AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:

len(mockedClusterUserAttributeController.AddClusterScopedHandlerCalls())

func (*ClusterUserAttributeControllerMock) AddFeatureHandler

func (mock *ClusterUserAttributeControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v3.ClusterUserAttributeHandlerFunc)

AddFeatureHandler calls AddFeatureHandlerFunc.

func (*ClusterUserAttributeControllerMock) AddFeatureHandlerCalls

func (mock *ClusterUserAttributeControllerMock) AddFeatureHandlerCalls() []struct {
	Ctx     context.Context
	Enabled func() bool
	Name    string
	Sync    v3.ClusterUserAttributeHandlerFunc
}

AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:

len(mockedClusterUserAttributeController.AddFeatureHandlerCalls())

func (*ClusterUserAttributeControllerMock) AddHandler

AddHandler calls AddHandlerFunc.

func (*ClusterUserAttributeControllerMock) AddHandlerCalls

func (mock *ClusterUserAttributeControllerMock) AddHandlerCalls() []struct {
	Ctx     context.Context
	Name    string
	Handler v3.ClusterUserAttributeHandlerFunc
}

AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:

len(mockedClusterUserAttributeController.AddHandlerCalls())

func (*ClusterUserAttributeControllerMock) Enqueue

func (mock *ClusterUserAttributeControllerMock) Enqueue(namespace string, name string)

Enqueue calls EnqueueFunc.

func (*ClusterUserAttributeControllerMock) EnqueueAfter

func (mock *ClusterUserAttributeControllerMock) EnqueueAfter(namespace string, name string, after time.Duration)

EnqueueAfter calls EnqueueAfterFunc.

func (*ClusterUserAttributeControllerMock) EnqueueAfterCalls

func (mock *ClusterUserAttributeControllerMock) EnqueueAfterCalls() []struct {
	Namespace string
	Name      string
	After     time.Duration
}

EnqueueAfterCalls gets all the calls that were made to EnqueueAfter. Check the length with:

len(mockedClusterUserAttributeController.EnqueueAfterCalls())

func (*ClusterUserAttributeControllerMock) EnqueueCalls

func (mock *ClusterUserAttributeControllerMock) EnqueueCalls() []struct {
	Namespace string
	Name      string
}

EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:

len(mockedClusterUserAttributeController.EnqueueCalls())

func (*ClusterUserAttributeControllerMock) Generic

Generic calls GenericFunc.

func (*ClusterUserAttributeControllerMock) GenericCalls

func (mock *ClusterUserAttributeControllerMock) GenericCalls() []struct {
}

GenericCalls gets all the calls that were made to Generic. Check the length with:

len(mockedClusterUserAttributeController.GenericCalls())

func (*ClusterUserAttributeControllerMock) Informer

Informer calls InformerFunc.

func (*ClusterUserAttributeControllerMock) InformerCalls

func (mock *ClusterUserAttributeControllerMock) InformerCalls() []struct {
}

InformerCalls gets all the calls that were made to Informer. Check the length with:

len(mockedClusterUserAttributeController.InformerCalls())

func (*ClusterUserAttributeControllerMock) Lister

Lister calls ListerFunc.

func (*ClusterUserAttributeControllerMock) ListerCalls

func (mock *ClusterUserAttributeControllerMock) ListerCalls() []struct {
}

ListerCalls gets all the calls that were made to Lister. Check the length with:

len(mockedClusterUserAttributeController.ListerCalls())

func (*ClusterUserAttributeControllerMock) Start

func (mock *ClusterUserAttributeControllerMock) Start(ctx context.Context, threadiness int) error

Start calls StartFunc.

func (*ClusterUserAttributeControllerMock) StartCalls

func (mock *ClusterUserAttributeControllerMock) StartCalls() []struct {
	Ctx         context.Context
	Threadiness int
}

StartCalls gets all the calls that were made to Start. Check the length with:

len(mockedClusterUserAttributeController.StartCalls())

func (*ClusterUserAttributeControllerMock) Sync

Sync calls SyncFunc.

func (*ClusterUserAttributeControllerMock) SyncCalls

func (mock *ClusterUserAttributeControllerMock) SyncCalls() []struct {
	Ctx context.Context
}

SyncCalls gets all the calls that were made to Sync. Check the length with:

len(mockedClusterUserAttributeController.SyncCalls())

type ClusterUserAttributeInterfaceMock

type ClusterUserAttributeInterfaceMock struct {
	// AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method.
	AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v3.ClusterUserAttributeHandlerFunc)

	// AddClusterScopedFeatureLifecycleFunc mocks the AddClusterScopedFeatureLifecycle method.
	AddClusterScopedFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v3.ClusterUserAttributeLifecycle)

	// AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method.
	AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v3.ClusterUserAttributeHandlerFunc)

	// AddClusterScopedLifecycleFunc mocks the AddClusterScopedLifecycle method.
	AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v3.ClusterUserAttributeLifecycle)

	// AddFeatureHandlerFunc mocks the AddFeatureHandler method.
	AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v3.ClusterUserAttributeHandlerFunc)

	// AddFeatureLifecycleFunc mocks the AddFeatureLifecycle method.
	AddFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, lifecycle v3.ClusterUserAttributeLifecycle)

	// AddHandlerFunc mocks the AddHandler method.
	AddHandlerFunc func(ctx context.Context, name string, sync v3.ClusterUserAttributeHandlerFunc)

	// AddLifecycleFunc mocks the AddLifecycle method.
	AddLifecycleFunc func(ctx context.Context, name string, lifecycle v3.ClusterUserAttributeLifecycle)

	// ControllerFunc mocks the Controller method.
	ControllerFunc func() v3.ClusterUserAttributeController

	// CreateFunc mocks the Create method.
	CreateFunc func(in1 *v3.ClusterUserAttribute) (*v3.ClusterUserAttribute, error)

	// DeleteFunc mocks the Delete method.
	DeleteFunc func(name string, options *v1.DeleteOptions) error

	// DeleteCollectionFunc mocks the DeleteCollection method.
	DeleteCollectionFunc func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error

	// DeleteNamespacedFunc mocks the DeleteNamespaced method.
	DeleteNamespacedFunc func(namespace string, name string, options *v1.DeleteOptions) error

	// GetFunc mocks the Get method.
	GetFunc func(name string, opts v1.GetOptions) (*v3.ClusterUserAttribute, error)

	// GetNamespacedFunc mocks the GetNamespaced method.
	GetNamespacedFunc func(namespace string, name string, opts v1.GetOptions) (*v3.ClusterUserAttribute, error)

	// ListFunc mocks the List method.
	ListFunc func(opts v1.ListOptions) (*v3.ClusterUserAttributeList, error)

	// ListNamespacedFunc mocks the ListNamespaced method.
	ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.ClusterUserAttributeList, error)

	// ObjectClientFunc mocks the ObjectClient method.
	ObjectClientFunc func() *objectclient.ObjectClient

	// UpdateFunc mocks the Update method.
	UpdateFunc func(in1 *v3.ClusterUserAttribute) (*v3.ClusterUserAttribute, error)

	// WatchFunc mocks the Watch method.
	WatchFunc func(opts v1.ListOptions) (watch.Interface, error)
	// contains filtered or unexported fields
}

ClusterUserAttributeInterfaceMock is a mock implementation of ClusterUserAttributeInterface.

    func TestSomethingThatUsesClusterUserAttributeInterface(t *testing.T) {

        // make and configure a mocked ClusterUserAttributeInterface
        mockedClusterUserAttributeInterface := &ClusterUserAttributeInterfaceMock{
            AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v3.ClusterUserAttributeHandlerFunc)  {
	               panic("mock out the AddClusterScopedFeatureHandler method")
            },
            AddClusterScopedFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v3.ClusterUserAttributeLifecycle)  {
	               panic("mock out the AddClusterScopedFeatureLifecycle method")
            },
            AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v3.ClusterUserAttributeHandlerFunc)  {
	               panic("mock out the AddClusterScopedHandler method")
            },
            AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v3.ClusterUserAttributeLifecycle)  {
	               panic("mock out the AddClusterScopedLifecycle method")
            },
            AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v3.ClusterUserAttributeHandlerFunc)  {
	               panic("mock out the AddFeatureHandler method")
            },
            AddFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, lifecycle v3.ClusterUserAttributeLifecycle)  {
	               panic("mock out the AddFeatureLifecycle method")
            },
            AddHandlerFunc: func(ctx context.Context, name string, sync v3.ClusterUserAttributeHandlerFunc)  {
	               panic("mock out the AddHandler method")
            },
            AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v3.ClusterUserAttributeLifecycle)  {
	               panic("mock out the AddLifecycle method")
            },
            ControllerFunc: func() v3.ClusterUserAttributeController {
	               panic("mock out the Controller method")
            },
            CreateFunc: func(in1 *v3.ClusterUserAttribute) (*v3.ClusterUserAttribute, error) {
	               panic("mock out the Create method")
            },
            DeleteFunc: func(name string, options *v1.DeleteOptions) error {
	               panic("mock out the Delete method")
            },
            DeleteCollectionFunc: func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error {
	               panic("mock out the DeleteCollection method")
            },
            DeleteNamespacedFunc: func(namespace string, name string, options *v1.DeleteOptions) error {
	               panic("mock out the DeleteNamespaced method")
            },
            GetFunc: func(name string, opts v1.GetOptions) (*v3.ClusterUserAttribute, error) {
	               panic("mock out the Get method")
            },
            GetNamespacedFunc: func(namespace string, name string, opts v1.GetOptions) (*v3.ClusterUserAttribute, error) {
	               panic("mock out the GetNamespaced method")
            },
            ListFunc: func(opts v1.ListOptions) (*v3.ClusterUserAttributeList, error) {
	               panic("mock out the List method")
            },
            ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.ClusterUserAttributeList, error) {
	               panic("mock out the ListNamespaced method")
            },
            ObjectClientFunc: func() *objectclient.ObjectClient {
	               panic("mock out the ObjectClient method")
            },
            UpdateFunc: func(in1 *v3.ClusterUserAttribute) (*v3.ClusterUserAttribute, error) {
	               panic("mock out the Update method")
            },
            WatchFunc: func(opts v1.ListOptions) (watch.Interface, error) {
	               panic("mock out the Watch method")
            },
        }

        // use mockedClusterUserAttributeInterface in code that requires ClusterUserAttributeInterface
        // and then make assertions.

    }

func (*ClusterUserAttributeInterfaceMock) AddClusterScopedFeatureHandler

func (mock *ClusterUserAttributeInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, sync v3.ClusterUserAttributeHandlerFunc)

AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.

func (*ClusterUserAttributeInterfaceMock) AddClusterScopedFeatureHandlerCalls

func (mock *ClusterUserAttributeInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct {
	Ctx         context.Context
	Enabled     func() bool
	Name        string
	ClusterName string
	Sync        v3.ClusterUserAttributeHandlerFunc
}

AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:

len(mockedClusterUserAttributeInterface.AddClusterScopedFeatureHandlerCalls())

func (*ClusterUserAttributeInterfaceMock) AddClusterScopedFeatureLifecycle

func (mock *ClusterUserAttributeInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v3.ClusterUserAttributeLifecycle)

AddClusterScopedFeatureLifecycle calls AddClusterScopedFeatureLifecycleFunc.

func (*ClusterUserAttributeInterfaceMock) AddClusterScopedFeatureLifecycleCalls

func (mock *ClusterUserAttributeInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct {
	Ctx         context.Context
	Enabled     func() bool
	Name        string
	ClusterName string
	Lifecycle   v3.ClusterUserAttributeLifecycle
}

AddClusterScopedFeatureLifecycleCalls gets all the calls that were made to AddClusterScopedFeatureLifecycle. Check the length with:

len(mockedClusterUserAttributeInterface.AddClusterScopedFeatureLifecycleCalls())

func (*ClusterUserAttributeInterfaceMock) AddClusterScopedHandler

func (mock *ClusterUserAttributeInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v3.ClusterUserAttributeHandlerFunc)

AddClusterScopedHandler calls AddClusterScopedHandlerFunc.

func (*ClusterUserAttributeInterfaceMock) AddClusterScopedHandlerCalls

func (mock *ClusterUserAttributeInterfaceMock) AddClusterScopedHandlerCalls() []struct {
	Ctx         context.Context
	Name        string
	ClusterName string
	Sync        v3.ClusterUserAttributeHandlerFunc
}

AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:

len(mockedClusterUserAttributeInterface.AddClusterScopedHandlerCalls())

func (*ClusterUserAttributeInterfaceMock) AddClusterScopedLifecycle

func (mock *ClusterUserAttributeInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v3.ClusterUserAttributeLifecycle)

AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc.

func (*ClusterUserAttributeInterfaceMock) AddClusterScopedLifecycleCalls

func (mock *ClusterUserAttributeInterfaceMock) AddClusterScopedLifecycleCalls() []struct {
	Ctx         context.Context
	Name        string
	ClusterName string
	Lifecycle   v3.ClusterUserAttributeLifecycle
}

AddClusterScopedLifecycleCalls gets all the calls that were made to AddClusterScopedLifecycle. Check the length with:

len(mockedClusterUserAttributeInterface.AddClusterScopedLifecycleCalls())

func (*ClusterUserAttributeInterfaceMock) AddFeatureHandler

func (mock *ClusterUserAttributeInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v3.ClusterUserAttributeHandlerFunc)

AddFeatureHandler calls AddFeatureHandlerFunc.

func (*ClusterUserAttributeInterfaceMock) AddFeatureHandlerCalls

func (mock *ClusterUserAttributeInterfaceMock) AddFeatureHandlerCalls() []struct {
	Ctx     context.Context
	Enabled func() bool
	Name    string
	Sync    v3.ClusterUserAttributeHandlerFunc
}

AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:

len(mockedClusterUserAttributeInterface.AddFeatureHandlerCalls())

func (*ClusterUserAttributeInterfaceMock) AddFeatureLifecycle

func (mock *ClusterUserAttributeInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, lifecycle v3.ClusterUserAttributeLifecycle)

AddFeatureLifecycle calls AddFeatureLifecycleFunc.

func (*ClusterUserAttributeInterfaceMock) AddFeatureLifecycleCalls

func (mock *ClusterUserAttributeInterfaceMock) AddFeatureLifecycleCalls() []struct {
	Ctx       context.Context
	Enabled   func() bool
	Name      string
	Lifecycle v3.ClusterUserAttributeLifecycle
}

AddFeatureLifecycleCalls gets all the calls that were made to AddFeatureLifecycle. Check the length with:

len(mockedClusterUserAttributeInterface.AddFeatureLifecycleCalls())

func (*ClusterUserAttributeInterfaceMock) AddHandler

AddHandler calls AddHandlerFunc.

func (*ClusterUserAttributeInterfaceMock) AddHandlerCalls

func (mock *ClusterUserAttributeInterfaceMock) AddHandlerCalls() []struct {
	Ctx  context.Context
	Name string
	Sync v3.ClusterUserAttributeHandlerFunc
}

AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:

len(mockedClusterUserAttributeInterface.AddHandlerCalls())

func (*ClusterUserAttributeInterfaceMock) AddLifecycle

AddLifecycle calls AddLifecycleFunc.

func (*ClusterUserAttributeInterfaceMock) AddLifecycleCalls

func (mock *ClusterUserAttributeInterfaceMock) AddLifecycleCalls() []struct {
	Ctx       context.Context
	Name      string
	Lifecycle v3.ClusterUserAttributeLifecycle
}

AddLifecycleCalls gets all the calls that were made to AddLifecycle. Check the length with:

len(mockedClusterUserAttributeInterface.AddLifecycleCalls())

func (*ClusterUserAttributeInterfaceMock) Controller

Controller calls ControllerFunc.

func (*ClusterUserAttributeInterfaceMock) ControllerCalls

func (mock *ClusterUserAttributeInterfaceMock) ControllerCalls() []struct {
}

ControllerCalls gets all the calls that were made to Controller. Check the length with:

len(mockedClusterUserAttributeInterface.ControllerCalls())

func (*ClusterUserAttributeInterfaceMock) Create

Create calls CreateFunc.

func (*ClusterUserAttributeInterfaceMock) CreateCalls

func (mock *ClusterUserAttributeInterfaceMock) CreateCalls() []struct {
	In1 *v3.ClusterUserAttribute
}

CreateCalls gets all the calls that were made to Create. Check the length with:

len(mockedClusterUserAttributeInterface.CreateCalls())

func (*ClusterUserAttributeInterfaceMock) Delete

func (mock *ClusterUserAttributeInterfaceMock) Delete(name string, options *v1.DeleteOptions) error

Delete calls DeleteFunc.

func (*ClusterUserAttributeInterfaceMock) DeleteCalls

func (mock *ClusterUserAttributeInterfaceMock) DeleteCalls() []struct {
	Name    string
	Options *v1.DeleteOptions
}

DeleteCalls gets all the calls that were made to Delete. Check the length with:

len(mockedClusterUserAttributeInterface.DeleteCalls())

func (*ClusterUserAttributeInterfaceMock) DeleteCollection

func (mock *ClusterUserAttributeInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection calls DeleteCollectionFunc.

func (*ClusterUserAttributeInterfaceMock) DeleteCollectionCalls

func (mock *ClusterUserAttributeInterfaceMock) DeleteCollectionCalls() []struct {
	DeleteOpts *v1.DeleteOptions
	ListOpts   v1.ListOptions
}

DeleteCollectionCalls gets all the calls that were made to DeleteCollection. Check the length with:

len(mockedClusterUserAttributeInterface.DeleteCollectionCalls())

func (*ClusterUserAttributeInterfaceMock) DeleteNamespaced

func (mock *ClusterUserAttributeInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error

DeleteNamespaced calls DeleteNamespacedFunc.

func (*ClusterUserAttributeInterfaceMock) DeleteNamespacedCalls

func (mock *ClusterUserAttributeInterfaceMock) DeleteNamespacedCalls() []struct {
	Namespace string
	Name      string
	Options   *v1.DeleteOptions
}

DeleteNamespacedCalls gets all the calls that were made to DeleteNamespaced. Check the length with:

len(mockedClusterUserAttributeInterface.DeleteNamespacedCalls())

func (*ClusterUserAttributeInterfaceMock) Get

Get calls GetFunc.

func (*ClusterUserAttributeInterfaceMock) GetCalls

func (mock *ClusterUserAttributeInterfaceMock) GetCalls() []struct {
	Name string
	Opts v1.GetOptions
}

GetCalls gets all the calls that were made to Get. Check the length with:

len(mockedClusterUserAttributeInterface.GetCalls())

func (*ClusterUserAttributeInterfaceMock) GetNamespaced

func (mock *ClusterUserAttributeInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v3.ClusterUserAttribute, error)

GetNamespaced calls GetNamespacedFunc.

func (*ClusterUserAttributeInterfaceMock) GetNamespacedCalls

func (mock *ClusterUserAttributeInterfaceMock) GetNamespacedCalls() []struct {
	Namespace string
	Name      string
	Opts      v1.GetOptions
}

GetNamespacedCalls gets all the calls that were made to GetNamespaced. Check the length with:

len(mockedClusterUserAttributeInterface.GetNamespacedCalls())

func (*ClusterUserAttributeInterfaceMock) List

List calls ListFunc.

func (*ClusterUserAttributeInterfaceMock) ListCalls

func (mock *ClusterUserAttributeInterfaceMock) ListCalls() []struct {
	Opts v1.ListOptions
}

ListCalls gets all the calls that were made to List. Check the length with:

len(mockedClusterUserAttributeInterface.ListCalls())

func (*ClusterUserAttributeInterfaceMock) ListNamespaced

func (mock *ClusterUserAttributeInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.ClusterUserAttributeList, error)

ListNamespaced calls ListNamespacedFunc.

func (*ClusterUserAttributeInterfaceMock) ListNamespacedCalls

func (mock *ClusterUserAttributeInterfaceMock) ListNamespacedCalls() []struct {
	Namespace string
	Opts      v1.ListOptions
}

ListNamespacedCalls gets all the calls that were made to ListNamespaced. Check the length with:

len(mockedClusterUserAttributeInterface.ListNamespacedCalls())

func (*ClusterUserAttributeInterfaceMock) ObjectClient

ObjectClient calls ObjectClientFunc.

func (*ClusterUserAttributeInterfaceMock) ObjectClientCalls

func (mock *ClusterUserAttributeInterfaceMock) ObjectClientCalls() []struct {
}

ObjectClientCalls gets all the calls that were made to ObjectClient. Check the length with:

len(mockedClusterUserAttributeInterface.ObjectClientCalls())

func (*ClusterUserAttributeInterfaceMock) Update

Update calls UpdateFunc.

func (*ClusterUserAttributeInterfaceMock) UpdateCalls

func (mock *ClusterUserAttributeInterfaceMock) UpdateCalls() []struct {
	In1 *v3.ClusterUserAttribute
}

UpdateCalls gets all the calls that were made to Update. Check the length with:

len(mockedClusterUserAttributeInterface.UpdateCalls())

func (*ClusterUserAttributeInterfaceMock) Watch

Watch calls WatchFunc.

func (*ClusterUserAttributeInterfaceMock) WatchCalls

func (mock *ClusterUserAttributeInterfaceMock) WatchCalls() []struct {
	Opts v1.ListOptions
}

WatchCalls gets all the calls that were made to Watch. Check the length with:

len(mockedClusterUserAttributeInterface.WatchCalls())

type ClusterUserAttributeListerMock

type ClusterUserAttributeListerMock struct {
	// GetFunc mocks the Get method.
	GetFunc func(namespace string, name string) (*v3.ClusterUserAttribute, error)

	// ListFunc mocks the List method.
	ListFunc func(namespace string, selector labels.Selector) ([]*v3.ClusterUserAttribute, error)
	// contains filtered or unexported fields
}

ClusterUserAttributeListerMock is a mock implementation of ClusterUserAttributeLister.

    func TestSomethingThatUsesClusterUserAttributeLister(t *testing.T) {

        // make and configure a mocked ClusterUserAttributeLister
        mockedClusterUserAttributeLister := &ClusterUserAttributeListerMock{
            GetFunc: func(namespace string, name string) (*v3.ClusterUserAttribute, error) {
	               panic("mock out the Get method")
            },
            ListFunc: func(namespace string, selector labels.Selector) ([]*v3.ClusterUserAttribute, error) {
	               panic("mock out the List method")
            },
        }

        // use mockedClusterUserAttributeLister in code that requires ClusterUserAttributeLister
        // and then make assertions.

    }

func (*ClusterUserAttributeListerMock) Get

Get calls GetFunc.

func (*ClusterUserAttributeListerMock) GetCalls

func (mock *ClusterUserAttributeListerMock) GetCalls() []struct {
	Namespace string
	Name      string
}

GetCalls gets all the calls that were made to Get. Check the length with:

len(mockedClusterUserAttributeLister.GetCalls())

func (*ClusterUserAttributeListerMock) List

func (mock *ClusterUserAttributeListerMock) List(namespace string, selector labels.Selector) ([]*v3.ClusterUserAttribute, error)

List calls ListFunc.

func (*ClusterUserAttributeListerMock) ListCalls

func (mock *ClusterUserAttributeListerMock) ListCalls() []struct {
	Namespace string
	Selector  labels.Selector
}

ListCalls gets all the calls that were made to List. Check the length with:

len(mockedClusterUserAttributeLister.ListCalls())

type ClusterUserAttributesGetterMock

type ClusterUserAttributesGetterMock struct {
	// ClusterUserAttributesFunc mocks the ClusterUserAttributes method.
	ClusterUserAttributesFunc func(namespace string) v3.ClusterUserAttributeInterface
	// contains filtered or unexported fields
}

ClusterUserAttributesGetterMock is a mock implementation of ClusterUserAttributesGetter.

    func TestSomethingThatUsesClusterUserAttributesGetter(t *testing.T) {

        // make and configure a mocked ClusterUserAttributesGetter
        mockedClusterUserAttributesGetter := &ClusterUserAttributesGetterMock{
            ClusterUserAttributesFunc: func(namespace string) v3.ClusterUserAttributeInterface {
	               panic("mock out the ClusterUserAttributes method")
            },
        }

        // use mockedClusterUserAttributesGetter in code that requires ClusterUserAttributesGetter
        // and then make assertions.

    }

func (*ClusterUserAttributesGetterMock) ClusterUserAttributes

func (mock *ClusterUserAttributesGetterMock) ClusterUserAttributes(namespace string) v3.ClusterUserAttributeInterface

ClusterUserAttributes calls ClusterUserAttributesFunc.

func (*ClusterUserAttributesGetterMock) ClusterUserAttributesCalls

func (mock *ClusterUserAttributesGetterMock) ClusterUserAttributesCalls() []struct {
	Namespace string
}

ClusterUserAttributesCalls gets all the calls that were made to ClusterUserAttributes. Check the length with:

len(mockedClusterUserAttributesGetter.ClusterUserAttributesCalls())

Jump to

Keyboard shortcuts

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