fakes

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2021 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 AuthProviderControllerMock

type AuthProviderControllerMock struct {
	// AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method.
	AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v3public.AuthProviderHandlerFunc)

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

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

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

	// 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() v3public.AuthProviderLister
	// contains filtered or unexported fields
}

AuthProviderControllerMock is a mock implementation of AuthProviderController.

    func TestSomethingThatUsesAuthProviderController(t *testing.T) {

        // make and configure a mocked AuthProviderController
        mockedAuthProviderController := &AuthProviderControllerMock{
            AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v3public.AuthProviderHandlerFunc)  {
	               panic("mock out the AddClusterScopedFeatureHandler method")
            },
            AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v3public.AuthProviderHandlerFunc)  {
	               panic("mock out the AddClusterScopedHandler method")
            },
            AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v3public.AuthProviderHandlerFunc)  {
	               panic("mock out the AddFeatureHandler method")
            },
            AddHandlerFunc: func(ctx context.Context, name string, handler v3public.AuthProviderHandlerFunc)  {
	               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() v3public.AuthProviderLister {
	               panic("mock out the Lister method")
            },
        }

        // use mockedAuthProviderController in code that requires AuthProviderController
        // and then make assertions.

    }

func (*AuthProviderControllerMock) AddClusterScopedFeatureHandler

func (mock *AuthProviderControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, handler v3public.AuthProviderHandlerFunc)

AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.

func (*AuthProviderControllerMock) AddClusterScopedFeatureHandlerCalls

func (mock *AuthProviderControllerMock) AddClusterScopedFeatureHandlerCalls() []struct {
	Ctx         context.Context
	Enabled     func() bool
	Name        string
	ClusterName string
	Handler     v3public.AuthProviderHandlerFunc
}

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

len(mockedAuthProviderController.AddClusterScopedFeatureHandlerCalls())

func (*AuthProviderControllerMock) AddClusterScopedHandler

func (mock *AuthProviderControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v3public.AuthProviderHandlerFunc)

AddClusterScopedHandler calls AddClusterScopedHandlerFunc.

func (*AuthProviderControllerMock) AddClusterScopedHandlerCalls

func (mock *AuthProviderControllerMock) AddClusterScopedHandlerCalls() []struct {
	Ctx         context.Context
	Name        string
	ClusterName string
	Handler     v3public.AuthProviderHandlerFunc
}

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

len(mockedAuthProviderController.AddClusterScopedHandlerCalls())

func (*AuthProviderControllerMock) AddFeatureHandler

func (mock *AuthProviderControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v3public.AuthProviderHandlerFunc)

AddFeatureHandler calls AddFeatureHandlerFunc.

func (*AuthProviderControllerMock) AddFeatureHandlerCalls

func (mock *AuthProviderControllerMock) AddFeatureHandlerCalls() []struct {
	Ctx     context.Context
	Enabled func() bool
	Name    string
	Sync    v3public.AuthProviderHandlerFunc
}

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

len(mockedAuthProviderController.AddFeatureHandlerCalls())

func (*AuthProviderControllerMock) AddHandler

AddHandler calls AddHandlerFunc.

func (*AuthProviderControllerMock) AddHandlerCalls

func (mock *AuthProviderControllerMock) AddHandlerCalls() []struct {
	Ctx     context.Context
	Name    string
	Handler v3public.AuthProviderHandlerFunc
}

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

len(mockedAuthProviderController.AddHandlerCalls())

func (*AuthProviderControllerMock) Enqueue

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

Enqueue calls EnqueueFunc.

func (*AuthProviderControllerMock) EnqueueAfter

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

EnqueueAfter calls EnqueueAfterFunc.

func (*AuthProviderControllerMock) EnqueueAfterCalls

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

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

len(mockedAuthProviderController.EnqueueAfterCalls())

func (*AuthProviderControllerMock) EnqueueCalls

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

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

len(mockedAuthProviderController.EnqueueCalls())

func (*AuthProviderControllerMock) Generic

Generic calls GenericFunc.

func (*AuthProviderControllerMock) GenericCalls

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

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

len(mockedAuthProviderController.GenericCalls())

func (*AuthProviderControllerMock) Informer

Informer calls InformerFunc.

func (*AuthProviderControllerMock) InformerCalls

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

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

len(mockedAuthProviderController.InformerCalls())

func (*AuthProviderControllerMock) Lister

Lister calls ListerFunc.

func (*AuthProviderControllerMock) ListerCalls

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

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

len(mockedAuthProviderController.ListerCalls())

type AuthProviderInterfaceMock

type AuthProviderInterfaceMock struct {
	// AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method.
	AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v3public.AuthProviderHandlerFunc)

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

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

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

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

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

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

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

	// ControllerFunc mocks the Controller method.
	ControllerFunc func() v3public.AuthProviderController

	// CreateFunc mocks the Create method.
	CreateFunc func(in1 *v3public.AuthProvider) (*v3public.AuthProvider, 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) (*v3public.AuthProvider, error)

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

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

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

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

	// UpdateFunc mocks the Update method.
	UpdateFunc func(in1 *v3public.AuthProvider) (*v3public.AuthProvider, error)

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

AuthProviderInterfaceMock is a mock implementation of AuthProviderInterface.

    func TestSomethingThatUsesAuthProviderInterface(t *testing.T) {

        // make and configure a mocked AuthProviderInterface
        mockedAuthProviderInterface := &AuthProviderInterfaceMock{
            AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v3public.AuthProviderHandlerFunc)  {
	               panic("mock out the AddClusterScopedFeatureHandler method")
            },
            AddClusterScopedFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v3public.AuthProviderLifecycle)  {
	               panic("mock out the AddClusterScopedFeatureLifecycle method")
            },
            AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v3public.AuthProviderHandlerFunc)  {
	               panic("mock out the AddClusterScopedHandler method")
            },
            AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v3public.AuthProviderLifecycle)  {
	               panic("mock out the AddClusterScopedLifecycle method")
            },
            AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v3public.AuthProviderHandlerFunc)  {
	               panic("mock out the AddFeatureHandler method")
            },
            AddFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, lifecycle v3public.AuthProviderLifecycle)  {
	               panic("mock out the AddFeatureLifecycle method")
            },
            AddHandlerFunc: func(ctx context.Context, name string, sync v3public.AuthProviderHandlerFunc)  {
	               panic("mock out the AddHandler method")
            },
            AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v3public.AuthProviderLifecycle)  {
	               panic("mock out the AddLifecycle method")
            },
            ControllerFunc: func() v3public.AuthProviderController {
	               panic("mock out the Controller method")
            },
            CreateFunc: func(in1 *v3public.AuthProvider) (*v3public.AuthProvider, 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) (*v3public.AuthProvider, error) {
	               panic("mock out the Get method")
            },
            GetNamespacedFunc: func(namespace string, name string, opts v1.GetOptions) (*v3public.AuthProvider, error) {
	               panic("mock out the GetNamespaced method")
            },
            ListFunc: func(opts v1.ListOptions) (*v3public.AuthProviderList, error) {
	               panic("mock out the List method")
            },
            ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3public.AuthProviderList, error) {
	               panic("mock out the ListNamespaced method")
            },
            ObjectClientFunc: func() *objectclient.ObjectClient {
	               panic("mock out the ObjectClient method")
            },
            UpdateFunc: func(in1 *v3public.AuthProvider) (*v3public.AuthProvider, error) {
	               panic("mock out the Update method")
            },
            WatchFunc: func(opts v1.ListOptions) (watch.Interface, error) {
	               panic("mock out the Watch method")
            },
        }

        // use mockedAuthProviderInterface in code that requires AuthProviderInterface
        // and then make assertions.

    }

func (*AuthProviderInterfaceMock) AddClusterScopedFeatureHandler

func (mock *AuthProviderInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, sync v3public.AuthProviderHandlerFunc)

AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.

func (*AuthProviderInterfaceMock) AddClusterScopedFeatureHandlerCalls

func (mock *AuthProviderInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct {
	Ctx         context.Context
	Enabled     func() bool
	Name        string
	ClusterName string
	Sync        v3public.AuthProviderHandlerFunc
}

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

len(mockedAuthProviderInterface.AddClusterScopedFeatureHandlerCalls())

func (*AuthProviderInterfaceMock) AddClusterScopedFeatureLifecycle

func (mock *AuthProviderInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v3public.AuthProviderLifecycle)

AddClusterScopedFeatureLifecycle calls AddClusterScopedFeatureLifecycleFunc.

func (*AuthProviderInterfaceMock) AddClusterScopedFeatureLifecycleCalls

func (mock *AuthProviderInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct {
	Ctx         context.Context
	Enabled     func() bool
	Name        string
	ClusterName string
	Lifecycle   v3public.AuthProviderLifecycle
}

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

len(mockedAuthProviderInterface.AddClusterScopedFeatureLifecycleCalls())

func (*AuthProviderInterfaceMock) AddClusterScopedHandler

func (mock *AuthProviderInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v3public.AuthProviderHandlerFunc)

AddClusterScopedHandler calls AddClusterScopedHandlerFunc.

func (*AuthProviderInterfaceMock) AddClusterScopedHandlerCalls

func (mock *AuthProviderInterfaceMock) AddClusterScopedHandlerCalls() []struct {
	Ctx         context.Context
	Name        string
	ClusterName string
	Sync        v3public.AuthProviderHandlerFunc
}

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

len(mockedAuthProviderInterface.AddClusterScopedHandlerCalls())

func (*AuthProviderInterfaceMock) AddClusterScopedLifecycle

func (mock *AuthProviderInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v3public.AuthProviderLifecycle)

AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc.

func (*AuthProviderInterfaceMock) AddClusterScopedLifecycleCalls

func (mock *AuthProviderInterfaceMock) AddClusterScopedLifecycleCalls() []struct {
	Ctx         context.Context
	Name        string
	ClusterName string
	Lifecycle   v3public.AuthProviderLifecycle
}

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

len(mockedAuthProviderInterface.AddClusterScopedLifecycleCalls())

func (*AuthProviderInterfaceMock) AddFeatureHandler

func (mock *AuthProviderInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v3public.AuthProviderHandlerFunc)

AddFeatureHandler calls AddFeatureHandlerFunc.

func (*AuthProviderInterfaceMock) AddFeatureHandlerCalls

func (mock *AuthProviderInterfaceMock) AddFeatureHandlerCalls() []struct {
	Ctx     context.Context
	Enabled func() bool
	Name    string
	Sync    v3public.AuthProviderHandlerFunc
}

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

len(mockedAuthProviderInterface.AddFeatureHandlerCalls())

func (*AuthProviderInterfaceMock) AddFeatureLifecycle

func (mock *AuthProviderInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, lifecycle v3public.AuthProviderLifecycle)

AddFeatureLifecycle calls AddFeatureLifecycleFunc.

func (*AuthProviderInterfaceMock) AddFeatureLifecycleCalls

func (mock *AuthProviderInterfaceMock) AddFeatureLifecycleCalls() []struct {
	Ctx       context.Context
	Enabled   func() bool
	Name      string
	Lifecycle v3public.AuthProviderLifecycle
}

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

len(mockedAuthProviderInterface.AddFeatureLifecycleCalls())

func (*AuthProviderInterfaceMock) AddHandler

AddHandler calls AddHandlerFunc.

func (*AuthProviderInterfaceMock) AddHandlerCalls

func (mock *AuthProviderInterfaceMock) AddHandlerCalls() []struct {
	Ctx  context.Context
	Name string
	Sync v3public.AuthProviderHandlerFunc
}

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

len(mockedAuthProviderInterface.AddHandlerCalls())

func (*AuthProviderInterfaceMock) AddLifecycle

func (mock *AuthProviderInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v3public.AuthProviderLifecycle)

AddLifecycle calls AddLifecycleFunc.

func (*AuthProviderInterfaceMock) AddLifecycleCalls

func (mock *AuthProviderInterfaceMock) AddLifecycleCalls() []struct {
	Ctx       context.Context
	Name      string
	Lifecycle v3public.AuthProviderLifecycle
}

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

len(mockedAuthProviderInterface.AddLifecycleCalls())

func (*AuthProviderInterfaceMock) Controller

Controller calls ControllerFunc.

func (*AuthProviderInterfaceMock) ControllerCalls

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

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

len(mockedAuthProviderInterface.ControllerCalls())

func (*AuthProviderInterfaceMock) Create

Create calls CreateFunc.

func (*AuthProviderInterfaceMock) CreateCalls

func (mock *AuthProviderInterfaceMock) CreateCalls() []struct {
	In1 *v3public.AuthProvider
}

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

len(mockedAuthProviderInterface.CreateCalls())

func (*AuthProviderInterfaceMock) Delete

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

Delete calls DeleteFunc.

func (*AuthProviderInterfaceMock) DeleteCalls

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

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

len(mockedAuthProviderInterface.DeleteCalls())

func (*AuthProviderInterfaceMock) DeleteCollection

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

DeleteCollection calls DeleteCollectionFunc.

func (*AuthProviderInterfaceMock) DeleteCollectionCalls

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

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

len(mockedAuthProviderInterface.DeleteCollectionCalls())

func (*AuthProviderInterfaceMock) DeleteNamespaced

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

DeleteNamespaced calls DeleteNamespacedFunc.

func (*AuthProviderInterfaceMock) DeleteNamespacedCalls

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

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

len(mockedAuthProviderInterface.DeleteNamespacedCalls())

func (*AuthProviderInterfaceMock) Get

Get calls GetFunc.

func (*AuthProviderInterfaceMock) GetCalls

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

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

len(mockedAuthProviderInterface.GetCalls())

func (*AuthProviderInterfaceMock) GetNamespaced

func (mock *AuthProviderInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v3public.AuthProvider, error)

GetNamespaced calls GetNamespacedFunc.

func (*AuthProviderInterfaceMock) GetNamespacedCalls

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

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

len(mockedAuthProviderInterface.GetNamespacedCalls())

func (*AuthProviderInterfaceMock) List

List calls ListFunc.

func (*AuthProviderInterfaceMock) ListCalls

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

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

len(mockedAuthProviderInterface.ListCalls())

func (*AuthProviderInterfaceMock) ListNamespaced

func (mock *AuthProviderInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3public.AuthProviderList, error)

ListNamespaced calls ListNamespacedFunc.

func (*AuthProviderInterfaceMock) ListNamespacedCalls

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

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

len(mockedAuthProviderInterface.ListNamespacedCalls())

func (*AuthProviderInterfaceMock) ObjectClient

func (mock *AuthProviderInterfaceMock) ObjectClient() *objectclient.ObjectClient

ObjectClient calls ObjectClientFunc.

func (*AuthProviderInterfaceMock) ObjectClientCalls

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

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

len(mockedAuthProviderInterface.ObjectClientCalls())

func (*AuthProviderInterfaceMock) Update

Update calls UpdateFunc.

func (*AuthProviderInterfaceMock) UpdateCalls

func (mock *AuthProviderInterfaceMock) UpdateCalls() []struct {
	In1 *v3public.AuthProvider
}

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

len(mockedAuthProviderInterface.UpdateCalls())

func (*AuthProviderInterfaceMock) Watch

Watch calls WatchFunc.

func (*AuthProviderInterfaceMock) WatchCalls

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

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

len(mockedAuthProviderInterface.WatchCalls())

type AuthProviderListerMock

type AuthProviderListerMock struct {
	// GetFunc mocks the Get method.
	GetFunc func(namespace string, name string) (*v3public.AuthProvider, error)

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

AuthProviderListerMock is a mock implementation of AuthProviderLister.

    func TestSomethingThatUsesAuthProviderLister(t *testing.T) {

        // make and configure a mocked AuthProviderLister
        mockedAuthProviderLister := &AuthProviderListerMock{
            GetFunc: func(namespace string, name string) (*v3public.AuthProvider, error) {
	               panic("mock out the Get method")
            },
            ListFunc: func(namespace string, selector labels.Selector) ([]*v3public.AuthProvider, error) {
	               panic("mock out the List method")
            },
        }

        // use mockedAuthProviderLister in code that requires AuthProviderLister
        // and then make assertions.

    }

func (*AuthProviderListerMock) Get

func (mock *AuthProviderListerMock) Get(namespace string, name string) (*v3public.AuthProvider, error)

Get calls GetFunc.

func (*AuthProviderListerMock) GetCalls

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

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

len(mockedAuthProviderLister.GetCalls())

func (*AuthProviderListerMock) List

func (mock *AuthProviderListerMock) List(namespace string, selector labels.Selector) ([]*v3public.AuthProvider, error)

List calls ListFunc.

func (*AuthProviderListerMock) ListCalls

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

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

len(mockedAuthProviderLister.ListCalls())

type AuthProvidersGetterMock

type AuthProvidersGetterMock struct {
	// AuthProvidersFunc mocks the AuthProviders method.
	AuthProvidersFunc func(namespace string) v3public.AuthProviderInterface
	// contains filtered or unexported fields
}

AuthProvidersGetterMock is a mock implementation of AuthProvidersGetter.

    func TestSomethingThatUsesAuthProvidersGetter(t *testing.T) {

        // make and configure a mocked AuthProvidersGetter
        mockedAuthProvidersGetter := &AuthProvidersGetterMock{
            AuthProvidersFunc: func(namespace string) v3public.AuthProviderInterface {
	               panic("mock out the AuthProviders method")
            },
        }

        // use mockedAuthProvidersGetter in code that requires AuthProvidersGetter
        // and then make assertions.

    }

func (*AuthProvidersGetterMock) AuthProviders

func (mock *AuthProvidersGetterMock) AuthProviders(namespace string) v3public.AuthProviderInterface

AuthProviders calls AuthProvidersFunc.

func (*AuthProvidersGetterMock) AuthProvidersCalls

func (mock *AuthProvidersGetterMock) AuthProvidersCalls() []struct {
	Namespace string
}

AuthProvidersCalls gets all the calls that were made to AuthProviders. Check the length with:

len(mockedAuthProvidersGetter.AuthProvidersCalls())

Jump to

Keyboard shortcuts

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