Documentation
¶
Index ¶
- type ConfigMapCacheMock
- func (mock *ConfigMapCacheMock) AddIndexer(indexName string, indexer v1.ConfigMapIndexer)
- func (mock *ConfigMapCacheMock) AddIndexerCalls() []struct{ ... }
- func (mock *ConfigMapCacheMock) Get(namespace string, name string) (*v1a.ConfigMap, error)
- func (mock *ConfigMapCacheMock) GetByIndex(indexName string, key string) ([]*v1a.ConfigMap, error)
- func (mock *ConfigMapCacheMock) GetByIndexCalls() []struct{ ... }
- func (mock *ConfigMapCacheMock) GetCalls() []struct{ ... }
- func (mock *ConfigMapCacheMock) List(namespace string, selector labels.Selector) ([]*v1a.ConfigMap, error)
- func (mock *ConfigMapCacheMock) ListCalls() []struct{ ... }
- type ConfigMapClientMock
- func (mock *ConfigMapClientMock) Create(in1 *v1a.ConfigMap) (*v1a.ConfigMap, error)
- func (mock *ConfigMapClientMock) CreateCalls() []struct{ ... }
- func (mock *ConfigMapClientMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
- func (mock *ConfigMapClientMock) DeleteCalls() []struct{ ... }
- func (mock *ConfigMapClientMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.ConfigMap, error)
- func (mock *ConfigMapClientMock) GetCalls() []struct{ ... }
- func (mock *ConfigMapClientMock) List(namespace string, opts v1b.ListOptions) (*v1a.ConfigMapList, error)
- func (mock *ConfigMapClientMock) ListCalls() []struct{ ... }
- func (mock *ConfigMapClientMock) Patch(namespace string, name string, pt types.PatchType, data []byte, ...) (*v1a.ConfigMap, error)
- func (mock *ConfigMapClientMock) PatchCalls() []struct{ ... }
- func (mock *ConfigMapClientMock) Update(in1 *v1a.ConfigMap) (*v1a.ConfigMap, error)
- func (mock *ConfigMapClientMock) UpdateCalls() []struct{ ... }
- func (mock *ConfigMapClientMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
- func (mock *ConfigMapClientMock) WatchCalls() []struct{ ... }
- type ConfigMapControllerMock
- func (mock *ConfigMapControllerMock) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)
- func (mock *ConfigMapControllerMock) AddGenericHandlerCalls() []struct{ ... }
- func (mock *ConfigMapControllerMock) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)
- func (mock *ConfigMapControllerMock) AddGenericRemoveHandlerCalls() []struct{ ... }
- func (mock *ConfigMapControllerMock) Cache() v1.ConfigMapCache
- func (mock *ConfigMapControllerMock) CacheCalls() []struct{}
- func (mock *ConfigMapControllerMock) Create(in1 *v1a.ConfigMap) (*v1a.ConfigMap, error)
- func (mock *ConfigMapControllerMock) CreateCalls() []struct{ ... }
- func (mock *ConfigMapControllerMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
- func (mock *ConfigMapControllerMock) DeleteCalls() []struct{ ... }
- func (mock *ConfigMapControllerMock) Enqueue(namespace string, name string)
- func (mock *ConfigMapControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *ConfigMapControllerMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.ConfigMap, error)
- func (mock *ConfigMapControllerMock) GetCalls() []struct{ ... }
- func (mock *ConfigMapControllerMock) GroupVersionKind() schema.GroupVersionKind
- func (mock *ConfigMapControllerMock) GroupVersionKindCalls() []struct{}
- func (mock *ConfigMapControllerMock) Informer() cache.SharedIndexInformer
- func (mock *ConfigMapControllerMock) InformerCalls() []struct{}
- func (mock *ConfigMapControllerMock) List(namespace string, opts v1b.ListOptions) (*v1a.ConfigMapList, error)
- func (mock *ConfigMapControllerMock) ListCalls() []struct{ ... }
- func (mock *ConfigMapControllerMock) OnChange(ctx context.Context, name string, sync v1.ConfigMapHandler)
- func (mock *ConfigMapControllerMock) OnChangeCalls() []struct{ ... }
- func (mock *ConfigMapControllerMock) OnRemove(ctx context.Context, name string, sync v1.ConfigMapHandler)
- func (mock *ConfigMapControllerMock) OnRemoveCalls() []struct{ ... }
- func (mock *ConfigMapControllerMock) Patch(namespace string, name string, pt types.PatchType, data []byte, ...) (*v1a.ConfigMap, error)
- func (mock *ConfigMapControllerMock) PatchCalls() []struct{ ... }
- func (mock *ConfigMapControllerMock) Update(in1 *v1a.ConfigMap) (*v1a.ConfigMap, error)
- func (mock *ConfigMapControllerMock) UpdateCalls() []struct{ ... }
- func (mock *ConfigMapControllerMock) Updater() generic.Updater
- func (mock *ConfigMapControllerMock) UpdaterCalls() []struct{}
- func (mock *ConfigMapControllerMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
- func (mock *ConfigMapControllerMock) WatchCalls() []struct{ ... }
- type SecretCacheMock
- func (mock *SecretCacheMock) AddIndexer(indexName string, indexer v1.SecretIndexer)
- func (mock *SecretCacheMock) AddIndexerCalls() []struct{ ... }
- func (mock *SecretCacheMock) Get(namespace string, name string) (*v1a.Secret, error)
- func (mock *SecretCacheMock) GetByIndex(indexName string, key string) ([]*v1a.Secret, error)
- func (mock *SecretCacheMock) GetByIndexCalls() []struct{ ... }
- func (mock *SecretCacheMock) GetCalls() []struct{ ... }
- func (mock *SecretCacheMock) List(namespace string, selector labels.Selector) ([]*v1a.Secret, error)
- func (mock *SecretCacheMock) ListCalls() []struct{ ... }
- type SecretClientMock
- func (mock *SecretClientMock) Create(in1 *v1a.Secret) (*v1a.Secret, error)
- func (mock *SecretClientMock) CreateCalls() []struct{ ... }
- func (mock *SecretClientMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
- func (mock *SecretClientMock) DeleteCalls() []struct{ ... }
- func (mock *SecretClientMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.Secret, error)
- func (mock *SecretClientMock) GetCalls() []struct{ ... }
- func (mock *SecretClientMock) List(namespace string, opts v1b.ListOptions) (*v1a.SecretList, error)
- func (mock *SecretClientMock) ListCalls() []struct{ ... }
- func (mock *SecretClientMock) Patch(namespace string, name string, pt types.PatchType, data []byte, ...) (*v1a.Secret, error)
- func (mock *SecretClientMock) PatchCalls() []struct{ ... }
- func (mock *SecretClientMock) Update(in1 *v1a.Secret) (*v1a.Secret, error)
- func (mock *SecretClientMock) UpdateCalls() []struct{ ... }
- func (mock *SecretClientMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
- func (mock *SecretClientMock) WatchCalls() []struct{ ... }
- type SecretControllerMock
- func (mock *SecretControllerMock) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)
- func (mock *SecretControllerMock) AddGenericHandlerCalls() []struct{ ... }
- func (mock *SecretControllerMock) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)
- func (mock *SecretControllerMock) AddGenericRemoveHandlerCalls() []struct{ ... }
- func (mock *SecretControllerMock) Cache() v1.SecretCache
- func (mock *SecretControllerMock) CacheCalls() []struct{}
- func (mock *SecretControllerMock) Create(in1 *v1a.Secret) (*v1a.Secret, error)
- func (mock *SecretControllerMock) CreateCalls() []struct{ ... }
- func (mock *SecretControllerMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
- func (mock *SecretControllerMock) DeleteCalls() []struct{ ... }
- func (mock *SecretControllerMock) Enqueue(namespace string, name string)
- func (mock *SecretControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *SecretControllerMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.Secret, error)
- func (mock *SecretControllerMock) GetCalls() []struct{ ... }
- func (mock *SecretControllerMock) GroupVersionKind() schema.GroupVersionKind
- func (mock *SecretControllerMock) GroupVersionKindCalls() []struct{}
- func (mock *SecretControllerMock) Informer() cache.SharedIndexInformer
- func (mock *SecretControllerMock) InformerCalls() []struct{}
- func (mock *SecretControllerMock) List(namespace string, opts v1b.ListOptions) (*v1a.SecretList, error)
- func (mock *SecretControllerMock) ListCalls() []struct{ ... }
- func (mock *SecretControllerMock) OnChange(ctx context.Context, name string, sync v1.SecretHandler)
- func (mock *SecretControllerMock) OnChangeCalls() []struct{ ... }
- func (mock *SecretControllerMock) OnRemove(ctx context.Context, name string, sync v1.SecretHandler)
- func (mock *SecretControllerMock) OnRemoveCalls() []struct{ ... }
- func (mock *SecretControllerMock) Patch(namespace string, name string, pt types.PatchType, data []byte, ...) (*v1a.Secret, error)
- func (mock *SecretControllerMock) PatchCalls() []struct{ ... }
- func (mock *SecretControllerMock) Update(in1 *v1a.Secret) (*v1a.Secret, error)
- func (mock *SecretControllerMock) UpdateCalls() []struct{ ... }
- func (mock *SecretControllerMock) Updater() generic.Updater
- func (mock *SecretControllerMock) UpdaterCalls() []struct{}
- func (mock *SecretControllerMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
- func (mock *SecretControllerMock) WatchCalls() []struct{ ... }
- type ServiceAccountCacheMock
- func (mock *ServiceAccountCacheMock) AddIndexer(indexName string, indexer v1.ServiceAccountIndexer)
- func (mock *ServiceAccountCacheMock) AddIndexerCalls() []struct{ ... }
- func (mock *ServiceAccountCacheMock) Get(namespace string, name string) (*v1a.ServiceAccount, error)
- func (mock *ServiceAccountCacheMock) GetByIndex(indexName string, key string) ([]*v1a.ServiceAccount, error)
- func (mock *ServiceAccountCacheMock) GetByIndexCalls() []struct{ ... }
- func (mock *ServiceAccountCacheMock) GetCalls() []struct{ ... }
- func (mock *ServiceAccountCacheMock) List(namespace string, selector labels.Selector) ([]*v1a.ServiceAccount, error)
- func (mock *ServiceAccountCacheMock) ListCalls() []struct{ ... }
- type ServiceAccountClientMock
- func (mock *ServiceAccountClientMock) Create(in1 *v1a.ServiceAccount) (*v1a.ServiceAccount, error)
- func (mock *ServiceAccountClientMock) CreateCalls() []struct{ ... }
- func (mock *ServiceAccountClientMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
- func (mock *ServiceAccountClientMock) DeleteCalls() []struct{ ... }
- func (mock *ServiceAccountClientMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.ServiceAccount, error)
- func (mock *ServiceAccountClientMock) GetCalls() []struct{ ... }
- func (mock *ServiceAccountClientMock) List(namespace string, opts v1b.ListOptions) (*v1a.ServiceAccountList, error)
- func (mock *ServiceAccountClientMock) ListCalls() []struct{ ... }
- func (mock *ServiceAccountClientMock) Patch(namespace string, name string, pt types.PatchType, data []byte, ...) (*v1a.ServiceAccount, error)
- func (mock *ServiceAccountClientMock) PatchCalls() []struct{ ... }
- func (mock *ServiceAccountClientMock) Update(in1 *v1a.ServiceAccount) (*v1a.ServiceAccount, error)
- func (mock *ServiceAccountClientMock) UpdateCalls() []struct{ ... }
- func (mock *ServiceAccountClientMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
- func (mock *ServiceAccountClientMock) WatchCalls() []struct{ ... }
- type ServiceAccountControllerMock
- func (mock *ServiceAccountControllerMock) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)
- func (mock *ServiceAccountControllerMock) AddGenericHandlerCalls() []struct{ ... }
- func (mock *ServiceAccountControllerMock) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)
- func (mock *ServiceAccountControllerMock) AddGenericRemoveHandlerCalls() []struct{ ... }
- func (mock *ServiceAccountControllerMock) Cache() v1.ServiceAccountCache
- func (mock *ServiceAccountControllerMock) CacheCalls() []struct{}
- func (mock *ServiceAccountControllerMock) Create(in1 *v1a.ServiceAccount) (*v1a.ServiceAccount, error)
- func (mock *ServiceAccountControllerMock) CreateCalls() []struct{ ... }
- func (mock *ServiceAccountControllerMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
- func (mock *ServiceAccountControllerMock) DeleteCalls() []struct{ ... }
- func (mock *ServiceAccountControllerMock) Enqueue(namespace string, name string)
- func (mock *ServiceAccountControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *ServiceAccountControllerMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.ServiceAccount, error)
- func (mock *ServiceAccountControllerMock) GetCalls() []struct{ ... }
- func (mock *ServiceAccountControllerMock) GroupVersionKind() schema.GroupVersionKind
- func (mock *ServiceAccountControllerMock) GroupVersionKindCalls() []struct{}
- func (mock *ServiceAccountControllerMock) Informer() cache.SharedIndexInformer
- func (mock *ServiceAccountControllerMock) InformerCalls() []struct{}
- func (mock *ServiceAccountControllerMock) List(namespace string, opts v1b.ListOptions) (*v1a.ServiceAccountList, error)
- func (mock *ServiceAccountControllerMock) ListCalls() []struct{ ... }
- func (mock *ServiceAccountControllerMock) OnChange(ctx context.Context, name string, sync v1.ServiceAccountHandler)
- func (mock *ServiceAccountControllerMock) OnChangeCalls() []struct{ ... }
- func (mock *ServiceAccountControllerMock) OnRemove(ctx context.Context, name string, sync v1.ServiceAccountHandler)
- func (mock *ServiceAccountControllerMock) OnRemoveCalls() []struct{ ... }
- func (mock *ServiceAccountControllerMock) Patch(namespace string, name string, pt types.PatchType, data []byte, ...) (*v1a.ServiceAccount, error)
- func (mock *ServiceAccountControllerMock) PatchCalls() []struct{ ... }
- func (mock *ServiceAccountControllerMock) Update(in1 *v1a.ServiceAccount) (*v1a.ServiceAccount, error)
- func (mock *ServiceAccountControllerMock) UpdateCalls() []struct{ ... }
- func (mock *ServiceAccountControllerMock) Updater() generic.Updater
- func (mock *ServiceAccountControllerMock) UpdaterCalls() []struct{}
- func (mock *ServiceAccountControllerMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
- func (mock *ServiceAccountControllerMock) WatchCalls() []struct{ ... }
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigMapCacheMock ¶
type ConfigMapCacheMock struct { // AddIndexerFunc mocks the AddIndexer method. AddIndexerFunc func(indexName string, indexer v1.ConfigMapIndexer) // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v1a.ConfigMap, error) // GetByIndexFunc mocks the GetByIndex method. GetByIndexFunc func(indexName string, key string) ([]*v1a.ConfigMap, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v1a.ConfigMap, error) // contains filtered or unexported fields }
ConfigMapCacheMock is a mock implementation of ConfigMapCache.
func TestSomethingThatUsesConfigMapCache(t *testing.T) { // make and configure a mocked ConfigMapCache mockedConfigMapCache := &ConfigMapCacheMock{ AddIndexerFunc: func(indexName string, indexer v1.ConfigMapIndexer) { panic("mock out the AddIndexer method") }, GetFunc: func(namespace string, name string) (*v1a.ConfigMap, error) { panic("mock out the Get method") }, GetByIndexFunc: func(indexName string, key string) ([]*v1a.ConfigMap, error) { panic("mock out the GetByIndex method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v1a.ConfigMap, error) { panic("mock out the List method") }, } // use mockedConfigMapCache in code that requires ConfigMapCache // and then make assertions. }
func (*ConfigMapCacheMock) AddIndexer ¶
func (mock *ConfigMapCacheMock) AddIndexer(indexName string, indexer v1.ConfigMapIndexer)
AddIndexer calls AddIndexerFunc.
func (*ConfigMapCacheMock) AddIndexerCalls ¶
func (mock *ConfigMapCacheMock) AddIndexerCalls() []struct { IndexName string Indexer v1.ConfigMapIndexer }
AddIndexerCalls gets all the calls that were made to AddIndexer. Check the length with:
len(mockedConfigMapCache.AddIndexerCalls())
func (*ConfigMapCacheMock) GetByIndex ¶
GetByIndex calls GetByIndexFunc.
func (*ConfigMapCacheMock) GetByIndexCalls ¶
func (mock *ConfigMapCacheMock) GetByIndexCalls() []struct { IndexName string Key string }
GetByIndexCalls gets all the calls that were made to GetByIndex. Check the length with:
len(mockedConfigMapCache.GetByIndexCalls())
func (*ConfigMapCacheMock) GetCalls ¶
func (mock *ConfigMapCacheMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedConfigMapCache.GetCalls())
type ConfigMapClientMock ¶
type ConfigMapClientMock struct { // CreateFunc mocks the Create method. CreateFunc func(in1 *v1a.ConfigMap) (*v1a.ConfigMap, 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.ConfigMap, error) // ListFunc mocks the List method. ListFunc func(namespace string, opts v1b.ListOptions) (*v1a.ConfigMapList, error) // PatchFunc mocks the Patch method. PatchFunc func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.ConfigMap, error) // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v1a.ConfigMap) (*v1a.ConfigMap, error) // WatchFunc mocks the Watch method. WatchFunc func(namespace string, opts v1b.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
ConfigMapClientMock is a mock implementation of ConfigMapClient.
func TestSomethingThatUsesConfigMapClient(t *testing.T) { // make and configure a mocked ConfigMapClient mockedConfigMapClient := &ConfigMapClientMock{ CreateFunc: func(in1 *v1a.ConfigMap) (*v1a.ConfigMap, 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.ConfigMap, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, opts v1b.ListOptions) (*v1a.ConfigMapList, error) { panic("mock out the List method") }, PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.ConfigMap, error) { panic("mock out the Patch method") }, UpdateFunc: func(in1 *v1a.ConfigMap) (*v1a.ConfigMap, error) { panic("mock out the Update method") }, WatchFunc: func(namespace string, opts v1b.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedConfigMapClient in code that requires ConfigMapClient // and then make assertions. }
func (*ConfigMapClientMock) CreateCalls ¶
func (mock *ConfigMapClientMock) CreateCalls() []struct { In1 *v1a.ConfigMap }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedConfigMapClient.CreateCalls())
func (*ConfigMapClientMock) Delete ¶
func (mock *ConfigMapClientMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
Delete calls DeleteFunc.
func (*ConfigMapClientMock) DeleteCalls ¶
func (mock *ConfigMapClientMock) DeleteCalls() []struct { Namespace string Name string Options *v1b.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedConfigMapClient.DeleteCalls())
func (*ConfigMapClientMock) Get ¶
func (mock *ConfigMapClientMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.ConfigMap, error)
Get calls GetFunc.
func (*ConfigMapClientMock) GetCalls ¶
func (mock *ConfigMapClientMock) GetCalls() []struct { Namespace string Name string Options v1b.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedConfigMapClient.GetCalls())
func (*ConfigMapClientMock) List ¶
func (mock *ConfigMapClientMock) List(namespace string, opts v1b.ListOptions) (*v1a.ConfigMapList, error)
List calls ListFunc.
func (*ConfigMapClientMock) ListCalls ¶
func (mock *ConfigMapClientMock) ListCalls() []struct { Namespace string Opts v1b.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedConfigMapClient.ListCalls())
func (*ConfigMapClientMock) Patch ¶
func (mock *ConfigMapClientMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.ConfigMap, error)
Patch calls PatchFunc.
func (*ConfigMapClientMock) PatchCalls ¶
func (mock *ConfigMapClientMock) 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(mockedConfigMapClient.PatchCalls())
func (*ConfigMapClientMock) UpdateCalls ¶
func (mock *ConfigMapClientMock) UpdateCalls() []struct { In1 *v1a.ConfigMap }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedConfigMapClient.UpdateCalls())
func (*ConfigMapClientMock) Watch ¶
func (mock *ConfigMapClientMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*ConfigMapClientMock) WatchCalls ¶
func (mock *ConfigMapClientMock) WatchCalls() []struct { Namespace string Opts v1b.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedConfigMapClient.WatchCalls())
type ConfigMapControllerMock ¶
type ConfigMapControllerMock 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.ConfigMapCache // CreateFunc mocks the Create method. CreateFunc func(in1 *v1a.ConfigMap) (*v1a.ConfigMap, 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.ConfigMap, 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.ConfigMapList, error) // OnChangeFunc mocks the OnChange method. OnChangeFunc func(ctx context.Context, name string, sync v1.ConfigMapHandler) // OnRemoveFunc mocks the OnRemove method. OnRemoveFunc func(ctx context.Context, name string, sync v1.ConfigMapHandler) // PatchFunc mocks the Patch method. PatchFunc func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.ConfigMap, error) // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v1a.ConfigMap) (*v1a.ConfigMap, 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 }
ConfigMapControllerMock is a mock implementation of ConfigMapController.
func TestSomethingThatUsesConfigMapController(t *testing.T) { // make and configure a mocked ConfigMapController mockedConfigMapController := &ConfigMapControllerMock{ 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.ConfigMapCache { panic("mock out the Cache method") }, CreateFunc: func(in1 *v1a.ConfigMap) (*v1a.ConfigMap, 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.ConfigMap, 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.ConfigMapList, error) { panic("mock out the List method") }, OnChangeFunc: func(ctx context.Context, name string, sync v1.ConfigMapHandler) { panic("mock out the OnChange method") }, OnRemoveFunc: func(ctx context.Context, name string, sync v1.ConfigMapHandler) { panic("mock out the OnRemove method") }, PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.ConfigMap, error) { panic("mock out the Patch method") }, UpdateFunc: func(in1 *v1a.ConfigMap) (*v1a.ConfigMap, error) { panic("mock out the Update 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 mockedConfigMapController in code that requires ConfigMapController // and then make assertions. }
func (*ConfigMapControllerMock) AddGenericHandler ¶
func (mock *ConfigMapControllerMock) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)
AddGenericHandler calls AddGenericHandlerFunc.
func (*ConfigMapControllerMock) AddGenericHandlerCalls ¶
func (mock *ConfigMapControllerMock) 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(mockedConfigMapController.AddGenericHandlerCalls())
func (*ConfigMapControllerMock) AddGenericRemoveHandler ¶
func (mock *ConfigMapControllerMock) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)
AddGenericRemoveHandler calls AddGenericRemoveHandlerFunc.
func (*ConfigMapControllerMock) AddGenericRemoveHandlerCalls ¶
func (mock *ConfigMapControllerMock) 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(mockedConfigMapController.AddGenericRemoveHandlerCalls())
func (*ConfigMapControllerMock) Cache ¶
func (mock *ConfigMapControllerMock) Cache() v1.ConfigMapCache
Cache calls CacheFunc.
func (*ConfigMapControllerMock) CacheCalls ¶
func (mock *ConfigMapControllerMock) CacheCalls() []struct { }
CacheCalls gets all the calls that were made to Cache. Check the length with:
len(mockedConfigMapController.CacheCalls())
func (*ConfigMapControllerMock) CreateCalls ¶
func (mock *ConfigMapControllerMock) CreateCalls() []struct { In1 *v1a.ConfigMap }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedConfigMapController.CreateCalls())
func (*ConfigMapControllerMock) Delete ¶
func (mock *ConfigMapControllerMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
Delete calls DeleteFunc.
func (*ConfigMapControllerMock) DeleteCalls ¶
func (mock *ConfigMapControllerMock) DeleteCalls() []struct { Namespace string Name string Options *v1b.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedConfigMapController.DeleteCalls())
func (*ConfigMapControllerMock) Enqueue ¶
func (mock *ConfigMapControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*ConfigMapControllerMock) EnqueueCalls ¶
func (mock *ConfigMapControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedConfigMapController.EnqueueCalls())
func (*ConfigMapControllerMock) Get ¶
func (mock *ConfigMapControllerMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.ConfigMap, error)
Get calls GetFunc.
func (*ConfigMapControllerMock) GetCalls ¶
func (mock *ConfigMapControllerMock) GetCalls() []struct { Namespace string Name string Options v1b.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedConfigMapController.GetCalls())
func (*ConfigMapControllerMock) GroupVersionKind ¶
func (mock *ConfigMapControllerMock) GroupVersionKind() schema.GroupVersionKind
GroupVersionKind calls GroupVersionKindFunc.
func (*ConfigMapControllerMock) GroupVersionKindCalls ¶
func (mock *ConfigMapControllerMock) GroupVersionKindCalls() []struct { }
GroupVersionKindCalls gets all the calls that were made to GroupVersionKind. Check the length with:
len(mockedConfigMapController.GroupVersionKindCalls())
func (*ConfigMapControllerMock) Informer ¶
func (mock *ConfigMapControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*ConfigMapControllerMock) InformerCalls ¶
func (mock *ConfigMapControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedConfigMapController.InformerCalls())
func (*ConfigMapControllerMock) List ¶
func (mock *ConfigMapControllerMock) List(namespace string, opts v1b.ListOptions) (*v1a.ConfigMapList, error)
List calls ListFunc.
func (*ConfigMapControllerMock) ListCalls ¶
func (mock *ConfigMapControllerMock) ListCalls() []struct { Namespace string Opts v1b.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedConfigMapController.ListCalls())
func (*ConfigMapControllerMock) OnChange ¶
func (mock *ConfigMapControllerMock) OnChange(ctx context.Context, name string, sync v1.ConfigMapHandler)
OnChange calls OnChangeFunc.
func (*ConfigMapControllerMock) OnChangeCalls ¶
func (mock *ConfigMapControllerMock) OnChangeCalls() []struct { Ctx context.Context Name string Sync v1.ConfigMapHandler }
OnChangeCalls gets all the calls that were made to OnChange. Check the length with:
len(mockedConfigMapController.OnChangeCalls())
func (*ConfigMapControllerMock) OnRemove ¶
func (mock *ConfigMapControllerMock) OnRemove(ctx context.Context, name string, sync v1.ConfigMapHandler)
OnRemove calls OnRemoveFunc.
func (*ConfigMapControllerMock) OnRemoveCalls ¶
func (mock *ConfigMapControllerMock) OnRemoveCalls() []struct { Ctx context.Context Name string Sync v1.ConfigMapHandler }
OnRemoveCalls gets all the calls that were made to OnRemove. Check the length with:
len(mockedConfigMapController.OnRemoveCalls())
func (*ConfigMapControllerMock) Patch ¶
func (mock *ConfigMapControllerMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.ConfigMap, error)
Patch calls PatchFunc.
func (*ConfigMapControllerMock) PatchCalls ¶
func (mock *ConfigMapControllerMock) 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(mockedConfigMapController.PatchCalls())
func (*ConfigMapControllerMock) UpdateCalls ¶
func (mock *ConfigMapControllerMock) UpdateCalls() []struct { In1 *v1a.ConfigMap }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedConfigMapController.UpdateCalls())
func (*ConfigMapControllerMock) Updater ¶
func (mock *ConfigMapControllerMock) Updater() generic.Updater
Updater calls UpdaterFunc.
func (*ConfigMapControllerMock) UpdaterCalls ¶
func (mock *ConfigMapControllerMock) UpdaterCalls() []struct { }
UpdaterCalls gets all the calls that were made to Updater. Check the length with:
len(mockedConfigMapController.UpdaterCalls())
func (*ConfigMapControllerMock) Watch ¶
func (mock *ConfigMapControllerMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*ConfigMapControllerMock) WatchCalls ¶
func (mock *ConfigMapControllerMock) WatchCalls() []struct { Namespace string Opts v1b.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedConfigMapController.WatchCalls())
type SecretCacheMock ¶
type SecretCacheMock struct { // AddIndexerFunc mocks the AddIndexer method. AddIndexerFunc func(indexName string, indexer v1.SecretIndexer) // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v1a.Secret, error) // GetByIndexFunc mocks the GetByIndex method. GetByIndexFunc func(indexName string, key string) ([]*v1a.Secret, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v1a.Secret, error) // contains filtered or unexported fields }
SecretCacheMock is a mock implementation of SecretCache.
func TestSomethingThatUsesSecretCache(t *testing.T) { // make and configure a mocked SecretCache mockedSecretCache := &SecretCacheMock{ AddIndexerFunc: func(indexName string, indexer v1.SecretIndexer) { panic("mock out the AddIndexer method") }, GetFunc: func(namespace string, name string) (*v1a.Secret, error) { panic("mock out the Get method") }, GetByIndexFunc: func(indexName string, key string) ([]*v1a.Secret, error) { panic("mock out the GetByIndex method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v1a.Secret, error) { panic("mock out the List method") }, } // use mockedSecretCache in code that requires SecretCache // and then make assertions. }
func (*SecretCacheMock) AddIndexer ¶
func (mock *SecretCacheMock) AddIndexer(indexName string, indexer v1.SecretIndexer)
AddIndexer calls AddIndexerFunc.
func (*SecretCacheMock) AddIndexerCalls ¶
func (mock *SecretCacheMock) AddIndexerCalls() []struct { IndexName string Indexer v1.SecretIndexer }
AddIndexerCalls gets all the calls that were made to AddIndexer. Check the length with:
len(mockedSecretCache.AddIndexerCalls())
func (*SecretCacheMock) GetByIndex ¶
GetByIndex calls GetByIndexFunc.
func (*SecretCacheMock) GetByIndexCalls ¶
func (mock *SecretCacheMock) GetByIndexCalls() []struct { IndexName string Key string }
GetByIndexCalls gets all the calls that were made to GetByIndex. Check the length with:
len(mockedSecretCache.GetByIndexCalls())
func (*SecretCacheMock) GetCalls ¶
func (mock *SecretCacheMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedSecretCache.GetCalls())
type SecretClientMock ¶
type SecretClientMock struct { // CreateFunc mocks the Create method. CreateFunc func(in1 *v1a.Secret) (*v1a.Secret, 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.Secret, error) // ListFunc mocks the List method. ListFunc func(namespace string, opts v1b.ListOptions) (*v1a.SecretList, error) // PatchFunc mocks the Patch method. PatchFunc func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Secret, error) // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v1a.Secret) (*v1a.Secret, error) // WatchFunc mocks the Watch method. WatchFunc func(namespace string, opts v1b.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
SecretClientMock is a mock implementation of SecretClient.
func TestSomethingThatUsesSecretClient(t *testing.T) { // make and configure a mocked SecretClient mockedSecretClient := &SecretClientMock{ CreateFunc: func(in1 *v1a.Secret) (*v1a.Secret, 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.Secret, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, opts v1b.ListOptions) (*v1a.SecretList, error) { panic("mock out the List method") }, PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Secret, error) { panic("mock out the Patch method") }, UpdateFunc: func(in1 *v1a.Secret) (*v1a.Secret, error) { panic("mock out the Update method") }, WatchFunc: func(namespace string, opts v1b.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedSecretClient in code that requires SecretClient // and then make assertions. }
func (*SecretClientMock) CreateCalls ¶
func (mock *SecretClientMock) CreateCalls() []struct { In1 *v1a.Secret }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedSecretClient.CreateCalls())
func (*SecretClientMock) Delete ¶
func (mock *SecretClientMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
Delete calls DeleteFunc.
func (*SecretClientMock) DeleteCalls ¶
func (mock *SecretClientMock) DeleteCalls() []struct { Namespace string Name string Options *v1b.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedSecretClient.DeleteCalls())
func (*SecretClientMock) Get ¶
func (mock *SecretClientMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.Secret, error)
Get calls GetFunc.
func (*SecretClientMock) GetCalls ¶
func (mock *SecretClientMock) GetCalls() []struct { Namespace string Name string Options v1b.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedSecretClient.GetCalls())
func (*SecretClientMock) List ¶
func (mock *SecretClientMock) List(namespace string, opts v1b.ListOptions) (*v1a.SecretList, error)
List calls ListFunc.
func (*SecretClientMock) ListCalls ¶
func (mock *SecretClientMock) ListCalls() []struct { Namespace string Opts v1b.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedSecretClient.ListCalls())
func (*SecretClientMock) Patch ¶
func (mock *SecretClientMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Secret, error)
Patch calls PatchFunc.
func (*SecretClientMock) PatchCalls ¶
func (mock *SecretClientMock) 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(mockedSecretClient.PatchCalls())
func (*SecretClientMock) UpdateCalls ¶
func (mock *SecretClientMock) UpdateCalls() []struct { In1 *v1a.Secret }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedSecretClient.UpdateCalls())
func (*SecretClientMock) Watch ¶
func (mock *SecretClientMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*SecretClientMock) WatchCalls ¶
func (mock *SecretClientMock) WatchCalls() []struct { Namespace string Opts v1b.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedSecretClient.WatchCalls())
type SecretControllerMock ¶
type SecretControllerMock 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.SecretCache // CreateFunc mocks the Create method. CreateFunc func(in1 *v1a.Secret) (*v1a.Secret, 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.Secret, 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.SecretList, error) // OnChangeFunc mocks the OnChange method. OnChangeFunc func(ctx context.Context, name string, sync v1.SecretHandler) // OnRemoveFunc mocks the OnRemove method. OnRemoveFunc func(ctx context.Context, name string, sync v1.SecretHandler) // PatchFunc mocks the Patch method. PatchFunc func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Secret, error) // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v1a.Secret) (*v1a.Secret, 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 }
SecretControllerMock is a mock implementation of SecretController.
func TestSomethingThatUsesSecretController(t *testing.T) { // make and configure a mocked SecretController mockedSecretController := &SecretControllerMock{ 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.SecretCache { panic("mock out the Cache method") }, CreateFunc: func(in1 *v1a.Secret) (*v1a.Secret, 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.Secret, 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.SecretList, error) { panic("mock out the List method") }, OnChangeFunc: func(ctx context.Context, name string, sync v1.SecretHandler) { panic("mock out the OnChange method") }, OnRemoveFunc: func(ctx context.Context, name string, sync v1.SecretHandler) { panic("mock out the OnRemove method") }, PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Secret, error) { panic("mock out the Patch method") }, UpdateFunc: func(in1 *v1a.Secret) (*v1a.Secret, error) { panic("mock out the Update 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 mockedSecretController in code that requires SecretController // and then make assertions. }
func (*SecretControllerMock) AddGenericHandler ¶
func (mock *SecretControllerMock) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)
AddGenericHandler calls AddGenericHandlerFunc.
func (*SecretControllerMock) AddGenericHandlerCalls ¶
func (mock *SecretControllerMock) 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(mockedSecretController.AddGenericHandlerCalls())
func (*SecretControllerMock) AddGenericRemoveHandler ¶
func (mock *SecretControllerMock) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)
AddGenericRemoveHandler calls AddGenericRemoveHandlerFunc.
func (*SecretControllerMock) AddGenericRemoveHandlerCalls ¶
func (mock *SecretControllerMock) 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(mockedSecretController.AddGenericRemoveHandlerCalls())
func (*SecretControllerMock) Cache ¶
func (mock *SecretControllerMock) Cache() v1.SecretCache
Cache calls CacheFunc.
func (*SecretControllerMock) CacheCalls ¶
func (mock *SecretControllerMock) CacheCalls() []struct { }
CacheCalls gets all the calls that were made to Cache. Check the length with:
len(mockedSecretController.CacheCalls())
func (*SecretControllerMock) CreateCalls ¶
func (mock *SecretControllerMock) CreateCalls() []struct { In1 *v1a.Secret }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedSecretController.CreateCalls())
func (*SecretControllerMock) Delete ¶
func (mock *SecretControllerMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
Delete calls DeleteFunc.
func (*SecretControllerMock) DeleteCalls ¶
func (mock *SecretControllerMock) DeleteCalls() []struct { Namespace string Name string Options *v1b.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedSecretController.DeleteCalls())
func (*SecretControllerMock) Enqueue ¶
func (mock *SecretControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*SecretControllerMock) EnqueueCalls ¶
func (mock *SecretControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedSecretController.EnqueueCalls())
func (*SecretControllerMock) Get ¶
func (mock *SecretControllerMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.Secret, error)
Get calls GetFunc.
func (*SecretControllerMock) GetCalls ¶
func (mock *SecretControllerMock) GetCalls() []struct { Namespace string Name string Options v1b.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedSecretController.GetCalls())
func (*SecretControllerMock) GroupVersionKind ¶
func (mock *SecretControllerMock) GroupVersionKind() schema.GroupVersionKind
GroupVersionKind calls GroupVersionKindFunc.
func (*SecretControllerMock) GroupVersionKindCalls ¶
func (mock *SecretControllerMock) GroupVersionKindCalls() []struct { }
GroupVersionKindCalls gets all the calls that were made to GroupVersionKind. Check the length with:
len(mockedSecretController.GroupVersionKindCalls())
func (*SecretControllerMock) Informer ¶
func (mock *SecretControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*SecretControllerMock) InformerCalls ¶
func (mock *SecretControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedSecretController.InformerCalls())
func (*SecretControllerMock) List ¶
func (mock *SecretControllerMock) List(namespace string, opts v1b.ListOptions) (*v1a.SecretList, error)
List calls ListFunc.
func (*SecretControllerMock) ListCalls ¶
func (mock *SecretControllerMock) ListCalls() []struct { Namespace string Opts v1b.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedSecretController.ListCalls())
func (*SecretControllerMock) OnChange ¶
func (mock *SecretControllerMock) OnChange(ctx context.Context, name string, sync v1.SecretHandler)
OnChange calls OnChangeFunc.
func (*SecretControllerMock) OnChangeCalls ¶
func (mock *SecretControllerMock) OnChangeCalls() []struct { Ctx context.Context Name string Sync v1.SecretHandler }
OnChangeCalls gets all the calls that were made to OnChange. Check the length with:
len(mockedSecretController.OnChangeCalls())
func (*SecretControllerMock) OnRemove ¶
func (mock *SecretControllerMock) OnRemove(ctx context.Context, name string, sync v1.SecretHandler)
OnRemove calls OnRemoveFunc.
func (*SecretControllerMock) OnRemoveCalls ¶
func (mock *SecretControllerMock) OnRemoveCalls() []struct { Ctx context.Context Name string Sync v1.SecretHandler }
OnRemoveCalls gets all the calls that were made to OnRemove. Check the length with:
len(mockedSecretController.OnRemoveCalls())
func (*SecretControllerMock) Patch ¶
func (mock *SecretControllerMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Secret, error)
Patch calls PatchFunc.
func (*SecretControllerMock) PatchCalls ¶
func (mock *SecretControllerMock) 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(mockedSecretController.PatchCalls())
func (*SecretControllerMock) UpdateCalls ¶
func (mock *SecretControllerMock) UpdateCalls() []struct { In1 *v1a.Secret }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedSecretController.UpdateCalls())
func (*SecretControllerMock) Updater ¶
func (mock *SecretControllerMock) Updater() generic.Updater
Updater calls UpdaterFunc.
func (*SecretControllerMock) UpdaterCalls ¶
func (mock *SecretControllerMock) UpdaterCalls() []struct { }
UpdaterCalls gets all the calls that were made to Updater. Check the length with:
len(mockedSecretController.UpdaterCalls())
func (*SecretControllerMock) Watch ¶
func (mock *SecretControllerMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*SecretControllerMock) WatchCalls ¶
func (mock *SecretControllerMock) WatchCalls() []struct { Namespace string Opts v1b.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedSecretController.WatchCalls())
type ServiceAccountCacheMock ¶
type ServiceAccountCacheMock struct { // AddIndexerFunc mocks the AddIndexer method. AddIndexerFunc func(indexName string, indexer v1.ServiceAccountIndexer) // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v1a.ServiceAccount, error) // GetByIndexFunc mocks the GetByIndex method. GetByIndexFunc func(indexName string, key string) ([]*v1a.ServiceAccount, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v1a.ServiceAccount, error) // contains filtered or unexported fields }
ServiceAccountCacheMock is a mock implementation of ServiceAccountCache.
func TestSomethingThatUsesServiceAccountCache(t *testing.T) { // make and configure a mocked ServiceAccountCache mockedServiceAccountCache := &ServiceAccountCacheMock{ AddIndexerFunc: func(indexName string, indexer v1.ServiceAccountIndexer) { panic("mock out the AddIndexer method") }, GetFunc: func(namespace string, name string) (*v1a.ServiceAccount, error) { panic("mock out the Get method") }, GetByIndexFunc: func(indexName string, key string) ([]*v1a.ServiceAccount, error) { panic("mock out the GetByIndex method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v1a.ServiceAccount, error) { panic("mock out the List method") }, } // use mockedServiceAccountCache in code that requires ServiceAccountCache // and then make assertions. }
func (*ServiceAccountCacheMock) AddIndexer ¶
func (mock *ServiceAccountCacheMock) AddIndexer(indexName string, indexer v1.ServiceAccountIndexer)
AddIndexer calls AddIndexerFunc.
func (*ServiceAccountCacheMock) AddIndexerCalls ¶
func (mock *ServiceAccountCacheMock) AddIndexerCalls() []struct { IndexName string Indexer v1.ServiceAccountIndexer }
AddIndexerCalls gets all the calls that were made to AddIndexer. Check the length with:
len(mockedServiceAccountCache.AddIndexerCalls())
func (*ServiceAccountCacheMock) Get ¶
func (mock *ServiceAccountCacheMock) Get(namespace string, name string) (*v1a.ServiceAccount, error)
Get calls GetFunc.
func (*ServiceAccountCacheMock) GetByIndex ¶
func (mock *ServiceAccountCacheMock) GetByIndex(indexName string, key string) ([]*v1a.ServiceAccount, error)
GetByIndex calls GetByIndexFunc.
func (*ServiceAccountCacheMock) GetByIndexCalls ¶
func (mock *ServiceAccountCacheMock) GetByIndexCalls() []struct { IndexName string Key string }
GetByIndexCalls gets all the calls that were made to GetByIndex. Check the length with:
len(mockedServiceAccountCache.GetByIndexCalls())
func (*ServiceAccountCacheMock) GetCalls ¶
func (mock *ServiceAccountCacheMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedServiceAccountCache.GetCalls())
func (*ServiceAccountCacheMock) List ¶
func (mock *ServiceAccountCacheMock) List(namespace string, selector labels.Selector) ([]*v1a.ServiceAccount, error)
List calls ListFunc.
type ServiceAccountClientMock ¶
type ServiceAccountClientMock struct { // CreateFunc mocks the Create method. CreateFunc func(in1 *v1a.ServiceAccount) (*v1a.ServiceAccount, 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.ServiceAccount, error) // ListFunc mocks the List method. ListFunc func(namespace string, opts v1b.ListOptions) (*v1a.ServiceAccountList, error) // PatchFunc mocks the Patch method. PatchFunc func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.ServiceAccount, error) // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v1a.ServiceAccount) (*v1a.ServiceAccount, error) // WatchFunc mocks the Watch method. WatchFunc func(namespace string, opts v1b.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
ServiceAccountClientMock is a mock implementation of ServiceAccountClient.
func TestSomethingThatUsesServiceAccountClient(t *testing.T) { // make and configure a mocked ServiceAccountClient mockedServiceAccountClient := &ServiceAccountClientMock{ CreateFunc: func(in1 *v1a.ServiceAccount) (*v1a.ServiceAccount, 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.ServiceAccount, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, opts v1b.ListOptions) (*v1a.ServiceAccountList, error) { panic("mock out the List method") }, PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.ServiceAccount, error) { panic("mock out the Patch method") }, UpdateFunc: func(in1 *v1a.ServiceAccount) (*v1a.ServiceAccount, error) { panic("mock out the Update method") }, WatchFunc: func(namespace string, opts v1b.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedServiceAccountClient in code that requires ServiceAccountClient // and then make assertions. }
func (*ServiceAccountClientMock) Create ¶
func (mock *ServiceAccountClientMock) Create(in1 *v1a.ServiceAccount) (*v1a.ServiceAccount, error)
Create calls CreateFunc.
func (*ServiceAccountClientMock) CreateCalls ¶
func (mock *ServiceAccountClientMock) CreateCalls() []struct { In1 *v1a.ServiceAccount }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedServiceAccountClient.CreateCalls())
func (*ServiceAccountClientMock) Delete ¶
func (mock *ServiceAccountClientMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
Delete calls DeleteFunc.
func (*ServiceAccountClientMock) DeleteCalls ¶
func (mock *ServiceAccountClientMock) DeleteCalls() []struct { Namespace string Name string Options *v1b.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedServiceAccountClient.DeleteCalls())
func (*ServiceAccountClientMock) Get ¶
func (mock *ServiceAccountClientMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.ServiceAccount, error)
Get calls GetFunc.
func (*ServiceAccountClientMock) GetCalls ¶
func (mock *ServiceAccountClientMock) GetCalls() []struct { Namespace string Name string Options v1b.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedServiceAccountClient.GetCalls())
func (*ServiceAccountClientMock) List ¶
func (mock *ServiceAccountClientMock) List(namespace string, opts v1b.ListOptions) (*v1a.ServiceAccountList, error)
List calls ListFunc.
func (*ServiceAccountClientMock) ListCalls ¶
func (mock *ServiceAccountClientMock) ListCalls() []struct { Namespace string Opts v1b.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedServiceAccountClient.ListCalls())
func (*ServiceAccountClientMock) Patch ¶
func (mock *ServiceAccountClientMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.ServiceAccount, error)
Patch calls PatchFunc.
func (*ServiceAccountClientMock) PatchCalls ¶
func (mock *ServiceAccountClientMock) 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(mockedServiceAccountClient.PatchCalls())
func (*ServiceAccountClientMock) Update ¶
func (mock *ServiceAccountClientMock) Update(in1 *v1a.ServiceAccount) (*v1a.ServiceAccount, error)
Update calls UpdateFunc.
func (*ServiceAccountClientMock) UpdateCalls ¶
func (mock *ServiceAccountClientMock) UpdateCalls() []struct { In1 *v1a.ServiceAccount }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedServiceAccountClient.UpdateCalls())
func (*ServiceAccountClientMock) Watch ¶
func (mock *ServiceAccountClientMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*ServiceAccountClientMock) WatchCalls ¶
func (mock *ServiceAccountClientMock) WatchCalls() []struct { Namespace string Opts v1b.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedServiceAccountClient.WatchCalls())
type ServiceAccountControllerMock ¶
type ServiceAccountControllerMock 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.ServiceAccountCache // CreateFunc mocks the Create method. CreateFunc func(in1 *v1a.ServiceAccount) (*v1a.ServiceAccount, 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.ServiceAccount, 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.ServiceAccountList, error) // OnChangeFunc mocks the OnChange method. OnChangeFunc func(ctx context.Context, name string, sync v1.ServiceAccountHandler) // OnRemoveFunc mocks the OnRemove method. OnRemoveFunc func(ctx context.Context, name string, sync v1.ServiceAccountHandler) // PatchFunc mocks the Patch method. PatchFunc func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.ServiceAccount, error) // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v1a.ServiceAccount) (*v1a.ServiceAccount, 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 }
ServiceAccountControllerMock is a mock implementation of ServiceAccountController.
func TestSomethingThatUsesServiceAccountController(t *testing.T) { // make and configure a mocked ServiceAccountController mockedServiceAccountController := &ServiceAccountControllerMock{ 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.ServiceAccountCache { panic("mock out the Cache method") }, CreateFunc: func(in1 *v1a.ServiceAccount) (*v1a.ServiceAccount, 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.ServiceAccount, 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.ServiceAccountList, error) { panic("mock out the List method") }, OnChangeFunc: func(ctx context.Context, name string, sync v1.ServiceAccountHandler) { panic("mock out the OnChange method") }, OnRemoveFunc: func(ctx context.Context, name string, sync v1.ServiceAccountHandler) { panic("mock out the OnRemove method") }, PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.ServiceAccount, error) { panic("mock out the Patch method") }, UpdateFunc: func(in1 *v1a.ServiceAccount) (*v1a.ServiceAccount, error) { panic("mock out the Update 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 mockedServiceAccountController in code that requires ServiceAccountController // and then make assertions. }
func (*ServiceAccountControllerMock) AddGenericHandler ¶
func (mock *ServiceAccountControllerMock) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)
AddGenericHandler calls AddGenericHandlerFunc.
func (*ServiceAccountControllerMock) AddGenericHandlerCalls ¶
func (mock *ServiceAccountControllerMock) 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(mockedServiceAccountController.AddGenericHandlerCalls())
func (*ServiceAccountControllerMock) AddGenericRemoveHandler ¶
func (mock *ServiceAccountControllerMock) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)
AddGenericRemoveHandler calls AddGenericRemoveHandlerFunc.
func (*ServiceAccountControllerMock) AddGenericRemoveHandlerCalls ¶
func (mock *ServiceAccountControllerMock) 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(mockedServiceAccountController.AddGenericRemoveHandlerCalls())
func (*ServiceAccountControllerMock) Cache ¶
func (mock *ServiceAccountControllerMock) Cache() v1.ServiceAccountCache
Cache calls CacheFunc.
func (*ServiceAccountControllerMock) CacheCalls ¶
func (mock *ServiceAccountControllerMock) CacheCalls() []struct { }
CacheCalls gets all the calls that were made to Cache. Check the length with:
len(mockedServiceAccountController.CacheCalls())
func (*ServiceAccountControllerMock) Create ¶
func (mock *ServiceAccountControllerMock) Create(in1 *v1a.ServiceAccount) (*v1a.ServiceAccount, error)
Create calls CreateFunc.
func (*ServiceAccountControllerMock) CreateCalls ¶
func (mock *ServiceAccountControllerMock) CreateCalls() []struct { In1 *v1a.ServiceAccount }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedServiceAccountController.CreateCalls())
func (*ServiceAccountControllerMock) Delete ¶
func (mock *ServiceAccountControllerMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
Delete calls DeleteFunc.
func (*ServiceAccountControllerMock) DeleteCalls ¶
func (mock *ServiceAccountControllerMock) DeleteCalls() []struct { Namespace string Name string Options *v1b.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedServiceAccountController.DeleteCalls())
func (*ServiceAccountControllerMock) Enqueue ¶
func (mock *ServiceAccountControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*ServiceAccountControllerMock) EnqueueCalls ¶
func (mock *ServiceAccountControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedServiceAccountController.EnqueueCalls())
func (*ServiceAccountControllerMock) Get ¶
func (mock *ServiceAccountControllerMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.ServiceAccount, error)
Get calls GetFunc.
func (*ServiceAccountControllerMock) GetCalls ¶
func (mock *ServiceAccountControllerMock) GetCalls() []struct { Namespace string Name string Options v1b.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedServiceAccountController.GetCalls())
func (*ServiceAccountControllerMock) GroupVersionKind ¶
func (mock *ServiceAccountControllerMock) GroupVersionKind() schema.GroupVersionKind
GroupVersionKind calls GroupVersionKindFunc.
func (*ServiceAccountControllerMock) GroupVersionKindCalls ¶
func (mock *ServiceAccountControllerMock) GroupVersionKindCalls() []struct { }
GroupVersionKindCalls gets all the calls that were made to GroupVersionKind. Check the length with:
len(mockedServiceAccountController.GroupVersionKindCalls())
func (*ServiceAccountControllerMock) Informer ¶
func (mock *ServiceAccountControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*ServiceAccountControllerMock) InformerCalls ¶
func (mock *ServiceAccountControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedServiceAccountController.InformerCalls())
func (*ServiceAccountControllerMock) List ¶
func (mock *ServiceAccountControllerMock) List(namespace string, opts v1b.ListOptions) (*v1a.ServiceAccountList, error)
List calls ListFunc.
func (*ServiceAccountControllerMock) ListCalls ¶
func (mock *ServiceAccountControllerMock) ListCalls() []struct { Namespace string Opts v1b.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedServiceAccountController.ListCalls())
func (*ServiceAccountControllerMock) OnChange ¶
func (mock *ServiceAccountControllerMock) OnChange(ctx context.Context, name string, sync v1.ServiceAccountHandler)
OnChange calls OnChangeFunc.
func (*ServiceAccountControllerMock) OnChangeCalls ¶
func (mock *ServiceAccountControllerMock) OnChangeCalls() []struct { Ctx context.Context Name string Sync v1.ServiceAccountHandler }
OnChangeCalls gets all the calls that were made to OnChange. Check the length with:
len(mockedServiceAccountController.OnChangeCalls())
func (*ServiceAccountControllerMock) OnRemove ¶
func (mock *ServiceAccountControllerMock) OnRemove(ctx context.Context, name string, sync v1.ServiceAccountHandler)
OnRemove calls OnRemoveFunc.
func (*ServiceAccountControllerMock) OnRemoveCalls ¶
func (mock *ServiceAccountControllerMock) OnRemoveCalls() []struct { Ctx context.Context Name string Sync v1.ServiceAccountHandler }
OnRemoveCalls gets all the calls that were made to OnRemove. Check the length with:
len(mockedServiceAccountController.OnRemoveCalls())
func (*ServiceAccountControllerMock) Patch ¶
func (mock *ServiceAccountControllerMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.ServiceAccount, error)
Patch calls PatchFunc.
func (*ServiceAccountControllerMock) PatchCalls ¶
func (mock *ServiceAccountControllerMock) 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(mockedServiceAccountController.PatchCalls())
func (*ServiceAccountControllerMock) Update ¶
func (mock *ServiceAccountControllerMock) Update(in1 *v1a.ServiceAccount) (*v1a.ServiceAccount, error)
Update calls UpdateFunc.
func (*ServiceAccountControllerMock) UpdateCalls ¶
func (mock *ServiceAccountControllerMock) UpdateCalls() []struct { In1 *v1a.ServiceAccount }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedServiceAccountController.UpdateCalls())
func (*ServiceAccountControllerMock) Updater ¶
func (mock *ServiceAccountControllerMock) Updater() generic.Updater
Updater calls UpdaterFunc.
func (*ServiceAccountControllerMock) UpdaterCalls ¶
func (mock *ServiceAccountControllerMock) UpdaterCalls() []struct { }
UpdaterCalls gets all the calls that were made to Updater. Check the length with:
len(mockedServiceAccountController.UpdaterCalls())
func (*ServiceAccountControllerMock) Watch ¶
func (mock *ServiceAccountControllerMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*ServiceAccountControllerMock) WatchCalls ¶
func (mock *ServiceAccountControllerMock) WatchCalls() []struct { Namespace string Opts v1b.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedServiceAccountController.WatchCalls())