Documentation ¶
Index ¶
- type DestinationRuleCacheMock
- func (mock *DestinationRuleCacheMock) AddIndexer(indexName string, indexer v1alpha3.DestinationRuleIndexer)
- func (mock *DestinationRuleCacheMock) AddIndexerCalls() []struct{ ... }
- func (mock *DestinationRuleCacheMock) Get(namespace string, name string) (*v1alpha3a.DestinationRule, error)
- func (mock *DestinationRuleCacheMock) GetByIndex(indexName string, key string) ([]*v1alpha3a.DestinationRule, error)
- func (mock *DestinationRuleCacheMock) GetByIndexCalls() []struct{ ... }
- func (mock *DestinationRuleCacheMock) GetCalls() []struct{ ... }
- func (mock *DestinationRuleCacheMock) List(namespace string, selector labels.Selector) ([]*v1alpha3a.DestinationRule, error)
- func (mock *DestinationRuleCacheMock) ListCalls() []struct{ ... }
- type DestinationRuleClientMock
- func (mock *DestinationRuleClientMock) Create(in1 *v1alpha3a.DestinationRule) (*v1alpha3a.DestinationRule, error)
- func (mock *DestinationRuleClientMock) CreateCalls() []struct{ ... }
- func (mock *DestinationRuleClientMock) Delete(namespace string, name string, options *v1.DeleteOptions) error
- func (mock *DestinationRuleClientMock) DeleteCalls() []struct{ ... }
- func (mock *DestinationRuleClientMock) Get(namespace string, name string, options v1.GetOptions) (*v1alpha3a.DestinationRule, error)
- func (mock *DestinationRuleClientMock) GetCalls() []struct{ ... }
- func (mock *DestinationRuleClientMock) List(namespace string, opts v1.ListOptions) (*v1alpha3a.DestinationRuleList, error)
- func (mock *DestinationRuleClientMock) ListCalls() []struct{ ... }
- func (mock *DestinationRuleClientMock) Patch(namespace string, name string, pt types.PatchType, data []byte, ...) (*v1alpha3a.DestinationRule, error)
- func (mock *DestinationRuleClientMock) PatchCalls() []struct{ ... }
- func (mock *DestinationRuleClientMock) Update(in1 *v1alpha3a.DestinationRule) (*v1alpha3a.DestinationRule, error)
- func (mock *DestinationRuleClientMock) UpdateCalls() []struct{ ... }
- func (mock *DestinationRuleClientMock) Watch(namespace string, opts v1.ListOptions) (watch.Interface, error)
- func (mock *DestinationRuleClientMock) WatchCalls() []struct{ ... }
- type DestinationRuleControllerMock
- func (mock *DestinationRuleControllerMock) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)
- func (mock *DestinationRuleControllerMock) AddGenericHandlerCalls() []struct{ ... }
- func (mock *DestinationRuleControllerMock) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)
- func (mock *DestinationRuleControllerMock) AddGenericRemoveHandlerCalls() []struct{ ... }
- func (mock *DestinationRuleControllerMock) Cache() v1alpha3.DestinationRuleCache
- func (mock *DestinationRuleControllerMock) CacheCalls() []struct{}
- func (mock *DestinationRuleControllerMock) Create(in1 *v1alpha3a.DestinationRule) (*v1alpha3a.DestinationRule, error)
- func (mock *DestinationRuleControllerMock) CreateCalls() []struct{ ... }
- func (mock *DestinationRuleControllerMock) Delete(namespace string, name string, options *v1.DeleteOptions) error
- func (mock *DestinationRuleControllerMock) DeleteCalls() []struct{ ... }
- func (mock *DestinationRuleControllerMock) Enqueue(namespace string, name string)
- func (mock *DestinationRuleControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *DestinationRuleControllerMock) Get(namespace string, name string, options v1.GetOptions) (*v1alpha3a.DestinationRule, error)
- func (mock *DestinationRuleControllerMock) GetCalls() []struct{ ... }
- func (mock *DestinationRuleControllerMock) GroupVersionKind() schema.GroupVersionKind
- func (mock *DestinationRuleControllerMock) GroupVersionKindCalls() []struct{}
- func (mock *DestinationRuleControllerMock) Informer() cache.SharedIndexInformer
- func (mock *DestinationRuleControllerMock) InformerCalls() []struct{}
- func (mock *DestinationRuleControllerMock) List(namespace string, opts v1.ListOptions) (*v1alpha3a.DestinationRuleList, error)
- func (mock *DestinationRuleControllerMock) ListCalls() []struct{ ... }
- func (mock *DestinationRuleControllerMock) OnChange(ctx context.Context, name string, sync v1alpha3.DestinationRuleHandler)
- func (mock *DestinationRuleControllerMock) OnChangeCalls() []struct{ ... }
- func (mock *DestinationRuleControllerMock) OnRemove(ctx context.Context, name string, sync v1alpha3.DestinationRuleHandler)
- func (mock *DestinationRuleControllerMock) OnRemoveCalls() []struct{ ... }
- func (mock *DestinationRuleControllerMock) Patch(namespace string, name string, pt types.PatchType, data []byte, ...) (*v1alpha3a.DestinationRule, error)
- func (mock *DestinationRuleControllerMock) PatchCalls() []struct{ ... }
- func (mock *DestinationRuleControllerMock) Update(in1 *v1alpha3a.DestinationRule) (*v1alpha3a.DestinationRule, error)
- func (mock *DestinationRuleControllerMock) UpdateCalls() []struct{ ... }
- func (mock *DestinationRuleControllerMock) Updater() generic.Updater
- func (mock *DestinationRuleControllerMock) UpdaterCalls() []struct{}
- func (mock *DestinationRuleControllerMock) Watch(namespace string, opts v1.ListOptions) (watch.Interface, error)
- func (mock *DestinationRuleControllerMock) WatchCalls() []struct{ ... }
- type GatewayCacheMock
- func (mock *GatewayCacheMock) AddIndexer(indexName string, indexer v1alpha3.GatewayIndexer)
- func (mock *GatewayCacheMock) AddIndexerCalls() []struct{ ... }
- func (mock *GatewayCacheMock) Get(namespace string, name string) (*v1alpha3a.Gateway, error)
- func (mock *GatewayCacheMock) GetByIndex(indexName string, key string) ([]*v1alpha3a.Gateway, error)
- func (mock *GatewayCacheMock) GetByIndexCalls() []struct{ ... }
- func (mock *GatewayCacheMock) GetCalls() []struct{ ... }
- func (mock *GatewayCacheMock) List(namespace string, selector labels.Selector) ([]*v1alpha3a.Gateway, error)
- func (mock *GatewayCacheMock) ListCalls() []struct{ ... }
- type GatewayClientMock
- func (mock *GatewayClientMock) Create(in1 *v1alpha3a.Gateway) (*v1alpha3a.Gateway, error)
- func (mock *GatewayClientMock) CreateCalls() []struct{ ... }
- func (mock *GatewayClientMock) Delete(namespace string, name string, options *v1.DeleteOptions) error
- func (mock *GatewayClientMock) DeleteCalls() []struct{ ... }
- func (mock *GatewayClientMock) Get(namespace string, name string, options v1.GetOptions) (*v1alpha3a.Gateway, error)
- func (mock *GatewayClientMock) GetCalls() []struct{ ... }
- func (mock *GatewayClientMock) List(namespace string, opts v1.ListOptions) (*v1alpha3a.GatewayList, error)
- func (mock *GatewayClientMock) ListCalls() []struct{ ... }
- func (mock *GatewayClientMock) Patch(namespace string, name string, pt types.PatchType, data []byte, ...) (*v1alpha3a.Gateway, error)
- func (mock *GatewayClientMock) PatchCalls() []struct{ ... }
- func (mock *GatewayClientMock) Update(in1 *v1alpha3a.Gateway) (*v1alpha3a.Gateway, error)
- func (mock *GatewayClientMock) UpdateCalls() []struct{ ... }
- func (mock *GatewayClientMock) Watch(namespace string, opts v1.ListOptions) (watch.Interface, error)
- func (mock *GatewayClientMock) WatchCalls() []struct{ ... }
- type GatewayControllerMock
- func (mock *GatewayControllerMock) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)
- func (mock *GatewayControllerMock) AddGenericHandlerCalls() []struct{ ... }
- func (mock *GatewayControllerMock) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)
- func (mock *GatewayControllerMock) AddGenericRemoveHandlerCalls() []struct{ ... }
- func (mock *GatewayControllerMock) Cache() v1alpha3.GatewayCache
- func (mock *GatewayControllerMock) CacheCalls() []struct{}
- func (mock *GatewayControllerMock) Create(in1 *v1alpha3a.Gateway) (*v1alpha3a.Gateway, error)
- func (mock *GatewayControllerMock) CreateCalls() []struct{ ... }
- func (mock *GatewayControllerMock) Delete(namespace string, name string, options *v1.DeleteOptions) error
- func (mock *GatewayControllerMock) DeleteCalls() []struct{ ... }
- func (mock *GatewayControllerMock) Enqueue(namespace string, name string)
- func (mock *GatewayControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *GatewayControllerMock) Get(namespace string, name string, options v1.GetOptions) (*v1alpha3a.Gateway, error)
- func (mock *GatewayControllerMock) GetCalls() []struct{ ... }
- func (mock *GatewayControllerMock) GroupVersionKind() schema.GroupVersionKind
- func (mock *GatewayControllerMock) GroupVersionKindCalls() []struct{}
- func (mock *GatewayControllerMock) Informer() cache.SharedIndexInformer
- func (mock *GatewayControllerMock) InformerCalls() []struct{}
- func (mock *GatewayControllerMock) List(namespace string, opts v1.ListOptions) (*v1alpha3a.GatewayList, error)
- func (mock *GatewayControllerMock) ListCalls() []struct{ ... }
- func (mock *GatewayControllerMock) OnChange(ctx context.Context, name string, sync v1alpha3.GatewayHandler)
- func (mock *GatewayControllerMock) OnChangeCalls() []struct{ ... }
- func (mock *GatewayControllerMock) OnRemove(ctx context.Context, name string, sync v1alpha3.GatewayHandler)
- func (mock *GatewayControllerMock) OnRemoveCalls() []struct{ ... }
- func (mock *GatewayControllerMock) Patch(namespace string, name string, pt types.PatchType, data []byte, ...) (*v1alpha3a.Gateway, error)
- func (mock *GatewayControllerMock) PatchCalls() []struct{ ... }
- func (mock *GatewayControllerMock) Update(in1 *v1alpha3a.Gateway) (*v1alpha3a.Gateway, error)
- func (mock *GatewayControllerMock) UpdateCalls() []struct{ ... }
- func (mock *GatewayControllerMock) Updater() generic.Updater
- func (mock *GatewayControllerMock) UpdaterCalls() []struct{}
- func (mock *GatewayControllerMock) Watch(namespace string, opts v1.ListOptions) (watch.Interface, error)
- func (mock *GatewayControllerMock) WatchCalls() []struct{ ... }
- type ServiceEntryCacheMock
- func (mock *ServiceEntryCacheMock) AddIndexer(indexName string, indexer v1alpha3.ServiceEntryIndexer)
- func (mock *ServiceEntryCacheMock) AddIndexerCalls() []struct{ ... }
- func (mock *ServiceEntryCacheMock) Get(namespace string, name string) (*v1alpha3a.ServiceEntry, error)
- func (mock *ServiceEntryCacheMock) GetByIndex(indexName string, key string) ([]*v1alpha3a.ServiceEntry, error)
- func (mock *ServiceEntryCacheMock) GetByIndexCalls() []struct{ ... }
- func (mock *ServiceEntryCacheMock) GetCalls() []struct{ ... }
- func (mock *ServiceEntryCacheMock) List(namespace string, selector labels.Selector) ([]*v1alpha3a.ServiceEntry, error)
- func (mock *ServiceEntryCacheMock) ListCalls() []struct{ ... }
- type ServiceEntryClientMock
- func (mock *ServiceEntryClientMock) Create(in1 *v1alpha3a.ServiceEntry) (*v1alpha3a.ServiceEntry, error)
- func (mock *ServiceEntryClientMock) CreateCalls() []struct{ ... }
- func (mock *ServiceEntryClientMock) Delete(namespace string, name string, options *v1.DeleteOptions) error
- func (mock *ServiceEntryClientMock) DeleteCalls() []struct{ ... }
- func (mock *ServiceEntryClientMock) Get(namespace string, name string, options v1.GetOptions) (*v1alpha3a.ServiceEntry, error)
- func (mock *ServiceEntryClientMock) GetCalls() []struct{ ... }
- func (mock *ServiceEntryClientMock) List(namespace string, opts v1.ListOptions) (*v1alpha3a.ServiceEntryList, error)
- func (mock *ServiceEntryClientMock) ListCalls() []struct{ ... }
- func (mock *ServiceEntryClientMock) Patch(namespace string, name string, pt types.PatchType, data []byte, ...) (*v1alpha3a.ServiceEntry, error)
- func (mock *ServiceEntryClientMock) PatchCalls() []struct{ ... }
- func (mock *ServiceEntryClientMock) Update(in1 *v1alpha3a.ServiceEntry) (*v1alpha3a.ServiceEntry, error)
- func (mock *ServiceEntryClientMock) UpdateCalls() []struct{ ... }
- func (mock *ServiceEntryClientMock) Watch(namespace string, opts v1.ListOptions) (watch.Interface, error)
- func (mock *ServiceEntryClientMock) WatchCalls() []struct{ ... }
- type ServiceEntryControllerMock
- func (mock *ServiceEntryControllerMock) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)
- func (mock *ServiceEntryControllerMock) AddGenericHandlerCalls() []struct{ ... }
- func (mock *ServiceEntryControllerMock) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)
- func (mock *ServiceEntryControllerMock) AddGenericRemoveHandlerCalls() []struct{ ... }
- func (mock *ServiceEntryControllerMock) Cache() v1alpha3.ServiceEntryCache
- func (mock *ServiceEntryControllerMock) CacheCalls() []struct{}
- func (mock *ServiceEntryControllerMock) Create(in1 *v1alpha3a.ServiceEntry) (*v1alpha3a.ServiceEntry, error)
- func (mock *ServiceEntryControllerMock) CreateCalls() []struct{ ... }
- func (mock *ServiceEntryControllerMock) Delete(namespace string, name string, options *v1.DeleteOptions) error
- func (mock *ServiceEntryControllerMock) DeleteCalls() []struct{ ... }
- func (mock *ServiceEntryControllerMock) Enqueue(namespace string, name string)
- func (mock *ServiceEntryControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *ServiceEntryControllerMock) Get(namespace string, name string, options v1.GetOptions) (*v1alpha3a.ServiceEntry, error)
- func (mock *ServiceEntryControllerMock) GetCalls() []struct{ ... }
- func (mock *ServiceEntryControllerMock) GroupVersionKind() schema.GroupVersionKind
- func (mock *ServiceEntryControllerMock) GroupVersionKindCalls() []struct{}
- func (mock *ServiceEntryControllerMock) Informer() cache.SharedIndexInformer
- func (mock *ServiceEntryControllerMock) InformerCalls() []struct{}
- func (mock *ServiceEntryControllerMock) List(namespace string, opts v1.ListOptions) (*v1alpha3a.ServiceEntryList, error)
- func (mock *ServiceEntryControllerMock) ListCalls() []struct{ ... }
- func (mock *ServiceEntryControllerMock) OnChange(ctx context.Context, name string, sync v1alpha3.ServiceEntryHandler)
- func (mock *ServiceEntryControllerMock) OnChangeCalls() []struct{ ... }
- func (mock *ServiceEntryControllerMock) OnRemove(ctx context.Context, name string, sync v1alpha3.ServiceEntryHandler)
- func (mock *ServiceEntryControllerMock) OnRemoveCalls() []struct{ ... }
- func (mock *ServiceEntryControllerMock) Patch(namespace string, name string, pt types.PatchType, data []byte, ...) (*v1alpha3a.ServiceEntry, error)
- func (mock *ServiceEntryControllerMock) PatchCalls() []struct{ ... }
- func (mock *ServiceEntryControllerMock) Update(in1 *v1alpha3a.ServiceEntry) (*v1alpha3a.ServiceEntry, error)
- func (mock *ServiceEntryControllerMock) UpdateCalls() []struct{ ... }
- func (mock *ServiceEntryControllerMock) Updater() generic.Updater
- func (mock *ServiceEntryControllerMock) UpdaterCalls() []struct{}
- func (mock *ServiceEntryControllerMock) Watch(namespace string, opts v1.ListOptions) (watch.Interface, error)
- func (mock *ServiceEntryControllerMock) WatchCalls() []struct{ ... }
- type VirtualServiceCacheMock
- func (mock *VirtualServiceCacheMock) AddIndexer(indexName string, indexer v1alpha3.VirtualServiceIndexer)
- func (mock *VirtualServiceCacheMock) AddIndexerCalls() []struct{ ... }
- func (mock *VirtualServiceCacheMock) Get(namespace string, name string) (*v1alpha3a.VirtualService, error)
- func (mock *VirtualServiceCacheMock) GetByIndex(indexName string, key string) ([]*v1alpha3a.VirtualService, error)
- func (mock *VirtualServiceCacheMock) GetByIndexCalls() []struct{ ... }
- func (mock *VirtualServiceCacheMock) GetCalls() []struct{ ... }
- func (mock *VirtualServiceCacheMock) List(namespace string, selector labels.Selector) ([]*v1alpha3a.VirtualService, error)
- func (mock *VirtualServiceCacheMock) ListCalls() []struct{ ... }
- type VirtualServiceClientMock
- func (mock *VirtualServiceClientMock) Create(in1 *v1alpha3a.VirtualService) (*v1alpha3a.VirtualService, error)
- func (mock *VirtualServiceClientMock) CreateCalls() []struct{ ... }
- func (mock *VirtualServiceClientMock) Delete(namespace string, name string, options *v1.DeleteOptions) error
- func (mock *VirtualServiceClientMock) DeleteCalls() []struct{ ... }
- func (mock *VirtualServiceClientMock) Get(namespace string, name string, options v1.GetOptions) (*v1alpha3a.VirtualService, error)
- func (mock *VirtualServiceClientMock) GetCalls() []struct{ ... }
- func (mock *VirtualServiceClientMock) List(namespace string, opts v1.ListOptions) (*v1alpha3a.VirtualServiceList, error)
- func (mock *VirtualServiceClientMock) ListCalls() []struct{ ... }
- func (mock *VirtualServiceClientMock) Patch(namespace string, name string, pt types.PatchType, data []byte, ...) (*v1alpha3a.VirtualService, error)
- func (mock *VirtualServiceClientMock) PatchCalls() []struct{ ... }
- func (mock *VirtualServiceClientMock) Update(in1 *v1alpha3a.VirtualService) (*v1alpha3a.VirtualService, error)
- func (mock *VirtualServiceClientMock) UpdateCalls() []struct{ ... }
- func (mock *VirtualServiceClientMock) Watch(namespace string, opts v1.ListOptions) (watch.Interface, error)
- func (mock *VirtualServiceClientMock) WatchCalls() []struct{ ... }
- type VirtualServiceControllerMock
- func (mock *VirtualServiceControllerMock) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)
- func (mock *VirtualServiceControllerMock) AddGenericHandlerCalls() []struct{ ... }
- func (mock *VirtualServiceControllerMock) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)
- func (mock *VirtualServiceControllerMock) AddGenericRemoveHandlerCalls() []struct{ ... }
- func (mock *VirtualServiceControllerMock) Cache() v1alpha3.VirtualServiceCache
- func (mock *VirtualServiceControllerMock) CacheCalls() []struct{}
- func (mock *VirtualServiceControllerMock) Create(in1 *v1alpha3a.VirtualService) (*v1alpha3a.VirtualService, error)
- func (mock *VirtualServiceControllerMock) CreateCalls() []struct{ ... }
- func (mock *VirtualServiceControllerMock) Delete(namespace string, name string, options *v1.DeleteOptions) error
- func (mock *VirtualServiceControllerMock) DeleteCalls() []struct{ ... }
- func (mock *VirtualServiceControllerMock) Enqueue(namespace string, name string)
- func (mock *VirtualServiceControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *VirtualServiceControllerMock) Get(namespace string, name string, options v1.GetOptions) (*v1alpha3a.VirtualService, error)
- func (mock *VirtualServiceControllerMock) GetCalls() []struct{ ... }
- func (mock *VirtualServiceControllerMock) GroupVersionKind() schema.GroupVersionKind
- func (mock *VirtualServiceControllerMock) GroupVersionKindCalls() []struct{}
- func (mock *VirtualServiceControllerMock) Informer() cache.SharedIndexInformer
- func (mock *VirtualServiceControllerMock) InformerCalls() []struct{}
- func (mock *VirtualServiceControllerMock) List(namespace string, opts v1.ListOptions) (*v1alpha3a.VirtualServiceList, error)
- func (mock *VirtualServiceControllerMock) ListCalls() []struct{ ... }
- func (mock *VirtualServiceControllerMock) OnChange(ctx context.Context, name string, sync v1alpha3.VirtualServiceHandler)
- func (mock *VirtualServiceControllerMock) OnChangeCalls() []struct{ ... }
- func (mock *VirtualServiceControllerMock) OnRemove(ctx context.Context, name string, sync v1alpha3.VirtualServiceHandler)
- func (mock *VirtualServiceControllerMock) OnRemoveCalls() []struct{ ... }
- func (mock *VirtualServiceControllerMock) Patch(namespace string, name string, pt types.PatchType, data []byte, ...) (*v1alpha3a.VirtualService, error)
- func (mock *VirtualServiceControllerMock) PatchCalls() []struct{ ... }
- func (mock *VirtualServiceControllerMock) Update(in1 *v1alpha3a.VirtualService) (*v1alpha3a.VirtualService, error)
- func (mock *VirtualServiceControllerMock) UpdateCalls() []struct{ ... }
- func (mock *VirtualServiceControllerMock) Updater() generic.Updater
- func (mock *VirtualServiceControllerMock) UpdaterCalls() []struct{}
- func (mock *VirtualServiceControllerMock) Watch(namespace string, opts v1.ListOptions) (watch.Interface, error)
- func (mock *VirtualServiceControllerMock) WatchCalls() []struct{ ... }
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DestinationRuleCacheMock ¶
type DestinationRuleCacheMock struct { // AddIndexerFunc mocks the AddIndexer method. AddIndexerFunc func(indexName string, indexer v1alpha3.DestinationRuleIndexer) // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v1alpha3a.DestinationRule, error) // GetByIndexFunc mocks the GetByIndex method. GetByIndexFunc func(indexName string, key string) ([]*v1alpha3a.DestinationRule, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v1alpha3a.DestinationRule, error) // contains filtered or unexported fields }
DestinationRuleCacheMock is a mock implementation of DestinationRuleCache.
func TestSomethingThatUsesDestinationRuleCache(t *testing.T) { // make and configure a mocked DestinationRuleCache mockedDestinationRuleCache := &DestinationRuleCacheMock{ AddIndexerFunc: func(indexName string, indexer v1alpha3.DestinationRuleIndexer) { panic("mock out the AddIndexer method") }, GetFunc: func(namespace string, name string) (*v1alpha3a.DestinationRule, error) { panic("mock out the Get method") }, GetByIndexFunc: func(indexName string, key string) ([]*v1alpha3a.DestinationRule, error) { panic("mock out the GetByIndex method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v1alpha3a.DestinationRule, error) { panic("mock out the List method") }, } // use mockedDestinationRuleCache in code that requires DestinationRuleCache // and then make assertions. }
func (*DestinationRuleCacheMock) AddIndexer ¶
func (mock *DestinationRuleCacheMock) AddIndexer(indexName string, indexer v1alpha3.DestinationRuleIndexer)
AddIndexer calls AddIndexerFunc.
func (*DestinationRuleCacheMock) AddIndexerCalls ¶
func (mock *DestinationRuleCacheMock) AddIndexerCalls() []struct { IndexName string Indexer v1alpha3.DestinationRuleIndexer }
AddIndexerCalls gets all the calls that were made to AddIndexer. Check the length with:
len(mockedDestinationRuleCache.AddIndexerCalls())
func (*DestinationRuleCacheMock) Get ¶
func (mock *DestinationRuleCacheMock) Get(namespace string, name string) (*v1alpha3a.DestinationRule, error)
Get calls GetFunc.
func (*DestinationRuleCacheMock) GetByIndex ¶
func (mock *DestinationRuleCacheMock) GetByIndex(indexName string, key string) ([]*v1alpha3a.DestinationRule, error)
GetByIndex calls GetByIndexFunc.
func (*DestinationRuleCacheMock) GetByIndexCalls ¶
func (mock *DestinationRuleCacheMock) GetByIndexCalls() []struct { IndexName string Key string }
GetByIndexCalls gets all the calls that were made to GetByIndex. Check the length with:
len(mockedDestinationRuleCache.GetByIndexCalls())
func (*DestinationRuleCacheMock) GetCalls ¶
func (mock *DestinationRuleCacheMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedDestinationRuleCache.GetCalls())
func (*DestinationRuleCacheMock) List ¶
func (mock *DestinationRuleCacheMock) List(namespace string, selector labels.Selector) ([]*v1alpha3a.DestinationRule, error)
List calls ListFunc.
type DestinationRuleClientMock ¶
type DestinationRuleClientMock struct { // CreateFunc mocks the Create method. CreateFunc func(in1 *v1alpha3a.DestinationRule) (*v1alpha3a.DestinationRule, error) // DeleteFunc mocks the Delete method. DeleteFunc func(namespace string, name string, options *v1.DeleteOptions) error // GetFunc mocks the Get method. GetFunc func(namespace string, name string, options v1.GetOptions) (*v1alpha3a.DestinationRule, error) // ListFunc mocks the List method. ListFunc func(namespace string, opts v1.ListOptions) (*v1alpha3a.DestinationRuleList, error) // PatchFunc mocks the Patch method. PatchFunc func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1alpha3a.DestinationRule, error) // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v1alpha3a.DestinationRule) (*v1alpha3a.DestinationRule, error) // WatchFunc mocks the Watch method. WatchFunc func(namespace string, opts v1.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
DestinationRuleClientMock is a mock implementation of DestinationRuleClient.
func TestSomethingThatUsesDestinationRuleClient(t *testing.T) { // make and configure a mocked DestinationRuleClient mockedDestinationRuleClient := &DestinationRuleClientMock{ CreateFunc: func(in1 *v1alpha3a.DestinationRule) (*v1alpha3a.DestinationRule, error) { panic("mock out the Create method") }, DeleteFunc: func(namespace string, name string, options *v1.DeleteOptions) error { panic("mock out the Delete method") }, GetFunc: func(namespace string, name string, options v1.GetOptions) (*v1alpha3a.DestinationRule, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, opts v1.ListOptions) (*v1alpha3a.DestinationRuleList, error) { panic("mock out the List method") }, PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1alpha3a.DestinationRule, error) { panic("mock out the Patch method") }, UpdateFunc: func(in1 *v1alpha3a.DestinationRule) (*v1alpha3a.DestinationRule, error) { panic("mock out the Update method") }, WatchFunc: func(namespace string, opts v1.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedDestinationRuleClient in code that requires DestinationRuleClient // and then make assertions. }
func (*DestinationRuleClientMock) Create ¶
func (mock *DestinationRuleClientMock) Create(in1 *v1alpha3a.DestinationRule) (*v1alpha3a.DestinationRule, error)
Create calls CreateFunc.
func (*DestinationRuleClientMock) CreateCalls ¶
func (mock *DestinationRuleClientMock) CreateCalls() []struct { In1 *v1alpha3a.DestinationRule }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedDestinationRuleClient.CreateCalls())
func (*DestinationRuleClientMock) Delete ¶
func (mock *DestinationRuleClientMock) Delete(namespace string, name string, options *v1.DeleteOptions) error
Delete calls DeleteFunc.
func (*DestinationRuleClientMock) DeleteCalls ¶
func (mock *DestinationRuleClientMock) DeleteCalls() []struct { Namespace string Name string Options *v1.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedDestinationRuleClient.DeleteCalls())
func (*DestinationRuleClientMock) Get ¶
func (mock *DestinationRuleClientMock) Get(namespace string, name string, options v1.GetOptions) (*v1alpha3a.DestinationRule, error)
Get calls GetFunc.
func (*DestinationRuleClientMock) GetCalls ¶
func (mock *DestinationRuleClientMock) GetCalls() []struct { Namespace string Name string Options v1.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedDestinationRuleClient.GetCalls())
func (*DestinationRuleClientMock) List ¶
func (mock *DestinationRuleClientMock) List(namespace string, opts v1.ListOptions) (*v1alpha3a.DestinationRuleList, error)
List calls ListFunc.
func (*DestinationRuleClientMock) ListCalls ¶
func (mock *DestinationRuleClientMock) ListCalls() []struct { Namespace string Opts v1.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedDestinationRuleClient.ListCalls())
func (*DestinationRuleClientMock) Patch ¶
func (mock *DestinationRuleClientMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1alpha3a.DestinationRule, error)
Patch calls PatchFunc.
func (*DestinationRuleClientMock) PatchCalls ¶
func (mock *DestinationRuleClientMock) 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(mockedDestinationRuleClient.PatchCalls())
func (*DestinationRuleClientMock) Update ¶
func (mock *DestinationRuleClientMock) Update(in1 *v1alpha3a.DestinationRule) (*v1alpha3a.DestinationRule, error)
Update calls UpdateFunc.
func (*DestinationRuleClientMock) UpdateCalls ¶
func (mock *DestinationRuleClientMock) UpdateCalls() []struct { In1 *v1alpha3a.DestinationRule }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedDestinationRuleClient.UpdateCalls())
func (*DestinationRuleClientMock) Watch ¶
func (mock *DestinationRuleClientMock) Watch(namespace string, opts v1.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*DestinationRuleClientMock) WatchCalls ¶
func (mock *DestinationRuleClientMock) WatchCalls() []struct { Namespace string Opts v1.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedDestinationRuleClient.WatchCalls())
type DestinationRuleControllerMock ¶
type DestinationRuleControllerMock 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() v1alpha3.DestinationRuleCache // CreateFunc mocks the Create method. CreateFunc func(in1 *v1alpha3a.DestinationRule) (*v1alpha3a.DestinationRule, error) // DeleteFunc mocks the Delete method. DeleteFunc func(namespace string, name string, options *v1.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 v1.GetOptions) (*v1alpha3a.DestinationRule, 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 v1.ListOptions) (*v1alpha3a.DestinationRuleList, error) // OnChangeFunc mocks the OnChange method. OnChangeFunc func(ctx context.Context, name string, sync v1alpha3.DestinationRuleHandler) // OnRemoveFunc mocks the OnRemove method. OnRemoveFunc func(ctx context.Context, name string, sync v1alpha3.DestinationRuleHandler) // PatchFunc mocks the Patch method. PatchFunc func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1alpha3a.DestinationRule, error) // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v1alpha3a.DestinationRule) (*v1alpha3a.DestinationRule, error) // UpdaterFunc mocks the Updater method. UpdaterFunc func() generic.Updater // WatchFunc mocks the Watch method. WatchFunc func(namespace string, opts v1.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
DestinationRuleControllerMock is a mock implementation of DestinationRuleController.
func TestSomethingThatUsesDestinationRuleController(t *testing.T) { // make and configure a mocked DestinationRuleController mockedDestinationRuleController := &DestinationRuleControllerMock{ 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() v1alpha3.DestinationRuleCache { panic("mock out the Cache method") }, CreateFunc: func(in1 *v1alpha3a.DestinationRule) (*v1alpha3a.DestinationRule, error) { panic("mock out the Create method") }, DeleteFunc: func(namespace string, name string, options *v1.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 v1.GetOptions) (*v1alpha3a.DestinationRule, 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 v1.ListOptions) (*v1alpha3a.DestinationRuleList, error) { panic("mock out the List method") }, OnChangeFunc: func(ctx context.Context, name string, sync v1alpha3.DestinationRuleHandler) { panic("mock out the OnChange method") }, OnRemoveFunc: func(ctx context.Context, name string, sync v1alpha3.DestinationRuleHandler) { panic("mock out the OnRemove method") }, PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1alpha3a.DestinationRule, error) { panic("mock out the Patch method") }, UpdateFunc: func(in1 *v1alpha3a.DestinationRule) (*v1alpha3a.DestinationRule, error) { panic("mock out the Update method") }, UpdaterFunc: func() generic.Updater { panic("mock out the Updater method") }, WatchFunc: func(namespace string, opts v1.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedDestinationRuleController in code that requires DestinationRuleController // and then make assertions. }
func (*DestinationRuleControllerMock) AddGenericHandler ¶
func (mock *DestinationRuleControllerMock) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)
AddGenericHandler calls AddGenericHandlerFunc.
func (*DestinationRuleControllerMock) AddGenericHandlerCalls ¶
func (mock *DestinationRuleControllerMock) 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(mockedDestinationRuleController.AddGenericHandlerCalls())
func (*DestinationRuleControllerMock) AddGenericRemoveHandler ¶
func (mock *DestinationRuleControllerMock) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)
AddGenericRemoveHandler calls AddGenericRemoveHandlerFunc.
func (*DestinationRuleControllerMock) AddGenericRemoveHandlerCalls ¶
func (mock *DestinationRuleControllerMock) 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(mockedDestinationRuleController.AddGenericRemoveHandlerCalls())
func (*DestinationRuleControllerMock) Cache ¶
func (mock *DestinationRuleControllerMock) Cache() v1alpha3.DestinationRuleCache
Cache calls CacheFunc.
func (*DestinationRuleControllerMock) CacheCalls ¶
func (mock *DestinationRuleControllerMock) CacheCalls() []struct { }
CacheCalls gets all the calls that were made to Cache. Check the length with:
len(mockedDestinationRuleController.CacheCalls())
func (*DestinationRuleControllerMock) Create ¶
func (mock *DestinationRuleControllerMock) Create(in1 *v1alpha3a.DestinationRule) (*v1alpha3a.DestinationRule, error)
Create calls CreateFunc.
func (*DestinationRuleControllerMock) CreateCalls ¶
func (mock *DestinationRuleControllerMock) CreateCalls() []struct { In1 *v1alpha3a.DestinationRule }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedDestinationRuleController.CreateCalls())
func (*DestinationRuleControllerMock) Delete ¶
func (mock *DestinationRuleControllerMock) Delete(namespace string, name string, options *v1.DeleteOptions) error
Delete calls DeleteFunc.
func (*DestinationRuleControllerMock) DeleteCalls ¶
func (mock *DestinationRuleControllerMock) DeleteCalls() []struct { Namespace string Name string Options *v1.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedDestinationRuleController.DeleteCalls())
func (*DestinationRuleControllerMock) Enqueue ¶
func (mock *DestinationRuleControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*DestinationRuleControllerMock) EnqueueCalls ¶
func (mock *DestinationRuleControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedDestinationRuleController.EnqueueCalls())
func (*DestinationRuleControllerMock) Get ¶
func (mock *DestinationRuleControllerMock) Get(namespace string, name string, options v1.GetOptions) (*v1alpha3a.DestinationRule, error)
Get calls GetFunc.
func (*DestinationRuleControllerMock) GetCalls ¶
func (mock *DestinationRuleControllerMock) GetCalls() []struct { Namespace string Name string Options v1.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedDestinationRuleController.GetCalls())
func (*DestinationRuleControllerMock) GroupVersionKind ¶
func (mock *DestinationRuleControllerMock) GroupVersionKind() schema.GroupVersionKind
GroupVersionKind calls GroupVersionKindFunc.
func (*DestinationRuleControllerMock) GroupVersionKindCalls ¶
func (mock *DestinationRuleControllerMock) GroupVersionKindCalls() []struct { }
GroupVersionKindCalls gets all the calls that were made to GroupVersionKind. Check the length with:
len(mockedDestinationRuleController.GroupVersionKindCalls())
func (*DestinationRuleControllerMock) Informer ¶
func (mock *DestinationRuleControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*DestinationRuleControllerMock) InformerCalls ¶
func (mock *DestinationRuleControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedDestinationRuleController.InformerCalls())
func (*DestinationRuleControllerMock) List ¶
func (mock *DestinationRuleControllerMock) List(namespace string, opts v1.ListOptions) (*v1alpha3a.DestinationRuleList, error)
List calls ListFunc.
func (*DestinationRuleControllerMock) ListCalls ¶
func (mock *DestinationRuleControllerMock) ListCalls() []struct { Namespace string Opts v1.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedDestinationRuleController.ListCalls())
func (*DestinationRuleControllerMock) OnChange ¶
func (mock *DestinationRuleControllerMock) OnChange(ctx context.Context, name string, sync v1alpha3.DestinationRuleHandler)
OnChange calls OnChangeFunc.
func (*DestinationRuleControllerMock) OnChangeCalls ¶
func (mock *DestinationRuleControllerMock) OnChangeCalls() []struct { Ctx context.Context Name string Sync v1alpha3.DestinationRuleHandler }
OnChangeCalls gets all the calls that were made to OnChange. Check the length with:
len(mockedDestinationRuleController.OnChangeCalls())
func (*DestinationRuleControllerMock) OnRemove ¶
func (mock *DestinationRuleControllerMock) OnRemove(ctx context.Context, name string, sync v1alpha3.DestinationRuleHandler)
OnRemove calls OnRemoveFunc.
func (*DestinationRuleControllerMock) OnRemoveCalls ¶
func (mock *DestinationRuleControllerMock) OnRemoveCalls() []struct { Ctx context.Context Name string Sync v1alpha3.DestinationRuleHandler }
OnRemoveCalls gets all the calls that were made to OnRemove. Check the length with:
len(mockedDestinationRuleController.OnRemoveCalls())
func (*DestinationRuleControllerMock) Patch ¶
func (mock *DestinationRuleControllerMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1alpha3a.DestinationRule, error)
Patch calls PatchFunc.
func (*DestinationRuleControllerMock) PatchCalls ¶
func (mock *DestinationRuleControllerMock) 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(mockedDestinationRuleController.PatchCalls())
func (*DestinationRuleControllerMock) Update ¶
func (mock *DestinationRuleControllerMock) Update(in1 *v1alpha3a.DestinationRule) (*v1alpha3a.DestinationRule, error)
Update calls UpdateFunc.
func (*DestinationRuleControllerMock) UpdateCalls ¶
func (mock *DestinationRuleControllerMock) UpdateCalls() []struct { In1 *v1alpha3a.DestinationRule }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedDestinationRuleController.UpdateCalls())
func (*DestinationRuleControllerMock) Updater ¶
func (mock *DestinationRuleControllerMock) Updater() generic.Updater
Updater calls UpdaterFunc.
func (*DestinationRuleControllerMock) UpdaterCalls ¶
func (mock *DestinationRuleControllerMock) UpdaterCalls() []struct { }
UpdaterCalls gets all the calls that were made to Updater. Check the length with:
len(mockedDestinationRuleController.UpdaterCalls())
func (*DestinationRuleControllerMock) Watch ¶
func (mock *DestinationRuleControllerMock) Watch(namespace string, opts v1.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*DestinationRuleControllerMock) WatchCalls ¶
func (mock *DestinationRuleControllerMock) WatchCalls() []struct { Namespace string Opts v1.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedDestinationRuleController.WatchCalls())
type GatewayCacheMock ¶
type GatewayCacheMock struct { // AddIndexerFunc mocks the AddIndexer method. AddIndexerFunc func(indexName string, indexer v1alpha3.GatewayIndexer) // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v1alpha3a.Gateway, error) // GetByIndexFunc mocks the GetByIndex method. GetByIndexFunc func(indexName string, key string) ([]*v1alpha3a.Gateway, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v1alpha3a.Gateway, error) // contains filtered or unexported fields }
GatewayCacheMock is a mock implementation of GatewayCache.
func TestSomethingThatUsesGatewayCache(t *testing.T) { // make and configure a mocked GatewayCache mockedGatewayCache := &GatewayCacheMock{ AddIndexerFunc: func(indexName string, indexer v1alpha3.GatewayIndexer) { panic("mock out the AddIndexer method") }, GetFunc: func(namespace string, name string) (*v1alpha3a.Gateway, error) { panic("mock out the Get method") }, GetByIndexFunc: func(indexName string, key string) ([]*v1alpha3a.Gateway, error) { panic("mock out the GetByIndex method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v1alpha3a.Gateway, error) { panic("mock out the List method") }, } // use mockedGatewayCache in code that requires GatewayCache // and then make assertions. }
func (*GatewayCacheMock) AddIndexer ¶
func (mock *GatewayCacheMock) AddIndexer(indexName string, indexer v1alpha3.GatewayIndexer)
AddIndexer calls AddIndexerFunc.
func (*GatewayCacheMock) AddIndexerCalls ¶
func (mock *GatewayCacheMock) AddIndexerCalls() []struct { IndexName string Indexer v1alpha3.GatewayIndexer }
AddIndexerCalls gets all the calls that were made to AddIndexer. Check the length with:
len(mockedGatewayCache.AddIndexerCalls())
func (*GatewayCacheMock) GetByIndex ¶
func (mock *GatewayCacheMock) GetByIndex(indexName string, key string) ([]*v1alpha3a.Gateway, error)
GetByIndex calls GetByIndexFunc.
func (*GatewayCacheMock) GetByIndexCalls ¶
func (mock *GatewayCacheMock) GetByIndexCalls() []struct { IndexName string Key string }
GetByIndexCalls gets all the calls that were made to GetByIndex. Check the length with:
len(mockedGatewayCache.GetByIndexCalls())
func (*GatewayCacheMock) GetCalls ¶
func (mock *GatewayCacheMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedGatewayCache.GetCalls())
type GatewayClientMock ¶
type GatewayClientMock struct { // CreateFunc mocks the Create method. CreateFunc func(in1 *v1alpha3a.Gateway) (*v1alpha3a.Gateway, error) // DeleteFunc mocks the Delete method. DeleteFunc func(namespace string, name string, options *v1.DeleteOptions) error // GetFunc mocks the Get method. GetFunc func(namespace string, name string, options v1.GetOptions) (*v1alpha3a.Gateway, error) // ListFunc mocks the List method. ListFunc func(namespace string, opts v1.ListOptions) (*v1alpha3a.GatewayList, error) // PatchFunc mocks the Patch method. PatchFunc func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1alpha3a.Gateway, error) // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v1alpha3a.Gateway) (*v1alpha3a.Gateway, error) // WatchFunc mocks the Watch method. WatchFunc func(namespace string, opts v1.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
GatewayClientMock is a mock implementation of GatewayClient.
func TestSomethingThatUsesGatewayClient(t *testing.T) { // make and configure a mocked GatewayClient mockedGatewayClient := &GatewayClientMock{ CreateFunc: func(in1 *v1alpha3a.Gateway) (*v1alpha3a.Gateway, error) { panic("mock out the Create method") }, DeleteFunc: func(namespace string, name string, options *v1.DeleteOptions) error { panic("mock out the Delete method") }, GetFunc: func(namespace string, name string, options v1.GetOptions) (*v1alpha3a.Gateway, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, opts v1.ListOptions) (*v1alpha3a.GatewayList, error) { panic("mock out the List method") }, PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1alpha3a.Gateway, error) { panic("mock out the Patch method") }, UpdateFunc: func(in1 *v1alpha3a.Gateway) (*v1alpha3a.Gateway, error) { panic("mock out the Update method") }, WatchFunc: func(namespace string, opts v1.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedGatewayClient in code that requires GatewayClient // and then make assertions. }
func (*GatewayClientMock) CreateCalls ¶
func (mock *GatewayClientMock) CreateCalls() []struct { In1 *v1alpha3a.Gateway }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedGatewayClient.CreateCalls())
func (*GatewayClientMock) Delete ¶
func (mock *GatewayClientMock) Delete(namespace string, name string, options *v1.DeleteOptions) error
Delete calls DeleteFunc.
func (*GatewayClientMock) DeleteCalls ¶
func (mock *GatewayClientMock) DeleteCalls() []struct { Namespace string Name string Options *v1.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedGatewayClient.DeleteCalls())
func (*GatewayClientMock) Get ¶
func (mock *GatewayClientMock) Get(namespace string, name string, options v1.GetOptions) (*v1alpha3a.Gateway, error)
Get calls GetFunc.
func (*GatewayClientMock) GetCalls ¶
func (mock *GatewayClientMock) GetCalls() []struct { Namespace string Name string Options v1.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedGatewayClient.GetCalls())
func (*GatewayClientMock) List ¶
func (mock *GatewayClientMock) List(namespace string, opts v1.ListOptions) (*v1alpha3a.GatewayList, error)
List calls ListFunc.
func (*GatewayClientMock) ListCalls ¶
func (mock *GatewayClientMock) ListCalls() []struct { Namespace string Opts v1.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedGatewayClient.ListCalls())
func (*GatewayClientMock) Patch ¶
func (mock *GatewayClientMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1alpha3a.Gateway, error)
Patch calls PatchFunc.
func (*GatewayClientMock) PatchCalls ¶
func (mock *GatewayClientMock) 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(mockedGatewayClient.PatchCalls())
func (*GatewayClientMock) UpdateCalls ¶
func (mock *GatewayClientMock) UpdateCalls() []struct { In1 *v1alpha3a.Gateway }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedGatewayClient.UpdateCalls())
func (*GatewayClientMock) Watch ¶
func (mock *GatewayClientMock) Watch(namespace string, opts v1.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*GatewayClientMock) WatchCalls ¶
func (mock *GatewayClientMock) WatchCalls() []struct { Namespace string Opts v1.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedGatewayClient.WatchCalls())
type GatewayControllerMock ¶
type GatewayControllerMock 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() v1alpha3.GatewayCache // CreateFunc mocks the Create method. CreateFunc func(in1 *v1alpha3a.Gateway) (*v1alpha3a.Gateway, error) // DeleteFunc mocks the Delete method. DeleteFunc func(namespace string, name string, options *v1.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 v1.GetOptions) (*v1alpha3a.Gateway, 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 v1.ListOptions) (*v1alpha3a.GatewayList, error) // OnChangeFunc mocks the OnChange method. OnChangeFunc func(ctx context.Context, name string, sync v1alpha3.GatewayHandler) // OnRemoveFunc mocks the OnRemove method. OnRemoveFunc func(ctx context.Context, name string, sync v1alpha3.GatewayHandler) // PatchFunc mocks the Patch method. PatchFunc func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1alpha3a.Gateway, error) // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v1alpha3a.Gateway) (*v1alpha3a.Gateway, error) // UpdaterFunc mocks the Updater method. UpdaterFunc func() generic.Updater // WatchFunc mocks the Watch method. WatchFunc func(namespace string, opts v1.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
GatewayControllerMock is a mock implementation of GatewayController.
func TestSomethingThatUsesGatewayController(t *testing.T) { // make and configure a mocked GatewayController mockedGatewayController := &GatewayControllerMock{ 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() v1alpha3.GatewayCache { panic("mock out the Cache method") }, CreateFunc: func(in1 *v1alpha3a.Gateway) (*v1alpha3a.Gateway, error) { panic("mock out the Create method") }, DeleteFunc: func(namespace string, name string, options *v1.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 v1.GetOptions) (*v1alpha3a.Gateway, 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 v1.ListOptions) (*v1alpha3a.GatewayList, error) { panic("mock out the List method") }, OnChangeFunc: func(ctx context.Context, name string, sync v1alpha3.GatewayHandler) { panic("mock out the OnChange method") }, OnRemoveFunc: func(ctx context.Context, name string, sync v1alpha3.GatewayHandler) { panic("mock out the OnRemove method") }, PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1alpha3a.Gateway, error) { panic("mock out the Patch method") }, UpdateFunc: func(in1 *v1alpha3a.Gateway) (*v1alpha3a.Gateway, error) { panic("mock out the Update method") }, UpdaterFunc: func() generic.Updater { panic("mock out the Updater method") }, WatchFunc: func(namespace string, opts v1.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedGatewayController in code that requires GatewayController // and then make assertions. }
func (*GatewayControllerMock) AddGenericHandler ¶
func (mock *GatewayControllerMock) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)
AddGenericHandler calls AddGenericHandlerFunc.
func (*GatewayControllerMock) AddGenericHandlerCalls ¶
func (mock *GatewayControllerMock) 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(mockedGatewayController.AddGenericHandlerCalls())
func (*GatewayControllerMock) AddGenericRemoveHandler ¶
func (mock *GatewayControllerMock) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)
AddGenericRemoveHandler calls AddGenericRemoveHandlerFunc.
func (*GatewayControllerMock) AddGenericRemoveHandlerCalls ¶
func (mock *GatewayControllerMock) 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(mockedGatewayController.AddGenericRemoveHandlerCalls())
func (*GatewayControllerMock) Cache ¶
func (mock *GatewayControllerMock) Cache() v1alpha3.GatewayCache
Cache calls CacheFunc.
func (*GatewayControllerMock) CacheCalls ¶
func (mock *GatewayControllerMock) CacheCalls() []struct { }
CacheCalls gets all the calls that were made to Cache. Check the length with:
len(mockedGatewayController.CacheCalls())
func (*GatewayControllerMock) CreateCalls ¶
func (mock *GatewayControllerMock) CreateCalls() []struct { In1 *v1alpha3a.Gateway }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedGatewayController.CreateCalls())
func (*GatewayControllerMock) Delete ¶
func (mock *GatewayControllerMock) Delete(namespace string, name string, options *v1.DeleteOptions) error
Delete calls DeleteFunc.
func (*GatewayControllerMock) DeleteCalls ¶
func (mock *GatewayControllerMock) DeleteCalls() []struct { Namespace string Name string Options *v1.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedGatewayController.DeleteCalls())
func (*GatewayControllerMock) Enqueue ¶
func (mock *GatewayControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*GatewayControllerMock) EnqueueCalls ¶
func (mock *GatewayControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedGatewayController.EnqueueCalls())
func (*GatewayControllerMock) Get ¶
func (mock *GatewayControllerMock) Get(namespace string, name string, options v1.GetOptions) (*v1alpha3a.Gateway, error)
Get calls GetFunc.
func (*GatewayControllerMock) GetCalls ¶
func (mock *GatewayControllerMock) GetCalls() []struct { Namespace string Name string Options v1.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedGatewayController.GetCalls())
func (*GatewayControllerMock) GroupVersionKind ¶
func (mock *GatewayControllerMock) GroupVersionKind() schema.GroupVersionKind
GroupVersionKind calls GroupVersionKindFunc.
func (*GatewayControllerMock) GroupVersionKindCalls ¶
func (mock *GatewayControllerMock) GroupVersionKindCalls() []struct { }
GroupVersionKindCalls gets all the calls that were made to GroupVersionKind. Check the length with:
len(mockedGatewayController.GroupVersionKindCalls())
func (*GatewayControllerMock) Informer ¶
func (mock *GatewayControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*GatewayControllerMock) InformerCalls ¶
func (mock *GatewayControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedGatewayController.InformerCalls())
func (*GatewayControllerMock) List ¶
func (mock *GatewayControllerMock) List(namespace string, opts v1.ListOptions) (*v1alpha3a.GatewayList, error)
List calls ListFunc.
func (*GatewayControllerMock) ListCalls ¶
func (mock *GatewayControllerMock) ListCalls() []struct { Namespace string Opts v1.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedGatewayController.ListCalls())
func (*GatewayControllerMock) OnChange ¶
func (mock *GatewayControllerMock) OnChange(ctx context.Context, name string, sync v1alpha3.GatewayHandler)
OnChange calls OnChangeFunc.
func (*GatewayControllerMock) OnChangeCalls ¶
func (mock *GatewayControllerMock) OnChangeCalls() []struct { Ctx context.Context Name string Sync v1alpha3.GatewayHandler }
OnChangeCalls gets all the calls that were made to OnChange. Check the length with:
len(mockedGatewayController.OnChangeCalls())
func (*GatewayControllerMock) OnRemove ¶
func (mock *GatewayControllerMock) OnRemove(ctx context.Context, name string, sync v1alpha3.GatewayHandler)
OnRemove calls OnRemoveFunc.
func (*GatewayControllerMock) OnRemoveCalls ¶
func (mock *GatewayControllerMock) OnRemoveCalls() []struct { Ctx context.Context Name string Sync v1alpha3.GatewayHandler }
OnRemoveCalls gets all the calls that were made to OnRemove. Check the length with:
len(mockedGatewayController.OnRemoveCalls())
func (*GatewayControllerMock) Patch ¶
func (mock *GatewayControllerMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1alpha3a.Gateway, error)
Patch calls PatchFunc.
func (*GatewayControllerMock) PatchCalls ¶
func (mock *GatewayControllerMock) 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(mockedGatewayController.PatchCalls())
func (*GatewayControllerMock) UpdateCalls ¶
func (mock *GatewayControllerMock) UpdateCalls() []struct { In1 *v1alpha3a.Gateway }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedGatewayController.UpdateCalls())
func (*GatewayControllerMock) Updater ¶
func (mock *GatewayControllerMock) Updater() generic.Updater
Updater calls UpdaterFunc.
func (*GatewayControllerMock) UpdaterCalls ¶
func (mock *GatewayControllerMock) UpdaterCalls() []struct { }
UpdaterCalls gets all the calls that were made to Updater. Check the length with:
len(mockedGatewayController.UpdaterCalls())
func (*GatewayControllerMock) Watch ¶
func (mock *GatewayControllerMock) Watch(namespace string, opts v1.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*GatewayControllerMock) WatchCalls ¶
func (mock *GatewayControllerMock) WatchCalls() []struct { Namespace string Opts v1.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedGatewayController.WatchCalls())
type ServiceEntryCacheMock ¶
type ServiceEntryCacheMock struct { // AddIndexerFunc mocks the AddIndexer method. AddIndexerFunc func(indexName string, indexer v1alpha3.ServiceEntryIndexer) // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v1alpha3a.ServiceEntry, error) // GetByIndexFunc mocks the GetByIndex method. GetByIndexFunc func(indexName string, key string) ([]*v1alpha3a.ServiceEntry, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v1alpha3a.ServiceEntry, error) // contains filtered or unexported fields }
ServiceEntryCacheMock is a mock implementation of ServiceEntryCache.
func TestSomethingThatUsesServiceEntryCache(t *testing.T) { // make and configure a mocked ServiceEntryCache mockedServiceEntryCache := &ServiceEntryCacheMock{ AddIndexerFunc: func(indexName string, indexer v1alpha3.ServiceEntryIndexer) { panic("mock out the AddIndexer method") }, GetFunc: func(namespace string, name string) (*v1alpha3a.ServiceEntry, error) { panic("mock out the Get method") }, GetByIndexFunc: func(indexName string, key string) ([]*v1alpha3a.ServiceEntry, error) { panic("mock out the GetByIndex method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v1alpha3a.ServiceEntry, error) { panic("mock out the List method") }, } // use mockedServiceEntryCache in code that requires ServiceEntryCache // and then make assertions. }
func (*ServiceEntryCacheMock) AddIndexer ¶
func (mock *ServiceEntryCacheMock) AddIndexer(indexName string, indexer v1alpha3.ServiceEntryIndexer)
AddIndexer calls AddIndexerFunc.
func (*ServiceEntryCacheMock) AddIndexerCalls ¶
func (mock *ServiceEntryCacheMock) AddIndexerCalls() []struct { IndexName string Indexer v1alpha3.ServiceEntryIndexer }
AddIndexerCalls gets all the calls that were made to AddIndexer. Check the length with:
len(mockedServiceEntryCache.AddIndexerCalls())
func (*ServiceEntryCacheMock) Get ¶
func (mock *ServiceEntryCacheMock) Get(namespace string, name string) (*v1alpha3a.ServiceEntry, error)
Get calls GetFunc.
func (*ServiceEntryCacheMock) GetByIndex ¶
func (mock *ServiceEntryCacheMock) GetByIndex(indexName string, key string) ([]*v1alpha3a.ServiceEntry, error)
GetByIndex calls GetByIndexFunc.
func (*ServiceEntryCacheMock) GetByIndexCalls ¶
func (mock *ServiceEntryCacheMock) GetByIndexCalls() []struct { IndexName string Key string }
GetByIndexCalls gets all the calls that were made to GetByIndex. Check the length with:
len(mockedServiceEntryCache.GetByIndexCalls())
func (*ServiceEntryCacheMock) GetCalls ¶
func (mock *ServiceEntryCacheMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedServiceEntryCache.GetCalls())
func (*ServiceEntryCacheMock) List ¶
func (mock *ServiceEntryCacheMock) List(namespace string, selector labels.Selector) ([]*v1alpha3a.ServiceEntry, error)
List calls ListFunc.
type ServiceEntryClientMock ¶
type ServiceEntryClientMock struct { // CreateFunc mocks the Create method. CreateFunc func(in1 *v1alpha3a.ServiceEntry) (*v1alpha3a.ServiceEntry, error) // DeleteFunc mocks the Delete method. DeleteFunc func(namespace string, name string, options *v1.DeleteOptions) error // GetFunc mocks the Get method. GetFunc func(namespace string, name string, options v1.GetOptions) (*v1alpha3a.ServiceEntry, error) // ListFunc mocks the List method. ListFunc func(namespace string, opts v1.ListOptions) (*v1alpha3a.ServiceEntryList, error) // PatchFunc mocks the Patch method. PatchFunc func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1alpha3a.ServiceEntry, error) // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v1alpha3a.ServiceEntry) (*v1alpha3a.ServiceEntry, error) // WatchFunc mocks the Watch method. WatchFunc func(namespace string, opts v1.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
ServiceEntryClientMock is a mock implementation of ServiceEntryClient.
func TestSomethingThatUsesServiceEntryClient(t *testing.T) { // make and configure a mocked ServiceEntryClient mockedServiceEntryClient := &ServiceEntryClientMock{ CreateFunc: func(in1 *v1alpha3a.ServiceEntry) (*v1alpha3a.ServiceEntry, error) { panic("mock out the Create method") }, DeleteFunc: func(namespace string, name string, options *v1.DeleteOptions) error { panic("mock out the Delete method") }, GetFunc: func(namespace string, name string, options v1.GetOptions) (*v1alpha3a.ServiceEntry, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, opts v1.ListOptions) (*v1alpha3a.ServiceEntryList, error) { panic("mock out the List method") }, PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1alpha3a.ServiceEntry, error) { panic("mock out the Patch method") }, UpdateFunc: func(in1 *v1alpha3a.ServiceEntry) (*v1alpha3a.ServiceEntry, error) { panic("mock out the Update method") }, WatchFunc: func(namespace string, opts v1.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedServiceEntryClient in code that requires ServiceEntryClient // and then make assertions. }
func (*ServiceEntryClientMock) Create ¶
func (mock *ServiceEntryClientMock) Create(in1 *v1alpha3a.ServiceEntry) (*v1alpha3a.ServiceEntry, error)
Create calls CreateFunc.
func (*ServiceEntryClientMock) CreateCalls ¶
func (mock *ServiceEntryClientMock) CreateCalls() []struct { In1 *v1alpha3a.ServiceEntry }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedServiceEntryClient.CreateCalls())
func (*ServiceEntryClientMock) Delete ¶
func (mock *ServiceEntryClientMock) Delete(namespace string, name string, options *v1.DeleteOptions) error
Delete calls DeleteFunc.
func (*ServiceEntryClientMock) DeleteCalls ¶
func (mock *ServiceEntryClientMock) DeleteCalls() []struct { Namespace string Name string Options *v1.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedServiceEntryClient.DeleteCalls())
func (*ServiceEntryClientMock) Get ¶
func (mock *ServiceEntryClientMock) Get(namespace string, name string, options v1.GetOptions) (*v1alpha3a.ServiceEntry, error)
Get calls GetFunc.
func (*ServiceEntryClientMock) GetCalls ¶
func (mock *ServiceEntryClientMock) GetCalls() []struct { Namespace string Name string Options v1.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedServiceEntryClient.GetCalls())
func (*ServiceEntryClientMock) List ¶
func (mock *ServiceEntryClientMock) List(namespace string, opts v1.ListOptions) (*v1alpha3a.ServiceEntryList, error)
List calls ListFunc.
func (*ServiceEntryClientMock) ListCalls ¶
func (mock *ServiceEntryClientMock) ListCalls() []struct { Namespace string Opts v1.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedServiceEntryClient.ListCalls())
func (*ServiceEntryClientMock) Patch ¶
func (mock *ServiceEntryClientMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1alpha3a.ServiceEntry, error)
Patch calls PatchFunc.
func (*ServiceEntryClientMock) PatchCalls ¶
func (mock *ServiceEntryClientMock) 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(mockedServiceEntryClient.PatchCalls())
func (*ServiceEntryClientMock) Update ¶
func (mock *ServiceEntryClientMock) Update(in1 *v1alpha3a.ServiceEntry) (*v1alpha3a.ServiceEntry, error)
Update calls UpdateFunc.
func (*ServiceEntryClientMock) UpdateCalls ¶
func (mock *ServiceEntryClientMock) UpdateCalls() []struct { In1 *v1alpha3a.ServiceEntry }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedServiceEntryClient.UpdateCalls())
func (*ServiceEntryClientMock) Watch ¶
func (mock *ServiceEntryClientMock) Watch(namespace string, opts v1.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*ServiceEntryClientMock) WatchCalls ¶
func (mock *ServiceEntryClientMock) WatchCalls() []struct { Namespace string Opts v1.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedServiceEntryClient.WatchCalls())
type ServiceEntryControllerMock ¶
type ServiceEntryControllerMock 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() v1alpha3.ServiceEntryCache // CreateFunc mocks the Create method. CreateFunc func(in1 *v1alpha3a.ServiceEntry) (*v1alpha3a.ServiceEntry, error) // DeleteFunc mocks the Delete method. DeleteFunc func(namespace string, name string, options *v1.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 v1.GetOptions) (*v1alpha3a.ServiceEntry, 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 v1.ListOptions) (*v1alpha3a.ServiceEntryList, error) // OnChangeFunc mocks the OnChange method. OnChangeFunc func(ctx context.Context, name string, sync v1alpha3.ServiceEntryHandler) // OnRemoveFunc mocks the OnRemove method. OnRemoveFunc func(ctx context.Context, name string, sync v1alpha3.ServiceEntryHandler) // PatchFunc mocks the Patch method. PatchFunc func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1alpha3a.ServiceEntry, error) // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v1alpha3a.ServiceEntry) (*v1alpha3a.ServiceEntry, error) // UpdaterFunc mocks the Updater method. UpdaterFunc func() generic.Updater // WatchFunc mocks the Watch method. WatchFunc func(namespace string, opts v1.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
ServiceEntryControllerMock is a mock implementation of ServiceEntryController.
func TestSomethingThatUsesServiceEntryController(t *testing.T) { // make and configure a mocked ServiceEntryController mockedServiceEntryController := &ServiceEntryControllerMock{ 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() v1alpha3.ServiceEntryCache { panic("mock out the Cache method") }, CreateFunc: func(in1 *v1alpha3a.ServiceEntry) (*v1alpha3a.ServiceEntry, error) { panic("mock out the Create method") }, DeleteFunc: func(namespace string, name string, options *v1.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 v1.GetOptions) (*v1alpha3a.ServiceEntry, 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 v1.ListOptions) (*v1alpha3a.ServiceEntryList, error) { panic("mock out the List method") }, OnChangeFunc: func(ctx context.Context, name string, sync v1alpha3.ServiceEntryHandler) { panic("mock out the OnChange method") }, OnRemoveFunc: func(ctx context.Context, name string, sync v1alpha3.ServiceEntryHandler) { panic("mock out the OnRemove method") }, PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1alpha3a.ServiceEntry, error) { panic("mock out the Patch method") }, UpdateFunc: func(in1 *v1alpha3a.ServiceEntry) (*v1alpha3a.ServiceEntry, error) { panic("mock out the Update method") }, UpdaterFunc: func() generic.Updater { panic("mock out the Updater method") }, WatchFunc: func(namespace string, opts v1.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedServiceEntryController in code that requires ServiceEntryController // and then make assertions. }
func (*ServiceEntryControllerMock) AddGenericHandler ¶
func (mock *ServiceEntryControllerMock) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)
AddGenericHandler calls AddGenericHandlerFunc.
func (*ServiceEntryControllerMock) AddGenericHandlerCalls ¶
func (mock *ServiceEntryControllerMock) 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(mockedServiceEntryController.AddGenericHandlerCalls())
func (*ServiceEntryControllerMock) AddGenericRemoveHandler ¶
func (mock *ServiceEntryControllerMock) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)
AddGenericRemoveHandler calls AddGenericRemoveHandlerFunc.
func (*ServiceEntryControllerMock) AddGenericRemoveHandlerCalls ¶
func (mock *ServiceEntryControllerMock) 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(mockedServiceEntryController.AddGenericRemoveHandlerCalls())
func (*ServiceEntryControllerMock) Cache ¶
func (mock *ServiceEntryControllerMock) Cache() v1alpha3.ServiceEntryCache
Cache calls CacheFunc.
func (*ServiceEntryControllerMock) CacheCalls ¶
func (mock *ServiceEntryControllerMock) CacheCalls() []struct { }
CacheCalls gets all the calls that were made to Cache. Check the length with:
len(mockedServiceEntryController.CacheCalls())
func (*ServiceEntryControllerMock) Create ¶
func (mock *ServiceEntryControllerMock) Create(in1 *v1alpha3a.ServiceEntry) (*v1alpha3a.ServiceEntry, error)
Create calls CreateFunc.
func (*ServiceEntryControllerMock) CreateCalls ¶
func (mock *ServiceEntryControllerMock) CreateCalls() []struct { In1 *v1alpha3a.ServiceEntry }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedServiceEntryController.CreateCalls())
func (*ServiceEntryControllerMock) Delete ¶
func (mock *ServiceEntryControllerMock) Delete(namespace string, name string, options *v1.DeleteOptions) error
Delete calls DeleteFunc.
func (*ServiceEntryControllerMock) DeleteCalls ¶
func (mock *ServiceEntryControllerMock) DeleteCalls() []struct { Namespace string Name string Options *v1.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedServiceEntryController.DeleteCalls())
func (*ServiceEntryControllerMock) Enqueue ¶
func (mock *ServiceEntryControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*ServiceEntryControllerMock) EnqueueCalls ¶
func (mock *ServiceEntryControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedServiceEntryController.EnqueueCalls())
func (*ServiceEntryControllerMock) Get ¶
func (mock *ServiceEntryControllerMock) Get(namespace string, name string, options v1.GetOptions) (*v1alpha3a.ServiceEntry, error)
Get calls GetFunc.
func (*ServiceEntryControllerMock) GetCalls ¶
func (mock *ServiceEntryControllerMock) GetCalls() []struct { Namespace string Name string Options v1.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedServiceEntryController.GetCalls())
func (*ServiceEntryControllerMock) GroupVersionKind ¶
func (mock *ServiceEntryControllerMock) GroupVersionKind() schema.GroupVersionKind
GroupVersionKind calls GroupVersionKindFunc.
func (*ServiceEntryControllerMock) GroupVersionKindCalls ¶
func (mock *ServiceEntryControllerMock) GroupVersionKindCalls() []struct { }
GroupVersionKindCalls gets all the calls that were made to GroupVersionKind. Check the length with:
len(mockedServiceEntryController.GroupVersionKindCalls())
func (*ServiceEntryControllerMock) Informer ¶
func (mock *ServiceEntryControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*ServiceEntryControllerMock) InformerCalls ¶
func (mock *ServiceEntryControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedServiceEntryController.InformerCalls())
func (*ServiceEntryControllerMock) List ¶
func (mock *ServiceEntryControllerMock) List(namespace string, opts v1.ListOptions) (*v1alpha3a.ServiceEntryList, error)
List calls ListFunc.
func (*ServiceEntryControllerMock) ListCalls ¶
func (mock *ServiceEntryControllerMock) ListCalls() []struct { Namespace string Opts v1.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedServiceEntryController.ListCalls())
func (*ServiceEntryControllerMock) OnChange ¶
func (mock *ServiceEntryControllerMock) OnChange(ctx context.Context, name string, sync v1alpha3.ServiceEntryHandler)
OnChange calls OnChangeFunc.
func (*ServiceEntryControllerMock) OnChangeCalls ¶
func (mock *ServiceEntryControllerMock) OnChangeCalls() []struct { Ctx context.Context Name string Sync v1alpha3.ServiceEntryHandler }
OnChangeCalls gets all the calls that were made to OnChange. Check the length with:
len(mockedServiceEntryController.OnChangeCalls())
func (*ServiceEntryControllerMock) OnRemove ¶
func (mock *ServiceEntryControllerMock) OnRemove(ctx context.Context, name string, sync v1alpha3.ServiceEntryHandler)
OnRemove calls OnRemoveFunc.
func (*ServiceEntryControllerMock) OnRemoveCalls ¶
func (mock *ServiceEntryControllerMock) OnRemoveCalls() []struct { Ctx context.Context Name string Sync v1alpha3.ServiceEntryHandler }
OnRemoveCalls gets all the calls that were made to OnRemove. Check the length with:
len(mockedServiceEntryController.OnRemoveCalls())
func (*ServiceEntryControllerMock) Patch ¶
func (mock *ServiceEntryControllerMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1alpha3a.ServiceEntry, error)
Patch calls PatchFunc.
func (*ServiceEntryControllerMock) PatchCalls ¶
func (mock *ServiceEntryControllerMock) 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(mockedServiceEntryController.PatchCalls())
func (*ServiceEntryControllerMock) Update ¶
func (mock *ServiceEntryControllerMock) Update(in1 *v1alpha3a.ServiceEntry) (*v1alpha3a.ServiceEntry, error)
Update calls UpdateFunc.
func (*ServiceEntryControllerMock) UpdateCalls ¶
func (mock *ServiceEntryControllerMock) UpdateCalls() []struct { In1 *v1alpha3a.ServiceEntry }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedServiceEntryController.UpdateCalls())
func (*ServiceEntryControllerMock) Updater ¶
func (mock *ServiceEntryControllerMock) Updater() generic.Updater
Updater calls UpdaterFunc.
func (*ServiceEntryControllerMock) UpdaterCalls ¶
func (mock *ServiceEntryControllerMock) UpdaterCalls() []struct { }
UpdaterCalls gets all the calls that were made to Updater. Check the length with:
len(mockedServiceEntryController.UpdaterCalls())
func (*ServiceEntryControllerMock) Watch ¶
func (mock *ServiceEntryControllerMock) Watch(namespace string, opts v1.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*ServiceEntryControllerMock) WatchCalls ¶
func (mock *ServiceEntryControllerMock) WatchCalls() []struct { Namespace string Opts v1.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedServiceEntryController.WatchCalls())
type VirtualServiceCacheMock ¶
type VirtualServiceCacheMock struct { // AddIndexerFunc mocks the AddIndexer method. AddIndexerFunc func(indexName string, indexer v1alpha3.VirtualServiceIndexer) // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v1alpha3a.VirtualService, error) // GetByIndexFunc mocks the GetByIndex method. GetByIndexFunc func(indexName string, key string) ([]*v1alpha3a.VirtualService, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v1alpha3a.VirtualService, error) // contains filtered or unexported fields }
VirtualServiceCacheMock is a mock implementation of VirtualServiceCache.
func TestSomethingThatUsesVirtualServiceCache(t *testing.T) { // make and configure a mocked VirtualServiceCache mockedVirtualServiceCache := &VirtualServiceCacheMock{ AddIndexerFunc: func(indexName string, indexer v1alpha3.VirtualServiceIndexer) { panic("mock out the AddIndexer method") }, GetFunc: func(namespace string, name string) (*v1alpha3a.VirtualService, error) { panic("mock out the Get method") }, GetByIndexFunc: func(indexName string, key string) ([]*v1alpha3a.VirtualService, error) { panic("mock out the GetByIndex method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v1alpha3a.VirtualService, error) { panic("mock out the List method") }, } // use mockedVirtualServiceCache in code that requires VirtualServiceCache // and then make assertions. }
func (*VirtualServiceCacheMock) AddIndexer ¶
func (mock *VirtualServiceCacheMock) AddIndexer(indexName string, indexer v1alpha3.VirtualServiceIndexer)
AddIndexer calls AddIndexerFunc.
func (*VirtualServiceCacheMock) AddIndexerCalls ¶
func (mock *VirtualServiceCacheMock) AddIndexerCalls() []struct { IndexName string Indexer v1alpha3.VirtualServiceIndexer }
AddIndexerCalls gets all the calls that were made to AddIndexer. Check the length with:
len(mockedVirtualServiceCache.AddIndexerCalls())
func (*VirtualServiceCacheMock) Get ¶
func (mock *VirtualServiceCacheMock) Get(namespace string, name string) (*v1alpha3a.VirtualService, error)
Get calls GetFunc.
func (*VirtualServiceCacheMock) GetByIndex ¶
func (mock *VirtualServiceCacheMock) GetByIndex(indexName string, key string) ([]*v1alpha3a.VirtualService, error)
GetByIndex calls GetByIndexFunc.
func (*VirtualServiceCacheMock) GetByIndexCalls ¶
func (mock *VirtualServiceCacheMock) GetByIndexCalls() []struct { IndexName string Key string }
GetByIndexCalls gets all the calls that were made to GetByIndex. Check the length with:
len(mockedVirtualServiceCache.GetByIndexCalls())
func (*VirtualServiceCacheMock) GetCalls ¶
func (mock *VirtualServiceCacheMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedVirtualServiceCache.GetCalls())
func (*VirtualServiceCacheMock) List ¶
func (mock *VirtualServiceCacheMock) List(namespace string, selector labels.Selector) ([]*v1alpha3a.VirtualService, error)
List calls ListFunc.
type VirtualServiceClientMock ¶
type VirtualServiceClientMock struct { // CreateFunc mocks the Create method. CreateFunc func(in1 *v1alpha3a.VirtualService) (*v1alpha3a.VirtualService, error) // DeleteFunc mocks the Delete method. DeleteFunc func(namespace string, name string, options *v1.DeleteOptions) error // GetFunc mocks the Get method. GetFunc func(namespace string, name string, options v1.GetOptions) (*v1alpha3a.VirtualService, error) // ListFunc mocks the List method. ListFunc func(namespace string, opts v1.ListOptions) (*v1alpha3a.VirtualServiceList, error) // PatchFunc mocks the Patch method. PatchFunc func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1alpha3a.VirtualService, error) // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v1alpha3a.VirtualService) (*v1alpha3a.VirtualService, error) // WatchFunc mocks the Watch method. WatchFunc func(namespace string, opts v1.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
VirtualServiceClientMock is a mock implementation of VirtualServiceClient.
func TestSomethingThatUsesVirtualServiceClient(t *testing.T) { // make and configure a mocked VirtualServiceClient mockedVirtualServiceClient := &VirtualServiceClientMock{ CreateFunc: func(in1 *v1alpha3a.VirtualService) (*v1alpha3a.VirtualService, error) { panic("mock out the Create method") }, DeleteFunc: func(namespace string, name string, options *v1.DeleteOptions) error { panic("mock out the Delete method") }, GetFunc: func(namespace string, name string, options v1.GetOptions) (*v1alpha3a.VirtualService, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, opts v1.ListOptions) (*v1alpha3a.VirtualServiceList, error) { panic("mock out the List method") }, PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1alpha3a.VirtualService, error) { panic("mock out the Patch method") }, UpdateFunc: func(in1 *v1alpha3a.VirtualService) (*v1alpha3a.VirtualService, error) { panic("mock out the Update method") }, WatchFunc: func(namespace string, opts v1.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedVirtualServiceClient in code that requires VirtualServiceClient // and then make assertions. }
func (*VirtualServiceClientMock) Create ¶
func (mock *VirtualServiceClientMock) Create(in1 *v1alpha3a.VirtualService) (*v1alpha3a.VirtualService, error)
Create calls CreateFunc.
func (*VirtualServiceClientMock) CreateCalls ¶
func (mock *VirtualServiceClientMock) CreateCalls() []struct { In1 *v1alpha3a.VirtualService }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedVirtualServiceClient.CreateCalls())
func (*VirtualServiceClientMock) Delete ¶
func (mock *VirtualServiceClientMock) Delete(namespace string, name string, options *v1.DeleteOptions) error
Delete calls DeleteFunc.
func (*VirtualServiceClientMock) DeleteCalls ¶
func (mock *VirtualServiceClientMock) DeleteCalls() []struct { Namespace string Name string Options *v1.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedVirtualServiceClient.DeleteCalls())
func (*VirtualServiceClientMock) Get ¶
func (mock *VirtualServiceClientMock) Get(namespace string, name string, options v1.GetOptions) (*v1alpha3a.VirtualService, error)
Get calls GetFunc.
func (*VirtualServiceClientMock) GetCalls ¶
func (mock *VirtualServiceClientMock) GetCalls() []struct { Namespace string Name string Options v1.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedVirtualServiceClient.GetCalls())
func (*VirtualServiceClientMock) List ¶
func (mock *VirtualServiceClientMock) List(namespace string, opts v1.ListOptions) (*v1alpha3a.VirtualServiceList, error)
List calls ListFunc.
func (*VirtualServiceClientMock) ListCalls ¶
func (mock *VirtualServiceClientMock) ListCalls() []struct { Namespace string Opts v1.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedVirtualServiceClient.ListCalls())
func (*VirtualServiceClientMock) Patch ¶
func (mock *VirtualServiceClientMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1alpha3a.VirtualService, error)
Patch calls PatchFunc.
func (*VirtualServiceClientMock) PatchCalls ¶
func (mock *VirtualServiceClientMock) 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(mockedVirtualServiceClient.PatchCalls())
func (*VirtualServiceClientMock) Update ¶
func (mock *VirtualServiceClientMock) Update(in1 *v1alpha3a.VirtualService) (*v1alpha3a.VirtualService, error)
Update calls UpdateFunc.
func (*VirtualServiceClientMock) UpdateCalls ¶
func (mock *VirtualServiceClientMock) UpdateCalls() []struct { In1 *v1alpha3a.VirtualService }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedVirtualServiceClient.UpdateCalls())
func (*VirtualServiceClientMock) Watch ¶
func (mock *VirtualServiceClientMock) Watch(namespace string, opts v1.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*VirtualServiceClientMock) WatchCalls ¶
func (mock *VirtualServiceClientMock) WatchCalls() []struct { Namespace string Opts v1.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedVirtualServiceClient.WatchCalls())
type VirtualServiceControllerMock ¶
type VirtualServiceControllerMock 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() v1alpha3.VirtualServiceCache // CreateFunc mocks the Create method. CreateFunc func(in1 *v1alpha3a.VirtualService) (*v1alpha3a.VirtualService, error) // DeleteFunc mocks the Delete method. DeleteFunc func(namespace string, name string, options *v1.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 v1.GetOptions) (*v1alpha3a.VirtualService, 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 v1.ListOptions) (*v1alpha3a.VirtualServiceList, error) // OnChangeFunc mocks the OnChange method. OnChangeFunc func(ctx context.Context, name string, sync v1alpha3.VirtualServiceHandler) // OnRemoveFunc mocks the OnRemove method. OnRemoveFunc func(ctx context.Context, name string, sync v1alpha3.VirtualServiceHandler) // PatchFunc mocks the Patch method. PatchFunc func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1alpha3a.VirtualService, error) // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v1alpha3a.VirtualService) (*v1alpha3a.VirtualService, error) // UpdaterFunc mocks the Updater method. UpdaterFunc func() generic.Updater // WatchFunc mocks the Watch method. WatchFunc func(namespace string, opts v1.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
VirtualServiceControllerMock is a mock implementation of VirtualServiceController.
func TestSomethingThatUsesVirtualServiceController(t *testing.T) { // make and configure a mocked VirtualServiceController mockedVirtualServiceController := &VirtualServiceControllerMock{ 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() v1alpha3.VirtualServiceCache { panic("mock out the Cache method") }, CreateFunc: func(in1 *v1alpha3a.VirtualService) (*v1alpha3a.VirtualService, error) { panic("mock out the Create method") }, DeleteFunc: func(namespace string, name string, options *v1.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 v1.GetOptions) (*v1alpha3a.VirtualService, 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 v1.ListOptions) (*v1alpha3a.VirtualServiceList, error) { panic("mock out the List method") }, OnChangeFunc: func(ctx context.Context, name string, sync v1alpha3.VirtualServiceHandler) { panic("mock out the OnChange method") }, OnRemoveFunc: func(ctx context.Context, name string, sync v1alpha3.VirtualServiceHandler) { panic("mock out the OnRemove method") }, PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1alpha3a.VirtualService, error) { panic("mock out the Patch method") }, UpdateFunc: func(in1 *v1alpha3a.VirtualService) (*v1alpha3a.VirtualService, error) { panic("mock out the Update method") }, UpdaterFunc: func() generic.Updater { panic("mock out the Updater method") }, WatchFunc: func(namespace string, opts v1.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedVirtualServiceController in code that requires VirtualServiceController // and then make assertions. }
func (*VirtualServiceControllerMock) AddGenericHandler ¶
func (mock *VirtualServiceControllerMock) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)
AddGenericHandler calls AddGenericHandlerFunc.
func (*VirtualServiceControllerMock) AddGenericHandlerCalls ¶
func (mock *VirtualServiceControllerMock) 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(mockedVirtualServiceController.AddGenericHandlerCalls())
func (*VirtualServiceControllerMock) AddGenericRemoveHandler ¶
func (mock *VirtualServiceControllerMock) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)
AddGenericRemoveHandler calls AddGenericRemoveHandlerFunc.
func (*VirtualServiceControllerMock) AddGenericRemoveHandlerCalls ¶
func (mock *VirtualServiceControllerMock) 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(mockedVirtualServiceController.AddGenericRemoveHandlerCalls())
func (*VirtualServiceControllerMock) Cache ¶
func (mock *VirtualServiceControllerMock) Cache() v1alpha3.VirtualServiceCache
Cache calls CacheFunc.
func (*VirtualServiceControllerMock) CacheCalls ¶
func (mock *VirtualServiceControllerMock) CacheCalls() []struct { }
CacheCalls gets all the calls that were made to Cache. Check the length with:
len(mockedVirtualServiceController.CacheCalls())
func (*VirtualServiceControllerMock) Create ¶
func (mock *VirtualServiceControllerMock) Create(in1 *v1alpha3a.VirtualService) (*v1alpha3a.VirtualService, error)
Create calls CreateFunc.
func (*VirtualServiceControllerMock) CreateCalls ¶
func (mock *VirtualServiceControllerMock) CreateCalls() []struct { In1 *v1alpha3a.VirtualService }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedVirtualServiceController.CreateCalls())
func (*VirtualServiceControllerMock) Delete ¶
func (mock *VirtualServiceControllerMock) Delete(namespace string, name string, options *v1.DeleteOptions) error
Delete calls DeleteFunc.
func (*VirtualServiceControllerMock) DeleteCalls ¶
func (mock *VirtualServiceControllerMock) DeleteCalls() []struct { Namespace string Name string Options *v1.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedVirtualServiceController.DeleteCalls())
func (*VirtualServiceControllerMock) Enqueue ¶
func (mock *VirtualServiceControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*VirtualServiceControllerMock) EnqueueCalls ¶
func (mock *VirtualServiceControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedVirtualServiceController.EnqueueCalls())
func (*VirtualServiceControllerMock) Get ¶
func (mock *VirtualServiceControllerMock) Get(namespace string, name string, options v1.GetOptions) (*v1alpha3a.VirtualService, error)
Get calls GetFunc.
func (*VirtualServiceControllerMock) GetCalls ¶
func (mock *VirtualServiceControllerMock) GetCalls() []struct { Namespace string Name string Options v1.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedVirtualServiceController.GetCalls())
func (*VirtualServiceControllerMock) GroupVersionKind ¶
func (mock *VirtualServiceControllerMock) GroupVersionKind() schema.GroupVersionKind
GroupVersionKind calls GroupVersionKindFunc.
func (*VirtualServiceControllerMock) GroupVersionKindCalls ¶
func (mock *VirtualServiceControllerMock) GroupVersionKindCalls() []struct { }
GroupVersionKindCalls gets all the calls that were made to GroupVersionKind. Check the length with:
len(mockedVirtualServiceController.GroupVersionKindCalls())
func (*VirtualServiceControllerMock) Informer ¶
func (mock *VirtualServiceControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*VirtualServiceControllerMock) InformerCalls ¶
func (mock *VirtualServiceControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedVirtualServiceController.InformerCalls())
func (*VirtualServiceControllerMock) List ¶
func (mock *VirtualServiceControllerMock) List(namespace string, opts v1.ListOptions) (*v1alpha3a.VirtualServiceList, error)
List calls ListFunc.
func (*VirtualServiceControllerMock) ListCalls ¶
func (mock *VirtualServiceControllerMock) ListCalls() []struct { Namespace string Opts v1.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedVirtualServiceController.ListCalls())
func (*VirtualServiceControllerMock) OnChange ¶
func (mock *VirtualServiceControllerMock) OnChange(ctx context.Context, name string, sync v1alpha3.VirtualServiceHandler)
OnChange calls OnChangeFunc.
func (*VirtualServiceControllerMock) OnChangeCalls ¶
func (mock *VirtualServiceControllerMock) OnChangeCalls() []struct { Ctx context.Context Name string Sync v1alpha3.VirtualServiceHandler }
OnChangeCalls gets all the calls that were made to OnChange. Check the length with:
len(mockedVirtualServiceController.OnChangeCalls())
func (*VirtualServiceControllerMock) OnRemove ¶
func (mock *VirtualServiceControllerMock) OnRemove(ctx context.Context, name string, sync v1alpha3.VirtualServiceHandler)
OnRemove calls OnRemoveFunc.
func (*VirtualServiceControllerMock) OnRemoveCalls ¶
func (mock *VirtualServiceControllerMock) OnRemoveCalls() []struct { Ctx context.Context Name string Sync v1alpha3.VirtualServiceHandler }
OnRemoveCalls gets all the calls that were made to OnRemove. Check the length with:
len(mockedVirtualServiceController.OnRemoveCalls())
func (*VirtualServiceControllerMock) Patch ¶
func (mock *VirtualServiceControllerMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1alpha3a.VirtualService, error)
Patch calls PatchFunc.
func (*VirtualServiceControllerMock) PatchCalls ¶
func (mock *VirtualServiceControllerMock) 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(mockedVirtualServiceController.PatchCalls())
func (*VirtualServiceControllerMock) Update ¶
func (mock *VirtualServiceControllerMock) Update(in1 *v1alpha3a.VirtualService) (*v1alpha3a.VirtualService, error)
Update calls UpdateFunc.
func (*VirtualServiceControllerMock) UpdateCalls ¶
func (mock *VirtualServiceControllerMock) UpdateCalls() []struct { In1 *v1alpha3a.VirtualService }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedVirtualServiceController.UpdateCalls())
func (*VirtualServiceControllerMock) Updater ¶
func (mock *VirtualServiceControllerMock) Updater() generic.Updater
Updater calls UpdaterFunc.
func (*VirtualServiceControllerMock) UpdaterCalls ¶
func (mock *VirtualServiceControllerMock) UpdaterCalls() []struct { }
UpdaterCalls gets all the calls that were made to Updater. Check the length with:
len(mockedVirtualServiceController.UpdaterCalls())
func (*VirtualServiceControllerMock) Watch ¶
func (mock *VirtualServiceControllerMock) Watch(namespace string, opts v1.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*VirtualServiceControllerMock) WatchCalls ¶
func (mock *VirtualServiceControllerMock) WatchCalls() []struct { Namespace string Opts v1.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedVirtualServiceController.WatchCalls())