fakes

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: May 22, 2019 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 ExecutionCacheMock

type ExecutionCacheMock struct {
	// AddIndexerFunc mocks the AddIndexer method.
	AddIndexerFunc func(indexName string, indexer v1.ExecutionIndexer)

	// GetFunc mocks the Get method.
	GetFunc func(namespace string, name string) (*v1a.Execution, error)

	// GetByIndexFunc mocks the GetByIndex method.
	GetByIndexFunc func(indexName string, key string) ([]*v1a.Execution, error)

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

ExecutionCacheMock is a mock implementation of ExecutionCache.

    func TestSomethingThatUsesExecutionCache(t *testing.T) {

        // make and configure a mocked ExecutionCache
        mockedExecutionCache := &ExecutionCacheMock{
            AddIndexerFunc: func(indexName string, indexer v1.ExecutionIndexer)  {
	               panic("mock out the AddIndexer method")
            },
            GetFunc: func(namespace string, name string) (*v1a.Execution, error) {
	               panic("mock out the Get method")
            },
            GetByIndexFunc: func(indexName string, key string) ([]*v1a.Execution, error) {
	               panic("mock out the GetByIndex method")
            },
            ListFunc: func(namespace string, selector labels.Selector) ([]*v1a.Execution, error) {
	               panic("mock out the List method")
            },
        }

        // use mockedExecutionCache in code that requires ExecutionCache
        // and then make assertions.

    }

func (*ExecutionCacheMock) AddIndexer

func (mock *ExecutionCacheMock) AddIndexer(indexName string, indexer v1.ExecutionIndexer)

AddIndexer calls AddIndexerFunc.

func (*ExecutionCacheMock) AddIndexerCalls

func (mock *ExecutionCacheMock) AddIndexerCalls() []struct {
	IndexName string
	Indexer   v1.ExecutionIndexer
}

AddIndexerCalls gets all the calls that were made to AddIndexer. Check the length with:

len(mockedExecutionCache.AddIndexerCalls())

func (*ExecutionCacheMock) Get

func (mock *ExecutionCacheMock) Get(namespace string, name string) (*v1a.Execution, error)

Get calls GetFunc.

func (*ExecutionCacheMock) GetByIndex

func (mock *ExecutionCacheMock) GetByIndex(indexName string, key string) ([]*v1a.Execution, error)

GetByIndex calls GetByIndexFunc.

func (*ExecutionCacheMock) GetByIndexCalls

func (mock *ExecutionCacheMock) GetByIndexCalls() []struct {
	IndexName string
	Key       string
}

GetByIndexCalls gets all the calls that were made to GetByIndex. Check the length with:

len(mockedExecutionCache.GetByIndexCalls())

func (*ExecutionCacheMock) GetCalls

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

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

len(mockedExecutionCache.GetCalls())

func (*ExecutionCacheMock) List

func (mock *ExecutionCacheMock) List(namespace string, selector labels.Selector) ([]*v1a.Execution, error)

List calls ListFunc.

func (*ExecutionCacheMock) ListCalls

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

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

len(mockedExecutionCache.ListCalls())

type ExecutionClientMock

type ExecutionClientMock struct {
	// CreateFunc mocks the Create method.
	CreateFunc func(in1 *v1a.Execution) (*v1a.Execution, error)

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

	// GetFunc mocks the Get method.
	GetFunc func(namespace string, name string, options v1b.GetOptions) (*v1a.Execution, error)

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

	// PatchFunc mocks the Patch method.
	PatchFunc func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Execution, error)

	// UpdateFunc mocks the Update method.
	UpdateFunc func(in1 *v1a.Execution) (*v1a.Execution, error)

	// UpdateStatusFunc mocks the UpdateStatus method.
	UpdateStatusFunc func(in1 *v1a.Execution) (*v1a.Execution, error)

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

ExecutionClientMock is a mock implementation of ExecutionClient.

    func TestSomethingThatUsesExecutionClient(t *testing.T) {

        // make and configure a mocked ExecutionClient
        mockedExecutionClient := &ExecutionClientMock{
            CreateFunc: func(in1 *v1a.Execution) (*v1a.Execution, error) {
	               panic("mock out the Create method")
            },
            DeleteFunc: func(namespace string, name string, options *v1b.DeleteOptions) error {
	               panic("mock out the Delete method")
            },
            GetFunc: func(namespace string, name string, options v1b.GetOptions) (*v1a.Execution, error) {
	               panic("mock out the Get method")
            },
            ListFunc: func(namespace string, opts v1b.ListOptions) (*v1a.ExecutionList, error) {
	               panic("mock out the List method")
            },
            PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Execution, error) {
	               panic("mock out the Patch method")
            },
            UpdateFunc: func(in1 *v1a.Execution) (*v1a.Execution, error) {
	               panic("mock out the Update method")
            },
            UpdateStatusFunc: func(in1 *v1a.Execution) (*v1a.Execution, error) {
	               panic("mock out the UpdateStatus method")
            },
            WatchFunc: func(namespace string, opts v1b.ListOptions) (watch.Interface, error) {
	               panic("mock out the Watch method")
            },
        }

        // use mockedExecutionClient in code that requires ExecutionClient
        // and then make assertions.

    }

func (*ExecutionClientMock) Create

func (mock *ExecutionClientMock) Create(in1 *v1a.Execution) (*v1a.Execution, error)

Create calls CreateFunc.

func (*ExecutionClientMock) CreateCalls

func (mock *ExecutionClientMock) CreateCalls() []struct {
	In1 *v1a.Execution
}

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

len(mockedExecutionClient.CreateCalls())

func (*ExecutionClientMock) Delete

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

Delete calls DeleteFunc.

func (*ExecutionClientMock) DeleteCalls

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

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

len(mockedExecutionClient.DeleteCalls())

func (*ExecutionClientMock) Get

func (mock *ExecutionClientMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.Execution, error)

Get calls GetFunc.

func (*ExecutionClientMock) GetCalls

func (mock *ExecutionClientMock) GetCalls() []struct {
	Namespace string
	Name      string
	Options   v1b.GetOptions
}

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

len(mockedExecutionClient.GetCalls())

func (*ExecutionClientMock) List

func (mock *ExecutionClientMock) List(namespace string, opts v1b.ListOptions) (*v1a.ExecutionList, error)

List calls ListFunc.

func (*ExecutionClientMock) ListCalls

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

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

len(mockedExecutionClient.ListCalls())

func (*ExecutionClientMock) Patch

func (mock *ExecutionClientMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Execution, error)

Patch calls PatchFunc.

func (*ExecutionClientMock) PatchCalls

func (mock *ExecutionClientMock) PatchCalls() []struct {
	Namespace    string
	Name         string
	Pt           types.PatchType
	Data         []byte
	Subresources []string
}

PatchCalls gets all the calls that were made to Patch. Check the length with:

len(mockedExecutionClient.PatchCalls())

func (*ExecutionClientMock) Update

func (mock *ExecutionClientMock) Update(in1 *v1a.Execution) (*v1a.Execution, error)

Update calls UpdateFunc.

func (*ExecutionClientMock) UpdateCalls

func (mock *ExecutionClientMock) UpdateCalls() []struct {
	In1 *v1a.Execution
}

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

len(mockedExecutionClient.UpdateCalls())

func (*ExecutionClientMock) UpdateStatus

func (mock *ExecutionClientMock) UpdateStatus(in1 *v1a.Execution) (*v1a.Execution, error)

UpdateStatus calls UpdateStatusFunc.

func (*ExecutionClientMock) UpdateStatusCalls

func (mock *ExecutionClientMock) UpdateStatusCalls() []struct {
	In1 *v1a.Execution
}

UpdateStatusCalls gets all the calls that were made to UpdateStatus. Check the length with:

len(mockedExecutionClient.UpdateStatusCalls())

func (*ExecutionClientMock) Watch

func (mock *ExecutionClientMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)

Watch calls WatchFunc.

func (*ExecutionClientMock) WatchCalls

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

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

len(mockedExecutionClient.WatchCalls())

type ExecutionControllerMock

type ExecutionControllerMock struct {
	// AddGenericHandlerFunc mocks the AddGenericHandler method.
	AddGenericHandlerFunc func(ctx context.Context, name string, handler generic.Handler)

	// AddGenericRemoveHandlerFunc mocks the AddGenericRemoveHandler method.
	AddGenericRemoveHandlerFunc func(ctx context.Context, name string, handler generic.Handler)

	// CacheFunc mocks the Cache method.
	CacheFunc func() v1.ExecutionCache

	// CreateFunc mocks the Create method.
	CreateFunc func(in1 *v1a.Execution) (*v1a.Execution, error)

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

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

	// GetFunc mocks the Get method.
	GetFunc func(namespace string, name string, options v1b.GetOptions) (*v1a.Execution, error)

	// GroupVersionKindFunc mocks the GroupVersionKind method.
	GroupVersionKindFunc func() schema.GroupVersionKind

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

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

	// OnChangeFunc mocks the OnChange method.
	OnChangeFunc func(ctx context.Context, name string, sync v1.ExecutionHandler)

	// OnRemoveFunc mocks the OnRemove method.
	OnRemoveFunc func(ctx context.Context, name string, sync v1.ExecutionHandler)

	// PatchFunc mocks the Patch method.
	PatchFunc func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Execution, error)

	// UpdateFunc mocks the Update method.
	UpdateFunc func(in1 *v1a.Execution) (*v1a.Execution, error)

	// UpdateStatusFunc mocks the UpdateStatus method.
	UpdateStatusFunc func(in1 *v1a.Execution) (*v1a.Execution, error)

	// UpdaterFunc mocks the Updater method.
	UpdaterFunc func() generic.Updater

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

ExecutionControllerMock is a mock implementation of ExecutionController.

    func TestSomethingThatUsesExecutionController(t *testing.T) {

        // make and configure a mocked ExecutionController
        mockedExecutionController := &ExecutionControllerMock{
            AddGenericHandlerFunc: func(ctx context.Context, name string, handler generic.Handler)  {
	               panic("mock out the AddGenericHandler method")
            },
            AddGenericRemoveHandlerFunc: func(ctx context.Context, name string, handler generic.Handler)  {
	               panic("mock out the AddGenericRemoveHandler method")
            },
            CacheFunc: func() v1.ExecutionCache {
	               panic("mock out the Cache method")
            },
            CreateFunc: func(in1 *v1a.Execution) (*v1a.Execution, error) {
	               panic("mock out the Create method")
            },
            DeleteFunc: func(namespace string, name string, options *v1b.DeleteOptions) error {
	               panic("mock out the Delete method")
            },
            EnqueueFunc: func(namespace string, name string)  {
	               panic("mock out the Enqueue method")
            },
            GetFunc: func(namespace string, name string, options v1b.GetOptions) (*v1a.Execution, error) {
	               panic("mock out the Get method")
            },
            GroupVersionKindFunc: func() schema.GroupVersionKind {
	               panic("mock out the GroupVersionKind method")
            },
            InformerFunc: func() cache.SharedIndexInformer {
	               panic("mock out the Informer method")
            },
            ListFunc: func(namespace string, opts v1b.ListOptions) (*v1a.ExecutionList, error) {
	               panic("mock out the List method")
            },
            OnChangeFunc: func(ctx context.Context, name string, sync v1.ExecutionHandler)  {
	               panic("mock out the OnChange method")
            },
            OnRemoveFunc: func(ctx context.Context, name string, sync v1.ExecutionHandler)  {
	               panic("mock out the OnRemove method")
            },
            PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Execution, error) {
	               panic("mock out the Patch method")
            },
            UpdateFunc: func(in1 *v1a.Execution) (*v1a.Execution, error) {
	               panic("mock out the Update method")
            },
            UpdateStatusFunc: func(in1 *v1a.Execution) (*v1a.Execution, error) {
	               panic("mock out the UpdateStatus method")
            },
            UpdaterFunc: func() generic.Updater {
	               panic("mock out the Updater method")
            },
            WatchFunc: func(namespace string, opts v1b.ListOptions) (watch.Interface, error) {
	               panic("mock out the Watch method")
            },
        }

        // use mockedExecutionController in code that requires ExecutionController
        // and then make assertions.

    }

func (*ExecutionControllerMock) AddGenericHandler

func (mock *ExecutionControllerMock) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)

AddGenericHandler calls AddGenericHandlerFunc.

func (*ExecutionControllerMock) AddGenericHandlerCalls

func (mock *ExecutionControllerMock) AddGenericHandlerCalls() []struct {
	Ctx     context.Context
	Name    string
	Handler generic.Handler
}

AddGenericHandlerCalls gets all the calls that were made to AddGenericHandler. Check the length with:

len(mockedExecutionController.AddGenericHandlerCalls())

func (*ExecutionControllerMock) AddGenericRemoveHandler

func (mock *ExecutionControllerMock) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)

AddGenericRemoveHandler calls AddGenericRemoveHandlerFunc.

func (*ExecutionControllerMock) AddGenericRemoveHandlerCalls

func (mock *ExecutionControllerMock) AddGenericRemoveHandlerCalls() []struct {
	Ctx     context.Context
	Name    string
	Handler generic.Handler
}

AddGenericRemoveHandlerCalls gets all the calls that were made to AddGenericRemoveHandler. Check the length with:

len(mockedExecutionController.AddGenericRemoveHandlerCalls())

func (*ExecutionControllerMock) Cache

Cache calls CacheFunc.

func (*ExecutionControllerMock) CacheCalls

func (mock *ExecutionControllerMock) CacheCalls() []struct {
}

CacheCalls gets all the calls that were made to Cache. Check the length with:

len(mockedExecutionController.CacheCalls())

func (*ExecutionControllerMock) Create

func (mock *ExecutionControllerMock) Create(in1 *v1a.Execution) (*v1a.Execution, error)

Create calls CreateFunc.

func (*ExecutionControllerMock) CreateCalls

func (mock *ExecutionControllerMock) CreateCalls() []struct {
	In1 *v1a.Execution
}

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

len(mockedExecutionController.CreateCalls())

func (*ExecutionControllerMock) Delete

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

Delete calls DeleteFunc.

func (*ExecutionControllerMock) DeleteCalls

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

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

len(mockedExecutionController.DeleteCalls())

func (*ExecutionControllerMock) Enqueue

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

Enqueue calls EnqueueFunc.

func (*ExecutionControllerMock) EnqueueCalls

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

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

len(mockedExecutionController.EnqueueCalls())

func (*ExecutionControllerMock) Get

func (mock *ExecutionControllerMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.Execution, error)

Get calls GetFunc.

func (*ExecutionControllerMock) GetCalls

func (mock *ExecutionControllerMock) GetCalls() []struct {
	Namespace string
	Name      string
	Options   v1b.GetOptions
}

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

len(mockedExecutionController.GetCalls())

func (*ExecutionControllerMock) GroupVersionKind

func (mock *ExecutionControllerMock) GroupVersionKind() schema.GroupVersionKind

GroupVersionKind calls GroupVersionKindFunc.

func (*ExecutionControllerMock) GroupVersionKindCalls

func (mock *ExecutionControllerMock) GroupVersionKindCalls() []struct {
}

GroupVersionKindCalls gets all the calls that were made to GroupVersionKind. Check the length with:

len(mockedExecutionController.GroupVersionKindCalls())

func (*ExecutionControllerMock) Informer

Informer calls InformerFunc.

func (*ExecutionControllerMock) InformerCalls

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

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

len(mockedExecutionController.InformerCalls())

func (*ExecutionControllerMock) List

func (mock *ExecutionControllerMock) List(namespace string, opts v1b.ListOptions) (*v1a.ExecutionList, error)

List calls ListFunc.

func (*ExecutionControllerMock) ListCalls

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

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

len(mockedExecutionController.ListCalls())

func (*ExecutionControllerMock) OnChange

func (mock *ExecutionControllerMock) OnChange(ctx context.Context, name string, sync v1.ExecutionHandler)

OnChange calls OnChangeFunc.

func (*ExecutionControllerMock) OnChangeCalls

func (mock *ExecutionControllerMock) OnChangeCalls() []struct {
	Ctx  context.Context
	Name string
	Sync v1.ExecutionHandler
}

OnChangeCalls gets all the calls that were made to OnChange. Check the length with:

len(mockedExecutionController.OnChangeCalls())

func (*ExecutionControllerMock) OnRemove

func (mock *ExecutionControllerMock) OnRemove(ctx context.Context, name string, sync v1.ExecutionHandler)

OnRemove calls OnRemoveFunc.

func (*ExecutionControllerMock) OnRemoveCalls

func (mock *ExecutionControllerMock) OnRemoveCalls() []struct {
	Ctx  context.Context
	Name string
	Sync v1.ExecutionHandler
}

OnRemoveCalls gets all the calls that were made to OnRemove. Check the length with:

len(mockedExecutionController.OnRemoveCalls())

func (*ExecutionControllerMock) Patch

func (mock *ExecutionControllerMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Execution, error)

Patch calls PatchFunc.

func (*ExecutionControllerMock) PatchCalls

func (mock *ExecutionControllerMock) PatchCalls() []struct {
	Namespace    string
	Name         string
	Pt           types.PatchType
	Data         []byte
	Subresources []string
}

PatchCalls gets all the calls that were made to Patch. Check the length with:

len(mockedExecutionController.PatchCalls())

func (*ExecutionControllerMock) Update

func (mock *ExecutionControllerMock) Update(in1 *v1a.Execution) (*v1a.Execution, error)

Update calls UpdateFunc.

func (*ExecutionControllerMock) UpdateCalls

func (mock *ExecutionControllerMock) UpdateCalls() []struct {
	In1 *v1a.Execution
}

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

len(mockedExecutionController.UpdateCalls())

func (*ExecutionControllerMock) UpdateStatus

func (mock *ExecutionControllerMock) UpdateStatus(in1 *v1a.Execution) (*v1a.Execution, error)

UpdateStatus calls UpdateStatusFunc.

func (*ExecutionControllerMock) UpdateStatusCalls

func (mock *ExecutionControllerMock) UpdateStatusCalls() []struct {
	In1 *v1a.Execution
}

UpdateStatusCalls gets all the calls that were made to UpdateStatus. Check the length with:

len(mockedExecutionController.UpdateStatusCalls())

func (*ExecutionControllerMock) Updater

func (mock *ExecutionControllerMock) Updater() generic.Updater

Updater calls UpdaterFunc.

func (*ExecutionControllerMock) UpdaterCalls

func (mock *ExecutionControllerMock) UpdaterCalls() []struct {
}

UpdaterCalls gets all the calls that were made to Updater. Check the length with:

len(mockedExecutionController.UpdaterCalls())

func (*ExecutionControllerMock) Watch

func (mock *ExecutionControllerMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)

Watch calls WatchFunc.

func (*ExecutionControllerMock) WatchCalls

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

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

len(mockedExecutionController.WatchCalls())

type ExecutionRunCacheMock

type ExecutionRunCacheMock struct {
	// AddIndexerFunc mocks the AddIndexer method.
	AddIndexerFunc func(indexName string, indexer v1.ExecutionRunIndexer)

	// GetFunc mocks the Get method.
	GetFunc func(namespace string, name string) (*v1a.ExecutionRun, error)

	// GetByIndexFunc mocks the GetByIndex method.
	GetByIndexFunc func(indexName string, key string) ([]*v1a.ExecutionRun, error)

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

ExecutionRunCacheMock is a mock implementation of ExecutionRunCache.

    func TestSomethingThatUsesExecutionRunCache(t *testing.T) {

        // make and configure a mocked ExecutionRunCache
        mockedExecutionRunCache := &ExecutionRunCacheMock{
            AddIndexerFunc: func(indexName string, indexer v1.ExecutionRunIndexer)  {
	               panic("mock out the AddIndexer method")
            },
            GetFunc: func(namespace string, name string) (*v1a.ExecutionRun, error) {
	               panic("mock out the Get method")
            },
            GetByIndexFunc: func(indexName string, key string) ([]*v1a.ExecutionRun, error) {
	               panic("mock out the GetByIndex method")
            },
            ListFunc: func(namespace string, selector labels.Selector) ([]*v1a.ExecutionRun, error) {
	               panic("mock out the List method")
            },
        }

        // use mockedExecutionRunCache in code that requires ExecutionRunCache
        // and then make assertions.

    }

func (*ExecutionRunCacheMock) AddIndexer

func (mock *ExecutionRunCacheMock) AddIndexer(indexName string, indexer v1.ExecutionRunIndexer)

AddIndexer calls AddIndexerFunc.

func (*ExecutionRunCacheMock) AddIndexerCalls

func (mock *ExecutionRunCacheMock) AddIndexerCalls() []struct {
	IndexName string
	Indexer   v1.ExecutionRunIndexer
}

AddIndexerCalls gets all the calls that were made to AddIndexer. Check the length with:

len(mockedExecutionRunCache.AddIndexerCalls())

func (*ExecutionRunCacheMock) Get

func (mock *ExecutionRunCacheMock) Get(namespace string, name string) (*v1a.ExecutionRun, error)

Get calls GetFunc.

func (*ExecutionRunCacheMock) GetByIndex

func (mock *ExecutionRunCacheMock) GetByIndex(indexName string, key string) ([]*v1a.ExecutionRun, error)

GetByIndex calls GetByIndexFunc.

func (*ExecutionRunCacheMock) GetByIndexCalls

func (mock *ExecutionRunCacheMock) GetByIndexCalls() []struct {
	IndexName string
	Key       string
}

GetByIndexCalls gets all the calls that were made to GetByIndex. Check the length with:

len(mockedExecutionRunCache.GetByIndexCalls())

func (*ExecutionRunCacheMock) GetCalls

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

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

len(mockedExecutionRunCache.GetCalls())

func (*ExecutionRunCacheMock) List

func (mock *ExecutionRunCacheMock) List(namespace string, selector labels.Selector) ([]*v1a.ExecutionRun, error)

List calls ListFunc.

func (*ExecutionRunCacheMock) ListCalls

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

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

len(mockedExecutionRunCache.ListCalls())

type ExecutionRunClientMock

type ExecutionRunClientMock struct {
	// CreateFunc mocks the Create method.
	CreateFunc func(in1 *v1a.ExecutionRun) (*v1a.ExecutionRun, error)

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

	// GetFunc mocks the Get method.
	GetFunc func(namespace string, name string, options v1b.GetOptions) (*v1a.ExecutionRun, error)

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

	// PatchFunc mocks the Patch method.
	PatchFunc func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.ExecutionRun, error)

	// UpdateFunc mocks the Update method.
	UpdateFunc func(in1 *v1a.ExecutionRun) (*v1a.ExecutionRun, error)

	// UpdateStatusFunc mocks the UpdateStatus method.
	UpdateStatusFunc func(in1 *v1a.ExecutionRun) (*v1a.ExecutionRun, error)

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

ExecutionRunClientMock is a mock implementation of ExecutionRunClient.

    func TestSomethingThatUsesExecutionRunClient(t *testing.T) {

        // make and configure a mocked ExecutionRunClient
        mockedExecutionRunClient := &ExecutionRunClientMock{
            CreateFunc: func(in1 *v1a.ExecutionRun) (*v1a.ExecutionRun, error) {
	               panic("mock out the Create method")
            },
            DeleteFunc: func(namespace string, name string, options *v1b.DeleteOptions) error {
	               panic("mock out the Delete method")
            },
            GetFunc: func(namespace string, name string, options v1b.GetOptions) (*v1a.ExecutionRun, error) {
	               panic("mock out the Get method")
            },
            ListFunc: func(namespace string, opts v1b.ListOptions) (*v1a.ExecutionRunList, error) {
	               panic("mock out the List method")
            },
            PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.ExecutionRun, error) {
	               panic("mock out the Patch method")
            },
            UpdateFunc: func(in1 *v1a.ExecutionRun) (*v1a.ExecutionRun, error) {
	               panic("mock out the Update method")
            },
            UpdateStatusFunc: func(in1 *v1a.ExecutionRun) (*v1a.ExecutionRun, error) {
	               panic("mock out the UpdateStatus method")
            },
            WatchFunc: func(namespace string, opts v1b.ListOptions) (watch.Interface, error) {
	               panic("mock out the Watch method")
            },
        }

        // use mockedExecutionRunClient in code that requires ExecutionRunClient
        // and then make assertions.

    }

func (*ExecutionRunClientMock) Create

Create calls CreateFunc.

func (*ExecutionRunClientMock) CreateCalls

func (mock *ExecutionRunClientMock) CreateCalls() []struct {
	In1 *v1a.ExecutionRun
}

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

len(mockedExecutionRunClient.CreateCalls())

func (*ExecutionRunClientMock) Delete

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

Delete calls DeleteFunc.

func (*ExecutionRunClientMock) DeleteCalls

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

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

len(mockedExecutionRunClient.DeleteCalls())

func (*ExecutionRunClientMock) Get

func (mock *ExecutionRunClientMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.ExecutionRun, error)

Get calls GetFunc.

func (*ExecutionRunClientMock) GetCalls

func (mock *ExecutionRunClientMock) GetCalls() []struct {
	Namespace string
	Name      string
	Options   v1b.GetOptions
}

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

len(mockedExecutionRunClient.GetCalls())

func (*ExecutionRunClientMock) List

func (mock *ExecutionRunClientMock) List(namespace string, opts v1b.ListOptions) (*v1a.ExecutionRunList, error)

List calls ListFunc.

func (*ExecutionRunClientMock) ListCalls

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

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

len(mockedExecutionRunClient.ListCalls())

func (*ExecutionRunClientMock) Patch

func (mock *ExecutionRunClientMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.ExecutionRun, error)

Patch calls PatchFunc.

func (*ExecutionRunClientMock) PatchCalls

func (mock *ExecutionRunClientMock) PatchCalls() []struct {
	Namespace    string
	Name         string
	Pt           types.PatchType
	Data         []byte
	Subresources []string
}

PatchCalls gets all the calls that were made to Patch. Check the length with:

len(mockedExecutionRunClient.PatchCalls())

func (*ExecutionRunClientMock) Update

Update calls UpdateFunc.

func (*ExecutionRunClientMock) UpdateCalls

func (mock *ExecutionRunClientMock) UpdateCalls() []struct {
	In1 *v1a.ExecutionRun
}

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

len(mockedExecutionRunClient.UpdateCalls())

func (*ExecutionRunClientMock) UpdateStatus

func (mock *ExecutionRunClientMock) UpdateStatus(in1 *v1a.ExecutionRun) (*v1a.ExecutionRun, error)

UpdateStatus calls UpdateStatusFunc.

func (*ExecutionRunClientMock) UpdateStatusCalls

func (mock *ExecutionRunClientMock) UpdateStatusCalls() []struct {
	In1 *v1a.ExecutionRun
}

UpdateStatusCalls gets all the calls that were made to UpdateStatus. Check the length with:

len(mockedExecutionRunClient.UpdateStatusCalls())

func (*ExecutionRunClientMock) Watch

func (mock *ExecutionRunClientMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)

Watch calls WatchFunc.

func (*ExecutionRunClientMock) WatchCalls

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

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

len(mockedExecutionRunClient.WatchCalls())

type ExecutionRunControllerMock

type ExecutionRunControllerMock struct {
	// AddGenericHandlerFunc mocks the AddGenericHandler method.
	AddGenericHandlerFunc func(ctx context.Context, name string, handler generic.Handler)

	// AddGenericRemoveHandlerFunc mocks the AddGenericRemoveHandler method.
	AddGenericRemoveHandlerFunc func(ctx context.Context, name string, handler generic.Handler)

	// CacheFunc mocks the Cache method.
	CacheFunc func() v1.ExecutionRunCache

	// CreateFunc mocks the Create method.
	CreateFunc func(in1 *v1a.ExecutionRun) (*v1a.ExecutionRun, error)

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

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

	// GetFunc mocks the Get method.
	GetFunc func(namespace string, name string, options v1b.GetOptions) (*v1a.ExecutionRun, error)

	// GroupVersionKindFunc mocks the GroupVersionKind method.
	GroupVersionKindFunc func() schema.GroupVersionKind

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

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

	// OnChangeFunc mocks the OnChange method.
	OnChangeFunc func(ctx context.Context, name string, sync v1.ExecutionRunHandler)

	// OnRemoveFunc mocks the OnRemove method.
	OnRemoveFunc func(ctx context.Context, name string, sync v1.ExecutionRunHandler)

	// PatchFunc mocks the Patch method.
	PatchFunc func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.ExecutionRun, error)

	// UpdateFunc mocks the Update method.
	UpdateFunc func(in1 *v1a.ExecutionRun) (*v1a.ExecutionRun, error)

	// UpdateStatusFunc mocks the UpdateStatus method.
	UpdateStatusFunc func(in1 *v1a.ExecutionRun) (*v1a.ExecutionRun, error)

	// UpdaterFunc mocks the Updater method.
	UpdaterFunc func() generic.Updater

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

ExecutionRunControllerMock is a mock implementation of ExecutionRunController.

    func TestSomethingThatUsesExecutionRunController(t *testing.T) {

        // make and configure a mocked ExecutionRunController
        mockedExecutionRunController := &ExecutionRunControllerMock{
            AddGenericHandlerFunc: func(ctx context.Context, name string, handler generic.Handler)  {
	               panic("mock out the AddGenericHandler method")
            },
            AddGenericRemoveHandlerFunc: func(ctx context.Context, name string, handler generic.Handler)  {
	               panic("mock out the AddGenericRemoveHandler method")
            },
            CacheFunc: func() v1.ExecutionRunCache {
	               panic("mock out the Cache method")
            },
            CreateFunc: func(in1 *v1a.ExecutionRun) (*v1a.ExecutionRun, error) {
	               panic("mock out the Create method")
            },
            DeleteFunc: func(namespace string, name string, options *v1b.DeleteOptions) error {
	               panic("mock out the Delete method")
            },
            EnqueueFunc: func(namespace string, name string)  {
	               panic("mock out the Enqueue method")
            },
            GetFunc: func(namespace string, name string, options v1b.GetOptions) (*v1a.ExecutionRun, error) {
	               panic("mock out the Get method")
            },
            GroupVersionKindFunc: func() schema.GroupVersionKind {
	               panic("mock out the GroupVersionKind method")
            },
            InformerFunc: func() cache.SharedIndexInformer {
	               panic("mock out the Informer method")
            },
            ListFunc: func(namespace string, opts v1b.ListOptions) (*v1a.ExecutionRunList, error) {
	               panic("mock out the List method")
            },
            OnChangeFunc: func(ctx context.Context, name string, sync v1.ExecutionRunHandler)  {
	               panic("mock out the OnChange method")
            },
            OnRemoveFunc: func(ctx context.Context, name string, sync v1.ExecutionRunHandler)  {
	               panic("mock out the OnRemove method")
            },
            PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.ExecutionRun, error) {
	               panic("mock out the Patch method")
            },
            UpdateFunc: func(in1 *v1a.ExecutionRun) (*v1a.ExecutionRun, error) {
	               panic("mock out the Update method")
            },
            UpdateStatusFunc: func(in1 *v1a.ExecutionRun) (*v1a.ExecutionRun, error) {
	               panic("mock out the UpdateStatus method")
            },
            UpdaterFunc: func() generic.Updater {
	               panic("mock out the Updater method")
            },
            WatchFunc: func(namespace string, opts v1b.ListOptions) (watch.Interface, error) {
	               panic("mock out the Watch method")
            },
        }

        // use mockedExecutionRunController in code that requires ExecutionRunController
        // and then make assertions.

    }

func (*ExecutionRunControllerMock) AddGenericHandler

func (mock *ExecutionRunControllerMock) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)

AddGenericHandler calls AddGenericHandlerFunc.

func (*ExecutionRunControllerMock) AddGenericHandlerCalls

func (mock *ExecutionRunControllerMock) AddGenericHandlerCalls() []struct {
	Ctx     context.Context
	Name    string
	Handler generic.Handler
}

AddGenericHandlerCalls gets all the calls that were made to AddGenericHandler. Check the length with:

len(mockedExecutionRunController.AddGenericHandlerCalls())

func (*ExecutionRunControllerMock) AddGenericRemoveHandler

func (mock *ExecutionRunControllerMock) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)

AddGenericRemoveHandler calls AddGenericRemoveHandlerFunc.

func (*ExecutionRunControllerMock) AddGenericRemoveHandlerCalls

func (mock *ExecutionRunControllerMock) AddGenericRemoveHandlerCalls() []struct {
	Ctx     context.Context
	Name    string
	Handler generic.Handler
}

AddGenericRemoveHandlerCalls gets all the calls that were made to AddGenericRemoveHandler. Check the length with:

len(mockedExecutionRunController.AddGenericRemoveHandlerCalls())

func (*ExecutionRunControllerMock) Cache

Cache calls CacheFunc.

func (*ExecutionRunControllerMock) CacheCalls

func (mock *ExecutionRunControllerMock) CacheCalls() []struct {
}

CacheCalls gets all the calls that were made to Cache. Check the length with:

len(mockedExecutionRunController.CacheCalls())

func (*ExecutionRunControllerMock) Create

Create calls CreateFunc.

func (*ExecutionRunControllerMock) CreateCalls

func (mock *ExecutionRunControllerMock) CreateCalls() []struct {
	In1 *v1a.ExecutionRun
}

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

len(mockedExecutionRunController.CreateCalls())

func (*ExecutionRunControllerMock) Delete

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

Delete calls DeleteFunc.

func (*ExecutionRunControllerMock) DeleteCalls

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

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

len(mockedExecutionRunController.DeleteCalls())

func (*ExecutionRunControllerMock) Enqueue

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

Enqueue calls EnqueueFunc.

func (*ExecutionRunControllerMock) EnqueueCalls

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

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

len(mockedExecutionRunController.EnqueueCalls())

func (*ExecutionRunControllerMock) Get

func (mock *ExecutionRunControllerMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.ExecutionRun, error)

Get calls GetFunc.

func (*ExecutionRunControllerMock) GetCalls

func (mock *ExecutionRunControllerMock) GetCalls() []struct {
	Namespace string
	Name      string
	Options   v1b.GetOptions
}

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

len(mockedExecutionRunController.GetCalls())

func (*ExecutionRunControllerMock) GroupVersionKind

func (mock *ExecutionRunControllerMock) GroupVersionKind() schema.GroupVersionKind

GroupVersionKind calls GroupVersionKindFunc.

func (*ExecutionRunControllerMock) GroupVersionKindCalls

func (mock *ExecutionRunControllerMock) GroupVersionKindCalls() []struct {
}

GroupVersionKindCalls gets all the calls that were made to GroupVersionKind. Check the length with:

len(mockedExecutionRunController.GroupVersionKindCalls())

func (*ExecutionRunControllerMock) Informer

Informer calls InformerFunc.

func (*ExecutionRunControllerMock) InformerCalls

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

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

len(mockedExecutionRunController.InformerCalls())

func (*ExecutionRunControllerMock) List

func (mock *ExecutionRunControllerMock) List(namespace string, opts v1b.ListOptions) (*v1a.ExecutionRunList, error)

List calls ListFunc.

func (*ExecutionRunControllerMock) ListCalls

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

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

len(mockedExecutionRunController.ListCalls())

func (*ExecutionRunControllerMock) OnChange

func (mock *ExecutionRunControllerMock) OnChange(ctx context.Context, name string, sync v1.ExecutionRunHandler)

OnChange calls OnChangeFunc.

func (*ExecutionRunControllerMock) OnChangeCalls

func (mock *ExecutionRunControllerMock) OnChangeCalls() []struct {
	Ctx  context.Context
	Name string
	Sync v1.ExecutionRunHandler
}

OnChangeCalls gets all the calls that were made to OnChange. Check the length with:

len(mockedExecutionRunController.OnChangeCalls())

func (*ExecutionRunControllerMock) OnRemove

func (mock *ExecutionRunControllerMock) OnRemove(ctx context.Context, name string, sync v1.ExecutionRunHandler)

OnRemove calls OnRemoveFunc.

func (*ExecutionRunControllerMock) OnRemoveCalls

func (mock *ExecutionRunControllerMock) OnRemoveCalls() []struct {
	Ctx  context.Context
	Name string
	Sync v1.ExecutionRunHandler
}

OnRemoveCalls gets all the calls that were made to OnRemove. Check the length with:

len(mockedExecutionRunController.OnRemoveCalls())

func (*ExecutionRunControllerMock) Patch

func (mock *ExecutionRunControllerMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.ExecutionRun, error)

Patch calls PatchFunc.

func (*ExecutionRunControllerMock) PatchCalls

func (mock *ExecutionRunControllerMock) PatchCalls() []struct {
	Namespace    string
	Name         string
	Pt           types.PatchType
	Data         []byte
	Subresources []string
}

PatchCalls gets all the calls that were made to Patch. Check the length with:

len(mockedExecutionRunController.PatchCalls())

func (*ExecutionRunControllerMock) Update

Update calls UpdateFunc.

func (*ExecutionRunControllerMock) UpdateCalls

func (mock *ExecutionRunControllerMock) UpdateCalls() []struct {
	In1 *v1a.ExecutionRun
}

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

len(mockedExecutionRunController.UpdateCalls())

func (*ExecutionRunControllerMock) UpdateStatus

func (mock *ExecutionRunControllerMock) UpdateStatus(in1 *v1a.ExecutionRun) (*v1a.ExecutionRun, error)

UpdateStatus calls UpdateStatusFunc.

func (*ExecutionRunControllerMock) UpdateStatusCalls

func (mock *ExecutionRunControllerMock) UpdateStatusCalls() []struct {
	In1 *v1a.ExecutionRun
}

UpdateStatusCalls gets all the calls that were made to UpdateStatus. Check the length with:

len(mockedExecutionRunController.UpdateStatusCalls())

func (*ExecutionRunControllerMock) Updater

func (mock *ExecutionRunControllerMock) Updater() generic.Updater

Updater calls UpdaterFunc.

func (*ExecutionRunControllerMock) UpdaterCalls

func (mock *ExecutionRunControllerMock) UpdaterCalls() []struct {
}

UpdaterCalls gets all the calls that were made to Updater. Check the length with:

len(mockedExecutionRunController.UpdaterCalls())

func (*ExecutionRunControllerMock) Watch

func (mock *ExecutionRunControllerMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)

Watch calls WatchFunc.

func (*ExecutionRunControllerMock) WatchCalls

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

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

len(mockedExecutionRunController.WatchCalls())

type ModuleCacheMock

type ModuleCacheMock struct {
	// AddIndexerFunc mocks the AddIndexer method.
	AddIndexerFunc func(indexName string, indexer v1.ModuleIndexer)

	// GetFunc mocks the Get method.
	GetFunc func(namespace string, name string) (*v1a.Module, error)

	// GetByIndexFunc mocks the GetByIndex method.
	GetByIndexFunc func(indexName string, key string) ([]*v1a.Module, error)

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

ModuleCacheMock is a mock implementation of ModuleCache.

    func TestSomethingThatUsesModuleCache(t *testing.T) {

        // make and configure a mocked ModuleCache
        mockedModuleCache := &ModuleCacheMock{
            AddIndexerFunc: func(indexName string, indexer v1.ModuleIndexer)  {
	               panic("mock out the AddIndexer method")
            },
            GetFunc: func(namespace string, name string) (*v1a.Module, error) {
	               panic("mock out the Get method")
            },
            GetByIndexFunc: func(indexName string, key string) ([]*v1a.Module, error) {
	               panic("mock out the GetByIndex method")
            },
            ListFunc: func(namespace string, selector labels.Selector) ([]*v1a.Module, error) {
	               panic("mock out the List method")
            },
        }

        // use mockedModuleCache in code that requires ModuleCache
        // and then make assertions.

    }

func (*ModuleCacheMock) AddIndexer

func (mock *ModuleCacheMock) AddIndexer(indexName string, indexer v1.ModuleIndexer)

AddIndexer calls AddIndexerFunc.

func (*ModuleCacheMock) AddIndexerCalls

func (mock *ModuleCacheMock) AddIndexerCalls() []struct {
	IndexName string
	Indexer   v1.ModuleIndexer
}

AddIndexerCalls gets all the calls that were made to AddIndexer. Check the length with:

len(mockedModuleCache.AddIndexerCalls())

func (*ModuleCacheMock) Get

func (mock *ModuleCacheMock) Get(namespace string, name string) (*v1a.Module, error)

Get calls GetFunc.

func (*ModuleCacheMock) GetByIndex

func (mock *ModuleCacheMock) GetByIndex(indexName string, key string) ([]*v1a.Module, error)

GetByIndex calls GetByIndexFunc.

func (*ModuleCacheMock) GetByIndexCalls

func (mock *ModuleCacheMock) GetByIndexCalls() []struct {
	IndexName string
	Key       string
}

GetByIndexCalls gets all the calls that were made to GetByIndex. Check the length with:

len(mockedModuleCache.GetByIndexCalls())

func (*ModuleCacheMock) GetCalls

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

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

len(mockedModuleCache.GetCalls())

func (*ModuleCacheMock) List

func (mock *ModuleCacheMock) List(namespace string, selector labels.Selector) ([]*v1a.Module, error)

List calls ListFunc.

func (*ModuleCacheMock) ListCalls

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

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

len(mockedModuleCache.ListCalls())

type ModuleClientMock

type ModuleClientMock struct {
	// CreateFunc mocks the Create method.
	CreateFunc func(in1 *v1a.Module) (*v1a.Module, error)

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

	// GetFunc mocks the Get method.
	GetFunc func(namespace string, name string, options v1b.GetOptions) (*v1a.Module, error)

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

	// PatchFunc mocks the Patch method.
	PatchFunc func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Module, error)

	// UpdateFunc mocks the Update method.
	UpdateFunc func(in1 *v1a.Module) (*v1a.Module, error)

	// UpdateStatusFunc mocks the UpdateStatus method.
	UpdateStatusFunc func(in1 *v1a.Module) (*v1a.Module, error)

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

ModuleClientMock is a mock implementation of ModuleClient.

    func TestSomethingThatUsesModuleClient(t *testing.T) {

        // make and configure a mocked ModuleClient
        mockedModuleClient := &ModuleClientMock{
            CreateFunc: func(in1 *v1a.Module) (*v1a.Module, error) {
	               panic("mock out the Create method")
            },
            DeleteFunc: func(namespace string, name string, options *v1b.DeleteOptions) error {
	               panic("mock out the Delete method")
            },
            GetFunc: func(namespace string, name string, options v1b.GetOptions) (*v1a.Module, error) {
	               panic("mock out the Get method")
            },
            ListFunc: func(namespace string, opts v1b.ListOptions) (*v1a.ModuleList, error) {
	               panic("mock out the List method")
            },
            PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Module, error) {
	               panic("mock out the Patch method")
            },
            UpdateFunc: func(in1 *v1a.Module) (*v1a.Module, error) {
	               panic("mock out the Update method")
            },
            UpdateStatusFunc: func(in1 *v1a.Module) (*v1a.Module, error) {
	               panic("mock out the UpdateStatus method")
            },
            WatchFunc: func(namespace string, opts v1b.ListOptions) (watch.Interface, error) {
	               panic("mock out the Watch method")
            },
        }

        // use mockedModuleClient in code that requires ModuleClient
        // and then make assertions.

    }

func (*ModuleClientMock) Create

func (mock *ModuleClientMock) Create(in1 *v1a.Module) (*v1a.Module, error)

Create calls CreateFunc.

func (*ModuleClientMock) CreateCalls

func (mock *ModuleClientMock) CreateCalls() []struct {
	In1 *v1a.Module
}

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

len(mockedModuleClient.CreateCalls())

func (*ModuleClientMock) Delete

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

Delete calls DeleteFunc.

func (*ModuleClientMock) DeleteCalls

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

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

len(mockedModuleClient.DeleteCalls())

func (*ModuleClientMock) Get

func (mock *ModuleClientMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.Module, error)

Get calls GetFunc.

func (*ModuleClientMock) GetCalls

func (mock *ModuleClientMock) GetCalls() []struct {
	Namespace string
	Name      string
	Options   v1b.GetOptions
}

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

len(mockedModuleClient.GetCalls())

func (*ModuleClientMock) List

func (mock *ModuleClientMock) List(namespace string, opts v1b.ListOptions) (*v1a.ModuleList, error)

List calls ListFunc.

func (*ModuleClientMock) ListCalls

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

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

len(mockedModuleClient.ListCalls())

func (*ModuleClientMock) Patch

func (mock *ModuleClientMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Module, error)

Patch calls PatchFunc.

func (*ModuleClientMock) PatchCalls

func (mock *ModuleClientMock) PatchCalls() []struct {
	Namespace    string
	Name         string
	Pt           types.PatchType
	Data         []byte
	Subresources []string
}

PatchCalls gets all the calls that were made to Patch. Check the length with:

len(mockedModuleClient.PatchCalls())

func (*ModuleClientMock) Update

func (mock *ModuleClientMock) Update(in1 *v1a.Module) (*v1a.Module, error)

Update calls UpdateFunc.

func (*ModuleClientMock) UpdateCalls

func (mock *ModuleClientMock) UpdateCalls() []struct {
	In1 *v1a.Module
}

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

len(mockedModuleClient.UpdateCalls())

func (*ModuleClientMock) UpdateStatus

func (mock *ModuleClientMock) UpdateStatus(in1 *v1a.Module) (*v1a.Module, error)

UpdateStatus calls UpdateStatusFunc.

func (*ModuleClientMock) UpdateStatusCalls

func (mock *ModuleClientMock) UpdateStatusCalls() []struct {
	In1 *v1a.Module
}

UpdateStatusCalls gets all the calls that were made to UpdateStatus. Check the length with:

len(mockedModuleClient.UpdateStatusCalls())

func (*ModuleClientMock) Watch

func (mock *ModuleClientMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)

Watch calls WatchFunc.

func (*ModuleClientMock) WatchCalls

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

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

len(mockedModuleClient.WatchCalls())

type ModuleControllerMock

type ModuleControllerMock struct {
	// AddGenericHandlerFunc mocks the AddGenericHandler method.
	AddGenericHandlerFunc func(ctx context.Context, name string, handler generic.Handler)

	// AddGenericRemoveHandlerFunc mocks the AddGenericRemoveHandler method.
	AddGenericRemoveHandlerFunc func(ctx context.Context, name string, handler generic.Handler)

	// CacheFunc mocks the Cache method.
	CacheFunc func() v1.ModuleCache

	// CreateFunc mocks the Create method.
	CreateFunc func(in1 *v1a.Module) (*v1a.Module, error)

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

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

	// GetFunc mocks the Get method.
	GetFunc func(namespace string, name string, options v1b.GetOptions) (*v1a.Module, error)

	// GroupVersionKindFunc mocks the GroupVersionKind method.
	GroupVersionKindFunc func() schema.GroupVersionKind

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

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

	// OnChangeFunc mocks the OnChange method.
	OnChangeFunc func(ctx context.Context, name string, sync v1.ModuleHandler)

	// OnRemoveFunc mocks the OnRemove method.
	OnRemoveFunc func(ctx context.Context, name string, sync v1.ModuleHandler)

	// PatchFunc mocks the Patch method.
	PatchFunc func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Module, error)

	// UpdateFunc mocks the Update method.
	UpdateFunc func(in1 *v1a.Module) (*v1a.Module, error)

	// UpdateStatusFunc mocks the UpdateStatus method.
	UpdateStatusFunc func(in1 *v1a.Module) (*v1a.Module, error)

	// UpdaterFunc mocks the Updater method.
	UpdaterFunc func() generic.Updater

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

ModuleControllerMock is a mock implementation of ModuleController.

    func TestSomethingThatUsesModuleController(t *testing.T) {

        // make and configure a mocked ModuleController
        mockedModuleController := &ModuleControllerMock{
            AddGenericHandlerFunc: func(ctx context.Context, name string, handler generic.Handler)  {
	               panic("mock out the AddGenericHandler method")
            },
            AddGenericRemoveHandlerFunc: func(ctx context.Context, name string, handler generic.Handler)  {
	               panic("mock out the AddGenericRemoveHandler method")
            },
            CacheFunc: func() v1.ModuleCache {
	               panic("mock out the Cache method")
            },
            CreateFunc: func(in1 *v1a.Module) (*v1a.Module, error) {
	               panic("mock out the Create method")
            },
            DeleteFunc: func(namespace string, name string, options *v1b.DeleteOptions) error {
	               panic("mock out the Delete method")
            },
            EnqueueFunc: func(namespace string, name string)  {
	               panic("mock out the Enqueue method")
            },
            GetFunc: func(namespace string, name string, options v1b.GetOptions) (*v1a.Module, error) {
	               panic("mock out the Get method")
            },
            GroupVersionKindFunc: func() schema.GroupVersionKind {
	               panic("mock out the GroupVersionKind method")
            },
            InformerFunc: func() cache.SharedIndexInformer {
	               panic("mock out the Informer method")
            },
            ListFunc: func(namespace string, opts v1b.ListOptions) (*v1a.ModuleList, error) {
	               panic("mock out the List method")
            },
            OnChangeFunc: func(ctx context.Context, name string, sync v1.ModuleHandler)  {
	               panic("mock out the OnChange method")
            },
            OnRemoveFunc: func(ctx context.Context, name string, sync v1.ModuleHandler)  {
	               panic("mock out the OnRemove method")
            },
            PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Module, error) {
	               panic("mock out the Patch method")
            },
            UpdateFunc: func(in1 *v1a.Module) (*v1a.Module, error) {
	               panic("mock out the Update method")
            },
            UpdateStatusFunc: func(in1 *v1a.Module) (*v1a.Module, error) {
	               panic("mock out the UpdateStatus method")
            },
            UpdaterFunc: func() generic.Updater {
	               panic("mock out the Updater method")
            },
            WatchFunc: func(namespace string, opts v1b.ListOptions) (watch.Interface, error) {
	               panic("mock out the Watch method")
            },
        }

        // use mockedModuleController in code that requires ModuleController
        // and then make assertions.

    }

func (*ModuleControllerMock) AddGenericHandler

func (mock *ModuleControllerMock) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)

AddGenericHandler calls AddGenericHandlerFunc.

func (*ModuleControllerMock) AddGenericHandlerCalls

func (mock *ModuleControllerMock) AddGenericHandlerCalls() []struct {
	Ctx     context.Context
	Name    string
	Handler generic.Handler
}

AddGenericHandlerCalls gets all the calls that were made to AddGenericHandler. Check the length with:

len(mockedModuleController.AddGenericHandlerCalls())

func (*ModuleControllerMock) AddGenericRemoveHandler

func (mock *ModuleControllerMock) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)

AddGenericRemoveHandler calls AddGenericRemoveHandlerFunc.

func (*ModuleControllerMock) AddGenericRemoveHandlerCalls

func (mock *ModuleControllerMock) AddGenericRemoveHandlerCalls() []struct {
	Ctx     context.Context
	Name    string
	Handler generic.Handler
}

AddGenericRemoveHandlerCalls gets all the calls that were made to AddGenericRemoveHandler. Check the length with:

len(mockedModuleController.AddGenericRemoveHandlerCalls())

func (*ModuleControllerMock) Cache

func (mock *ModuleControllerMock) Cache() v1.ModuleCache

Cache calls CacheFunc.

func (*ModuleControllerMock) CacheCalls

func (mock *ModuleControllerMock) CacheCalls() []struct {
}

CacheCalls gets all the calls that were made to Cache. Check the length with:

len(mockedModuleController.CacheCalls())

func (*ModuleControllerMock) Create

func (mock *ModuleControllerMock) Create(in1 *v1a.Module) (*v1a.Module, error)

Create calls CreateFunc.

func (*ModuleControllerMock) CreateCalls

func (mock *ModuleControllerMock) CreateCalls() []struct {
	In1 *v1a.Module
}

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

len(mockedModuleController.CreateCalls())

func (*ModuleControllerMock) Delete

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

Delete calls DeleteFunc.

func (*ModuleControllerMock) DeleteCalls

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

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

len(mockedModuleController.DeleteCalls())

func (*ModuleControllerMock) Enqueue

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

Enqueue calls EnqueueFunc.

func (*ModuleControllerMock) EnqueueCalls

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

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

len(mockedModuleController.EnqueueCalls())

func (*ModuleControllerMock) Get

func (mock *ModuleControllerMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.Module, error)

Get calls GetFunc.

func (*ModuleControllerMock) GetCalls

func (mock *ModuleControllerMock) GetCalls() []struct {
	Namespace string
	Name      string
	Options   v1b.GetOptions
}

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

len(mockedModuleController.GetCalls())

func (*ModuleControllerMock) GroupVersionKind

func (mock *ModuleControllerMock) GroupVersionKind() schema.GroupVersionKind

GroupVersionKind calls GroupVersionKindFunc.

func (*ModuleControllerMock) GroupVersionKindCalls

func (mock *ModuleControllerMock) GroupVersionKindCalls() []struct {
}

GroupVersionKindCalls gets all the calls that were made to GroupVersionKind. Check the length with:

len(mockedModuleController.GroupVersionKindCalls())

func (*ModuleControllerMock) Informer

Informer calls InformerFunc.

func (*ModuleControllerMock) InformerCalls

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

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

len(mockedModuleController.InformerCalls())

func (*ModuleControllerMock) List

func (mock *ModuleControllerMock) List(namespace string, opts v1b.ListOptions) (*v1a.ModuleList, error)

List calls ListFunc.

func (*ModuleControllerMock) ListCalls

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

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

len(mockedModuleController.ListCalls())

func (*ModuleControllerMock) OnChange

func (mock *ModuleControllerMock) OnChange(ctx context.Context, name string, sync v1.ModuleHandler)

OnChange calls OnChangeFunc.

func (*ModuleControllerMock) OnChangeCalls

func (mock *ModuleControllerMock) OnChangeCalls() []struct {
	Ctx  context.Context
	Name string
	Sync v1.ModuleHandler
}

OnChangeCalls gets all the calls that were made to OnChange. Check the length with:

len(mockedModuleController.OnChangeCalls())

func (*ModuleControllerMock) OnRemove

func (mock *ModuleControllerMock) OnRemove(ctx context.Context, name string, sync v1.ModuleHandler)

OnRemove calls OnRemoveFunc.

func (*ModuleControllerMock) OnRemoveCalls

func (mock *ModuleControllerMock) OnRemoveCalls() []struct {
	Ctx  context.Context
	Name string
	Sync v1.ModuleHandler
}

OnRemoveCalls gets all the calls that were made to OnRemove. Check the length with:

len(mockedModuleController.OnRemoveCalls())

func (*ModuleControllerMock) Patch

func (mock *ModuleControllerMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Module, error)

Patch calls PatchFunc.

func (*ModuleControllerMock) PatchCalls

func (mock *ModuleControllerMock) PatchCalls() []struct {
	Namespace    string
	Name         string
	Pt           types.PatchType
	Data         []byte
	Subresources []string
}

PatchCalls gets all the calls that were made to Patch. Check the length with:

len(mockedModuleController.PatchCalls())

func (*ModuleControllerMock) Update

func (mock *ModuleControllerMock) Update(in1 *v1a.Module) (*v1a.Module, error)

Update calls UpdateFunc.

func (*ModuleControllerMock) UpdateCalls

func (mock *ModuleControllerMock) UpdateCalls() []struct {
	In1 *v1a.Module
}

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

len(mockedModuleController.UpdateCalls())

func (*ModuleControllerMock) UpdateStatus

func (mock *ModuleControllerMock) UpdateStatus(in1 *v1a.Module) (*v1a.Module, error)

UpdateStatus calls UpdateStatusFunc.

func (*ModuleControllerMock) UpdateStatusCalls

func (mock *ModuleControllerMock) UpdateStatusCalls() []struct {
	In1 *v1a.Module
}

UpdateStatusCalls gets all the calls that were made to UpdateStatus. Check the length with:

len(mockedModuleController.UpdateStatusCalls())

func (*ModuleControllerMock) Updater

func (mock *ModuleControllerMock) Updater() generic.Updater

Updater calls UpdaterFunc.

func (*ModuleControllerMock) UpdaterCalls

func (mock *ModuleControllerMock) UpdaterCalls() []struct {
}

UpdaterCalls gets all the calls that were made to Updater. Check the length with:

len(mockedModuleController.UpdaterCalls())

func (*ModuleControllerMock) Watch

func (mock *ModuleControllerMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)

Watch calls WatchFunc.

func (*ModuleControllerMock) WatchCalls

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

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

len(mockedModuleController.WatchCalls())

Jump to

Keyboard shortcuts

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