fakes

package
v0.0.0-...-c402a22 Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: Apache-2.0 Imports: 9 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 {
	// AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method.
	AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler 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)

	// 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

	// 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
}

AuthProviderControllerMock is a mock implementation of AuthProviderController.

    func TestSomethingThatUsesAuthProviderController(t *testing.T) {

        // make and configure a mocked AuthProviderController
        mockedAuthProviderController := &AuthProviderControllerMock{
            AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v3public.AuthProviderHandlerFunc)  {
	               panic("mock out the AddClusterScopedHandler 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")
            },
            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")
            },
            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 mockedAuthProviderController in code that requires AuthProviderController
        // and then make assertions.

    }

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) 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) 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())

func (*AuthProviderControllerMock) Start

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

Start calls StartFunc.

func (*AuthProviderControllerMock) StartCalls

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

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

len(mockedAuthProviderController.StartCalls())

func (*AuthProviderControllerMock) Sync

Sync calls SyncFunc.

func (*AuthProviderControllerMock) SyncCalls

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

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

len(mockedAuthProviderController.SyncCalls())

type AuthProviderInterfaceMock

type AuthProviderInterfaceMock struct {
	// 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)

	// 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)

	// 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{
            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")
            },
            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")
            },
            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) 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) 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) 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