Documentation ¶
Index ¶
- type GitWebHookExecutionCacheMock
- func (mock *GitWebHookExecutionCacheMock) AddIndexer(indexName string, indexer v1.GitWebHookExecutionIndexer)
- func (mock *GitWebHookExecutionCacheMock) AddIndexerCalls() []struct{ ... }
- func (mock *GitWebHookExecutionCacheMock) Get(namespace string, name string) (*v1a.GitWebHookExecution, error)
- func (mock *GitWebHookExecutionCacheMock) GetByIndex(indexName string, key string) ([]*v1a.GitWebHookExecution, error)
- func (mock *GitWebHookExecutionCacheMock) GetByIndexCalls() []struct{ ... }
- func (mock *GitWebHookExecutionCacheMock) GetCalls() []struct{ ... }
- func (mock *GitWebHookExecutionCacheMock) List(namespace string, selector labels.Selector) ([]*v1a.GitWebHookExecution, error)
- func (mock *GitWebHookExecutionCacheMock) ListCalls() []struct{ ... }
- type GitWebHookExecutionClientMock
- func (mock *GitWebHookExecutionClientMock) Create(in1 *v1a.GitWebHookExecution) (*v1a.GitWebHookExecution, error)
- func (mock *GitWebHookExecutionClientMock) CreateCalls() []struct{ ... }
- func (mock *GitWebHookExecutionClientMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
- func (mock *GitWebHookExecutionClientMock) DeleteCalls() []struct{ ... }
- func (mock *GitWebHookExecutionClientMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.GitWebHookExecution, error)
- func (mock *GitWebHookExecutionClientMock) GetCalls() []struct{ ... }
- func (mock *GitWebHookExecutionClientMock) List(namespace string, opts v1b.ListOptions) (*v1a.GitWebHookExecutionList, error)
- func (mock *GitWebHookExecutionClientMock) ListCalls() []struct{ ... }
- func (mock *GitWebHookExecutionClientMock) Patch(namespace string, name string, pt types.PatchType, data []byte, ...) (*v1a.GitWebHookExecution, error)
- func (mock *GitWebHookExecutionClientMock) PatchCalls() []struct{ ... }
- func (mock *GitWebHookExecutionClientMock) Update(in1 *v1a.GitWebHookExecution) (*v1a.GitWebHookExecution, error)
- func (mock *GitWebHookExecutionClientMock) UpdateCalls() []struct{ ... }
- func (mock *GitWebHookExecutionClientMock) UpdateStatus(in1 *v1a.GitWebHookExecution) (*v1a.GitWebHookExecution, error)
- func (mock *GitWebHookExecutionClientMock) UpdateStatusCalls() []struct{ ... }
- func (mock *GitWebHookExecutionClientMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
- func (mock *GitWebHookExecutionClientMock) WatchCalls() []struct{ ... }
- type GitWebHookExecutionControllerMock
- func (mock *GitWebHookExecutionControllerMock) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)
- func (mock *GitWebHookExecutionControllerMock) AddGenericHandlerCalls() []struct{ ... }
- func (mock *GitWebHookExecutionControllerMock) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)
- func (mock *GitWebHookExecutionControllerMock) AddGenericRemoveHandlerCalls() []struct{ ... }
- func (mock *GitWebHookExecutionControllerMock) Cache() v1.GitWebHookExecutionCache
- func (mock *GitWebHookExecutionControllerMock) CacheCalls() []struct{}
- func (mock *GitWebHookExecutionControllerMock) Create(in1 *v1a.GitWebHookExecution) (*v1a.GitWebHookExecution, error)
- func (mock *GitWebHookExecutionControllerMock) CreateCalls() []struct{ ... }
- func (mock *GitWebHookExecutionControllerMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
- func (mock *GitWebHookExecutionControllerMock) DeleteCalls() []struct{ ... }
- func (mock *GitWebHookExecutionControllerMock) Enqueue(namespace string, name string)
- func (mock *GitWebHookExecutionControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *GitWebHookExecutionControllerMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.GitWebHookExecution, error)
- func (mock *GitWebHookExecutionControllerMock) GetCalls() []struct{ ... }
- func (mock *GitWebHookExecutionControllerMock) GroupVersionKind() schema.GroupVersionKind
- func (mock *GitWebHookExecutionControllerMock) GroupVersionKindCalls() []struct{}
- func (mock *GitWebHookExecutionControllerMock) Informer() cache.SharedIndexInformer
- func (mock *GitWebHookExecutionControllerMock) InformerCalls() []struct{}
- func (mock *GitWebHookExecutionControllerMock) List(namespace string, opts v1b.ListOptions) (*v1a.GitWebHookExecutionList, error)
- func (mock *GitWebHookExecutionControllerMock) ListCalls() []struct{ ... }
- func (mock *GitWebHookExecutionControllerMock) OnChange(ctx context.Context, name string, sync v1.GitWebHookExecutionHandler)
- func (mock *GitWebHookExecutionControllerMock) OnChangeCalls() []struct{ ... }
- func (mock *GitWebHookExecutionControllerMock) OnRemove(ctx context.Context, name string, sync v1.GitWebHookExecutionHandler)
- func (mock *GitWebHookExecutionControllerMock) OnRemoveCalls() []struct{ ... }
- func (mock *GitWebHookExecutionControllerMock) Patch(namespace string, name string, pt types.PatchType, data []byte, ...) (*v1a.GitWebHookExecution, error)
- func (mock *GitWebHookExecutionControllerMock) PatchCalls() []struct{ ... }
- func (mock *GitWebHookExecutionControllerMock) Update(in1 *v1a.GitWebHookExecution) (*v1a.GitWebHookExecution, error)
- func (mock *GitWebHookExecutionControllerMock) UpdateCalls() []struct{ ... }
- func (mock *GitWebHookExecutionControllerMock) UpdateStatus(in1 *v1a.GitWebHookExecution) (*v1a.GitWebHookExecution, error)
- func (mock *GitWebHookExecutionControllerMock) UpdateStatusCalls() []struct{ ... }
- func (mock *GitWebHookExecutionControllerMock) Updater() generic.Updater
- func (mock *GitWebHookExecutionControllerMock) UpdaterCalls() []struct{}
- func (mock *GitWebHookExecutionControllerMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
- func (mock *GitWebHookExecutionControllerMock) WatchCalls() []struct{ ... }
- type GitWebHookReceiverCacheMock
- func (mock *GitWebHookReceiverCacheMock) AddIndexer(indexName string, indexer v1.GitWebHookReceiverIndexer)
- func (mock *GitWebHookReceiverCacheMock) AddIndexerCalls() []struct{ ... }
- func (mock *GitWebHookReceiverCacheMock) Get(namespace string, name string) (*v1a.GitWebHookReceiver, error)
- func (mock *GitWebHookReceiverCacheMock) GetByIndex(indexName string, key string) ([]*v1a.GitWebHookReceiver, error)
- func (mock *GitWebHookReceiverCacheMock) GetByIndexCalls() []struct{ ... }
- func (mock *GitWebHookReceiverCacheMock) GetCalls() []struct{ ... }
- func (mock *GitWebHookReceiverCacheMock) List(namespace string, selector labels.Selector) ([]*v1a.GitWebHookReceiver, error)
- func (mock *GitWebHookReceiverCacheMock) ListCalls() []struct{ ... }
- type GitWebHookReceiverClientMock
- func (mock *GitWebHookReceiverClientMock) Create(in1 *v1a.GitWebHookReceiver) (*v1a.GitWebHookReceiver, error)
- func (mock *GitWebHookReceiverClientMock) CreateCalls() []struct{ ... }
- func (mock *GitWebHookReceiverClientMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
- func (mock *GitWebHookReceiverClientMock) DeleteCalls() []struct{ ... }
- func (mock *GitWebHookReceiverClientMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.GitWebHookReceiver, error)
- func (mock *GitWebHookReceiverClientMock) GetCalls() []struct{ ... }
- func (mock *GitWebHookReceiverClientMock) List(namespace string, opts v1b.ListOptions) (*v1a.GitWebHookReceiverList, error)
- func (mock *GitWebHookReceiverClientMock) ListCalls() []struct{ ... }
- func (mock *GitWebHookReceiverClientMock) Patch(namespace string, name string, pt types.PatchType, data []byte, ...) (*v1a.GitWebHookReceiver, error)
- func (mock *GitWebHookReceiverClientMock) PatchCalls() []struct{ ... }
- func (mock *GitWebHookReceiverClientMock) Update(in1 *v1a.GitWebHookReceiver) (*v1a.GitWebHookReceiver, error)
- func (mock *GitWebHookReceiverClientMock) UpdateCalls() []struct{ ... }
- func (mock *GitWebHookReceiverClientMock) UpdateStatus(in1 *v1a.GitWebHookReceiver) (*v1a.GitWebHookReceiver, error)
- func (mock *GitWebHookReceiverClientMock) UpdateStatusCalls() []struct{ ... }
- func (mock *GitWebHookReceiverClientMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
- func (mock *GitWebHookReceiverClientMock) WatchCalls() []struct{ ... }
- type GitWebHookReceiverControllerMock
- func (mock *GitWebHookReceiverControllerMock) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)
- func (mock *GitWebHookReceiverControllerMock) AddGenericHandlerCalls() []struct{ ... }
- func (mock *GitWebHookReceiverControllerMock) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)
- func (mock *GitWebHookReceiverControllerMock) AddGenericRemoveHandlerCalls() []struct{ ... }
- func (mock *GitWebHookReceiverControllerMock) Cache() v1.GitWebHookReceiverCache
- func (mock *GitWebHookReceiverControllerMock) CacheCalls() []struct{}
- func (mock *GitWebHookReceiverControllerMock) Create(in1 *v1a.GitWebHookReceiver) (*v1a.GitWebHookReceiver, error)
- func (mock *GitWebHookReceiverControllerMock) CreateCalls() []struct{ ... }
- func (mock *GitWebHookReceiverControllerMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
- func (mock *GitWebHookReceiverControllerMock) DeleteCalls() []struct{ ... }
- func (mock *GitWebHookReceiverControllerMock) Enqueue(namespace string, name string)
- func (mock *GitWebHookReceiverControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *GitWebHookReceiverControllerMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.GitWebHookReceiver, error)
- func (mock *GitWebHookReceiverControllerMock) GetCalls() []struct{ ... }
- func (mock *GitWebHookReceiverControllerMock) GroupVersionKind() schema.GroupVersionKind
- func (mock *GitWebHookReceiverControllerMock) GroupVersionKindCalls() []struct{}
- func (mock *GitWebHookReceiverControllerMock) Informer() cache.SharedIndexInformer
- func (mock *GitWebHookReceiverControllerMock) InformerCalls() []struct{}
- func (mock *GitWebHookReceiverControllerMock) List(namespace string, opts v1b.ListOptions) (*v1a.GitWebHookReceiverList, error)
- func (mock *GitWebHookReceiverControllerMock) ListCalls() []struct{ ... }
- func (mock *GitWebHookReceiverControllerMock) OnChange(ctx context.Context, name string, sync v1.GitWebHookReceiverHandler)
- func (mock *GitWebHookReceiverControllerMock) OnChangeCalls() []struct{ ... }
- func (mock *GitWebHookReceiverControllerMock) OnRemove(ctx context.Context, name string, sync v1.GitWebHookReceiverHandler)
- func (mock *GitWebHookReceiverControllerMock) OnRemoveCalls() []struct{ ... }
- func (mock *GitWebHookReceiverControllerMock) Patch(namespace string, name string, pt types.PatchType, data []byte, ...) (*v1a.GitWebHookReceiver, error)
- func (mock *GitWebHookReceiverControllerMock) PatchCalls() []struct{ ... }
- func (mock *GitWebHookReceiverControllerMock) Update(in1 *v1a.GitWebHookReceiver) (*v1a.GitWebHookReceiver, error)
- func (mock *GitWebHookReceiverControllerMock) UpdateCalls() []struct{ ... }
- func (mock *GitWebHookReceiverControllerMock) UpdateStatus(in1 *v1a.GitWebHookReceiver) (*v1a.GitWebHookReceiver, error)
- func (mock *GitWebHookReceiverControllerMock) UpdateStatusCalls() []struct{ ... }
- func (mock *GitWebHookReceiverControllerMock) Updater() generic.Updater
- func (mock *GitWebHookReceiverControllerMock) UpdaterCalls() []struct{}
- func (mock *GitWebHookReceiverControllerMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
- func (mock *GitWebHookReceiverControllerMock) WatchCalls() []struct{ ... }
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitWebHookExecutionCacheMock ¶
type GitWebHookExecutionCacheMock struct { // AddIndexerFunc mocks the AddIndexer method. AddIndexerFunc func(indexName string, indexer v1.GitWebHookExecutionIndexer) // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v1a.GitWebHookExecution, error) // GetByIndexFunc mocks the GetByIndex method. GetByIndexFunc func(indexName string, key string) ([]*v1a.GitWebHookExecution, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v1a.GitWebHookExecution, error) // contains filtered or unexported fields }
GitWebHookExecutionCacheMock is a mock implementation of GitWebHookExecutionCache.
func TestSomethingThatUsesGitWebHookExecutionCache(t *testing.T) { // make and configure a mocked GitWebHookExecutionCache mockedGitWebHookExecutionCache := &GitWebHookExecutionCacheMock{ AddIndexerFunc: func(indexName string, indexer v1.GitWebHookExecutionIndexer) { panic("mock out the AddIndexer method") }, GetFunc: func(namespace string, name string) (*v1a.GitWebHookExecution, error) { panic("mock out the Get method") }, GetByIndexFunc: func(indexName string, key string) ([]*v1a.GitWebHookExecution, error) { panic("mock out the GetByIndex method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v1a.GitWebHookExecution, error) { panic("mock out the List method") }, } // use mockedGitWebHookExecutionCache in code that requires GitWebHookExecutionCache // and then make assertions. }
func (*GitWebHookExecutionCacheMock) AddIndexer ¶
func (mock *GitWebHookExecutionCacheMock) AddIndexer(indexName string, indexer v1.GitWebHookExecutionIndexer)
AddIndexer calls AddIndexerFunc.
func (*GitWebHookExecutionCacheMock) AddIndexerCalls ¶
func (mock *GitWebHookExecutionCacheMock) AddIndexerCalls() []struct { IndexName string Indexer v1.GitWebHookExecutionIndexer }
AddIndexerCalls gets all the calls that were made to AddIndexer. Check the length with:
len(mockedGitWebHookExecutionCache.AddIndexerCalls())
func (*GitWebHookExecutionCacheMock) Get ¶
func (mock *GitWebHookExecutionCacheMock) Get(namespace string, name string) (*v1a.GitWebHookExecution, error)
Get calls GetFunc.
func (*GitWebHookExecutionCacheMock) GetByIndex ¶
func (mock *GitWebHookExecutionCacheMock) GetByIndex(indexName string, key string) ([]*v1a.GitWebHookExecution, error)
GetByIndex calls GetByIndexFunc.
func (*GitWebHookExecutionCacheMock) GetByIndexCalls ¶
func (mock *GitWebHookExecutionCacheMock) GetByIndexCalls() []struct { IndexName string Key string }
GetByIndexCalls gets all the calls that were made to GetByIndex. Check the length with:
len(mockedGitWebHookExecutionCache.GetByIndexCalls())
func (*GitWebHookExecutionCacheMock) GetCalls ¶
func (mock *GitWebHookExecutionCacheMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedGitWebHookExecutionCache.GetCalls())
func (*GitWebHookExecutionCacheMock) List ¶
func (mock *GitWebHookExecutionCacheMock) List(namespace string, selector labels.Selector) ([]*v1a.GitWebHookExecution, error)
List calls ListFunc.
type GitWebHookExecutionClientMock ¶
type GitWebHookExecutionClientMock struct { // CreateFunc mocks the Create method. CreateFunc func(in1 *v1a.GitWebHookExecution) (*v1a.GitWebHookExecution, 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.GitWebHookExecution, error) // ListFunc mocks the List method. ListFunc func(namespace string, opts v1b.ListOptions) (*v1a.GitWebHookExecutionList, error) // PatchFunc mocks the Patch method. PatchFunc func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.GitWebHookExecution, error) // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v1a.GitWebHookExecution) (*v1a.GitWebHookExecution, error) // UpdateStatusFunc mocks the UpdateStatus method. UpdateStatusFunc func(in1 *v1a.GitWebHookExecution) (*v1a.GitWebHookExecution, error) // WatchFunc mocks the Watch method. WatchFunc func(namespace string, opts v1b.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
GitWebHookExecutionClientMock is a mock implementation of GitWebHookExecutionClient.
func TestSomethingThatUsesGitWebHookExecutionClient(t *testing.T) { // make and configure a mocked GitWebHookExecutionClient mockedGitWebHookExecutionClient := &GitWebHookExecutionClientMock{ CreateFunc: func(in1 *v1a.GitWebHookExecution) (*v1a.GitWebHookExecution, 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.GitWebHookExecution, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, opts v1b.ListOptions) (*v1a.GitWebHookExecutionList, error) { panic("mock out the List method") }, PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.GitWebHookExecution, error) { panic("mock out the Patch method") }, UpdateFunc: func(in1 *v1a.GitWebHookExecution) (*v1a.GitWebHookExecution, error) { panic("mock out the Update method") }, UpdateStatusFunc: func(in1 *v1a.GitWebHookExecution) (*v1a.GitWebHookExecution, error) { panic("mock out the UpdateStatus method") }, WatchFunc: func(namespace string, opts v1b.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedGitWebHookExecutionClient in code that requires GitWebHookExecutionClient // and then make assertions. }
func (*GitWebHookExecutionClientMock) Create ¶
func (mock *GitWebHookExecutionClientMock) Create(in1 *v1a.GitWebHookExecution) (*v1a.GitWebHookExecution, error)
Create calls CreateFunc.
func (*GitWebHookExecutionClientMock) CreateCalls ¶
func (mock *GitWebHookExecutionClientMock) CreateCalls() []struct { In1 *v1a.GitWebHookExecution }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedGitWebHookExecutionClient.CreateCalls())
func (*GitWebHookExecutionClientMock) Delete ¶
func (mock *GitWebHookExecutionClientMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
Delete calls DeleteFunc.
func (*GitWebHookExecutionClientMock) DeleteCalls ¶
func (mock *GitWebHookExecutionClientMock) DeleteCalls() []struct { Namespace string Name string Options *v1b.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedGitWebHookExecutionClient.DeleteCalls())
func (*GitWebHookExecutionClientMock) Get ¶
func (mock *GitWebHookExecutionClientMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.GitWebHookExecution, error)
Get calls GetFunc.
func (*GitWebHookExecutionClientMock) GetCalls ¶
func (mock *GitWebHookExecutionClientMock) GetCalls() []struct { Namespace string Name string Options v1b.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedGitWebHookExecutionClient.GetCalls())
func (*GitWebHookExecutionClientMock) List ¶
func (mock *GitWebHookExecutionClientMock) List(namespace string, opts v1b.ListOptions) (*v1a.GitWebHookExecutionList, error)
List calls ListFunc.
func (*GitWebHookExecutionClientMock) ListCalls ¶
func (mock *GitWebHookExecutionClientMock) ListCalls() []struct { Namespace string Opts v1b.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedGitWebHookExecutionClient.ListCalls())
func (*GitWebHookExecutionClientMock) Patch ¶
func (mock *GitWebHookExecutionClientMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.GitWebHookExecution, error)
Patch calls PatchFunc.
func (*GitWebHookExecutionClientMock) PatchCalls ¶
func (mock *GitWebHookExecutionClientMock) 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(mockedGitWebHookExecutionClient.PatchCalls())
func (*GitWebHookExecutionClientMock) Update ¶
func (mock *GitWebHookExecutionClientMock) Update(in1 *v1a.GitWebHookExecution) (*v1a.GitWebHookExecution, error)
Update calls UpdateFunc.
func (*GitWebHookExecutionClientMock) UpdateCalls ¶
func (mock *GitWebHookExecutionClientMock) UpdateCalls() []struct { In1 *v1a.GitWebHookExecution }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedGitWebHookExecutionClient.UpdateCalls())
func (*GitWebHookExecutionClientMock) UpdateStatus ¶
func (mock *GitWebHookExecutionClientMock) UpdateStatus(in1 *v1a.GitWebHookExecution) (*v1a.GitWebHookExecution, error)
UpdateStatus calls UpdateStatusFunc.
func (*GitWebHookExecutionClientMock) UpdateStatusCalls ¶
func (mock *GitWebHookExecutionClientMock) UpdateStatusCalls() []struct { In1 *v1a.GitWebHookExecution }
UpdateStatusCalls gets all the calls that were made to UpdateStatus. Check the length with:
len(mockedGitWebHookExecutionClient.UpdateStatusCalls())
func (*GitWebHookExecutionClientMock) Watch ¶
func (mock *GitWebHookExecutionClientMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*GitWebHookExecutionClientMock) WatchCalls ¶
func (mock *GitWebHookExecutionClientMock) WatchCalls() []struct { Namespace string Opts v1b.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedGitWebHookExecutionClient.WatchCalls())
type GitWebHookExecutionControllerMock ¶
type GitWebHookExecutionControllerMock 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.GitWebHookExecutionCache // CreateFunc mocks the Create method. CreateFunc func(in1 *v1a.GitWebHookExecution) (*v1a.GitWebHookExecution, 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.GitWebHookExecution, 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.GitWebHookExecutionList, error) // OnChangeFunc mocks the OnChange method. OnChangeFunc func(ctx context.Context, name string, sync v1.GitWebHookExecutionHandler) // OnRemoveFunc mocks the OnRemove method. OnRemoveFunc func(ctx context.Context, name string, sync v1.GitWebHookExecutionHandler) // PatchFunc mocks the Patch method. PatchFunc func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.GitWebHookExecution, error) // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v1a.GitWebHookExecution) (*v1a.GitWebHookExecution, error) // UpdateStatusFunc mocks the UpdateStatus method. UpdateStatusFunc func(in1 *v1a.GitWebHookExecution) (*v1a.GitWebHookExecution, 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 }
GitWebHookExecutionControllerMock is a mock implementation of GitWebHookExecutionController.
func TestSomethingThatUsesGitWebHookExecutionController(t *testing.T) { // make and configure a mocked GitWebHookExecutionController mockedGitWebHookExecutionController := &GitWebHookExecutionControllerMock{ 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.GitWebHookExecutionCache { panic("mock out the Cache method") }, CreateFunc: func(in1 *v1a.GitWebHookExecution) (*v1a.GitWebHookExecution, 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.GitWebHookExecution, 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.GitWebHookExecutionList, error) { panic("mock out the List method") }, OnChangeFunc: func(ctx context.Context, name string, sync v1.GitWebHookExecutionHandler) { panic("mock out the OnChange method") }, OnRemoveFunc: func(ctx context.Context, name string, sync v1.GitWebHookExecutionHandler) { panic("mock out the OnRemove method") }, PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.GitWebHookExecution, error) { panic("mock out the Patch method") }, UpdateFunc: func(in1 *v1a.GitWebHookExecution) (*v1a.GitWebHookExecution, error) { panic("mock out the Update method") }, UpdateStatusFunc: func(in1 *v1a.GitWebHookExecution) (*v1a.GitWebHookExecution, 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 mockedGitWebHookExecutionController in code that requires GitWebHookExecutionController // and then make assertions. }
func (*GitWebHookExecutionControllerMock) AddGenericHandler ¶
func (mock *GitWebHookExecutionControllerMock) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)
AddGenericHandler calls AddGenericHandlerFunc.
func (*GitWebHookExecutionControllerMock) AddGenericHandlerCalls ¶
func (mock *GitWebHookExecutionControllerMock) 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(mockedGitWebHookExecutionController.AddGenericHandlerCalls())
func (*GitWebHookExecutionControllerMock) AddGenericRemoveHandler ¶
func (mock *GitWebHookExecutionControllerMock) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)
AddGenericRemoveHandler calls AddGenericRemoveHandlerFunc.
func (*GitWebHookExecutionControllerMock) AddGenericRemoveHandlerCalls ¶
func (mock *GitWebHookExecutionControllerMock) 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(mockedGitWebHookExecutionController.AddGenericRemoveHandlerCalls())
func (*GitWebHookExecutionControllerMock) Cache ¶
func (mock *GitWebHookExecutionControllerMock) Cache() v1.GitWebHookExecutionCache
Cache calls CacheFunc.
func (*GitWebHookExecutionControllerMock) CacheCalls ¶
func (mock *GitWebHookExecutionControllerMock) CacheCalls() []struct { }
CacheCalls gets all the calls that were made to Cache. Check the length with:
len(mockedGitWebHookExecutionController.CacheCalls())
func (*GitWebHookExecutionControllerMock) Create ¶
func (mock *GitWebHookExecutionControllerMock) Create(in1 *v1a.GitWebHookExecution) (*v1a.GitWebHookExecution, error)
Create calls CreateFunc.
func (*GitWebHookExecutionControllerMock) CreateCalls ¶
func (mock *GitWebHookExecutionControllerMock) CreateCalls() []struct { In1 *v1a.GitWebHookExecution }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedGitWebHookExecutionController.CreateCalls())
func (*GitWebHookExecutionControllerMock) Delete ¶
func (mock *GitWebHookExecutionControllerMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
Delete calls DeleteFunc.
func (*GitWebHookExecutionControllerMock) DeleteCalls ¶
func (mock *GitWebHookExecutionControllerMock) DeleteCalls() []struct { Namespace string Name string Options *v1b.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedGitWebHookExecutionController.DeleteCalls())
func (*GitWebHookExecutionControllerMock) Enqueue ¶
func (mock *GitWebHookExecutionControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*GitWebHookExecutionControllerMock) EnqueueCalls ¶
func (mock *GitWebHookExecutionControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedGitWebHookExecutionController.EnqueueCalls())
func (*GitWebHookExecutionControllerMock) Get ¶
func (mock *GitWebHookExecutionControllerMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.GitWebHookExecution, error)
Get calls GetFunc.
func (*GitWebHookExecutionControllerMock) GetCalls ¶
func (mock *GitWebHookExecutionControllerMock) GetCalls() []struct { Namespace string Name string Options v1b.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedGitWebHookExecutionController.GetCalls())
func (*GitWebHookExecutionControllerMock) GroupVersionKind ¶
func (mock *GitWebHookExecutionControllerMock) GroupVersionKind() schema.GroupVersionKind
GroupVersionKind calls GroupVersionKindFunc.
func (*GitWebHookExecutionControllerMock) GroupVersionKindCalls ¶
func (mock *GitWebHookExecutionControllerMock) GroupVersionKindCalls() []struct { }
GroupVersionKindCalls gets all the calls that were made to GroupVersionKind. Check the length with:
len(mockedGitWebHookExecutionController.GroupVersionKindCalls())
func (*GitWebHookExecutionControllerMock) Informer ¶
func (mock *GitWebHookExecutionControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*GitWebHookExecutionControllerMock) InformerCalls ¶
func (mock *GitWebHookExecutionControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedGitWebHookExecutionController.InformerCalls())
func (*GitWebHookExecutionControllerMock) List ¶
func (mock *GitWebHookExecutionControllerMock) List(namespace string, opts v1b.ListOptions) (*v1a.GitWebHookExecutionList, error)
List calls ListFunc.
func (*GitWebHookExecutionControllerMock) ListCalls ¶
func (mock *GitWebHookExecutionControllerMock) ListCalls() []struct { Namespace string Opts v1b.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedGitWebHookExecutionController.ListCalls())
func (*GitWebHookExecutionControllerMock) OnChange ¶
func (mock *GitWebHookExecutionControllerMock) OnChange(ctx context.Context, name string, sync v1.GitWebHookExecutionHandler)
OnChange calls OnChangeFunc.
func (*GitWebHookExecutionControllerMock) OnChangeCalls ¶
func (mock *GitWebHookExecutionControllerMock) OnChangeCalls() []struct { Ctx context.Context Name string Sync v1.GitWebHookExecutionHandler }
OnChangeCalls gets all the calls that were made to OnChange. Check the length with:
len(mockedGitWebHookExecutionController.OnChangeCalls())
func (*GitWebHookExecutionControllerMock) OnRemove ¶
func (mock *GitWebHookExecutionControllerMock) OnRemove(ctx context.Context, name string, sync v1.GitWebHookExecutionHandler)
OnRemove calls OnRemoveFunc.
func (*GitWebHookExecutionControllerMock) OnRemoveCalls ¶
func (mock *GitWebHookExecutionControllerMock) OnRemoveCalls() []struct { Ctx context.Context Name string Sync v1.GitWebHookExecutionHandler }
OnRemoveCalls gets all the calls that were made to OnRemove. Check the length with:
len(mockedGitWebHookExecutionController.OnRemoveCalls())
func (*GitWebHookExecutionControllerMock) Patch ¶
func (mock *GitWebHookExecutionControllerMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.GitWebHookExecution, error)
Patch calls PatchFunc.
func (*GitWebHookExecutionControllerMock) PatchCalls ¶
func (mock *GitWebHookExecutionControllerMock) 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(mockedGitWebHookExecutionController.PatchCalls())
func (*GitWebHookExecutionControllerMock) Update ¶
func (mock *GitWebHookExecutionControllerMock) Update(in1 *v1a.GitWebHookExecution) (*v1a.GitWebHookExecution, error)
Update calls UpdateFunc.
func (*GitWebHookExecutionControllerMock) UpdateCalls ¶
func (mock *GitWebHookExecutionControllerMock) UpdateCalls() []struct { In1 *v1a.GitWebHookExecution }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedGitWebHookExecutionController.UpdateCalls())
func (*GitWebHookExecutionControllerMock) UpdateStatus ¶
func (mock *GitWebHookExecutionControllerMock) UpdateStatus(in1 *v1a.GitWebHookExecution) (*v1a.GitWebHookExecution, error)
UpdateStatus calls UpdateStatusFunc.
func (*GitWebHookExecutionControllerMock) UpdateStatusCalls ¶
func (mock *GitWebHookExecutionControllerMock) UpdateStatusCalls() []struct { In1 *v1a.GitWebHookExecution }
UpdateStatusCalls gets all the calls that were made to UpdateStatus. Check the length with:
len(mockedGitWebHookExecutionController.UpdateStatusCalls())
func (*GitWebHookExecutionControllerMock) Updater ¶
func (mock *GitWebHookExecutionControllerMock) Updater() generic.Updater
Updater calls UpdaterFunc.
func (*GitWebHookExecutionControllerMock) UpdaterCalls ¶
func (mock *GitWebHookExecutionControllerMock) UpdaterCalls() []struct { }
UpdaterCalls gets all the calls that were made to Updater. Check the length with:
len(mockedGitWebHookExecutionController.UpdaterCalls())
func (*GitWebHookExecutionControllerMock) Watch ¶
func (mock *GitWebHookExecutionControllerMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*GitWebHookExecutionControllerMock) WatchCalls ¶
func (mock *GitWebHookExecutionControllerMock) WatchCalls() []struct { Namespace string Opts v1b.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedGitWebHookExecutionController.WatchCalls())
type GitWebHookReceiverCacheMock ¶
type GitWebHookReceiverCacheMock struct { // AddIndexerFunc mocks the AddIndexer method. AddIndexerFunc func(indexName string, indexer v1.GitWebHookReceiverIndexer) // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v1a.GitWebHookReceiver, error) // GetByIndexFunc mocks the GetByIndex method. GetByIndexFunc func(indexName string, key string) ([]*v1a.GitWebHookReceiver, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v1a.GitWebHookReceiver, error) // contains filtered or unexported fields }
GitWebHookReceiverCacheMock is a mock implementation of GitWebHookReceiverCache.
func TestSomethingThatUsesGitWebHookReceiverCache(t *testing.T) { // make and configure a mocked GitWebHookReceiverCache mockedGitWebHookReceiverCache := &GitWebHookReceiverCacheMock{ AddIndexerFunc: func(indexName string, indexer v1.GitWebHookReceiverIndexer) { panic("mock out the AddIndexer method") }, GetFunc: func(namespace string, name string) (*v1a.GitWebHookReceiver, error) { panic("mock out the Get method") }, GetByIndexFunc: func(indexName string, key string) ([]*v1a.GitWebHookReceiver, error) { panic("mock out the GetByIndex method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v1a.GitWebHookReceiver, error) { panic("mock out the List method") }, } // use mockedGitWebHookReceiverCache in code that requires GitWebHookReceiverCache // and then make assertions. }
func (*GitWebHookReceiverCacheMock) AddIndexer ¶
func (mock *GitWebHookReceiverCacheMock) AddIndexer(indexName string, indexer v1.GitWebHookReceiverIndexer)
AddIndexer calls AddIndexerFunc.
func (*GitWebHookReceiverCacheMock) AddIndexerCalls ¶
func (mock *GitWebHookReceiverCacheMock) AddIndexerCalls() []struct { IndexName string Indexer v1.GitWebHookReceiverIndexer }
AddIndexerCalls gets all the calls that were made to AddIndexer. Check the length with:
len(mockedGitWebHookReceiverCache.AddIndexerCalls())
func (*GitWebHookReceiverCacheMock) Get ¶
func (mock *GitWebHookReceiverCacheMock) Get(namespace string, name string) (*v1a.GitWebHookReceiver, error)
Get calls GetFunc.
func (*GitWebHookReceiverCacheMock) GetByIndex ¶
func (mock *GitWebHookReceiverCacheMock) GetByIndex(indexName string, key string) ([]*v1a.GitWebHookReceiver, error)
GetByIndex calls GetByIndexFunc.
func (*GitWebHookReceiverCacheMock) GetByIndexCalls ¶
func (mock *GitWebHookReceiverCacheMock) GetByIndexCalls() []struct { IndexName string Key string }
GetByIndexCalls gets all the calls that were made to GetByIndex. Check the length with:
len(mockedGitWebHookReceiverCache.GetByIndexCalls())
func (*GitWebHookReceiverCacheMock) GetCalls ¶
func (mock *GitWebHookReceiverCacheMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedGitWebHookReceiverCache.GetCalls())
func (*GitWebHookReceiverCacheMock) List ¶
func (mock *GitWebHookReceiverCacheMock) List(namespace string, selector labels.Selector) ([]*v1a.GitWebHookReceiver, error)
List calls ListFunc.
type GitWebHookReceiverClientMock ¶
type GitWebHookReceiverClientMock struct { // CreateFunc mocks the Create method. CreateFunc func(in1 *v1a.GitWebHookReceiver) (*v1a.GitWebHookReceiver, 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.GitWebHookReceiver, error) // ListFunc mocks the List method. ListFunc func(namespace string, opts v1b.ListOptions) (*v1a.GitWebHookReceiverList, error) // PatchFunc mocks the Patch method. PatchFunc func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.GitWebHookReceiver, error) // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v1a.GitWebHookReceiver) (*v1a.GitWebHookReceiver, error) // UpdateStatusFunc mocks the UpdateStatus method. UpdateStatusFunc func(in1 *v1a.GitWebHookReceiver) (*v1a.GitWebHookReceiver, error) // WatchFunc mocks the Watch method. WatchFunc func(namespace string, opts v1b.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
GitWebHookReceiverClientMock is a mock implementation of GitWebHookReceiverClient.
func TestSomethingThatUsesGitWebHookReceiverClient(t *testing.T) { // make and configure a mocked GitWebHookReceiverClient mockedGitWebHookReceiverClient := &GitWebHookReceiverClientMock{ CreateFunc: func(in1 *v1a.GitWebHookReceiver) (*v1a.GitWebHookReceiver, 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.GitWebHookReceiver, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, opts v1b.ListOptions) (*v1a.GitWebHookReceiverList, error) { panic("mock out the List method") }, PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.GitWebHookReceiver, error) { panic("mock out the Patch method") }, UpdateFunc: func(in1 *v1a.GitWebHookReceiver) (*v1a.GitWebHookReceiver, error) { panic("mock out the Update method") }, UpdateStatusFunc: func(in1 *v1a.GitWebHookReceiver) (*v1a.GitWebHookReceiver, error) { panic("mock out the UpdateStatus method") }, WatchFunc: func(namespace string, opts v1b.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedGitWebHookReceiverClient in code that requires GitWebHookReceiverClient // and then make assertions. }
func (*GitWebHookReceiverClientMock) Create ¶
func (mock *GitWebHookReceiverClientMock) Create(in1 *v1a.GitWebHookReceiver) (*v1a.GitWebHookReceiver, error)
Create calls CreateFunc.
func (*GitWebHookReceiverClientMock) CreateCalls ¶
func (mock *GitWebHookReceiverClientMock) CreateCalls() []struct { In1 *v1a.GitWebHookReceiver }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedGitWebHookReceiverClient.CreateCalls())
func (*GitWebHookReceiverClientMock) Delete ¶
func (mock *GitWebHookReceiverClientMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
Delete calls DeleteFunc.
func (*GitWebHookReceiverClientMock) DeleteCalls ¶
func (mock *GitWebHookReceiverClientMock) DeleteCalls() []struct { Namespace string Name string Options *v1b.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedGitWebHookReceiverClient.DeleteCalls())
func (*GitWebHookReceiverClientMock) Get ¶
func (mock *GitWebHookReceiverClientMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.GitWebHookReceiver, error)
Get calls GetFunc.
func (*GitWebHookReceiverClientMock) GetCalls ¶
func (mock *GitWebHookReceiverClientMock) GetCalls() []struct { Namespace string Name string Options v1b.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedGitWebHookReceiverClient.GetCalls())
func (*GitWebHookReceiverClientMock) List ¶
func (mock *GitWebHookReceiverClientMock) List(namespace string, opts v1b.ListOptions) (*v1a.GitWebHookReceiverList, error)
List calls ListFunc.
func (*GitWebHookReceiverClientMock) ListCalls ¶
func (mock *GitWebHookReceiverClientMock) ListCalls() []struct { Namespace string Opts v1b.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedGitWebHookReceiverClient.ListCalls())
func (*GitWebHookReceiverClientMock) Patch ¶
func (mock *GitWebHookReceiverClientMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.GitWebHookReceiver, error)
Patch calls PatchFunc.
func (*GitWebHookReceiverClientMock) PatchCalls ¶
func (mock *GitWebHookReceiverClientMock) 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(mockedGitWebHookReceiverClient.PatchCalls())
func (*GitWebHookReceiverClientMock) Update ¶
func (mock *GitWebHookReceiverClientMock) Update(in1 *v1a.GitWebHookReceiver) (*v1a.GitWebHookReceiver, error)
Update calls UpdateFunc.
func (*GitWebHookReceiverClientMock) UpdateCalls ¶
func (mock *GitWebHookReceiverClientMock) UpdateCalls() []struct { In1 *v1a.GitWebHookReceiver }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedGitWebHookReceiverClient.UpdateCalls())
func (*GitWebHookReceiverClientMock) UpdateStatus ¶
func (mock *GitWebHookReceiverClientMock) UpdateStatus(in1 *v1a.GitWebHookReceiver) (*v1a.GitWebHookReceiver, error)
UpdateStatus calls UpdateStatusFunc.
func (*GitWebHookReceiverClientMock) UpdateStatusCalls ¶
func (mock *GitWebHookReceiverClientMock) UpdateStatusCalls() []struct { In1 *v1a.GitWebHookReceiver }
UpdateStatusCalls gets all the calls that were made to UpdateStatus. Check the length with:
len(mockedGitWebHookReceiverClient.UpdateStatusCalls())
func (*GitWebHookReceiverClientMock) Watch ¶
func (mock *GitWebHookReceiverClientMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*GitWebHookReceiverClientMock) WatchCalls ¶
func (mock *GitWebHookReceiverClientMock) WatchCalls() []struct { Namespace string Opts v1b.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedGitWebHookReceiverClient.WatchCalls())
type GitWebHookReceiverControllerMock ¶
type GitWebHookReceiverControllerMock 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.GitWebHookReceiverCache // CreateFunc mocks the Create method. CreateFunc func(in1 *v1a.GitWebHookReceiver) (*v1a.GitWebHookReceiver, 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.GitWebHookReceiver, 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.GitWebHookReceiverList, error) // OnChangeFunc mocks the OnChange method. OnChangeFunc func(ctx context.Context, name string, sync v1.GitWebHookReceiverHandler) // OnRemoveFunc mocks the OnRemove method. OnRemoveFunc func(ctx context.Context, name string, sync v1.GitWebHookReceiverHandler) // PatchFunc mocks the Patch method. PatchFunc func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.GitWebHookReceiver, error) // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v1a.GitWebHookReceiver) (*v1a.GitWebHookReceiver, error) // UpdateStatusFunc mocks the UpdateStatus method. UpdateStatusFunc func(in1 *v1a.GitWebHookReceiver) (*v1a.GitWebHookReceiver, 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 }
GitWebHookReceiverControllerMock is a mock implementation of GitWebHookReceiverController.
func TestSomethingThatUsesGitWebHookReceiverController(t *testing.T) { // make and configure a mocked GitWebHookReceiverController mockedGitWebHookReceiverController := &GitWebHookReceiverControllerMock{ 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.GitWebHookReceiverCache { panic("mock out the Cache method") }, CreateFunc: func(in1 *v1a.GitWebHookReceiver) (*v1a.GitWebHookReceiver, 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.GitWebHookReceiver, 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.GitWebHookReceiverList, error) { panic("mock out the List method") }, OnChangeFunc: func(ctx context.Context, name string, sync v1.GitWebHookReceiverHandler) { panic("mock out the OnChange method") }, OnRemoveFunc: func(ctx context.Context, name string, sync v1.GitWebHookReceiverHandler) { panic("mock out the OnRemove method") }, PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.GitWebHookReceiver, error) { panic("mock out the Patch method") }, UpdateFunc: func(in1 *v1a.GitWebHookReceiver) (*v1a.GitWebHookReceiver, error) { panic("mock out the Update method") }, UpdateStatusFunc: func(in1 *v1a.GitWebHookReceiver) (*v1a.GitWebHookReceiver, 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 mockedGitWebHookReceiverController in code that requires GitWebHookReceiverController // and then make assertions. }
func (*GitWebHookReceiverControllerMock) AddGenericHandler ¶
func (mock *GitWebHookReceiverControllerMock) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)
AddGenericHandler calls AddGenericHandlerFunc.
func (*GitWebHookReceiverControllerMock) AddGenericHandlerCalls ¶
func (mock *GitWebHookReceiverControllerMock) 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(mockedGitWebHookReceiverController.AddGenericHandlerCalls())
func (*GitWebHookReceiverControllerMock) AddGenericRemoveHandler ¶
func (mock *GitWebHookReceiverControllerMock) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)
AddGenericRemoveHandler calls AddGenericRemoveHandlerFunc.
func (*GitWebHookReceiverControllerMock) AddGenericRemoveHandlerCalls ¶
func (mock *GitWebHookReceiverControllerMock) 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(mockedGitWebHookReceiverController.AddGenericRemoveHandlerCalls())
func (*GitWebHookReceiverControllerMock) Cache ¶
func (mock *GitWebHookReceiverControllerMock) Cache() v1.GitWebHookReceiverCache
Cache calls CacheFunc.
func (*GitWebHookReceiverControllerMock) CacheCalls ¶
func (mock *GitWebHookReceiverControllerMock) CacheCalls() []struct { }
CacheCalls gets all the calls that were made to Cache. Check the length with:
len(mockedGitWebHookReceiverController.CacheCalls())
func (*GitWebHookReceiverControllerMock) Create ¶
func (mock *GitWebHookReceiverControllerMock) Create(in1 *v1a.GitWebHookReceiver) (*v1a.GitWebHookReceiver, error)
Create calls CreateFunc.
func (*GitWebHookReceiverControllerMock) CreateCalls ¶
func (mock *GitWebHookReceiverControllerMock) CreateCalls() []struct { In1 *v1a.GitWebHookReceiver }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedGitWebHookReceiverController.CreateCalls())
func (*GitWebHookReceiverControllerMock) Delete ¶
func (mock *GitWebHookReceiverControllerMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
Delete calls DeleteFunc.
func (*GitWebHookReceiverControllerMock) DeleteCalls ¶
func (mock *GitWebHookReceiverControllerMock) DeleteCalls() []struct { Namespace string Name string Options *v1b.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedGitWebHookReceiverController.DeleteCalls())
func (*GitWebHookReceiverControllerMock) Enqueue ¶
func (mock *GitWebHookReceiverControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*GitWebHookReceiverControllerMock) EnqueueCalls ¶
func (mock *GitWebHookReceiverControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedGitWebHookReceiverController.EnqueueCalls())
func (*GitWebHookReceiverControllerMock) Get ¶
func (mock *GitWebHookReceiverControllerMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.GitWebHookReceiver, error)
Get calls GetFunc.
func (*GitWebHookReceiverControllerMock) GetCalls ¶
func (mock *GitWebHookReceiverControllerMock) GetCalls() []struct { Namespace string Name string Options v1b.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedGitWebHookReceiverController.GetCalls())
func (*GitWebHookReceiverControllerMock) GroupVersionKind ¶
func (mock *GitWebHookReceiverControllerMock) GroupVersionKind() schema.GroupVersionKind
GroupVersionKind calls GroupVersionKindFunc.
func (*GitWebHookReceiverControllerMock) GroupVersionKindCalls ¶
func (mock *GitWebHookReceiverControllerMock) GroupVersionKindCalls() []struct { }
GroupVersionKindCalls gets all the calls that were made to GroupVersionKind. Check the length with:
len(mockedGitWebHookReceiverController.GroupVersionKindCalls())
func (*GitWebHookReceiverControllerMock) Informer ¶
func (mock *GitWebHookReceiverControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*GitWebHookReceiverControllerMock) InformerCalls ¶
func (mock *GitWebHookReceiverControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedGitWebHookReceiverController.InformerCalls())
func (*GitWebHookReceiverControllerMock) List ¶
func (mock *GitWebHookReceiverControllerMock) List(namespace string, opts v1b.ListOptions) (*v1a.GitWebHookReceiverList, error)
List calls ListFunc.
func (*GitWebHookReceiverControllerMock) ListCalls ¶
func (mock *GitWebHookReceiverControllerMock) ListCalls() []struct { Namespace string Opts v1b.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedGitWebHookReceiverController.ListCalls())
func (*GitWebHookReceiverControllerMock) OnChange ¶
func (mock *GitWebHookReceiverControllerMock) OnChange(ctx context.Context, name string, sync v1.GitWebHookReceiverHandler)
OnChange calls OnChangeFunc.
func (*GitWebHookReceiverControllerMock) OnChangeCalls ¶
func (mock *GitWebHookReceiverControllerMock) OnChangeCalls() []struct { Ctx context.Context Name string Sync v1.GitWebHookReceiverHandler }
OnChangeCalls gets all the calls that were made to OnChange. Check the length with:
len(mockedGitWebHookReceiverController.OnChangeCalls())
func (*GitWebHookReceiverControllerMock) OnRemove ¶
func (mock *GitWebHookReceiverControllerMock) OnRemove(ctx context.Context, name string, sync v1.GitWebHookReceiverHandler)
OnRemove calls OnRemoveFunc.
func (*GitWebHookReceiverControllerMock) OnRemoveCalls ¶
func (mock *GitWebHookReceiverControllerMock) OnRemoveCalls() []struct { Ctx context.Context Name string Sync v1.GitWebHookReceiverHandler }
OnRemoveCalls gets all the calls that were made to OnRemove. Check the length with:
len(mockedGitWebHookReceiverController.OnRemoveCalls())
func (*GitWebHookReceiverControllerMock) Patch ¶
func (mock *GitWebHookReceiverControllerMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.GitWebHookReceiver, error)
Patch calls PatchFunc.
func (*GitWebHookReceiverControllerMock) PatchCalls ¶
func (mock *GitWebHookReceiverControllerMock) 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(mockedGitWebHookReceiverController.PatchCalls())
func (*GitWebHookReceiverControllerMock) Update ¶
func (mock *GitWebHookReceiverControllerMock) Update(in1 *v1a.GitWebHookReceiver) (*v1a.GitWebHookReceiver, error)
Update calls UpdateFunc.
func (*GitWebHookReceiverControllerMock) UpdateCalls ¶
func (mock *GitWebHookReceiverControllerMock) UpdateCalls() []struct { In1 *v1a.GitWebHookReceiver }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedGitWebHookReceiverController.UpdateCalls())
func (*GitWebHookReceiverControllerMock) UpdateStatus ¶
func (mock *GitWebHookReceiverControllerMock) UpdateStatus(in1 *v1a.GitWebHookReceiver) (*v1a.GitWebHookReceiver, error)
UpdateStatus calls UpdateStatusFunc.
func (*GitWebHookReceiverControllerMock) UpdateStatusCalls ¶
func (mock *GitWebHookReceiverControllerMock) UpdateStatusCalls() []struct { In1 *v1a.GitWebHookReceiver }
UpdateStatusCalls gets all the calls that were made to UpdateStatus. Check the length with:
len(mockedGitWebHookReceiverController.UpdateStatusCalls())
func (*GitWebHookReceiverControllerMock) Updater ¶
func (mock *GitWebHookReceiverControllerMock) Updater() generic.Updater
Updater calls UpdaterFunc.
func (*GitWebHookReceiverControllerMock) UpdaterCalls ¶
func (mock *GitWebHookReceiverControllerMock) UpdaterCalls() []struct { }
UpdaterCalls gets all the calls that were made to Updater. Check the length with:
len(mockedGitWebHookReceiverController.UpdaterCalls())
func (*GitWebHookReceiverControllerMock) Watch ¶
func (mock *GitWebHookReceiverControllerMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*GitWebHookReceiverControllerMock) WatchCalls ¶
func (mock *GitWebHookReceiverControllerMock) WatchCalls() []struct { Namespace string Opts v1b.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedGitWebHookReceiverController.WatchCalls())