Documentation
¶
Index ¶
- type ClusterDomainCacheMock
- func (mock *ClusterDomainCacheMock) AddIndexer(indexName string, indexer v1.ClusterDomainIndexer)
- func (mock *ClusterDomainCacheMock) AddIndexerCalls() []struct{ ... }
- func (mock *ClusterDomainCacheMock) Get(namespace string, name string) (*v1a.ClusterDomain, error)
- func (mock *ClusterDomainCacheMock) GetByIndex(indexName string, key string) ([]*v1a.ClusterDomain, error)
- func (mock *ClusterDomainCacheMock) GetByIndexCalls() []struct{ ... }
- func (mock *ClusterDomainCacheMock) GetCalls() []struct{ ... }
- func (mock *ClusterDomainCacheMock) List(namespace string, selector labels.Selector) ([]*v1a.ClusterDomain, error)
- func (mock *ClusterDomainCacheMock) ListCalls() []struct{ ... }
- type ClusterDomainClientMock
- func (mock *ClusterDomainClientMock) Create(in1 *v1a.ClusterDomain) (*v1a.ClusterDomain, error)
- func (mock *ClusterDomainClientMock) CreateCalls() []struct{ ... }
- func (mock *ClusterDomainClientMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
- func (mock *ClusterDomainClientMock) DeleteCalls() []struct{ ... }
- func (mock *ClusterDomainClientMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.ClusterDomain, error)
- func (mock *ClusterDomainClientMock) GetCalls() []struct{ ... }
- func (mock *ClusterDomainClientMock) List(namespace string, opts v1b.ListOptions) (*v1a.ClusterDomainList, error)
- func (mock *ClusterDomainClientMock) ListCalls() []struct{ ... }
- func (mock *ClusterDomainClientMock) Patch(namespace string, name string, pt types.PatchType, data []byte, ...) (*v1a.ClusterDomain, error)
- func (mock *ClusterDomainClientMock) PatchCalls() []struct{ ... }
- func (mock *ClusterDomainClientMock) Update(in1 *v1a.ClusterDomain) (*v1a.ClusterDomain, error)
- func (mock *ClusterDomainClientMock) UpdateCalls() []struct{ ... }
- func (mock *ClusterDomainClientMock) UpdateStatus(in1 *v1a.ClusterDomain) (*v1a.ClusterDomain, error)
- func (mock *ClusterDomainClientMock) UpdateStatusCalls() []struct{ ... }
- func (mock *ClusterDomainClientMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
- func (mock *ClusterDomainClientMock) WatchCalls() []struct{ ... }
- type ClusterDomainControllerMock
- func (mock *ClusterDomainControllerMock) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)
- func (mock *ClusterDomainControllerMock) AddGenericHandlerCalls() []struct{ ... }
- func (mock *ClusterDomainControllerMock) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)
- func (mock *ClusterDomainControllerMock) AddGenericRemoveHandlerCalls() []struct{ ... }
- func (mock *ClusterDomainControllerMock) Cache() v1.ClusterDomainCache
- func (mock *ClusterDomainControllerMock) CacheCalls() []struct{}
- func (mock *ClusterDomainControllerMock) Create(in1 *v1a.ClusterDomain) (*v1a.ClusterDomain, error)
- func (mock *ClusterDomainControllerMock) CreateCalls() []struct{ ... }
- func (mock *ClusterDomainControllerMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
- func (mock *ClusterDomainControllerMock) DeleteCalls() []struct{ ... }
- func (mock *ClusterDomainControllerMock) Enqueue(namespace string, name string)
- func (mock *ClusterDomainControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *ClusterDomainControllerMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.ClusterDomain, error)
- func (mock *ClusterDomainControllerMock) GetCalls() []struct{ ... }
- func (mock *ClusterDomainControllerMock) GroupVersionKind() schema.GroupVersionKind
- func (mock *ClusterDomainControllerMock) GroupVersionKindCalls() []struct{}
- func (mock *ClusterDomainControllerMock) Informer() cache.SharedIndexInformer
- func (mock *ClusterDomainControllerMock) InformerCalls() []struct{}
- func (mock *ClusterDomainControllerMock) List(namespace string, opts v1b.ListOptions) (*v1a.ClusterDomainList, error)
- func (mock *ClusterDomainControllerMock) ListCalls() []struct{ ... }
- func (mock *ClusterDomainControllerMock) OnChange(ctx context.Context, name string, sync v1.ClusterDomainHandler)
- func (mock *ClusterDomainControllerMock) OnChangeCalls() []struct{ ... }
- func (mock *ClusterDomainControllerMock) OnRemove(ctx context.Context, name string, sync v1.ClusterDomainHandler)
- func (mock *ClusterDomainControllerMock) OnRemoveCalls() []struct{ ... }
- func (mock *ClusterDomainControllerMock) Patch(namespace string, name string, pt types.PatchType, data []byte, ...) (*v1a.ClusterDomain, error)
- func (mock *ClusterDomainControllerMock) PatchCalls() []struct{ ... }
- func (mock *ClusterDomainControllerMock) Update(in1 *v1a.ClusterDomain) (*v1a.ClusterDomain, error)
- func (mock *ClusterDomainControllerMock) UpdateCalls() []struct{ ... }
- func (mock *ClusterDomainControllerMock) UpdateStatus(in1 *v1a.ClusterDomain) (*v1a.ClusterDomain, error)
- func (mock *ClusterDomainControllerMock) UpdateStatusCalls() []struct{ ... }
- func (mock *ClusterDomainControllerMock) Updater() generic.Updater
- func (mock *ClusterDomainControllerMock) UpdaterCalls() []struct{}
- func (mock *ClusterDomainControllerMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
- func (mock *ClusterDomainControllerMock) WatchCalls() []struct{ ... }
- type FeatureCacheMock
- func (mock *FeatureCacheMock) AddIndexer(indexName string, indexer v1.FeatureIndexer)
- func (mock *FeatureCacheMock) AddIndexerCalls() []struct{ ... }
- func (mock *FeatureCacheMock) Get(namespace string, name string) (*v1a.Feature, error)
- func (mock *FeatureCacheMock) GetByIndex(indexName string, key string) ([]*v1a.Feature, error)
- func (mock *FeatureCacheMock) GetByIndexCalls() []struct{ ... }
- func (mock *FeatureCacheMock) GetCalls() []struct{ ... }
- func (mock *FeatureCacheMock) List(namespace string, selector labels.Selector) ([]*v1a.Feature, error)
- func (mock *FeatureCacheMock) ListCalls() []struct{ ... }
- type FeatureClientMock
- func (mock *FeatureClientMock) Create(in1 *v1a.Feature) (*v1a.Feature, error)
- func (mock *FeatureClientMock) CreateCalls() []struct{ ... }
- func (mock *FeatureClientMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
- func (mock *FeatureClientMock) DeleteCalls() []struct{ ... }
- func (mock *FeatureClientMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.Feature, error)
- func (mock *FeatureClientMock) GetCalls() []struct{ ... }
- func (mock *FeatureClientMock) List(namespace string, opts v1b.ListOptions) (*v1a.FeatureList, error)
- func (mock *FeatureClientMock) ListCalls() []struct{ ... }
- func (mock *FeatureClientMock) Patch(namespace string, name string, pt types.PatchType, data []byte, ...) (*v1a.Feature, error)
- func (mock *FeatureClientMock) PatchCalls() []struct{ ... }
- func (mock *FeatureClientMock) Update(in1 *v1a.Feature) (*v1a.Feature, error)
- func (mock *FeatureClientMock) UpdateCalls() []struct{ ... }
- func (mock *FeatureClientMock) UpdateStatus(in1 *v1a.Feature) (*v1a.Feature, error)
- func (mock *FeatureClientMock) UpdateStatusCalls() []struct{ ... }
- func (mock *FeatureClientMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
- func (mock *FeatureClientMock) WatchCalls() []struct{ ... }
- type FeatureControllerMock
- func (mock *FeatureControllerMock) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)
- func (mock *FeatureControllerMock) AddGenericHandlerCalls() []struct{ ... }
- func (mock *FeatureControllerMock) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)
- func (mock *FeatureControllerMock) AddGenericRemoveHandlerCalls() []struct{ ... }
- func (mock *FeatureControllerMock) Cache() v1.FeatureCache
- func (mock *FeatureControllerMock) CacheCalls() []struct{}
- func (mock *FeatureControllerMock) Create(in1 *v1a.Feature) (*v1a.Feature, error)
- func (mock *FeatureControllerMock) CreateCalls() []struct{ ... }
- func (mock *FeatureControllerMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
- func (mock *FeatureControllerMock) DeleteCalls() []struct{ ... }
- func (mock *FeatureControllerMock) Enqueue(namespace string, name string)
- func (mock *FeatureControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *FeatureControllerMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.Feature, error)
- func (mock *FeatureControllerMock) GetCalls() []struct{ ... }
- func (mock *FeatureControllerMock) GroupVersionKind() schema.GroupVersionKind
- func (mock *FeatureControllerMock) GroupVersionKindCalls() []struct{}
- func (mock *FeatureControllerMock) Informer() cache.SharedIndexInformer
- func (mock *FeatureControllerMock) InformerCalls() []struct{}
- func (mock *FeatureControllerMock) List(namespace string, opts v1b.ListOptions) (*v1a.FeatureList, error)
- func (mock *FeatureControllerMock) ListCalls() []struct{ ... }
- func (mock *FeatureControllerMock) OnChange(ctx context.Context, name string, sync v1.FeatureHandler)
- func (mock *FeatureControllerMock) OnChangeCalls() []struct{ ... }
- func (mock *FeatureControllerMock) OnRemove(ctx context.Context, name string, sync v1.FeatureHandler)
- func (mock *FeatureControllerMock) OnRemoveCalls() []struct{ ... }
- func (mock *FeatureControllerMock) Patch(namespace string, name string, pt types.PatchType, data []byte, ...) (*v1a.Feature, error)
- func (mock *FeatureControllerMock) PatchCalls() []struct{ ... }
- func (mock *FeatureControllerMock) Update(in1 *v1a.Feature) (*v1a.Feature, error)
- func (mock *FeatureControllerMock) UpdateCalls() []struct{ ... }
- func (mock *FeatureControllerMock) UpdateStatus(in1 *v1a.Feature) (*v1a.Feature, error)
- func (mock *FeatureControllerMock) UpdateStatusCalls() []struct{ ... }
- func (mock *FeatureControllerMock) Updater() generic.Updater
- func (mock *FeatureControllerMock) UpdaterCalls() []struct{}
- func (mock *FeatureControllerMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
- func (mock *FeatureControllerMock) WatchCalls() []struct{ ... }
- type PublicDomainCacheMock
- func (mock *PublicDomainCacheMock) AddIndexer(indexName string, indexer v1.PublicDomainIndexer)
- func (mock *PublicDomainCacheMock) AddIndexerCalls() []struct{ ... }
- func (mock *PublicDomainCacheMock) Get(namespace string, name string) (*v1a.PublicDomain, error)
- func (mock *PublicDomainCacheMock) GetByIndex(indexName string, key string) ([]*v1a.PublicDomain, error)
- func (mock *PublicDomainCacheMock) GetByIndexCalls() []struct{ ... }
- func (mock *PublicDomainCacheMock) GetCalls() []struct{ ... }
- func (mock *PublicDomainCacheMock) List(namespace string, selector labels.Selector) ([]*v1a.PublicDomain, error)
- func (mock *PublicDomainCacheMock) ListCalls() []struct{ ... }
- type PublicDomainClientMock
- func (mock *PublicDomainClientMock) Create(in1 *v1a.PublicDomain) (*v1a.PublicDomain, error)
- func (mock *PublicDomainClientMock) CreateCalls() []struct{ ... }
- func (mock *PublicDomainClientMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
- func (mock *PublicDomainClientMock) DeleteCalls() []struct{ ... }
- func (mock *PublicDomainClientMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.PublicDomain, error)
- func (mock *PublicDomainClientMock) GetCalls() []struct{ ... }
- func (mock *PublicDomainClientMock) List(namespace string, opts v1b.ListOptions) (*v1a.PublicDomainList, error)
- func (mock *PublicDomainClientMock) ListCalls() []struct{ ... }
- func (mock *PublicDomainClientMock) Patch(namespace string, name string, pt types.PatchType, data []byte, ...) (*v1a.PublicDomain, error)
- func (mock *PublicDomainClientMock) PatchCalls() []struct{ ... }
- func (mock *PublicDomainClientMock) Update(in1 *v1a.PublicDomain) (*v1a.PublicDomain, error)
- func (mock *PublicDomainClientMock) UpdateCalls() []struct{ ... }
- func (mock *PublicDomainClientMock) UpdateStatus(in1 *v1a.PublicDomain) (*v1a.PublicDomain, error)
- func (mock *PublicDomainClientMock) UpdateStatusCalls() []struct{ ... }
- func (mock *PublicDomainClientMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
- func (mock *PublicDomainClientMock) WatchCalls() []struct{ ... }
- type PublicDomainControllerMock
- func (mock *PublicDomainControllerMock) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)
- func (mock *PublicDomainControllerMock) AddGenericHandlerCalls() []struct{ ... }
- func (mock *PublicDomainControllerMock) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)
- func (mock *PublicDomainControllerMock) AddGenericRemoveHandlerCalls() []struct{ ... }
- func (mock *PublicDomainControllerMock) Cache() v1.PublicDomainCache
- func (mock *PublicDomainControllerMock) CacheCalls() []struct{}
- func (mock *PublicDomainControllerMock) Create(in1 *v1a.PublicDomain) (*v1a.PublicDomain, error)
- func (mock *PublicDomainControllerMock) CreateCalls() []struct{ ... }
- func (mock *PublicDomainControllerMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
- func (mock *PublicDomainControllerMock) DeleteCalls() []struct{ ... }
- func (mock *PublicDomainControllerMock) Enqueue(namespace string, name string)
- func (mock *PublicDomainControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *PublicDomainControllerMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.PublicDomain, error)
- func (mock *PublicDomainControllerMock) GetCalls() []struct{ ... }
- func (mock *PublicDomainControllerMock) GroupVersionKind() schema.GroupVersionKind
- func (mock *PublicDomainControllerMock) GroupVersionKindCalls() []struct{}
- func (mock *PublicDomainControllerMock) Informer() cache.SharedIndexInformer
- func (mock *PublicDomainControllerMock) InformerCalls() []struct{}
- func (mock *PublicDomainControllerMock) List(namespace string, opts v1b.ListOptions) (*v1a.PublicDomainList, error)
- func (mock *PublicDomainControllerMock) ListCalls() []struct{ ... }
- func (mock *PublicDomainControllerMock) OnChange(ctx context.Context, name string, sync v1.PublicDomainHandler)
- func (mock *PublicDomainControllerMock) OnChangeCalls() []struct{ ... }
- func (mock *PublicDomainControllerMock) OnRemove(ctx context.Context, name string, sync v1.PublicDomainHandler)
- func (mock *PublicDomainControllerMock) OnRemoveCalls() []struct{ ... }
- func (mock *PublicDomainControllerMock) Patch(namespace string, name string, pt types.PatchType, data []byte, ...) (*v1a.PublicDomain, error)
- func (mock *PublicDomainControllerMock) PatchCalls() []struct{ ... }
- func (mock *PublicDomainControllerMock) Update(in1 *v1a.PublicDomain) (*v1a.PublicDomain, error)
- func (mock *PublicDomainControllerMock) UpdateCalls() []struct{ ... }
- func (mock *PublicDomainControllerMock) UpdateStatus(in1 *v1a.PublicDomain) (*v1a.PublicDomain, error)
- func (mock *PublicDomainControllerMock) UpdateStatusCalls() []struct{ ... }
- func (mock *PublicDomainControllerMock) Updater() generic.Updater
- func (mock *PublicDomainControllerMock) UpdaterCalls() []struct{}
- func (mock *PublicDomainControllerMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
- func (mock *PublicDomainControllerMock) WatchCalls() []struct{ ... }
- type RioInfoCacheMock
- func (mock *RioInfoCacheMock) AddIndexer(indexName string, indexer v1.RioInfoIndexer)
- func (mock *RioInfoCacheMock) AddIndexerCalls() []struct{ ... }
- func (mock *RioInfoCacheMock) Get(name string) (*v1a.RioInfo, error)
- func (mock *RioInfoCacheMock) GetByIndex(indexName string, key string) ([]*v1a.RioInfo, error)
- func (mock *RioInfoCacheMock) GetByIndexCalls() []struct{ ... }
- func (mock *RioInfoCacheMock) GetCalls() []struct{ ... }
- func (mock *RioInfoCacheMock) List(selector labels.Selector) ([]*v1a.RioInfo, error)
- func (mock *RioInfoCacheMock) ListCalls() []struct{ ... }
- type RioInfoClientMock
- func (mock *RioInfoClientMock) Create(in1 *v1a.RioInfo) (*v1a.RioInfo, error)
- func (mock *RioInfoClientMock) CreateCalls() []struct{ ... }
- func (mock *RioInfoClientMock) Delete(name string, options *v1b.DeleteOptions) error
- func (mock *RioInfoClientMock) DeleteCalls() []struct{ ... }
- func (mock *RioInfoClientMock) Get(name string, options v1b.GetOptions) (*v1a.RioInfo, error)
- func (mock *RioInfoClientMock) GetCalls() []struct{ ... }
- func (mock *RioInfoClientMock) List(opts v1b.ListOptions) (*v1a.RioInfoList, error)
- func (mock *RioInfoClientMock) ListCalls() []struct{ ... }
- func (mock *RioInfoClientMock) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.RioInfo, error)
- func (mock *RioInfoClientMock) PatchCalls() []struct{ ... }
- func (mock *RioInfoClientMock) Update(in1 *v1a.RioInfo) (*v1a.RioInfo, error)
- func (mock *RioInfoClientMock) UpdateCalls() []struct{ ... }
- func (mock *RioInfoClientMock) UpdateStatus(in1 *v1a.RioInfo) (*v1a.RioInfo, error)
- func (mock *RioInfoClientMock) UpdateStatusCalls() []struct{ ... }
- func (mock *RioInfoClientMock) Watch(opts v1b.ListOptions) (watch.Interface, error)
- func (mock *RioInfoClientMock) WatchCalls() []struct{ ... }
- type RioInfoControllerMock
- func (mock *RioInfoControllerMock) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)
- func (mock *RioInfoControllerMock) AddGenericHandlerCalls() []struct{ ... }
- func (mock *RioInfoControllerMock) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)
- func (mock *RioInfoControllerMock) AddGenericRemoveHandlerCalls() []struct{ ... }
- func (mock *RioInfoControllerMock) Cache() v1.RioInfoCache
- func (mock *RioInfoControllerMock) CacheCalls() []struct{}
- func (mock *RioInfoControllerMock) Create(in1 *v1a.RioInfo) (*v1a.RioInfo, error)
- func (mock *RioInfoControllerMock) CreateCalls() []struct{ ... }
- func (mock *RioInfoControllerMock) Delete(name string, options *v1b.DeleteOptions) error
- func (mock *RioInfoControllerMock) DeleteCalls() []struct{ ... }
- func (mock *RioInfoControllerMock) Enqueue(name string)
- func (mock *RioInfoControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *RioInfoControllerMock) Get(name string, options v1b.GetOptions) (*v1a.RioInfo, error)
- func (mock *RioInfoControllerMock) GetCalls() []struct{ ... }
- func (mock *RioInfoControllerMock) GroupVersionKind() schema.GroupVersionKind
- func (mock *RioInfoControllerMock) GroupVersionKindCalls() []struct{}
- func (mock *RioInfoControllerMock) Informer() cache.SharedIndexInformer
- func (mock *RioInfoControllerMock) InformerCalls() []struct{}
- func (mock *RioInfoControllerMock) List(opts v1b.ListOptions) (*v1a.RioInfoList, error)
- func (mock *RioInfoControllerMock) ListCalls() []struct{ ... }
- func (mock *RioInfoControllerMock) OnChange(ctx context.Context, name string, sync v1.RioInfoHandler)
- func (mock *RioInfoControllerMock) OnChangeCalls() []struct{ ... }
- func (mock *RioInfoControllerMock) OnRemove(ctx context.Context, name string, sync v1.RioInfoHandler)
- func (mock *RioInfoControllerMock) OnRemoveCalls() []struct{ ... }
- func (mock *RioInfoControllerMock) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.RioInfo, error)
- func (mock *RioInfoControllerMock) PatchCalls() []struct{ ... }
- func (mock *RioInfoControllerMock) Update(in1 *v1a.RioInfo) (*v1a.RioInfo, error)
- func (mock *RioInfoControllerMock) UpdateCalls() []struct{ ... }
- func (mock *RioInfoControllerMock) UpdateStatus(in1 *v1a.RioInfo) (*v1a.RioInfo, error)
- func (mock *RioInfoControllerMock) UpdateStatusCalls() []struct{ ... }
- func (mock *RioInfoControllerMock) Updater() generic.Updater
- func (mock *RioInfoControllerMock) UpdaterCalls() []struct{}
- func (mock *RioInfoControllerMock) Watch(opts v1b.ListOptions) (watch.Interface, error)
- func (mock *RioInfoControllerMock) WatchCalls() []struct{ ... }
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterDomainCacheMock ¶
type ClusterDomainCacheMock struct { // AddIndexerFunc mocks the AddIndexer method. AddIndexerFunc func(indexName string, indexer v1.ClusterDomainIndexer) // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v1a.ClusterDomain, error) // GetByIndexFunc mocks the GetByIndex method. GetByIndexFunc func(indexName string, key string) ([]*v1a.ClusterDomain, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v1a.ClusterDomain, error) // contains filtered or unexported fields }
ClusterDomainCacheMock is a mock implementation of ClusterDomainCache.
func TestSomethingThatUsesClusterDomainCache(t *testing.T) { // make and configure a mocked ClusterDomainCache mockedClusterDomainCache := &ClusterDomainCacheMock{ AddIndexerFunc: func(indexName string, indexer v1.ClusterDomainIndexer) { panic("mock out the AddIndexer method") }, GetFunc: func(namespace string, name string) (*v1a.ClusterDomain, error) { panic("mock out the Get method") }, GetByIndexFunc: func(indexName string, key string) ([]*v1a.ClusterDomain, error) { panic("mock out the GetByIndex method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v1a.ClusterDomain, error) { panic("mock out the List method") }, } // use mockedClusterDomainCache in code that requires ClusterDomainCache // and then make assertions. }
func (*ClusterDomainCacheMock) AddIndexer ¶
func (mock *ClusterDomainCacheMock) AddIndexer(indexName string, indexer v1.ClusterDomainIndexer)
AddIndexer calls AddIndexerFunc.
func (*ClusterDomainCacheMock) AddIndexerCalls ¶
func (mock *ClusterDomainCacheMock) AddIndexerCalls() []struct { IndexName string Indexer v1.ClusterDomainIndexer }
AddIndexerCalls gets all the calls that were made to AddIndexer. Check the length with:
len(mockedClusterDomainCache.AddIndexerCalls())
func (*ClusterDomainCacheMock) Get ¶
func (mock *ClusterDomainCacheMock) Get(namespace string, name string) (*v1a.ClusterDomain, error)
Get calls GetFunc.
func (*ClusterDomainCacheMock) GetByIndex ¶
func (mock *ClusterDomainCacheMock) GetByIndex(indexName string, key string) ([]*v1a.ClusterDomain, error)
GetByIndex calls GetByIndexFunc.
func (*ClusterDomainCacheMock) GetByIndexCalls ¶
func (mock *ClusterDomainCacheMock) GetByIndexCalls() []struct { IndexName string Key string }
GetByIndexCalls gets all the calls that were made to GetByIndex. Check the length with:
len(mockedClusterDomainCache.GetByIndexCalls())
func (*ClusterDomainCacheMock) GetCalls ¶
func (mock *ClusterDomainCacheMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedClusterDomainCache.GetCalls())
func (*ClusterDomainCacheMock) List ¶
func (mock *ClusterDomainCacheMock) List(namespace string, selector labels.Selector) ([]*v1a.ClusterDomain, error)
List calls ListFunc.
type ClusterDomainClientMock ¶
type ClusterDomainClientMock struct { // CreateFunc mocks the Create method. CreateFunc func(in1 *v1a.ClusterDomain) (*v1a.ClusterDomain, 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.ClusterDomain, error) // ListFunc mocks the List method. ListFunc func(namespace string, opts v1b.ListOptions) (*v1a.ClusterDomainList, error) // PatchFunc mocks the Patch method. PatchFunc func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.ClusterDomain, error) // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v1a.ClusterDomain) (*v1a.ClusterDomain, error) // UpdateStatusFunc mocks the UpdateStatus method. UpdateStatusFunc func(in1 *v1a.ClusterDomain) (*v1a.ClusterDomain, error) // WatchFunc mocks the Watch method. WatchFunc func(namespace string, opts v1b.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
ClusterDomainClientMock is a mock implementation of ClusterDomainClient.
func TestSomethingThatUsesClusterDomainClient(t *testing.T) { // make and configure a mocked ClusterDomainClient mockedClusterDomainClient := &ClusterDomainClientMock{ CreateFunc: func(in1 *v1a.ClusterDomain) (*v1a.ClusterDomain, 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.ClusterDomain, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, opts v1b.ListOptions) (*v1a.ClusterDomainList, error) { panic("mock out the List method") }, PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.ClusterDomain, error) { panic("mock out the Patch method") }, UpdateFunc: func(in1 *v1a.ClusterDomain) (*v1a.ClusterDomain, error) { panic("mock out the Update method") }, UpdateStatusFunc: func(in1 *v1a.ClusterDomain) (*v1a.ClusterDomain, error) { panic("mock out the UpdateStatus method") }, WatchFunc: func(namespace string, opts v1b.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedClusterDomainClient in code that requires ClusterDomainClient // and then make assertions. }
func (*ClusterDomainClientMock) Create ¶
func (mock *ClusterDomainClientMock) Create(in1 *v1a.ClusterDomain) (*v1a.ClusterDomain, error)
Create calls CreateFunc.
func (*ClusterDomainClientMock) CreateCalls ¶
func (mock *ClusterDomainClientMock) CreateCalls() []struct { In1 *v1a.ClusterDomain }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedClusterDomainClient.CreateCalls())
func (*ClusterDomainClientMock) Delete ¶
func (mock *ClusterDomainClientMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
Delete calls DeleteFunc.
func (*ClusterDomainClientMock) DeleteCalls ¶
func (mock *ClusterDomainClientMock) DeleteCalls() []struct { Namespace string Name string Options *v1b.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedClusterDomainClient.DeleteCalls())
func (*ClusterDomainClientMock) Get ¶
func (mock *ClusterDomainClientMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.ClusterDomain, error)
Get calls GetFunc.
func (*ClusterDomainClientMock) GetCalls ¶
func (mock *ClusterDomainClientMock) GetCalls() []struct { Namespace string Name string Options v1b.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedClusterDomainClient.GetCalls())
func (*ClusterDomainClientMock) List ¶
func (mock *ClusterDomainClientMock) List(namespace string, opts v1b.ListOptions) (*v1a.ClusterDomainList, error)
List calls ListFunc.
func (*ClusterDomainClientMock) ListCalls ¶
func (mock *ClusterDomainClientMock) ListCalls() []struct { Namespace string Opts v1b.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedClusterDomainClient.ListCalls())
func (*ClusterDomainClientMock) Patch ¶
func (mock *ClusterDomainClientMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.ClusterDomain, error)
Patch calls PatchFunc.
func (*ClusterDomainClientMock) PatchCalls ¶
func (mock *ClusterDomainClientMock) 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(mockedClusterDomainClient.PatchCalls())
func (*ClusterDomainClientMock) Update ¶
func (mock *ClusterDomainClientMock) Update(in1 *v1a.ClusterDomain) (*v1a.ClusterDomain, error)
Update calls UpdateFunc.
func (*ClusterDomainClientMock) UpdateCalls ¶
func (mock *ClusterDomainClientMock) UpdateCalls() []struct { In1 *v1a.ClusterDomain }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedClusterDomainClient.UpdateCalls())
func (*ClusterDomainClientMock) UpdateStatus ¶
func (mock *ClusterDomainClientMock) UpdateStatus(in1 *v1a.ClusterDomain) (*v1a.ClusterDomain, error)
UpdateStatus calls UpdateStatusFunc.
func (*ClusterDomainClientMock) UpdateStatusCalls ¶
func (mock *ClusterDomainClientMock) UpdateStatusCalls() []struct { In1 *v1a.ClusterDomain }
UpdateStatusCalls gets all the calls that were made to UpdateStatus. Check the length with:
len(mockedClusterDomainClient.UpdateStatusCalls())
func (*ClusterDomainClientMock) Watch ¶
func (mock *ClusterDomainClientMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*ClusterDomainClientMock) WatchCalls ¶
func (mock *ClusterDomainClientMock) WatchCalls() []struct { Namespace string Opts v1b.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedClusterDomainClient.WatchCalls())
type ClusterDomainControllerMock ¶
type ClusterDomainControllerMock 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.ClusterDomainCache // CreateFunc mocks the Create method. CreateFunc func(in1 *v1a.ClusterDomain) (*v1a.ClusterDomain, 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.ClusterDomain, 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.ClusterDomainList, error) // OnChangeFunc mocks the OnChange method. OnChangeFunc func(ctx context.Context, name string, sync v1.ClusterDomainHandler) // OnRemoveFunc mocks the OnRemove method. OnRemoveFunc func(ctx context.Context, name string, sync v1.ClusterDomainHandler) // PatchFunc mocks the Patch method. PatchFunc func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.ClusterDomain, error) // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v1a.ClusterDomain) (*v1a.ClusterDomain, error) // UpdateStatusFunc mocks the UpdateStatus method. UpdateStatusFunc func(in1 *v1a.ClusterDomain) (*v1a.ClusterDomain, 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 }
ClusterDomainControllerMock is a mock implementation of ClusterDomainController.
func TestSomethingThatUsesClusterDomainController(t *testing.T) { // make and configure a mocked ClusterDomainController mockedClusterDomainController := &ClusterDomainControllerMock{ 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.ClusterDomainCache { panic("mock out the Cache method") }, CreateFunc: func(in1 *v1a.ClusterDomain) (*v1a.ClusterDomain, 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.ClusterDomain, 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.ClusterDomainList, error) { panic("mock out the List method") }, OnChangeFunc: func(ctx context.Context, name string, sync v1.ClusterDomainHandler) { panic("mock out the OnChange method") }, OnRemoveFunc: func(ctx context.Context, name string, sync v1.ClusterDomainHandler) { panic("mock out the OnRemove method") }, PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.ClusterDomain, error) { panic("mock out the Patch method") }, UpdateFunc: func(in1 *v1a.ClusterDomain) (*v1a.ClusterDomain, error) { panic("mock out the Update method") }, UpdateStatusFunc: func(in1 *v1a.ClusterDomain) (*v1a.ClusterDomain, 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 mockedClusterDomainController in code that requires ClusterDomainController // and then make assertions. }
func (*ClusterDomainControllerMock) AddGenericHandler ¶
func (mock *ClusterDomainControllerMock) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)
AddGenericHandler calls AddGenericHandlerFunc.
func (*ClusterDomainControllerMock) AddGenericHandlerCalls ¶
func (mock *ClusterDomainControllerMock) 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(mockedClusterDomainController.AddGenericHandlerCalls())
func (*ClusterDomainControllerMock) AddGenericRemoveHandler ¶
func (mock *ClusterDomainControllerMock) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)
AddGenericRemoveHandler calls AddGenericRemoveHandlerFunc.
func (*ClusterDomainControllerMock) AddGenericRemoveHandlerCalls ¶
func (mock *ClusterDomainControllerMock) 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(mockedClusterDomainController.AddGenericRemoveHandlerCalls())
func (*ClusterDomainControllerMock) Cache ¶
func (mock *ClusterDomainControllerMock) Cache() v1.ClusterDomainCache
Cache calls CacheFunc.
func (*ClusterDomainControllerMock) CacheCalls ¶
func (mock *ClusterDomainControllerMock) CacheCalls() []struct { }
CacheCalls gets all the calls that were made to Cache. Check the length with:
len(mockedClusterDomainController.CacheCalls())
func (*ClusterDomainControllerMock) Create ¶
func (mock *ClusterDomainControllerMock) Create(in1 *v1a.ClusterDomain) (*v1a.ClusterDomain, error)
Create calls CreateFunc.
func (*ClusterDomainControllerMock) CreateCalls ¶
func (mock *ClusterDomainControllerMock) CreateCalls() []struct { In1 *v1a.ClusterDomain }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedClusterDomainController.CreateCalls())
func (*ClusterDomainControllerMock) Delete ¶
func (mock *ClusterDomainControllerMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
Delete calls DeleteFunc.
func (*ClusterDomainControllerMock) DeleteCalls ¶
func (mock *ClusterDomainControllerMock) DeleteCalls() []struct { Namespace string Name string Options *v1b.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedClusterDomainController.DeleteCalls())
func (*ClusterDomainControllerMock) Enqueue ¶
func (mock *ClusterDomainControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*ClusterDomainControllerMock) EnqueueCalls ¶
func (mock *ClusterDomainControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedClusterDomainController.EnqueueCalls())
func (*ClusterDomainControllerMock) Get ¶
func (mock *ClusterDomainControllerMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.ClusterDomain, error)
Get calls GetFunc.
func (*ClusterDomainControllerMock) GetCalls ¶
func (mock *ClusterDomainControllerMock) GetCalls() []struct { Namespace string Name string Options v1b.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedClusterDomainController.GetCalls())
func (*ClusterDomainControllerMock) GroupVersionKind ¶
func (mock *ClusterDomainControllerMock) GroupVersionKind() schema.GroupVersionKind
GroupVersionKind calls GroupVersionKindFunc.
func (*ClusterDomainControllerMock) GroupVersionKindCalls ¶
func (mock *ClusterDomainControllerMock) GroupVersionKindCalls() []struct { }
GroupVersionKindCalls gets all the calls that were made to GroupVersionKind. Check the length with:
len(mockedClusterDomainController.GroupVersionKindCalls())
func (*ClusterDomainControllerMock) Informer ¶
func (mock *ClusterDomainControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*ClusterDomainControllerMock) InformerCalls ¶
func (mock *ClusterDomainControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedClusterDomainController.InformerCalls())
func (*ClusterDomainControllerMock) List ¶
func (mock *ClusterDomainControllerMock) List(namespace string, opts v1b.ListOptions) (*v1a.ClusterDomainList, error)
List calls ListFunc.
func (*ClusterDomainControllerMock) ListCalls ¶
func (mock *ClusterDomainControllerMock) ListCalls() []struct { Namespace string Opts v1b.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedClusterDomainController.ListCalls())
func (*ClusterDomainControllerMock) OnChange ¶
func (mock *ClusterDomainControllerMock) OnChange(ctx context.Context, name string, sync v1.ClusterDomainHandler)
OnChange calls OnChangeFunc.
func (*ClusterDomainControllerMock) OnChangeCalls ¶
func (mock *ClusterDomainControllerMock) OnChangeCalls() []struct { Ctx context.Context Name string Sync v1.ClusterDomainHandler }
OnChangeCalls gets all the calls that were made to OnChange. Check the length with:
len(mockedClusterDomainController.OnChangeCalls())
func (*ClusterDomainControllerMock) OnRemove ¶
func (mock *ClusterDomainControllerMock) OnRemove(ctx context.Context, name string, sync v1.ClusterDomainHandler)
OnRemove calls OnRemoveFunc.
func (*ClusterDomainControllerMock) OnRemoveCalls ¶
func (mock *ClusterDomainControllerMock) OnRemoveCalls() []struct { Ctx context.Context Name string Sync v1.ClusterDomainHandler }
OnRemoveCalls gets all the calls that were made to OnRemove. Check the length with:
len(mockedClusterDomainController.OnRemoveCalls())
func (*ClusterDomainControllerMock) Patch ¶
func (mock *ClusterDomainControllerMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.ClusterDomain, error)
Patch calls PatchFunc.
func (*ClusterDomainControllerMock) PatchCalls ¶
func (mock *ClusterDomainControllerMock) 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(mockedClusterDomainController.PatchCalls())
func (*ClusterDomainControllerMock) Update ¶
func (mock *ClusterDomainControllerMock) Update(in1 *v1a.ClusterDomain) (*v1a.ClusterDomain, error)
Update calls UpdateFunc.
func (*ClusterDomainControllerMock) UpdateCalls ¶
func (mock *ClusterDomainControllerMock) UpdateCalls() []struct { In1 *v1a.ClusterDomain }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedClusterDomainController.UpdateCalls())
func (*ClusterDomainControllerMock) UpdateStatus ¶
func (mock *ClusterDomainControllerMock) UpdateStatus(in1 *v1a.ClusterDomain) (*v1a.ClusterDomain, error)
UpdateStatus calls UpdateStatusFunc.
func (*ClusterDomainControllerMock) UpdateStatusCalls ¶
func (mock *ClusterDomainControllerMock) UpdateStatusCalls() []struct { In1 *v1a.ClusterDomain }
UpdateStatusCalls gets all the calls that were made to UpdateStatus. Check the length with:
len(mockedClusterDomainController.UpdateStatusCalls())
func (*ClusterDomainControllerMock) Updater ¶
func (mock *ClusterDomainControllerMock) Updater() generic.Updater
Updater calls UpdaterFunc.
func (*ClusterDomainControllerMock) UpdaterCalls ¶
func (mock *ClusterDomainControllerMock) UpdaterCalls() []struct { }
UpdaterCalls gets all the calls that were made to Updater. Check the length with:
len(mockedClusterDomainController.UpdaterCalls())
func (*ClusterDomainControllerMock) Watch ¶
func (mock *ClusterDomainControllerMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*ClusterDomainControllerMock) WatchCalls ¶
func (mock *ClusterDomainControllerMock) WatchCalls() []struct { Namespace string Opts v1b.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedClusterDomainController.WatchCalls())
type FeatureCacheMock ¶
type FeatureCacheMock struct { // AddIndexerFunc mocks the AddIndexer method. AddIndexerFunc func(indexName string, indexer v1.FeatureIndexer) // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v1a.Feature, error) // GetByIndexFunc mocks the GetByIndex method. GetByIndexFunc func(indexName string, key string) ([]*v1a.Feature, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v1a.Feature, error) // contains filtered or unexported fields }
FeatureCacheMock is a mock implementation of FeatureCache.
func TestSomethingThatUsesFeatureCache(t *testing.T) { // make and configure a mocked FeatureCache mockedFeatureCache := &FeatureCacheMock{ AddIndexerFunc: func(indexName string, indexer v1.FeatureIndexer) { panic("mock out the AddIndexer method") }, GetFunc: func(namespace string, name string) (*v1a.Feature, error) { panic("mock out the Get method") }, GetByIndexFunc: func(indexName string, key string) ([]*v1a.Feature, error) { panic("mock out the GetByIndex method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v1a.Feature, error) { panic("mock out the List method") }, } // use mockedFeatureCache in code that requires FeatureCache // and then make assertions. }
func (*FeatureCacheMock) AddIndexer ¶
func (mock *FeatureCacheMock) AddIndexer(indexName string, indexer v1.FeatureIndexer)
AddIndexer calls AddIndexerFunc.
func (*FeatureCacheMock) AddIndexerCalls ¶
func (mock *FeatureCacheMock) AddIndexerCalls() []struct { IndexName string Indexer v1.FeatureIndexer }
AddIndexerCalls gets all the calls that were made to AddIndexer. Check the length with:
len(mockedFeatureCache.AddIndexerCalls())
func (*FeatureCacheMock) GetByIndex ¶
GetByIndex calls GetByIndexFunc.
func (*FeatureCacheMock) GetByIndexCalls ¶
func (mock *FeatureCacheMock) GetByIndexCalls() []struct { IndexName string Key string }
GetByIndexCalls gets all the calls that were made to GetByIndex. Check the length with:
len(mockedFeatureCache.GetByIndexCalls())
func (*FeatureCacheMock) GetCalls ¶
func (mock *FeatureCacheMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedFeatureCache.GetCalls())
type FeatureClientMock ¶
type FeatureClientMock struct { // CreateFunc mocks the Create method. CreateFunc func(in1 *v1a.Feature) (*v1a.Feature, 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.Feature, error) // ListFunc mocks the List method. ListFunc func(namespace string, opts v1b.ListOptions) (*v1a.FeatureList, error) // PatchFunc mocks the Patch method. PatchFunc func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Feature, error) // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v1a.Feature) (*v1a.Feature, error) // UpdateStatusFunc mocks the UpdateStatus method. UpdateStatusFunc func(in1 *v1a.Feature) (*v1a.Feature, error) // WatchFunc mocks the Watch method. WatchFunc func(namespace string, opts v1b.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
FeatureClientMock is a mock implementation of FeatureClient.
func TestSomethingThatUsesFeatureClient(t *testing.T) { // make and configure a mocked FeatureClient mockedFeatureClient := &FeatureClientMock{ CreateFunc: func(in1 *v1a.Feature) (*v1a.Feature, 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.Feature, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, opts v1b.ListOptions) (*v1a.FeatureList, error) { panic("mock out the List method") }, PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Feature, error) { panic("mock out the Patch method") }, UpdateFunc: func(in1 *v1a.Feature) (*v1a.Feature, error) { panic("mock out the Update method") }, UpdateStatusFunc: func(in1 *v1a.Feature) (*v1a.Feature, error) { panic("mock out the UpdateStatus method") }, WatchFunc: func(namespace string, opts v1b.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedFeatureClient in code that requires FeatureClient // and then make assertions. }
func (*FeatureClientMock) CreateCalls ¶
func (mock *FeatureClientMock) CreateCalls() []struct { In1 *v1a.Feature }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedFeatureClient.CreateCalls())
func (*FeatureClientMock) Delete ¶
func (mock *FeatureClientMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
Delete calls DeleteFunc.
func (*FeatureClientMock) DeleteCalls ¶
func (mock *FeatureClientMock) DeleteCalls() []struct { Namespace string Name string Options *v1b.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedFeatureClient.DeleteCalls())
func (*FeatureClientMock) Get ¶
func (mock *FeatureClientMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.Feature, error)
Get calls GetFunc.
func (*FeatureClientMock) GetCalls ¶
func (mock *FeatureClientMock) GetCalls() []struct { Namespace string Name string Options v1b.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedFeatureClient.GetCalls())
func (*FeatureClientMock) List ¶
func (mock *FeatureClientMock) List(namespace string, opts v1b.ListOptions) (*v1a.FeatureList, error)
List calls ListFunc.
func (*FeatureClientMock) ListCalls ¶
func (mock *FeatureClientMock) ListCalls() []struct { Namespace string Opts v1b.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedFeatureClient.ListCalls())
func (*FeatureClientMock) Patch ¶
func (mock *FeatureClientMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Feature, error)
Patch calls PatchFunc.
func (*FeatureClientMock) PatchCalls ¶
func (mock *FeatureClientMock) 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(mockedFeatureClient.PatchCalls())
func (*FeatureClientMock) UpdateCalls ¶
func (mock *FeatureClientMock) UpdateCalls() []struct { In1 *v1a.Feature }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedFeatureClient.UpdateCalls())
func (*FeatureClientMock) UpdateStatus ¶
UpdateStatus calls UpdateStatusFunc.
func (*FeatureClientMock) UpdateStatusCalls ¶
func (mock *FeatureClientMock) UpdateStatusCalls() []struct { In1 *v1a.Feature }
UpdateStatusCalls gets all the calls that were made to UpdateStatus. Check the length with:
len(mockedFeatureClient.UpdateStatusCalls())
func (*FeatureClientMock) Watch ¶
func (mock *FeatureClientMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*FeatureClientMock) WatchCalls ¶
func (mock *FeatureClientMock) WatchCalls() []struct { Namespace string Opts v1b.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedFeatureClient.WatchCalls())
type FeatureControllerMock ¶
type FeatureControllerMock 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.FeatureCache // CreateFunc mocks the Create method. CreateFunc func(in1 *v1a.Feature) (*v1a.Feature, 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.Feature, 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.FeatureList, error) // OnChangeFunc mocks the OnChange method. OnChangeFunc func(ctx context.Context, name string, sync v1.FeatureHandler) // OnRemoveFunc mocks the OnRemove method. OnRemoveFunc func(ctx context.Context, name string, sync v1.FeatureHandler) // PatchFunc mocks the Patch method. PatchFunc func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Feature, error) // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v1a.Feature) (*v1a.Feature, error) // UpdateStatusFunc mocks the UpdateStatus method. UpdateStatusFunc func(in1 *v1a.Feature) (*v1a.Feature, 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 }
FeatureControllerMock is a mock implementation of FeatureController.
func TestSomethingThatUsesFeatureController(t *testing.T) { // make and configure a mocked FeatureController mockedFeatureController := &FeatureControllerMock{ 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.FeatureCache { panic("mock out the Cache method") }, CreateFunc: func(in1 *v1a.Feature) (*v1a.Feature, 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.Feature, 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.FeatureList, error) { panic("mock out the List method") }, OnChangeFunc: func(ctx context.Context, name string, sync v1.FeatureHandler) { panic("mock out the OnChange method") }, OnRemoveFunc: func(ctx context.Context, name string, sync v1.FeatureHandler) { panic("mock out the OnRemove method") }, PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Feature, error) { panic("mock out the Patch method") }, UpdateFunc: func(in1 *v1a.Feature) (*v1a.Feature, error) { panic("mock out the Update method") }, UpdateStatusFunc: func(in1 *v1a.Feature) (*v1a.Feature, 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 mockedFeatureController in code that requires FeatureController // and then make assertions. }
func (*FeatureControllerMock) AddGenericHandler ¶
func (mock *FeatureControllerMock) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)
AddGenericHandler calls AddGenericHandlerFunc.
func (*FeatureControllerMock) AddGenericHandlerCalls ¶
func (mock *FeatureControllerMock) 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(mockedFeatureController.AddGenericHandlerCalls())
func (*FeatureControllerMock) AddGenericRemoveHandler ¶
func (mock *FeatureControllerMock) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)
AddGenericRemoveHandler calls AddGenericRemoveHandlerFunc.
func (*FeatureControllerMock) AddGenericRemoveHandlerCalls ¶
func (mock *FeatureControllerMock) 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(mockedFeatureController.AddGenericRemoveHandlerCalls())
func (*FeatureControllerMock) Cache ¶
func (mock *FeatureControllerMock) Cache() v1.FeatureCache
Cache calls CacheFunc.
func (*FeatureControllerMock) CacheCalls ¶
func (mock *FeatureControllerMock) CacheCalls() []struct { }
CacheCalls gets all the calls that were made to Cache. Check the length with:
len(mockedFeatureController.CacheCalls())
func (*FeatureControllerMock) CreateCalls ¶
func (mock *FeatureControllerMock) CreateCalls() []struct { In1 *v1a.Feature }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedFeatureController.CreateCalls())
func (*FeatureControllerMock) Delete ¶
func (mock *FeatureControllerMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
Delete calls DeleteFunc.
func (*FeatureControllerMock) DeleteCalls ¶
func (mock *FeatureControllerMock) DeleteCalls() []struct { Namespace string Name string Options *v1b.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedFeatureController.DeleteCalls())
func (*FeatureControllerMock) Enqueue ¶
func (mock *FeatureControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*FeatureControllerMock) EnqueueCalls ¶
func (mock *FeatureControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedFeatureController.EnqueueCalls())
func (*FeatureControllerMock) Get ¶
func (mock *FeatureControllerMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.Feature, error)
Get calls GetFunc.
func (*FeatureControllerMock) GetCalls ¶
func (mock *FeatureControllerMock) GetCalls() []struct { Namespace string Name string Options v1b.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedFeatureController.GetCalls())
func (*FeatureControllerMock) GroupVersionKind ¶
func (mock *FeatureControllerMock) GroupVersionKind() schema.GroupVersionKind
GroupVersionKind calls GroupVersionKindFunc.
func (*FeatureControllerMock) GroupVersionKindCalls ¶
func (mock *FeatureControllerMock) GroupVersionKindCalls() []struct { }
GroupVersionKindCalls gets all the calls that were made to GroupVersionKind. Check the length with:
len(mockedFeatureController.GroupVersionKindCalls())
func (*FeatureControllerMock) Informer ¶
func (mock *FeatureControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*FeatureControllerMock) InformerCalls ¶
func (mock *FeatureControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedFeatureController.InformerCalls())
func (*FeatureControllerMock) List ¶
func (mock *FeatureControllerMock) List(namespace string, opts v1b.ListOptions) (*v1a.FeatureList, error)
List calls ListFunc.
func (*FeatureControllerMock) ListCalls ¶
func (mock *FeatureControllerMock) ListCalls() []struct { Namespace string Opts v1b.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedFeatureController.ListCalls())
func (*FeatureControllerMock) OnChange ¶
func (mock *FeatureControllerMock) OnChange(ctx context.Context, name string, sync v1.FeatureHandler)
OnChange calls OnChangeFunc.
func (*FeatureControllerMock) OnChangeCalls ¶
func (mock *FeatureControllerMock) OnChangeCalls() []struct { Ctx context.Context Name string Sync v1.FeatureHandler }
OnChangeCalls gets all the calls that were made to OnChange. Check the length with:
len(mockedFeatureController.OnChangeCalls())
func (*FeatureControllerMock) OnRemove ¶
func (mock *FeatureControllerMock) OnRemove(ctx context.Context, name string, sync v1.FeatureHandler)
OnRemove calls OnRemoveFunc.
func (*FeatureControllerMock) OnRemoveCalls ¶
func (mock *FeatureControllerMock) OnRemoveCalls() []struct { Ctx context.Context Name string Sync v1.FeatureHandler }
OnRemoveCalls gets all the calls that were made to OnRemove. Check the length with:
len(mockedFeatureController.OnRemoveCalls())
func (*FeatureControllerMock) Patch ¶
func (mock *FeatureControllerMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Feature, error)
Patch calls PatchFunc.
func (*FeatureControllerMock) PatchCalls ¶
func (mock *FeatureControllerMock) 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(mockedFeatureController.PatchCalls())
func (*FeatureControllerMock) UpdateCalls ¶
func (mock *FeatureControllerMock) UpdateCalls() []struct { In1 *v1a.Feature }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedFeatureController.UpdateCalls())
func (*FeatureControllerMock) UpdateStatus ¶
UpdateStatus calls UpdateStatusFunc.
func (*FeatureControllerMock) UpdateStatusCalls ¶
func (mock *FeatureControllerMock) UpdateStatusCalls() []struct { In1 *v1a.Feature }
UpdateStatusCalls gets all the calls that were made to UpdateStatus. Check the length with:
len(mockedFeatureController.UpdateStatusCalls())
func (*FeatureControllerMock) Updater ¶
func (mock *FeatureControllerMock) Updater() generic.Updater
Updater calls UpdaterFunc.
func (*FeatureControllerMock) UpdaterCalls ¶
func (mock *FeatureControllerMock) UpdaterCalls() []struct { }
UpdaterCalls gets all the calls that were made to Updater. Check the length with:
len(mockedFeatureController.UpdaterCalls())
func (*FeatureControllerMock) Watch ¶
func (mock *FeatureControllerMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*FeatureControllerMock) WatchCalls ¶
func (mock *FeatureControllerMock) WatchCalls() []struct { Namespace string Opts v1b.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedFeatureController.WatchCalls())
type PublicDomainCacheMock ¶
type PublicDomainCacheMock struct { // AddIndexerFunc mocks the AddIndexer method. AddIndexerFunc func(indexName string, indexer v1.PublicDomainIndexer) // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v1a.PublicDomain, error) // GetByIndexFunc mocks the GetByIndex method. GetByIndexFunc func(indexName string, key string) ([]*v1a.PublicDomain, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v1a.PublicDomain, error) // contains filtered or unexported fields }
PublicDomainCacheMock is a mock implementation of PublicDomainCache.
func TestSomethingThatUsesPublicDomainCache(t *testing.T) { // make and configure a mocked PublicDomainCache mockedPublicDomainCache := &PublicDomainCacheMock{ AddIndexerFunc: func(indexName string, indexer v1.PublicDomainIndexer) { panic("mock out the AddIndexer method") }, GetFunc: func(namespace string, name string) (*v1a.PublicDomain, error) { panic("mock out the Get method") }, GetByIndexFunc: func(indexName string, key string) ([]*v1a.PublicDomain, error) { panic("mock out the GetByIndex method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v1a.PublicDomain, error) { panic("mock out the List method") }, } // use mockedPublicDomainCache in code that requires PublicDomainCache // and then make assertions. }
func (*PublicDomainCacheMock) AddIndexer ¶
func (mock *PublicDomainCacheMock) AddIndexer(indexName string, indexer v1.PublicDomainIndexer)
AddIndexer calls AddIndexerFunc.
func (*PublicDomainCacheMock) AddIndexerCalls ¶
func (mock *PublicDomainCacheMock) AddIndexerCalls() []struct { IndexName string Indexer v1.PublicDomainIndexer }
AddIndexerCalls gets all the calls that were made to AddIndexer. Check the length with:
len(mockedPublicDomainCache.AddIndexerCalls())
func (*PublicDomainCacheMock) Get ¶
func (mock *PublicDomainCacheMock) Get(namespace string, name string) (*v1a.PublicDomain, error)
Get calls GetFunc.
func (*PublicDomainCacheMock) GetByIndex ¶
func (mock *PublicDomainCacheMock) GetByIndex(indexName string, key string) ([]*v1a.PublicDomain, error)
GetByIndex calls GetByIndexFunc.
func (*PublicDomainCacheMock) GetByIndexCalls ¶
func (mock *PublicDomainCacheMock) GetByIndexCalls() []struct { IndexName string Key string }
GetByIndexCalls gets all the calls that were made to GetByIndex. Check the length with:
len(mockedPublicDomainCache.GetByIndexCalls())
func (*PublicDomainCacheMock) GetCalls ¶
func (mock *PublicDomainCacheMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedPublicDomainCache.GetCalls())
func (*PublicDomainCacheMock) List ¶
func (mock *PublicDomainCacheMock) List(namespace string, selector labels.Selector) ([]*v1a.PublicDomain, error)
List calls ListFunc.
type PublicDomainClientMock ¶
type PublicDomainClientMock struct { // CreateFunc mocks the Create method. CreateFunc func(in1 *v1a.PublicDomain) (*v1a.PublicDomain, 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.PublicDomain, error) // ListFunc mocks the List method. ListFunc func(namespace string, opts v1b.ListOptions) (*v1a.PublicDomainList, error) // PatchFunc mocks the Patch method. PatchFunc func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.PublicDomain, error) // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v1a.PublicDomain) (*v1a.PublicDomain, error) // UpdateStatusFunc mocks the UpdateStatus method. UpdateStatusFunc func(in1 *v1a.PublicDomain) (*v1a.PublicDomain, error) // WatchFunc mocks the Watch method. WatchFunc func(namespace string, opts v1b.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
PublicDomainClientMock is a mock implementation of PublicDomainClient.
func TestSomethingThatUsesPublicDomainClient(t *testing.T) { // make and configure a mocked PublicDomainClient mockedPublicDomainClient := &PublicDomainClientMock{ CreateFunc: func(in1 *v1a.PublicDomain) (*v1a.PublicDomain, 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.PublicDomain, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, opts v1b.ListOptions) (*v1a.PublicDomainList, error) { panic("mock out the List method") }, PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.PublicDomain, error) { panic("mock out the Patch method") }, UpdateFunc: func(in1 *v1a.PublicDomain) (*v1a.PublicDomain, error) { panic("mock out the Update method") }, UpdateStatusFunc: func(in1 *v1a.PublicDomain) (*v1a.PublicDomain, error) { panic("mock out the UpdateStatus method") }, WatchFunc: func(namespace string, opts v1b.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedPublicDomainClient in code that requires PublicDomainClient // and then make assertions. }
func (*PublicDomainClientMock) Create ¶
func (mock *PublicDomainClientMock) Create(in1 *v1a.PublicDomain) (*v1a.PublicDomain, error)
Create calls CreateFunc.
func (*PublicDomainClientMock) CreateCalls ¶
func (mock *PublicDomainClientMock) CreateCalls() []struct { In1 *v1a.PublicDomain }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedPublicDomainClient.CreateCalls())
func (*PublicDomainClientMock) Delete ¶
func (mock *PublicDomainClientMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
Delete calls DeleteFunc.
func (*PublicDomainClientMock) DeleteCalls ¶
func (mock *PublicDomainClientMock) DeleteCalls() []struct { Namespace string Name string Options *v1b.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedPublicDomainClient.DeleteCalls())
func (*PublicDomainClientMock) Get ¶
func (mock *PublicDomainClientMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.PublicDomain, error)
Get calls GetFunc.
func (*PublicDomainClientMock) GetCalls ¶
func (mock *PublicDomainClientMock) GetCalls() []struct { Namespace string Name string Options v1b.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedPublicDomainClient.GetCalls())
func (*PublicDomainClientMock) List ¶
func (mock *PublicDomainClientMock) List(namespace string, opts v1b.ListOptions) (*v1a.PublicDomainList, error)
List calls ListFunc.
func (*PublicDomainClientMock) ListCalls ¶
func (mock *PublicDomainClientMock) ListCalls() []struct { Namespace string Opts v1b.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedPublicDomainClient.ListCalls())
func (*PublicDomainClientMock) Patch ¶
func (mock *PublicDomainClientMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.PublicDomain, error)
Patch calls PatchFunc.
func (*PublicDomainClientMock) PatchCalls ¶
func (mock *PublicDomainClientMock) 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(mockedPublicDomainClient.PatchCalls())
func (*PublicDomainClientMock) Update ¶
func (mock *PublicDomainClientMock) Update(in1 *v1a.PublicDomain) (*v1a.PublicDomain, error)
Update calls UpdateFunc.
func (*PublicDomainClientMock) UpdateCalls ¶
func (mock *PublicDomainClientMock) UpdateCalls() []struct { In1 *v1a.PublicDomain }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedPublicDomainClient.UpdateCalls())
func (*PublicDomainClientMock) UpdateStatus ¶
func (mock *PublicDomainClientMock) UpdateStatus(in1 *v1a.PublicDomain) (*v1a.PublicDomain, error)
UpdateStatus calls UpdateStatusFunc.
func (*PublicDomainClientMock) UpdateStatusCalls ¶
func (mock *PublicDomainClientMock) UpdateStatusCalls() []struct { In1 *v1a.PublicDomain }
UpdateStatusCalls gets all the calls that were made to UpdateStatus. Check the length with:
len(mockedPublicDomainClient.UpdateStatusCalls())
func (*PublicDomainClientMock) Watch ¶
func (mock *PublicDomainClientMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*PublicDomainClientMock) WatchCalls ¶
func (mock *PublicDomainClientMock) WatchCalls() []struct { Namespace string Opts v1b.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedPublicDomainClient.WatchCalls())
type PublicDomainControllerMock ¶
type PublicDomainControllerMock 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.PublicDomainCache // CreateFunc mocks the Create method. CreateFunc func(in1 *v1a.PublicDomain) (*v1a.PublicDomain, 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.PublicDomain, 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.PublicDomainList, error) // OnChangeFunc mocks the OnChange method. OnChangeFunc func(ctx context.Context, name string, sync v1.PublicDomainHandler) // OnRemoveFunc mocks the OnRemove method. OnRemoveFunc func(ctx context.Context, name string, sync v1.PublicDomainHandler) // PatchFunc mocks the Patch method. PatchFunc func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.PublicDomain, error) // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v1a.PublicDomain) (*v1a.PublicDomain, error) // UpdateStatusFunc mocks the UpdateStatus method. UpdateStatusFunc func(in1 *v1a.PublicDomain) (*v1a.PublicDomain, 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 }
PublicDomainControllerMock is a mock implementation of PublicDomainController.
func TestSomethingThatUsesPublicDomainController(t *testing.T) { // make and configure a mocked PublicDomainController mockedPublicDomainController := &PublicDomainControllerMock{ 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.PublicDomainCache { panic("mock out the Cache method") }, CreateFunc: func(in1 *v1a.PublicDomain) (*v1a.PublicDomain, 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.PublicDomain, 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.PublicDomainList, error) { panic("mock out the List method") }, OnChangeFunc: func(ctx context.Context, name string, sync v1.PublicDomainHandler) { panic("mock out the OnChange method") }, OnRemoveFunc: func(ctx context.Context, name string, sync v1.PublicDomainHandler) { panic("mock out the OnRemove method") }, PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.PublicDomain, error) { panic("mock out the Patch method") }, UpdateFunc: func(in1 *v1a.PublicDomain) (*v1a.PublicDomain, error) { panic("mock out the Update method") }, UpdateStatusFunc: func(in1 *v1a.PublicDomain) (*v1a.PublicDomain, 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 mockedPublicDomainController in code that requires PublicDomainController // and then make assertions. }
func (*PublicDomainControllerMock) AddGenericHandler ¶
func (mock *PublicDomainControllerMock) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)
AddGenericHandler calls AddGenericHandlerFunc.
func (*PublicDomainControllerMock) AddGenericHandlerCalls ¶
func (mock *PublicDomainControllerMock) 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(mockedPublicDomainController.AddGenericHandlerCalls())
func (*PublicDomainControllerMock) AddGenericRemoveHandler ¶
func (mock *PublicDomainControllerMock) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)
AddGenericRemoveHandler calls AddGenericRemoveHandlerFunc.
func (*PublicDomainControllerMock) AddGenericRemoveHandlerCalls ¶
func (mock *PublicDomainControllerMock) 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(mockedPublicDomainController.AddGenericRemoveHandlerCalls())
func (*PublicDomainControllerMock) Cache ¶
func (mock *PublicDomainControllerMock) Cache() v1.PublicDomainCache
Cache calls CacheFunc.
func (*PublicDomainControllerMock) CacheCalls ¶
func (mock *PublicDomainControllerMock) CacheCalls() []struct { }
CacheCalls gets all the calls that were made to Cache. Check the length with:
len(mockedPublicDomainController.CacheCalls())
func (*PublicDomainControllerMock) Create ¶
func (mock *PublicDomainControllerMock) Create(in1 *v1a.PublicDomain) (*v1a.PublicDomain, error)
Create calls CreateFunc.
func (*PublicDomainControllerMock) CreateCalls ¶
func (mock *PublicDomainControllerMock) CreateCalls() []struct { In1 *v1a.PublicDomain }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedPublicDomainController.CreateCalls())
func (*PublicDomainControllerMock) Delete ¶
func (mock *PublicDomainControllerMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
Delete calls DeleteFunc.
func (*PublicDomainControllerMock) DeleteCalls ¶
func (mock *PublicDomainControllerMock) DeleteCalls() []struct { Namespace string Name string Options *v1b.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedPublicDomainController.DeleteCalls())
func (*PublicDomainControllerMock) Enqueue ¶
func (mock *PublicDomainControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*PublicDomainControllerMock) EnqueueCalls ¶
func (mock *PublicDomainControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedPublicDomainController.EnqueueCalls())
func (*PublicDomainControllerMock) Get ¶
func (mock *PublicDomainControllerMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.PublicDomain, error)
Get calls GetFunc.
func (*PublicDomainControllerMock) GetCalls ¶
func (mock *PublicDomainControllerMock) GetCalls() []struct { Namespace string Name string Options v1b.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedPublicDomainController.GetCalls())
func (*PublicDomainControllerMock) GroupVersionKind ¶
func (mock *PublicDomainControllerMock) GroupVersionKind() schema.GroupVersionKind
GroupVersionKind calls GroupVersionKindFunc.
func (*PublicDomainControllerMock) GroupVersionKindCalls ¶
func (mock *PublicDomainControllerMock) GroupVersionKindCalls() []struct { }
GroupVersionKindCalls gets all the calls that were made to GroupVersionKind. Check the length with:
len(mockedPublicDomainController.GroupVersionKindCalls())
func (*PublicDomainControllerMock) Informer ¶
func (mock *PublicDomainControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*PublicDomainControllerMock) InformerCalls ¶
func (mock *PublicDomainControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedPublicDomainController.InformerCalls())
func (*PublicDomainControllerMock) List ¶
func (mock *PublicDomainControllerMock) List(namespace string, opts v1b.ListOptions) (*v1a.PublicDomainList, error)
List calls ListFunc.
func (*PublicDomainControllerMock) ListCalls ¶
func (mock *PublicDomainControllerMock) ListCalls() []struct { Namespace string Opts v1b.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedPublicDomainController.ListCalls())
func (*PublicDomainControllerMock) OnChange ¶
func (mock *PublicDomainControllerMock) OnChange(ctx context.Context, name string, sync v1.PublicDomainHandler)
OnChange calls OnChangeFunc.
func (*PublicDomainControllerMock) OnChangeCalls ¶
func (mock *PublicDomainControllerMock) OnChangeCalls() []struct { Ctx context.Context Name string Sync v1.PublicDomainHandler }
OnChangeCalls gets all the calls that were made to OnChange. Check the length with:
len(mockedPublicDomainController.OnChangeCalls())
func (*PublicDomainControllerMock) OnRemove ¶
func (mock *PublicDomainControllerMock) OnRemove(ctx context.Context, name string, sync v1.PublicDomainHandler)
OnRemove calls OnRemoveFunc.
func (*PublicDomainControllerMock) OnRemoveCalls ¶
func (mock *PublicDomainControllerMock) OnRemoveCalls() []struct { Ctx context.Context Name string Sync v1.PublicDomainHandler }
OnRemoveCalls gets all the calls that were made to OnRemove. Check the length with:
len(mockedPublicDomainController.OnRemoveCalls())
func (*PublicDomainControllerMock) Patch ¶
func (mock *PublicDomainControllerMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.PublicDomain, error)
Patch calls PatchFunc.
func (*PublicDomainControllerMock) PatchCalls ¶
func (mock *PublicDomainControllerMock) 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(mockedPublicDomainController.PatchCalls())
func (*PublicDomainControllerMock) Update ¶
func (mock *PublicDomainControllerMock) Update(in1 *v1a.PublicDomain) (*v1a.PublicDomain, error)
Update calls UpdateFunc.
func (*PublicDomainControllerMock) UpdateCalls ¶
func (mock *PublicDomainControllerMock) UpdateCalls() []struct { In1 *v1a.PublicDomain }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedPublicDomainController.UpdateCalls())
func (*PublicDomainControllerMock) UpdateStatus ¶
func (mock *PublicDomainControllerMock) UpdateStatus(in1 *v1a.PublicDomain) (*v1a.PublicDomain, error)
UpdateStatus calls UpdateStatusFunc.
func (*PublicDomainControllerMock) UpdateStatusCalls ¶
func (mock *PublicDomainControllerMock) UpdateStatusCalls() []struct { In1 *v1a.PublicDomain }
UpdateStatusCalls gets all the calls that were made to UpdateStatus. Check the length with:
len(mockedPublicDomainController.UpdateStatusCalls())
func (*PublicDomainControllerMock) Updater ¶
func (mock *PublicDomainControllerMock) Updater() generic.Updater
Updater calls UpdaterFunc.
func (*PublicDomainControllerMock) UpdaterCalls ¶
func (mock *PublicDomainControllerMock) UpdaterCalls() []struct { }
UpdaterCalls gets all the calls that were made to Updater. Check the length with:
len(mockedPublicDomainController.UpdaterCalls())
func (*PublicDomainControllerMock) Watch ¶
func (mock *PublicDomainControllerMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*PublicDomainControllerMock) WatchCalls ¶
func (mock *PublicDomainControllerMock) WatchCalls() []struct { Namespace string Opts v1b.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedPublicDomainController.WatchCalls())
type RioInfoCacheMock ¶
type RioInfoCacheMock struct { // AddIndexerFunc mocks the AddIndexer method. AddIndexerFunc func(indexName string, indexer v1.RioInfoIndexer) // GetFunc mocks the Get method. GetFunc func(name string) (*v1a.RioInfo, error) // GetByIndexFunc mocks the GetByIndex method. GetByIndexFunc func(indexName string, key string) ([]*v1a.RioInfo, error) // ListFunc mocks the List method. ListFunc func(selector labels.Selector) ([]*v1a.RioInfo, error) // contains filtered or unexported fields }
RioInfoCacheMock is a mock implementation of RioInfoCache.
func TestSomethingThatUsesRioInfoCache(t *testing.T) { // make and configure a mocked RioInfoCache mockedRioInfoCache := &RioInfoCacheMock{ AddIndexerFunc: func(indexName string, indexer v1.RioInfoIndexer) { panic("mock out the AddIndexer method") }, GetFunc: func(name string) (*v1a.RioInfo, error) { panic("mock out the Get method") }, GetByIndexFunc: func(indexName string, key string) ([]*v1a.RioInfo, error) { panic("mock out the GetByIndex method") }, ListFunc: func(selector labels.Selector) ([]*v1a.RioInfo, error) { panic("mock out the List method") }, } // use mockedRioInfoCache in code that requires RioInfoCache // and then make assertions. }
func (*RioInfoCacheMock) AddIndexer ¶
func (mock *RioInfoCacheMock) AddIndexer(indexName string, indexer v1.RioInfoIndexer)
AddIndexer calls AddIndexerFunc.
func (*RioInfoCacheMock) AddIndexerCalls ¶
func (mock *RioInfoCacheMock) AddIndexerCalls() []struct { IndexName string Indexer v1.RioInfoIndexer }
AddIndexerCalls gets all the calls that were made to AddIndexer. Check the length with:
len(mockedRioInfoCache.AddIndexerCalls())
func (*RioInfoCacheMock) Get ¶
func (mock *RioInfoCacheMock) Get(name string) (*v1a.RioInfo, error)
Get calls GetFunc.
func (*RioInfoCacheMock) GetByIndex ¶
GetByIndex calls GetByIndexFunc.
func (*RioInfoCacheMock) GetByIndexCalls ¶
func (mock *RioInfoCacheMock) GetByIndexCalls() []struct { IndexName string Key string }
GetByIndexCalls gets all the calls that were made to GetByIndex. Check the length with:
len(mockedRioInfoCache.GetByIndexCalls())
func (*RioInfoCacheMock) GetCalls ¶
func (mock *RioInfoCacheMock) GetCalls() []struct { Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedRioInfoCache.GetCalls())
func (*RioInfoCacheMock) ListCalls ¶
func (mock *RioInfoCacheMock) ListCalls() []struct { Selector labels.Selector }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedRioInfoCache.ListCalls())
type RioInfoClientMock ¶
type RioInfoClientMock struct { // CreateFunc mocks the Create method. CreateFunc func(in1 *v1a.RioInfo) (*v1a.RioInfo, error) // DeleteFunc mocks the Delete method. DeleteFunc func(name string, options *v1b.DeleteOptions) error // GetFunc mocks the Get method. GetFunc func(name string, options v1b.GetOptions) (*v1a.RioInfo, error) // ListFunc mocks the List method. ListFunc func(opts v1b.ListOptions) (*v1a.RioInfoList, error) // PatchFunc mocks the Patch method. PatchFunc func(name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.RioInfo, error) // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v1a.RioInfo) (*v1a.RioInfo, error) // UpdateStatusFunc mocks the UpdateStatus method. UpdateStatusFunc func(in1 *v1a.RioInfo) (*v1a.RioInfo, error) // WatchFunc mocks the Watch method. WatchFunc func(opts v1b.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
RioInfoClientMock is a mock implementation of RioInfoClient.
func TestSomethingThatUsesRioInfoClient(t *testing.T) { // make and configure a mocked RioInfoClient mockedRioInfoClient := &RioInfoClientMock{ CreateFunc: func(in1 *v1a.RioInfo) (*v1a.RioInfo, error) { panic("mock out the Create method") }, DeleteFunc: func(name string, options *v1b.DeleteOptions) error { panic("mock out the Delete method") }, GetFunc: func(name string, options v1b.GetOptions) (*v1a.RioInfo, error) { panic("mock out the Get method") }, ListFunc: func(opts v1b.ListOptions) (*v1a.RioInfoList, error) { panic("mock out the List method") }, PatchFunc: func(name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.RioInfo, error) { panic("mock out the Patch method") }, UpdateFunc: func(in1 *v1a.RioInfo) (*v1a.RioInfo, error) { panic("mock out the Update method") }, UpdateStatusFunc: func(in1 *v1a.RioInfo) (*v1a.RioInfo, error) { panic("mock out the UpdateStatus method") }, WatchFunc: func(opts v1b.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedRioInfoClient in code that requires RioInfoClient // and then make assertions. }
func (*RioInfoClientMock) CreateCalls ¶
func (mock *RioInfoClientMock) CreateCalls() []struct { In1 *v1a.RioInfo }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedRioInfoClient.CreateCalls())
func (*RioInfoClientMock) Delete ¶
func (mock *RioInfoClientMock) Delete(name string, options *v1b.DeleteOptions) error
Delete calls DeleteFunc.
func (*RioInfoClientMock) DeleteCalls ¶
func (mock *RioInfoClientMock) DeleteCalls() []struct { Name string Options *v1b.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedRioInfoClient.DeleteCalls())
func (*RioInfoClientMock) Get ¶
func (mock *RioInfoClientMock) Get(name string, options v1b.GetOptions) (*v1a.RioInfo, error)
Get calls GetFunc.
func (*RioInfoClientMock) GetCalls ¶
func (mock *RioInfoClientMock) GetCalls() []struct { Name string Options v1b.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedRioInfoClient.GetCalls())
func (*RioInfoClientMock) List ¶
func (mock *RioInfoClientMock) List(opts v1b.ListOptions) (*v1a.RioInfoList, error)
List calls ListFunc.
func (*RioInfoClientMock) ListCalls ¶
func (mock *RioInfoClientMock) ListCalls() []struct { Opts v1b.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedRioInfoClient.ListCalls())
func (*RioInfoClientMock) Patch ¶
func (mock *RioInfoClientMock) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.RioInfo, error)
Patch calls PatchFunc.
func (*RioInfoClientMock) PatchCalls ¶
func (mock *RioInfoClientMock) PatchCalls() []struct { Name string Pt types.PatchType Data []byte Subresources []string }
PatchCalls gets all the calls that were made to Patch. Check the length with:
len(mockedRioInfoClient.PatchCalls())
func (*RioInfoClientMock) UpdateCalls ¶
func (mock *RioInfoClientMock) UpdateCalls() []struct { In1 *v1a.RioInfo }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedRioInfoClient.UpdateCalls())
func (*RioInfoClientMock) UpdateStatus ¶
UpdateStatus calls UpdateStatusFunc.
func (*RioInfoClientMock) UpdateStatusCalls ¶
func (mock *RioInfoClientMock) UpdateStatusCalls() []struct { In1 *v1a.RioInfo }
UpdateStatusCalls gets all the calls that were made to UpdateStatus. Check the length with:
len(mockedRioInfoClient.UpdateStatusCalls())
func (*RioInfoClientMock) Watch ¶
func (mock *RioInfoClientMock) Watch(opts v1b.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*RioInfoClientMock) WatchCalls ¶
func (mock *RioInfoClientMock) WatchCalls() []struct { Opts v1b.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedRioInfoClient.WatchCalls())
type RioInfoControllerMock ¶
type RioInfoControllerMock 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.RioInfoCache // CreateFunc mocks the Create method. CreateFunc func(in1 *v1a.RioInfo) (*v1a.RioInfo, error) // DeleteFunc mocks the Delete method. DeleteFunc func(name string, options *v1b.DeleteOptions) error // EnqueueFunc mocks the Enqueue method. EnqueueFunc func(name string) // GetFunc mocks the Get method. GetFunc func(name string, options v1b.GetOptions) (*v1a.RioInfo, 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(opts v1b.ListOptions) (*v1a.RioInfoList, error) // OnChangeFunc mocks the OnChange method. OnChangeFunc func(ctx context.Context, name string, sync v1.RioInfoHandler) // OnRemoveFunc mocks the OnRemove method. OnRemoveFunc func(ctx context.Context, name string, sync v1.RioInfoHandler) // PatchFunc mocks the Patch method. PatchFunc func(name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.RioInfo, error) // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v1a.RioInfo) (*v1a.RioInfo, error) // UpdateStatusFunc mocks the UpdateStatus method. UpdateStatusFunc func(in1 *v1a.RioInfo) (*v1a.RioInfo, error) // UpdaterFunc mocks the Updater method. UpdaterFunc func() generic.Updater // WatchFunc mocks the Watch method. WatchFunc func(opts v1b.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
RioInfoControllerMock is a mock implementation of RioInfoController.
func TestSomethingThatUsesRioInfoController(t *testing.T) { // make and configure a mocked RioInfoController mockedRioInfoController := &RioInfoControllerMock{ 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.RioInfoCache { panic("mock out the Cache method") }, CreateFunc: func(in1 *v1a.RioInfo) (*v1a.RioInfo, error) { panic("mock out the Create method") }, DeleteFunc: func(name string, options *v1b.DeleteOptions) error { panic("mock out the Delete method") }, EnqueueFunc: func(name string) { panic("mock out the Enqueue method") }, GetFunc: func(name string, options v1b.GetOptions) (*v1a.RioInfo, 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(opts v1b.ListOptions) (*v1a.RioInfoList, error) { panic("mock out the List method") }, OnChangeFunc: func(ctx context.Context, name string, sync v1.RioInfoHandler) { panic("mock out the OnChange method") }, OnRemoveFunc: func(ctx context.Context, name string, sync v1.RioInfoHandler) { panic("mock out the OnRemove method") }, PatchFunc: func(name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.RioInfo, error) { panic("mock out the Patch method") }, UpdateFunc: func(in1 *v1a.RioInfo) (*v1a.RioInfo, error) { panic("mock out the Update method") }, UpdateStatusFunc: func(in1 *v1a.RioInfo) (*v1a.RioInfo, error) { panic("mock out the UpdateStatus method") }, UpdaterFunc: func() generic.Updater { panic("mock out the Updater method") }, WatchFunc: func(opts v1b.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedRioInfoController in code that requires RioInfoController // and then make assertions. }
func (*RioInfoControllerMock) AddGenericHandler ¶
func (mock *RioInfoControllerMock) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)
AddGenericHandler calls AddGenericHandlerFunc.
func (*RioInfoControllerMock) AddGenericHandlerCalls ¶
func (mock *RioInfoControllerMock) 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(mockedRioInfoController.AddGenericHandlerCalls())
func (*RioInfoControllerMock) AddGenericRemoveHandler ¶
func (mock *RioInfoControllerMock) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)
AddGenericRemoveHandler calls AddGenericRemoveHandlerFunc.
func (*RioInfoControllerMock) AddGenericRemoveHandlerCalls ¶
func (mock *RioInfoControllerMock) 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(mockedRioInfoController.AddGenericRemoveHandlerCalls())
func (*RioInfoControllerMock) Cache ¶
func (mock *RioInfoControllerMock) Cache() v1.RioInfoCache
Cache calls CacheFunc.
func (*RioInfoControllerMock) CacheCalls ¶
func (mock *RioInfoControllerMock) CacheCalls() []struct { }
CacheCalls gets all the calls that were made to Cache. Check the length with:
len(mockedRioInfoController.CacheCalls())
func (*RioInfoControllerMock) CreateCalls ¶
func (mock *RioInfoControllerMock) CreateCalls() []struct { In1 *v1a.RioInfo }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedRioInfoController.CreateCalls())
func (*RioInfoControllerMock) Delete ¶
func (mock *RioInfoControllerMock) Delete(name string, options *v1b.DeleteOptions) error
Delete calls DeleteFunc.
func (*RioInfoControllerMock) DeleteCalls ¶
func (mock *RioInfoControllerMock) DeleteCalls() []struct { Name string Options *v1b.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedRioInfoController.DeleteCalls())
func (*RioInfoControllerMock) Enqueue ¶
func (mock *RioInfoControllerMock) Enqueue(name string)
Enqueue calls EnqueueFunc.
func (*RioInfoControllerMock) EnqueueCalls ¶
func (mock *RioInfoControllerMock) EnqueueCalls() []struct { Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedRioInfoController.EnqueueCalls())
func (*RioInfoControllerMock) Get ¶
func (mock *RioInfoControllerMock) Get(name string, options v1b.GetOptions) (*v1a.RioInfo, error)
Get calls GetFunc.
func (*RioInfoControllerMock) GetCalls ¶
func (mock *RioInfoControllerMock) GetCalls() []struct { Name string Options v1b.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedRioInfoController.GetCalls())
func (*RioInfoControllerMock) GroupVersionKind ¶
func (mock *RioInfoControllerMock) GroupVersionKind() schema.GroupVersionKind
GroupVersionKind calls GroupVersionKindFunc.
func (*RioInfoControllerMock) GroupVersionKindCalls ¶
func (mock *RioInfoControllerMock) GroupVersionKindCalls() []struct { }
GroupVersionKindCalls gets all the calls that were made to GroupVersionKind. Check the length with:
len(mockedRioInfoController.GroupVersionKindCalls())
func (*RioInfoControllerMock) Informer ¶
func (mock *RioInfoControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*RioInfoControllerMock) InformerCalls ¶
func (mock *RioInfoControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedRioInfoController.InformerCalls())
func (*RioInfoControllerMock) List ¶
func (mock *RioInfoControllerMock) List(opts v1b.ListOptions) (*v1a.RioInfoList, error)
List calls ListFunc.
func (*RioInfoControllerMock) ListCalls ¶
func (mock *RioInfoControllerMock) ListCalls() []struct { Opts v1b.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedRioInfoController.ListCalls())
func (*RioInfoControllerMock) OnChange ¶
func (mock *RioInfoControllerMock) OnChange(ctx context.Context, name string, sync v1.RioInfoHandler)
OnChange calls OnChangeFunc.
func (*RioInfoControllerMock) OnChangeCalls ¶
func (mock *RioInfoControllerMock) OnChangeCalls() []struct { Ctx context.Context Name string Sync v1.RioInfoHandler }
OnChangeCalls gets all the calls that were made to OnChange. Check the length with:
len(mockedRioInfoController.OnChangeCalls())
func (*RioInfoControllerMock) OnRemove ¶
func (mock *RioInfoControllerMock) OnRemove(ctx context.Context, name string, sync v1.RioInfoHandler)
OnRemove calls OnRemoveFunc.
func (*RioInfoControllerMock) OnRemoveCalls ¶
func (mock *RioInfoControllerMock) OnRemoveCalls() []struct { Ctx context.Context Name string Sync v1.RioInfoHandler }
OnRemoveCalls gets all the calls that were made to OnRemove. Check the length with:
len(mockedRioInfoController.OnRemoveCalls())
func (*RioInfoControllerMock) Patch ¶
func (mock *RioInfoControllerMock) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.RioInfo, error)
Patch calls PatchFunc.
func (*RioInfoControllerMock) PatchCalls ¶
func (mock *RioInfoControllerMock) PatchCalls() []struct { Name string Pt types.PatchType Data []byte Subresources []string }
PatchCalls gets all the calls that were made to Patch. Check the length with:
len(mockedRioInfoController.PatchCalls())
func (*RioInfoControllerMock) UpdateCalls ¶
func (mock *RioInfoControllerMock) UpdateCalls() []struct { In1 *v1a.RioInfo }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedRioInfoController.UpdateCalls())
func (*RioInfoControllerMock) UpdateStatus ¶
UpdateStatus calls UpdateStatusFunc.
func (*RioInfoControllerMock) UpdateStatusCalls ¶
func (mock *RioInfoControllerMock) UpdateStatusCalls() []struct { In1 *v1a.RioInfo }
UpdateStatusCalls gets all the calls that were made to UpdateStatus. Check the length with:
len(mockedRioInfoController.UpdateStatusCalls())
func (*RioInfoControllerMock) Updater ¶
func (mock *RioInfoControllerMock) Updater() generic.Updater
Updater calls UpdaterFunc.
func (*RioInfoControllerMock) UpdaterCalls ¶
func (mock *RioInfoControllerMock) UpdaterCalls() []struct { }
UpdaterCalls gets all the calls that were made to Updater. Check the length with:
len(mockedRioInfoController.UpdaterCalls())
func (*RioInfoControllerMock) Watch ¶
func (mock *RioInfoControllerMock) Watch(opts v1b.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*RioInfoControllerMock) WatchCalls ¶
func (mock *RioInfoControllerMock) WatchCalls() []struct { Opts v1b.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedRioInfoController.WatchCalls())