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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIServiceControllerMock

type APIServiceControllerMock struct {
	// AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method.
	AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.APIServiceHandlerFunc)

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

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

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

	// 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() v1a.APIServiceLister

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

APIServiceControllerMock is a mock implementation of APIServiceController.

    func TestSomethingThatUsesAPIServiceController(t *testing.T) {

        // make and configure a mocked APIServiceController
        mockedAPIServiceController := &APIServiceControllerMock{
            AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.APIServiceHandlerFunc)  {
	               panic("mock out the AddClusterScopedFeatureHandler method")
            },
            AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v1a.APIServiceHandlerFunc)  {
	               panic("mock out the AddClusterScopedHandler method")
            },
            AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1a.APIServiceHandlerFunc)  {
	               panic("mock out the AddFeatureHandler method")
            },
            AddHandlerFunc: func(ctx context.Context, name string, handler v1a.APIServiceHandlerFunc)  {
	               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() v1a.APIServiceLister {
	               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 mockedAPIServiceController in code that requires APIServiceController
        // and then make assertions.

    }

func (*APIServiceControllerMock) AddClusterScopedFeatureHandler

func (mock *APIServiceControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.APIServiceHandlerFunc)

AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.

func (*APIServiceControllerMock) AddClusterScopedFeatureHandlerCalls

func (mock *APIServiceControllerMock) AddClusterScopedFeatureHandlerCalls() []struct {
	Ctx         context.Context
	Enabled     func() bool
	Name        string
	ClusterName string
	Handler     v1a.APIServiceHandlerFunc
}

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

len(mockedAPIServiceController.AddClusterScopedFeatureHandlerCalls())

func (*APIServiceControllerMock) AddClusterScopedHandler

func (mock *APIServiceControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v1a.APIServiceHandlerFunc)

AddClusterScopedHandler calls AddClusterScopedHandlerFunc.

func (*APIServiceControllerMock) AddClusterScopedHandlerCalls

func (mock *APIServiceControllerMock) AddClusterScopedHandlerCalls() []struct {
	Ctx         context.Context
	Name        string
	ClusterName string
	Handler     v1a.APIServiceHandlerFunc
}

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

len(mockedAPIServiceController.AddClusterScopedHandlerCalls())

func (*APIServiceControllerMock) AddFeatureHandler

func (mock *APIServiceControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1a.APIServiceHandlerFunc)

AddFeatureHandler calls AddFeatureHandlerFunc.

func (*APIServiceControllerMock) AddFeatureHandlerCalls

func (mock *APIServiceControllerMock) AddFeatureHandlerCalls() []struct {
	Ctx     context.Context
	Enabled func() bool
	Name    string
	Sync    v1a.APIServiceHandlerFunc
}

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

len(mockedAPIServiceController.AddFeatureHandlerCalls())

func (*APIServiceControllerMock) AddHandler

func (mock *APIServiceControllerMock) AddHandler(ctx context.Context, name string, handler v1a.APIServiceHandlerFunc)

AddHandler calls AddHandlerFunc.

func (*APIServiceControllerMock) AddHandlerCalls

func (mock *APIServiceControllerMock) AddHandlerCalls() []struct {
	Ctx     context.Context
	Name    string
	Handler v1a.APIServiceHandlerFunc
}

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

len(mockedAPIServiceController.AddHandlerCalls())

func (*APIServiceControllerMock) Enqueue

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

Enqueue calls EnqueueFunc.

func (*APIServiceControllerMock) EnqueueAfter

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

EnqueueAfter calls EnqueueAfterFunc.

func (*APIServiceControllerMock) EnqueueAfterCalls

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

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

len(mockedAPIServiceController.EnqueueAfterCalls())

func (*APIServiceControllerMock) EnqueueCalls

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

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

len(mockedAPIServiceController.EnqueueCalls())

func (*APIServiceControllerMock) Generic

Generic calls GenericFunc.

func (*APIServiceControllerMock) GenericCalls

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

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

len(mockedAPIServiceController.GenericCalls())

func (*APIServiceControllerMock) Informer

Informer calls InformerFunc.

func (*APIServiceControllerMock) InformerCalls

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

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

len(mockedAPIServiceController.InformerCalls())

func (*APIServiceControllerMock) Lister

Lister calls ListerFunc.

func (*APIServiceControllerMock) ListerCalls

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

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

len(mockedAPIServiceController.ListerCalls())

func (*APIServiceControllerMock) Start

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

Start calls StartFunc.

func (*APIServiceControllerMock) StartCalls

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

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

len(mockedAPIServiceController.StartCalls())

func (*APIServiceControllerMock) Sync

Sync calls SyncFunc.

func (*APIServiceControllerMock) SyncCalls

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

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

len(mockedAPIServiceController.SyncCalls())

type APIServiceInterfaceMock

type APIServiceInterfaceMock struct {
	// AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method.
	AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.APIServiceHandlerFunc)

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

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

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

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

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

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

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

	// ControllerFunc mocks the Controller method.
	ControllerFunc func() v1a.APIServiceController

	// CreateFunc mocks the Create method.
	CreateFunc func(in1 *v1.APIService) (*v1.APIService, error)

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

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

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

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

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

	// ListFunc mocks the List method.
	ListFunc func(opts v1b.ListOptions) (*v1a.APIServiceList, error)

	// ListNamespacedFunc mocks the ListNamespaced method.
	ListNamespacedFunc func(namespace string, opts v1b.ListOptions) (*v1a.APIServiceList, error)

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

	// UpdateFunc mocks the Update method.
	UpdateFunc func(in1 *v1.APIService) (*v1.APIService, error)

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

APIServiceInterfaceMock is a mock implementation of APIServiceInterface.

    func TestSomethingThatUsesAPIServiceInterface(t *testing.T) {

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

        // use mockedAPIServiceInterface in code that requires APIServiceInterface
        // and then make assertions.

    }

func (*APIServiceInterfaceMock) AddClusterScopedFeatureHandler

func (mock *APIServiceInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.APIServiceHandlerFunc)

AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.

func (*APIServiceInterfaceMock) AddClusterScopedFeatureHandlerCalls

func (mock *APIServiceInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct {
	Ctx         context.Context
	Enabled     func() bool
	Name        string
	ClusterName string
	Sync        v1a.APIServiceHandlerFunc
}

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

len(mockedAPIServiceInterface.AddClusterScopedFeatureHandlerCalls())

func (*APIServiceInterfaceMock) AddClusterScopedFeatureLifecycle

func (mock *APIServiceInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.APIServiceLifecycle)

AddClusterScopedFeatureLifecycle calls AddClusterScopedFeatureLifecycleFunc.

func (*APIServiceInterfaceMock) AddClusterScopedFeatureLifecycleCalls

func (mock *APIServiceInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct {
	Ctx         context.Context
	Enabled     func() bool
	Name        string
	ClusterName string
	Lifecycle   v1a.APIServiceLifecycle
}

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

len(mockedAPIServiceInterface.AddClusterScopedFeatureLifecycleCalls())

func (*APIServiceInterfaceMock) AddClusterScopedHandler

func (mock *APIServiceInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v1a.APIServiceHandlerFunc)

AddClusterScopedHandler calls AddClusterScopedHandlerFunc.

func (*APIServiceInterfaceMock) AddClusterScopedHandlerCalls

func (mock *APIServiceInterfaceMock) AddClusterScopedHandlerCalls() []struct {
	Ctx         context.Context
	Name        string
	ClusterName string
	Sync        v1a.APIServiceHandlerFunc
}

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

len(mockedAPIServiceInterface.AddClusterScopedHandlerCalls())

func (*APIServiceInterfaceMock) AddClusterScopedLifecycle

func (mock *APIServiceInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v1a.APIServiceLifecycle)

AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc.

func (*APIServiceInterfaceMock) AddClusterScopedLifecycleCalls

func (mock *APIServiceInterfaceMock) AddClusterScopedLifecycleCalls() []struct {
	Ctx         context.Context
	Name        string
	ClusterName string
	Lifecycle   v1a.APIServiceLifecycle
}

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

len(mockedAPIServiceInterface.AddClusterScopedLifecycleCalls())

func (*APIServiceInterfaceMock) AddFeatureHandler

func (mock *APIServiceInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1a.APIServiceHandlerFunc)

AddFeatureHandler calls AddFeatureHandlerFunc.

func (*APIServiceInterfaceMock) AddFeatureHandlerCalls

func (mock *APIServiceInterfaceMock) AddFeatureHandlerCalls() []struct {
	Ctx     context.Context
	Enabled func() bool
	Name    string
	Sync    v1a.APIServiceHandlerFunc
}

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

len(mockedAPIServiceInterface.AddFeatureHandlerCalls())

func (*APIServiceInterfaceMock) AddFeatureLifecycle

func (mock *APIServiceInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, lifecycle v1a.APIServiceLifecycle)

AddFeatureLifecycle calls AddFeatureLifecycleFunc.

func (*APIServiceInterfaceMock) AddFeatureLifecycleCalls

func (mock *APIServiceInterfaceMock) AddFeatureLifecycleCalls() []struct {
	Ctx       context.Context
	Enabled   func() bool
	Name      string
	Lifecycle v1a.APIServiceLifecycle
}

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

len(mockedAPIServiceInterface.AddFeatureLifecycleCalls())

func (*APIServiceInterfaceMock) AddHandler

func (mock *APIServiceInterfaceMock) AddHandler(ctx context.Context, name string, sync v1a.APIServiceHandlerFunc)

AddHandler calls AddHandlerFunc.

func (*APIServiceInterfaceMock) AddHandlerCalls

func (mock *APIServiceInterfaceMock) AddHandlerCalls() []struct {
	Ctx  context.Context
	Name string
	Sync v1a.APIServiceHandlerFunc
}

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

len(mockedAPIServiceInterface.AddHandlerCalls())

func (*APIServiceInterfaceMock) AddLifecycle

func (mock *APIServiceInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1a.APIServiceLifecycle)

AddLifecycle calls AddLifecycleFunc.

func (*APIServiceInterfaceMock) AddLifecycleCalls

func (mock *APIServiceInterfaceMock) AddLifecycleCalls() []struct {
	Ctx       context.Context
	Name      string
	Lifecycle v1a.APIServiceLifecycle
}

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

len(mockedAPIServiceInterface.AddLifecycleCalls())

func (*APIServiceInterfaceMock) Controller

Controller calls ControllerFunc.

func (*APIServiceInterfaceMock) ControllerCalls

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

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

len(mockedAPIServiceInterface.ControllerCalls())

func (*APIServiceInterfaceMock) Create

func (mock *APIServiceInterfaceMock) Create(in1 *v1.APIService) (*v1.APIService, error)

Create calls CreateFunc.

func (*APIServiceInterfaceMock) CreateCalls

func (mock *APIServiceInterfaceMock) CreateCalls() []struct {
	In1 *v1.APIService
}

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

len(mockedAPIServiceInterface.CreateCalls())

func (*APIServiceInterfaceMock) Delete

func (mock *APIServiceInterfaceMock) Delete(name string, options *v1b.DeleteOptions) error

Delete calls DeleteFunc.

func (*APIServiceInterfaceMock) DeleteCalls

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

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

len(mockedAPIServiceInterface.DeleteCalls())

func (*APIServiceInterfaceMock) DeleteCollection

func (mock *APIServiceInterfaceMock) DeleteCollection(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error

DeleteCollection calls DeleteCollectionFunc.

func (*APIServiceInterfaceMock) DeleteCollectionCalls

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

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

len(mockedAPIServiceInterface.DeleteCollectionCalls())

func (*APIServiceInterfaceMock) DeleteNamespaced

func (mock *APIServiceInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1b.DeleteOptions) error

DeleteNamespaced calls DeleteNamespacedFunc.

func (*APIServiceInterfaceMock) DeleteNamespacedCalls

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

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

len(mockedAPIServiceInterface.DeleteNamespacedCalls())

func (*APIServiceInterfaceMock) Get

func (mock *APIServiceInterfaceMock) Get(name string, opts v1b.GetOptions) (*v1.APIService, error)

Get calls GetFunc.

func (*APIServiceInterfaceMock) GetCalls

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

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

len(mockedAPIServiceInterface.GetCalls())

func (*APIServiceInterfaceMock) GetNamespaced

func (mock *APIServiceInterfaceMock) GetNamespaced(namespace string, name string, opts v1b.GetOptions) (*v1.APIService, error)

GetNamespaced calls GetNamespacedFunc.

func (*APIServiceInterfaceMock) GetNamespacedCalls

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

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

len(mockedAPIServiceInterface.GetNamespacedCalls())

func (*APIServiceInterfaceMock) List

List calls ListFunc.

func (*APIServiceInterfaceMock) ListCalls

func (mock *APIServiceInterfaceMock) ListCalls() []struct {
	Opts v1b.ListOptions
}

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

len(mockedAPIServiceInterface.ListCalls())

func (*APIServiceInterfaceMock) ListNamespaced

func (mock *APIServiceInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.APIServiceList, error)

ListNamespaced calls ListNamespacedFunc.

func (*APIServiceInterfaceMock) ListNamespacedCalls

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

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

len(mockedAPIServiceInterface.ListNamespacedCalls())

func (*APIServiceInterfaceMock) ObjectClient

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

ObjectClient calls ObjectClientFunc.

func (*APIServiceInterfaceMock) ObjectClientCalls

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

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

len(mockedAPIServiceInterface.ObjectClientCalls())

func (*APIServiceInterfaceMock) Update

func (mock *APIServiceInterfaceMock) Update(in1 *v1.APIService) (*v1.APIService, error)

Update calls UpdateFunc.

func (*APIServiceInterfaceMock) UpdateCalls

func (mock *APIServiceInterfaceMock) UpdateCalls() []struct {
	In1 *v1.APIService
}

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

len(mockedAPIServiceInterface.UpdateCalls())

func (*APIServiceInterfaceMock) Watch

Watch calls WatchFunc.

func (*APIServiceInterfaceMock) WatchCalls

func (mock *APIServiceInterfaceMock) WatchCalls() []struct {
	Opts v1b.ListOptions
}

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

len(mockedAPIServiceInterface.WatchCalls())

type APIServiceListerMock

type APIServiceListerMock struct {
	// GetFunc mocks the Get method.
	GetFunc func(namespace string, name string) (*v1.APIService, error)

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

APIServiceListerMock is a mock implementation of APIServiceLister.

    func TestSomethingThatUsesAPIServiceLister(t *testing.T) {

        // make and configure a mocked APIServiceLister
        mockedAPIServiceLister := &APIServiceListerMock{
            GetFunc: func(namespace string, name string) (*v1.APIService, error) {
	               panic("mock out the Get method")
            },
            ListFunc: func(namespace string, selector labels.Selector) ([]*v1.APIService, error) {
	               panic("mock out the List method")
            },
        }

        // use mockedAPIServiceLister in code that requires APIServiceLister
        // and then make assertions.

    }

func (*APIServiceListerMock) Get

func (mock *APIServiceListerMock) Get(namespace string, name string) (*v1.APIService, error)

Get calls GetFunc.

func (*APIServiceListerMock) GetCalls

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

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

len(mockedAPIServiceLister.GetCalls())

func (*APIServiceListerMock) List

func (mock *APIServiceListerMock) List(namespace string, selector labels.Selector) ([]*v1.APIService, error)

List calls ListFunc.

func (*APIServiceListerMock) ListCalls

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

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

len(mockedAPIServiceLister.ListCalls())

type APIServicesGetterMock

type APIServicesGetterMock struct {
	// APIServicesFunc mocks the APIServices method.
	APIServicesFunc func(namespace string) v1a.APIServiceInterface
	// contains filtered or unexported fields
}

APIServicesGetterMock is a mock implementation of APIServicesGetter.

    func TestSomethingThatUsesAPIServicesGetter(t *testing.T) {

        // make and configure a mocked APIServicesGetter
        mockedAPIServicesGetter := &APIServicesGetterMock{
            APIServicesFunc: func(namespace string) v1a.APIServiceInterface {
	               panic("mock out the APIServices method")
            },
        }

        // use mockedAPIServicesGetter in code that requires APIServicesGetter
        // and then make assertions.

    }

func (*APIServicesGetterMock) APIServices

func (mock *APIServicesGetterMock) APIServices(namespace string) v1a.APIServiceInterface

APIServices calls APIServicesFunc.

func (*APIServicesGetterMock) APIServicesCalls

func (mock *APIServicesGetterMock) APIServicesCalls() []struct {
	Namespace string
}

APIServicesCalls gets all the calls that were made to APIServices. Check the length with:

len(mockedAPIServicesGetter.APIServicesCalls())

Jump to

Keyboard shortcuts

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