Documentation ¶
Index ¶
- type ExecutionCacheMock
- func (mock *ExecutionCacheMock) AddIndexer(indexName string, indexer v1.ExecutionIndexer)
- func (mock *ExecutionCacheMock) AddIndexerCalls() []struct{ ... }
- func (mock *ExecutionCacheMock) Get(namespace string, name string) (*v1a.Execution, error)
- func (mock *ExecutionCacheMock) GetByIndex(indexName string, key string) ([]*v1a.Execution, error)
- func (mock *ExecutionCacheMock) GetByIndexCalls() []struct{ ... }
- func (mock *ExecutionCacheMock) GetCalls() []struct{ ... }
- func (mock *ExecutionCacheMock) List(namespace string, selector labels.Selector) ([]*v1a.Execution, error)
- func (mock *ExecutionCacheMock) ListCalls() []struct{ ... }
- type ExecutionClientMock
- func (mock *ExecutionClientMock) Create(in1 *v1a.Execution) (*v1a.Execution, error)
- func (mock *ExecutionClientMock) CreateCalls() []struct{ ... }
- func (mock *ExecutionClientMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
- func (mock *ExecutionClientMock) DeleteCalls() []struct{ ... }
- func (mock *ExecutionClientMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.Execution, error)
- func (mock *ExecutionClientMock) GetCalls() []struct{ ... }
- func (mock *ExecutionClientMock) List(namespace string, opts v1b.ListOptions) (*v1a.ExecutionList, error)
- func (mock *ExecutionClientMock) ListCalls() []struct{ ... }
- func (mock *ExecutionClientMock) Patch(namespace string, name string, pt types.PatchType, data []byte, ...) (*v1a.Execution, error)
- func (mock *ExecutionClientMock) PatchCalls() []struct{ ... }
- func (mock *ExecutionClientMock) Update(in1 *v1a.Execution) (*v1a.Execution, error)
- func (mock *ExecutionClientMock) UpdateCalls() []struct{ ... }
- func (mock *ExecutionClientMock) UpdateStatus(in1 *v1a.Execution) (*v1a.Execution, error)
- func (mock *ExecutionClientMock) UpdateStatusCalls() []struct{ ... }
- func (mock *ExecutionClientMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
- func (mock *ExecutionClientMock) WatchCalls() []struct{ ... }
- type ExecutionControllerMock
- func (mock *ExecutionControllerMock) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)
- func (mock *ExecutionControllerMock) AddGenericHandlerCalls() []struct{ ... }
- func (mock *ExecutionControllerMock) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)
- func (mock *ExecutionControllerMock) AddGenericRemoveHandlerCalls() []struct{ ... }
- func (mock *ExecutionControllerMock) Cache() v1.ExecutionCache
- func (mock *ExecutionControllerMock) CacheCalls() []struct{}
- func (mock *ExecutionControllerMock) Create(in1 *v1a.Execution) (*v1a.Execution, error)
- func (mock *ExecutionControllerMock) CreateCalls() []struct{ ... }
- func (mock *ExecutionControllerMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
- func (mock *ExecutionControllerMock) DeleteCalls() []struct{ ... }
- func (mock *ExecutionControllerMock) Enqueue(namespace string, name string)
- func (mock *ExecutionControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *ExecutionControllerMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.Execution, error)
- func (mock *ExecutionControllerMock) GetCalls() []struct{ ... }
- func (mock *ExecutionControllerMock) GroupVersionKind() schema.GroupVersionKind
- func (mock *ExecutionControllerMock) GroupVersionKindCalls() []struct{}
- func (mock *ExecutionControllerMock) Informer() cache.SharedIndexInformer
- func (mock *ExecutionControllerMock) InformerCalls() []struct{}
- func (mock *ExecutionControllerMock) List(namespace string, opts v1b.ListOptions) (*v1a.ExecutionList, error)
- func (mock *ExecutionControllerMock) ListCalls() []struct{ ... }
- func (mock *ExecutionControllerMock) OnChange(ctx context.Context, name string, sync v1.ExecutionHandler)
- func (mock *ExecutionControllerMock) OnChangeCalls() []struct{ ... }
- func (mock *ExecutionControllerMock) OnRemove(ctx context.Context, name string, sync v1.ExecutionHandler)
- func (mock *ExecutionControllerMock) OnRemoveCalls() []struct{ ... }
- func (mock *ExecutionControllerMock) Patch(namespace string, name string, pt types.PatchType, data []byte, ...) (*v1a.Execution, error)
- func (mock *ExecutionControllerMock) PatchCalls() []struct{ ... }
- func (mock *ExecutionControllerMock) Update(in1 *v1a.Execution) (*v1a.Execution, error)
- func (mock *ExecutionControllerMock) UpdateCalls() []struct{ ... }
- func (mock *ExecutionControllerMock) UpdateStatus(in1 *v1a.Execution) (*v1a.Execution, error)
- func (mock *ExecutionControllerMock) UpdateStatusCalls() []struct{ ... }
- func (mock *ExecutionControllerMock) Updater() generic.Updater
- func (mock *ExecutionControllerMock) UpdaterCalls() []struct{}
- func (mock *ExecutionControllerMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
- func (mock *ExecutionControllerMock) WatchCalls() []struct{ ... }
- type ExecutionRunCacheMock
- func (mock *ExecutionRunCacheMock) AddIndexer(indexName string, indexer v1.ExecutionRunIndexer)
- func (mock *ExecutionRunCacheMock) AddIndexerCalls() []struct{ ... }
- func (mock *ExecutionRunCacheMock) Get(namespace string, name string) (*v1a.ExecutionRun, error)
- func (mock *ExecutionRunCacheMock) GetByIndex(indexName string, key string) ([]*v1a.ExecutionRun, error)
- func (mock *ExecutionRunCacheMock) GetByIndexCalls() []struct{ ... }
- func (mock *ExecutionRunCacheMock) GetCalls() []struct{ ... }
- func (mock *ExecutionRunCacheMock) List(namespace string, selector labels.Selector) ([]*v1a.ExecutionRun, error)
- func (mock *ExecutionRunCacheMock) ListCalls() []struct{ ... }
- type ExecutionRunClientMock
- func (mock *ExecutionRunClientMock) Create(in1 *v1a.ExecutionRun) (*v1a.ExecutionRun, error)
- func (mock *ExecutionRunClientMock) CreateCalls() []struct{ ... }
- func (mock *ExecutionRunClientMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
- func (mock *ExecutionRunClientMock) DeleteCalls() []struct{ ... }
- func (mock *ExecutionRunClientMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.ExecutionRun, error)
- func (mock *ExecutionRunClientMock) GetCalls() []struct{ ... }
- func (mock *ExecutionRunClientMock) List(namespace string, opts v1b.ListOptions) (*v1a.ExecutionRunList, error)
- func (mock *ExecutionRunClientMock) ListCalls() []struct{ ... }
- func (mock *ExecutionRunClientMock) Patch(namespace string, name string, pt types.PatchType, data []byte, ...) (*v1a.ExecutionRun, error)
- func (mock *ExecutionRunClientMock) PatchCalls() []struct{ ... }
- func (mock *ExecutionRunClientMock) Update(in1 *v1a.ExecutionRun) (*v1a.ExecutionRun, error)
- func (mock *ExecutionRunClientMock) UpdateCalls() []struct{ ... }
- func (mock *ExecutionRunClientMock) UpdateStatus(in1 *v1a.ExecutionRun) (*v1a.ExecutionRun, error)
- func (mock *ExecutionRunClientMock) UpdateStatusCalls() []struct{ ... }
- func (mock *ExecutionRunClientMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
- func (mock *ExecutionRunClientMock) WatchCalls() []struct{ ... }
- type ExecutionRunControllerMock
- func (mock *ExecutionRunControllerMock) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)
- func (mock *ExecutionRunControllerMock) AddGenericHandlerCalls() []struct{ ... }
- func (mock *ExecutionRunControllerMock) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)
- func (mock *ExecutionRunControllerMock) AddGenericRemoveHandlerCalls() []struct{ ... }
- func (mock *ExecutionRunControllerMock) Cache() v1.ExecutionRunCache
- func (mock *ExecutionRunControllerMock) CacheCalls() []struct{}
- func (mock *ExecutionRunControllerMock) Create(in1 *v1a.ExecutionRun) (*v1a.ExecutionRun, error)
- func (mock *ExecutionRunControllerMock) CreateCalls() []struct{ ... }
- func (mock *ExecutionRunControllerMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
- func (mock *ExecutionRunControllerMock) DeleteCalls() []struct{ ... }
- func (mock *ExecutionRunControllerMock) Enqueue(namespace string, name string)
- func (mock *ExecutionRunControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *ExecutionRunControllerMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.ExecutionRun, error)
- func (mock *ExecutionRunControllerMock) GetCalls() []struct{ ... }
- func (mock *ExecutionRunControllerMock) GroupVersionKind() schema.GroupVersionKind
- func (mock *ExecutionRunControllerMock) GroupVersionKindCalls() []struct{}
- func (mock *ExecutionRunControllerMock) Informer() cache.SharedIndexInformer
- func (mock *ExecutionRunControllerMock) InformerCalls() []struct{}
- func (mock *ExecutionRunControllerMock) List(namespace string, opts v1b.ListOptions) (*v1a.ExecutionRunList, error)
- func (mock *ExecutionRunControllerMock) ListCalls() []struct{ ... }
- func (mock *ExecutionRunControllerMock) OnChange(ctx context.Context, name string, sync v1.ExecutionRunHandler)
- func (mock *ExecutionRunControllerMock) OnChangeCalls() []struct{ ... }
- func (mock *ExecutionRunControllerMock) OnRemove(ctx context.Context, name string, sync v1.ExecutionRunHandler)
- func (mock *ExecutionRunControllerMock) OnRemoveCalls() []struct{ ... }
- func (mock *ExecutionRunControllerMock) Patch(namespace string, name string, pt types.PatchType, data []byte, ...) (*v1a.ExecutionRun, error)
- func (mock *ExecutionRunControllerMock) PatchCalls() []struct{ ... }
- func (mock *ExecutionRunControllerMock) Update(in1 *v1a.ExecutionRun) (*v1a.ExecutionRun, error)
- func (mock *ExecutionRunControllerMock) UpdateCalls() []struct{ ... }
- func (mock *ExecutionRunControllerMock) UpdateStatus(in1 *v1a.ExecutionRun) (*v1a.ExecutionRun, error)
- func (mock *ExecutionRunControllerMock) UpdateStatusCalls() []struct{ ... }
- func (mock *ExecutionRunControllerMock) Updater() generic.Updater
- func (mock *ExecutionRunControllerMock) UpdaterCalls() []struct{}
- func (mock *ExecutionRunControllerMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
- func (mock *ExecutionRunControllerMock) WatchCalls() []struct{ ... }
- type ModuleCacheMock
- func (mock *ModuleCacheMock) AddIndexer(indexName string, indexer v1.ModuleIndexer)
- func (mock *ModuleCacheMock) AddIndexerCalls() []struct{ ... }
- func (mock *ModuleCacheMock) Get(namespace string, name string) (*v1a.Module, error)
- func (mock *ModuleCacheMock) GetByIndex(indexName string, key string) ([]*v1a.Module, error)
- func (mock *ModuleCacheMock) GetByIndexCalls() []struct{ ... }
- func (mock *ModuleCacheMock) GetCalls() []struct{ ... }
- func (mock *ModuleCacheMock) List(namespace string, selector labels.Selector) ([]*v1a.Module, error)
- func (mock *ModuleCacheMock) ListCalls() []struct{ ... }
- type ModuleClientMock
- func (mock *ModuleClientMock) Create(in1 *v1a.Module) (*v1a.Module, error)
- func (mock *ModuleClientMock) CreateCalls() []struct{ ... }
- func (mock *ModuleClientMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
- func (mock *ModuleClientMock) DeleteCalls() []struct{ ... }
- func (mock *ModuleClientMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.Module, error)
- func (mock *ModuleClientMock) GetCalls() []struct{ ... }
- func (mock *ModuleClientMock) List(namespace string, opts v1b.ListOptions) (*v1a.ModuleList, error)
- func (mock *ModuleClientMock) ListCalls() []struct{ ... }
- func (mock *ModuleClientMock) Patch(namespace string, name string, pt types.PatchType, data []byte, ...) (*v1a.Module, error)
- func (mock *ModuleClientMock) PatchCalls() []struct{ ... }
- func (mock *ModuleClientMock) Update(in1 *v1a.Module) (*v1a.Module, error)
- func (mock *ModuleClientMock) UpdateCalls() []struct{ ... }
- func (mock *ModuleClientMock) UpdateStatus(in1 *v1a.Module) (*v1a.Module, error)
- func (mock *ModuleClientMock) UpdateStatusCalls() []struct{ ... }
- func (mock *ModuleClientMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
- func (mock *ModuleClientMock) WatchCalls() []struct{ ... }
- type ModuleControllerMock
- func (mock *ModuleControllerMock) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)
- func (mock *ModuleControllerMock) AddGenericHandlerCalls() []struct{ ... }
- func (mock *ModuleControllerMock) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)
- func (mock *ModuleControllerMock) AddGenericRemoveHandlerCalls() []struct{ ... }
- func (mock *ModuleControllerMock) Cache() v1.ModuleCache
- func (mock *ModuleControllerMock) CacheCalls() []struct{}
- func (mock *ModuleControllerMock) Create(in1 *v1a.Module) (*v1a.Module, error)
- func (mock *ModuleControllerMock) CreateCalls() []struct{ ... }
- func (mock *ModuleControllerMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
- func (mock *ModuleControllerMock) DeleteCalls() []struct{ ... }
- func (mock *ModuleControllerMock) Enqueue(namespace string, name string)
- func (mock *ModuleControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *ModuleControllerMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.Module, error)
- func (mock *ModuleControllerMock) GetCalls() []struct{ ... }
- func (mock *ModuleControllerMock) GroupVersionKind() schema.GroupVersionKind
- func (mock *ModuleControllerMock) GroupVersionKindCalls() []struct{}
- func (mock *ModuleControllerMock) Informer() cache.SharedIndexInformer
- func (mock *ModuleControllerMock) InformerCalls() []struct{}
- func (mock *ModuleControllerMock) List(namespace string, opts v1b.ListOptions) (*v1a.ModuleList, error)
- func (mock *ModuleControllerMock) ListCalls() []struct{ ... }
- func (mock *ModuleControllerMock) OnChange(ctx context.Context, name string, sync v1.ModuleHandler)
- func (mock *ModuleControllerMock) OnChangeCalls() []struct{ ... }
- func (mock *ModuleControllerMock) OnRemove(ctx context.Context, name string, sync v1.ModuleHandler)
- func (mock *ModuleControllerMock) OnRemoveCalls() []struct{ ... }
- func (mock *ModuleControllerMock) Patch(namespace string, name string, pt types.PatchType, data []byte, ...) (*v1a.Module, error)
- func (mock *ModuleControllerMock) PatchCalls() []struct{ ... }
- func (mock *ModuleControllerMock) Update(in1 *v1a.Module) (*v1a.Module, error)
- func (mock *ModuleControllerMock) UpdateCalls() []struct{ ... }
- func (mock *ModuleControllerMock) UpdateStatus(in1 *v1a.Module) (*v1a.Module, error)
- func (mock *ModuleControllerMock) UpdateStatusCalls() []struct{ ... }
- func (mock *ModuleControllerMock) Updater() generic.Updater
- func (mock *ModuleControllerMock) UpdaterCalls() []struct{}
- func (mock *ModuleControllerMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
- func (mock *ModuleControllerMock) WatchCalls() []struct{ ... }
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) GetByIndex ¶
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())
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) 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) 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 ¶
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 ¶
func (mock *ExecutionControllerMock) Cache() v1.ExecutionCache
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) 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 ¶
func (mock *ExecutionControllerMock) Informer() cache.SharedIndexInformer
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) 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 ¶
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.
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 ¶
func (mock *ExecutionRunClientMock) Create(in1 *v1a.ExecutionRun) (*v1a.ExecutionRun, error)
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 ¶
func (mock *ExecutionRunClientMock) Update(in1 *v1a.ExecutionRun) (*v1a.ExecutionRun, error)
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 ¶
func (mock *ExecutionRunControllerMock) Cache() v1.ExecutionRunCache
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 ¶
func (mock *ExecutionRunControllerMock) Create(in1 *v1a.ExecutionRun) (*v1a.ExecutionRun, error)
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 ¶
func (mock *ExecutionRunControllerMock) Informer() cache.SharedIndexInformer
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 ¶
func (mock *ExecutionRunControllerMock) Update(in1 *v1a.ExecutionRun) (*v1a.ExecutionRun, error)
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) GetByIndex ¶
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())
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) 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) 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 ¶
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) 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 ¶
func (mock *ModuleControllerMock) Informer() cache.SharedIndexInformer
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) 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 ¶
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())