fakes

package
v0.0.0-...-7c47f85 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2019 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 CronJobControllerMock

type CronJobControllerMock struct {
	// AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method.
	AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1beta1a.CronJobHandlerFunc)

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

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

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

	// 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() v1beta1a.CronJobLister

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

CronJobControllerMock is a mock implementation of CronJobController.

    func TestSomethingThatUsesCronJobController(t *testing.T) {

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

    }

func (*CronJobControllerMock) AddClusterScopedFeatureHandler

func (mock *CronJobControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1beta1a.CronJobHandlerFunc)

AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.

func (*CronJobControllerMock) AddClusterScopedFeatureHandlerCalls

func (mock *CronJobControllerMock) AddClusterScopedFeatureHandlerCalls() []struct {
	Ctx         context.Context
	Enabled     func() bool
	Name        string
	ClusterName string
	Handler     v1beta1a.CronJobHandlerFunc
}

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

len(mockedCronJobController.AddClusterScopedFeatureHandlerCalls())

func (*CronJobControllerMock) AddClusterScopedHandler

func (mock *CronJobControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v1beta1a.CronJobHandlerFunc)

AddClusterScopedHandler calls AddClusterScopedHandlerFunc.

func (*CronJobControllerMock) AddClusterScopedHandlerCalls

func (mock *CronJobControllerMock) AddClusterScopedHandlerCalls() []struct {
	Ctx         context.Context
	Name        string
	ClusterName string
	Handler     v1beta1a.CronJobHandlerFunc
}

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

len(mockedCronJobController.AddClusterScopedHandlerCalls())

func (*CronJobControllerMock) AddFeatureHandler

func (mock *CronJobControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1beta1a.CronJobHandlerFunc)

AddFeatureHandler calls AddFeatureHandlerFunc.

func (*CronJobControllerMock) AddFeatureHandlerCalls

func (mock *CronJobControllerMock) AddFeatureHandlerCalls() []struct {
	Ctx     context.Context
	Enabled func() bool
	Name    string
	Sync    v1beta1a.CronJobHandlerFunc
}

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

len(mockedCronJobController.AddFeatureHandlerCalls())

func (*CronJobControllerMock) AddHandler

func (mock *CronJobControllerMock) AddHandler(ctx context.Context, name string, handler v1beta1a.CronJobHandlerFunc)

AddHandler calls AddHandlerFunc.

func (*CronJobControllerMock) AddHandlerCalls

func (mock *CronJobControllerMock) AddHandlerCalls() []struct {
	Ctx     context.Context
	Name    string
	Handler v1beta1a.CronJobHandlerFunc
}

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

len(mockedCronJobController.AddHandlerCalls())

func (*CronJobControllerMock) Enqueue

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

Enqueue calls EnqueueFunc.

func (*CronJobControllerMock) EnqueueCalls

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

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

len(mockedCronJobController.EnqueueCalls())

func (*CronJobControllerMock) Generic

Generic calls GenericFunc.

func (*CronJobControllerMock) GenericCalls

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

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

len(mockedCronJobController.GenericCalls())

func (*CronJobControllerMock) Informer

Informer calls InformerFunc.

func (*CronJobControllerMock) InformerCalls

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

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

len(mockedCronJobController.InformerCalls())

func (*CronJobControllerMock) Lister

Lister calls ListerFunc.

func (*CronJobControllerMock) ListerCalls

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

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

len(mockedCronJobController.ListerCalls())

func (*CronJobControllerMock) Start

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

Start calls StartFunc.

func (*CronJobControllerMock) StartCalls

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

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

len(mockedCronJobController.StartCalls())

func (*CronJobControllerMock) Sync

func (mock *CronJobControllerMock) Sync(ctx context.Context) error

Sync calls SyncFunc.

func (*CronJobControllerMock) SyncCalls

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

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

len(mockedCronJobController.SyncCalls())

type CronJobInterfaceMock

type CronJobInterfaceMock struct {
	// AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method.
	AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1beta1a.CronJobHandlerFunc)

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

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

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

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

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

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

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

	// ControllerFunc mocks the Controller method.
	ControllerFunc func() v1beta1a.CronJobController

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

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

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

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

	// UpdateFunc mocks the Update method.
	UpdateFunc func(in1 *v1beta1.CronJob) (*v1beta1.CronJob, error)

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

CronJobInterfaceMock is a mock implementation of CronJobInterface.

    func TestSomethingThatUsesCronJobInterface(t *testing.T) {

        // make and configure a mocked CronJobInterface
        mockedCronJobInterface := &CronJobInterfaceMock{
            AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1beta1a.CronJobHandlerFunc)  {
	               panic("mock out the AddClusterScopedFeatureHandler method")
            },
            AddClusterScopedFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1beta1a.CronJobLifecycle)  {
	               panic("mock out the AddClusterScopedFeatureLifecycle method")
            },
            AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v1beta1a.CronJobHandlerFunc)  {
	               panic("mock out the AddClusterScopedHandler method")
            },
            AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v1beta1a.CronJobLifecycle)  {
	               panic("mock out the AddClusterScopedLifecycle method")
            },
            AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1beta1a.CronJobHandlerFunc)  {
	               panic("mock out the AddFeatureHandler method")
            },
            AddFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, lifecycle v1beta1a.CronJobLifecycle)  {
	               panic("mock out the AddFeatureLifecycle method")
            },
            AddHandlerFunc: func(ctx context.Context, name string, sync v1beta1a.CronJobHandlerFunc)  {
	               panic("mock out the AddHandler method")
            },
            AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v1beta1a.CronJobLifecycle)  {
	               panic("mock out the AddLifecycle method")
            },
            ControllerFunc: func() v1beta1a.CronJobController {
	               panic("mock out the Controller method")
            },
            CreateFunc: func(in1 *v1beta1.CronJob) (*v1beta1.CronJob, 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) (*v1beta1.CronJob, error) {
	               panic("mock out the Get method")
            },
            GetNamespacedFunc: func(namespace string, name string, opts v1.GetOptions) (*v1beta1.CronJob, error) {
	               panic("mock out the GetNamespaced method")
            },
            ListFunc: func(opts v1.ListOptions) (*v1beta1a.CronJobList, error) {
	               panic("mock out the List method")
            },
            ObjectClientFunc: func() *objectclient.ObjectClient {
	               panic("mock out the ObjectClient method")
            },
            UpdateFunc: func(in1 *v1beta1.CronJob) (*v1beta1.CronJob, error) {
	               panic("mock out the Update method")
            },
            WatchFunc: func(opts v1.ListOptions) (watch.Interface, error) {
	               panic("mock out the Watch method")
            },
        }

        // use mockedCronJobInterface in code that requires CronJobInterface
        // and then make assertions.

    }

func (*CronJobInterfaceMock) AddClusterScopedFeatureHandler

func (mock *CronJobInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1beta1a.CronJobHandlerFunc)

AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.

func (*CronJobInterfaceMock) AddClusterScopedFeatureHandlerCalls

func (mock *CronJobInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct {
	Ctx         context.Context
	Enabled     func() bool
	Name        string
	ClusterName string
	Sync        v1beta1a.CronJobHandlerFunc
}

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

len(mockedCronJobInterface.AddClusterScopedFeatureHandlerCalls())

func (*CronJobInterfaceMock) AddClusterScopedFeatureLifecycle

func (mock *CronJobInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1beta1a.CronJobLifecycle)

AddClusterScopedFeatureLifecycle calls AddClusterScopedFeatureLifecycleFunc.

func (*CronJobInterfaceMock) AddClusterScopedFeatureLifecycleCalls

func (mock *CronJobInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct {
	Ctx         context.Context
	Enabled     func() bool
	Name        string
	ClusterName string
	Lifecycle   v1beta1a.CronJobLifecycle
}

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

len(mockedCronJobInterface.AddClusterScopedFeatureLifecycleCalls())

func (*CronJobInterfaceMock) AddClusterScopedHandler

func (mock *CronJobInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v1beta1a.CronJobHandlerFunc)

AddClusterScopedHandler calls AddClusterScopedHandlerFunc.

func (*CronJobInterfaceMock) AddClusterScopedHandlerCalls

func (mock *CronJobInterfaceMock) AddClusterScopedHandlerCalls() []struct {
	Ctx         context.Context
	Name        string
	ClusterName string
	Sync        v1beta1a.CronJobHandlerFunc
}

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

len(mockedCronJobInterface.AddClusterScopedHandlerCalls())

func (*CronJobInterfaceMock) AddClusterScopedLifecycle

func (mock *CronJobInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v1beta1a.CronJobLifecycle)

AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc.

func (*CronJobInterfaceMock) AddClusterScopedLifecycleCalls

func (mock *CronJobInterfaceMock) AddClusterScopedLifecycleCalls() []struct {
	Ctx         context.Context
	Name        string
	ClusterName string
	Lifecycle   v1beta1a.CronJobLifecycle
}

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

len(mockedCronJobInterface.AddClusterScopedLifecycleCalls())

func (*CronJobInterfaceMock) AddFeatureHandler

func (mock *CronJobInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1beta1a.CronJobHandlerFunc)

AddFeatureHandler calls AddFeatureHandlerFunc.

func (*CronJobInterfaceMock) AddFeatureHandlerCalls

func (mock *CronJobInterfaceMock) AddFeatureHandlerCalls() []struct {
	Ctx     context.Context
	Enabled func() bool
	Name    string
	Sync    v1beta1a.CronJobHandlerFunc
}

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

len(mockedCronJobInterface.AddFeatureHandlerCalls())

func (*CronJobInterfaceMock) AddFeatureLifecycle

func (mock *CronJobInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, lifecycle v1beta1a.CronJobLifecycle)

AddFeatureLifecycle calls AddFeatureLifecycleFunc.

func (*CronJobInterfaceMock) AddFeatureLifecycleCalls

func (mock *CronJobInterfaceMock) AddFeatureLifecycleCalls() []struct {
	Ctx       context.Context
	Enabled   func() bool
	Name      string
	Lifecycle v1beta1a.CronJobLifecycle
}

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

len(mockedCronJobInterface.AddFeatureLifecycleCalls())

func (*CronJobInterfaceMock) AddHandler

func (mock *CronJobInterfaceMock) AddHandler(ctx context.Context, name string, sync v1beta1a.CronJobHandlerFunc)

AddHandler calls AddHandlerFunc.

func (*CronJobInterfaceMock) AddHandlerCalls

func (mock *CronJobInterfaceMock) AddHandlerCalls() []struct {
	Ctx  context.Context
	Name string
	Sync v1beta1a.CronJobHandlerFunc
}

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

len(mockedCronJobInterface.AddHandlerCalls())

func (*CronJobInterfaceMock) AddLifecycle

func (mock *CronJobInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1beta1a.CronJobLifecycle)

AddLifecycle calls AddLifecycleFunc.

func (*CronJobInterfaceMock) AddLifecycleCalls

func (mock *CronJobInterfaceMock) AddLifecycleCalls() []struct {
	Ctx       context.Context
	Name      string
	Lifecycle v1beta1a.CronJobLifecycle
}

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

len(mockedCronJobInterface.AddLifecycleCalls())

func (*CronJobInterfaceMock) Controller

func (mock *CronJobInterfaceMock) Controller() v1beta1a.CronJobController

Controller calls ControllerFunc.

func (*CronJobInterfaceMock) ControllerCalls

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

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

len(mockedCronJobInterface.ControllerCalls())

func (*CronJobInterfaceMock) Create

func (mock *CronJobInterfaceMock) Create(in1 *v1beta1.CronJob) (*v1beta1.CronJob, error)

Create calls CreateFunc.

func (*CronJobInterfaceMock) CreateCalls

func (mock *CronJobInterfaceMock) CreateCalls() []struct {
	In1 *v1beta1.CronJob
}

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

len(mockedCronJobInterface.CreateCalls())

func (*CronJobInterfaceMock) Delete

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

Delete calls DeleteFunc.

func (*CronJobInterfaceMock) DeleteCalls

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

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

len(mockedCronJobInterface.DeleteCalls())

func (*CronJobInterfaceMock) DeleteCollection

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

DeleteCollection calls DeleteCollectionFunc.

func (*CronJobInterfaceMock) DeleteCollectionCalls

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

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

len(mockedCronJobInterface.DeleteCollectionCalls())

func (*CronJobInterfaceMock) DeleteNamespaced

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

DeleteNamespaced calls DeleteNamespacedFunc.

func (*CronJobInterfaceMock) DeleteNamespacedCalls

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

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

len(mockedCronJobInterface.DeleteNamespacedCalls())

func (*CronJobInterfaceMock) Get

func (mock *CronJobInterfaceMock) Get(name string, opts v1.GetOptions) (*v1beta1.CronJob, error)

Get calls GetFunc.

func (*CronJobInterfaceMock) GetCalls

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

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

len(mockedCronJobInterface.GetCalls())

func (*CronJobInterfaceMock) GetNamespaced

func (mock *CronJobInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v1beta1.CronJob, error)

GetNamespaced calls GetNamespacedFunc.

func (*CronJobInterfaceMock) GetNamespacedCalls

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

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

len(mockedCronJobInterface.GetNamespacedCalls())

func (*CronJobInterfaceMock) List

List calls ListFunc.

func (*CronJobInterfaceMock) ListCalls

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

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

len(mockedCronJobInterface.ListCalls())

func (*CronJobInterfaceMock) ObjectClient

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

ObjectClient calls ObjectClientFunc.

func (*CronJobInterfaceMock) ObjectClientCalls

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

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

len(mockedCronJobInterface.ObjectClientCalls())

func (*CronJobInterfaceMock) Update

func (mock *CronJobInterfaceMock) Update(in1 *v1beta1.CronJob) (*v1beta1.CronJob, error)

Update calls UpdateFunc.

func (*CronJobInterfaceMock) UpdateCalls

func (mock *CronJobInterfaceMock) UpdateCalls() []struct {
	In1 *v1beta1.CronJob
}

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

len(mockedCronJobInterface.UpdateCalls())

func (*CronJobInterfaceMock) Watch

func (mock *CronJobInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error)

Watch calls WatchFunc.

func (*CronJobInterfaceMock) WatchCalls

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

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

len(mockedCronJobInterface.WatchCalls())

type CronJobListerMock

type CronJobListerMock struct {
	// GetFunc mocks the Get method.
	GetFunc func(namespace string, name string) (*v1beta1.CronJob, error)

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

CronJobListerMock is a mock implementation of CronJobLister.

    func TestSomethingThatUsesCronJobLister(t *testing.T) {

        // make and configure a mocked CronJobLister
        mockedCronJobLister := &CronJobListerMock{
            GetFunc: func(namespace string, name string) (*v1beta1.CronJob, error) {
	               panic("mock out the Get method")
            },
            ListFunc: func(namespace string, selector labels.Selector) ([]*v1beta1.CronJob, error) {
	               panic("mock out the List method")
            },
        }

        // use mockedCronJobLister in code that requires CronJobLister
        // and then make assertions.

    }

func (*CronJobListerMock) Get

func (mock *CronJobListerMock) Get(namespace string, name string) (*v1beta1.CronJob, error)

Get calls GetFunc.

func (*CronJobListerMock) GetCalls

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

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

len(mockedCronJobLister.GetCalls())

func (*CronJobListerMock) List

func (mock *CronJobListerMock) List(namespace string, selector labels.Selector) ([]*v1beta1.CronJob, error)

List calls ListFunc.

func (*CronJobListerMock) ListCalls

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

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

len(mockedCronJobLister.ListCalls())

type CronJobsGetterMock

type CronJobsGetterMock struct {
	// CronJobsFunc mocks the CronJobs method.
	CronJobsFunc func(namespace string) v1beta1a.CronJobInterface
	// contains filtered or unexported fields
}

CronJobsGetterMock is a mock implementation of CronJobsGetter.

    func TestSomethingThatUsesCronJobsGetter(t *testing.T) {

        // make and configure a mocked CronJobsGetter
        mockedCronJobsGetter := &CronJobsGetterMock{
            CronJobsFunc: func(namespace string) v1beta1a.CronJobInterface {
	               panic("mock out the CronJobs method")
            },
        }

        // use mockedCronJobsGetter in code that requires CronJobsGetter
        // and then make assertions.

    }

func (*CronJobsGetterMock) CronJobs

func (mock *CronJobsGetterMock) CronJobs(namespace string) v1beta1a.CronJobInterface

CronJobs calls CronJobsFunc.

func (*CronJobsGetterMock) CronJobsCalls

func (mock *CronJobsGetterMock) CronJobsCalls() []struct {
	Namespace string
}

CronJobsCalls gets all the calls that were made to CronJobs. Check the length with:

len(mockedCronJobsGetter.CronJobsCalls())

Jump to

Keyboard shortcuts

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