Documentation ¶
Index ¶
- type DestinationRuleControllerMock
- func (mock *DestinationRuleControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *DestinationRuleControllerMock) AddClusterScopedFeatureHandlerCalls() []struct{ ... }
- func (mock *DestinationRuleControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *DestinationRuleControllerMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *DestinationRuleControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *DestinationRuleControllerMock) AddFeatureHandlerCalls() []struct{ ... }
- func (mock *DestinationRuleControllerMock) AddHandler(ctx context.Context, name string, handler v1alpha3a.DestinationRuleHandlerFunc)
- func (mock *DestinationRuleControllerMock) AddHandlerCalls() []struct{ ... }
- func (mock *DestinationRuleControllerMock) Enqueue(namespace string, name string)
- func (mock *DestinationRuleControllerMock) EnqueueAfter(namespace string, name string, after time.Duration)
- func (mock *DestinationRuleControllerMock) EnqueueAfterCalls() []struct{ ... }
- func (mock *DestinationRuleControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *DestinationRuleControllerMock) Generic() controller.GenericController
- func (mock *DestinationRuleControllerMock) GenericCalls() []struct{}
- func (mock *DestinationRuleControllerMock) Informer() cache.SharedIndexInformer
- func (mock *DestinationRuleControllerMock) InformerCalls() []struct{}
- func (mock *DestinationRuleControllerMock) Lister() v1alpha3a.DestinationRuleLister
- func (mock *DestinationRuleControllerMock) ListerCalls() []struct{}
- func (mock *DestinationRuleControllerMock) Start(ctx context.Context, threadiness int) error
- func (mock *DestinationRuleControllerMock) StartCalls() []struct{ ... }
- func (mock *DestinationRuleControllerMock) Sync(ctx context.Context) error
- func (mock *DestinationRuleControllerMock) SyncCalls() []struct{ ... }
- type DestinationRuleInterfaceMock
- func (mock *DestinationRuleInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *DestinationRuleInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct{ ... }
- func (mock *DestinationRuleInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *DestinationRuleInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct{ ... }
- func (mock *DestinationRuleInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *DestinationRuleInterfaceMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *DestinationRuleInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, ...)
- func (mock *DestinationRuleInterfaceMock) AddClusterScopedLifecycleCalls() []struct{ ... }
- func (mock *DestinationRuleInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *DestinationRuleInterfaceMock) AddFeatureHandlerCalls() []struct{ ... }
- func (mock *DestinationRuleInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *DestinationRuleInterfaceMock) AddFeatureLifecycleCalls() []struct{ ... }
- func (mock *DestinationRuleInterfaceMock) AddHandler(ctx context.Context, name string, sync v1alpha3a.DestinationRuleHandlerFunc)
- func (mock *DestinationRuleInterfaceMock) AddHandlerCalls() []struct{ ... }
- func (mock *DestinationRuleInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1alpha3a.DestinationRuleLifecycle)
- func (mock *DestinationRuleInterfaceMock) AddLifecycleCalls() []struct{ ... }
- func (mock *DestinationRuleInterfaceMock) Controller() v1alpha3a.DestinationRuleController
- func (mock *DestinationRuleInterfaceMock) ControllerCalls() []struct{}
- func (mock *DestinationRuleInterfaceMock) Create(in1 *v1alpha3.DestinationRule) (*v1alpha3.DestinationRule, error)
- func (mock *DestinationRuleInterfaceMock) CreateCalls() []struct{ ... }
- func (mock *DestinationRuleInterfaceMock) Delete(name string, options *v1.DeleteOptions) error
- func (mock *DestinationRuleInterfaceMock) DeleteCalls() []struct{ ... }
- func (mock *DestinationRuleInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error
- func (mock *DestinationRuleInterfaceMock) DeleteCollectionCalls() []struct{ ... }
- func (mock *DestinationRuleInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error
- func (mock *DestinationRuleInterfaceMock) DeleteNamespacedCalls() []struct{ ... }
- func (mock *DestinationRuleInterfaceMock) Get(name string, opts v1.GetOptions) (*v1alpha3.DestinationRule, error)
- func (mock *DestinationRuleInterfaceMock) GetCalls() []struct{ ... }
- func (mock *DestinationRuleInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v1alpha3.DestinationRule, error)
- func (mock *DestinationRuleInterfaceMock) GetNamespacedCalls() []struct{ ... }
- func (mock *DestinationRuleInterfaceMock) List(opts v1.ListOptions) (*v1alpha3a.DestinationRuleList, error)
- func (mock *DestinationRuleInterfaceMock) ListCalls() []struct{ ... }
- func (mock *DestinationRuleInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v1alpha3a.DestinationRuleList, error)
- func (mock *DestinationRuleInterfaceMock) ListNamespacedCalls() []struct{ ... }
- func (mock *DestinationRuleInterfaceMock) ObjectClient() *objectclient.ObjectClient
- func (mock *DestinationRuleInterfaceMock) ObjectClientCalls() []struct{}
- func (mock *DestinationRuleInterfaceMock) Update(in1 *v1alpha3.DestinationRule) (*v1alpha3.DestinationRule, error)
- func (mock *DestinationRuleInterfaceMock) UpdateCalls() []struct{ ... }
- func (mock *DestinationRuleInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error)
- func (mock *DestinationRuleInterfaceMock) WatchCalls() []struct{ ... }
- type DestinationRuleListerMock
- func (mock *DestinationRuleListerMock) Get(namespace string, name string) (*v1alpha3.DestinationRule, error)
- func (mock *DestinationRuleListerMock) GetCalls() []struct{ ... }
- func (mock *DestinationRuleListerMock) List(namespace string, selector labels.Selector) ([]*v1alpha3.DestinationRule, error)
- func (mock *DestinationRuleListerMock) ListCalls() []struct{ ... }
- type DestinationRulesGetterMock
- type VirtualServiceControllerMock
- func (mock *VirtualServiceControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *VirtualServiceControllerMock) AddClusterScopedFeatureHandlerCalls() []struct{ ... }
- func (mock *VirtualServiceControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *VirtualServiceControllerMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *VirtualServiceControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *VirtualServiceControllerMock) AddFeatureHandlerCalls() []struct{ ... }
- func (mock *VirtualServiceControllerMock) AddHandler(ctx context.Context, name string, handler v1alpha3a.VirtualServiceHandlerFunc)
- func (mock *VirtualServiceControllerMock) AddHandlerCalls() []struct{ ... }
- func (mock *VirtualServiceControllerMock) Enqueue(namespace string, name string)
- func (mock *VirtualServiceControllerMock) EnqueueAfter(namespace string, name string, after time.Duration)
- func (mock *VirtualServiceControllerMock) EnqueueAfterCalls() []struct{ ... }
- func (mock *VirtualServiceControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *VirtualServiceControllerMock) Generic() controller.GenericController
- func (mock *VirtualServiceControllerMock) GenericCalls() []struct{}
- func (mock *VirtualServiceControllerMock) Informer() cache.SharedIndexInformer
- func (mock *VirtualServiceControllerMock) InformerCalls() []struct{}
- func (mock *VirtualServiceControllerMock) Lister() v1alpha3a.VirtualServiceLister
- func (mock *VirtualServiceControllerMock) ListerCalls() []struct{}
- func (mock *VirtualServiceControllerMock) Start(ctx context.Context, threadiness int) error
- func (mock *VirtualServiceControllerMock) StartCalls() []struct{ ... }
- func (mock *VirtualServiceControllerMock) Sync(ctx context.Context) error
- func (mock *VirtualServiceControllerMock) SyncCalls() []struct{ ... }
- type VirtualServiceInterfaceMock
- func (mock *VirtualServiceInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *VirtualServiceInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct{ ... }
- func (mock *VirtualServiceInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *VirtualServiceInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct{ ... }
- func (mock *VirtualServiceInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *VirtualServiceInterfaceMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *VirtualServiceInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, ...)
- func (mock *VirtualServiceInterfaceMock) AddClusterScopedLifecycleCalls() []struct{ ... }
- func (mock *VirtualServiceInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *VirtualServiceInterfaceMock) AddFeatureHandlerCalls() []struct{ ... }
- func (mock *VirtualServiceInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *VirtualServiceInterfaceMock) AddFeatureLifecycleCalls() []struct{ ... }
- func (mock *VirtualServiceInterfaceMock) AddHandler(ctx context.Context, name string, sync v1alpha3a.VirtualServiceHandlerFunc)
- func (mock *VirtualServiceInterfaceMock) AddHandlerCalls() []struct{ ... }
- func (mock *VirtualServiceInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1alpha3a.VirtualServiceLifecycle)
- func (mock *VirtualServiceInterfaceMock) AddLifecycleCalls() []struct{ ... }
- func (mock *VirtualServiceInterfaceMock) Controller() v1alpha3a.VirtualServiceController
- func (mock *VirtualServiceInterfaceMock) ControllerCalls() []struct{}
- func (mock *VirtualServiceInterfaceMock) Create(in1 *v1alpha3.VirtualService) (*v1alpha3.VirtualService, error)
- func (mock *VirtualServiceInterfaceMock) CreateCalls() []struct{ ... }
- func (mock *VirtualServiceInterfaceMock) Delete(name string, options *v1.DeleteOptions) error
- func (mock *VirtualServiceInterfaceMock) DeleteCalls() []struct{ ... }
- func (mock *VirtualServiceInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error
- func (mock *VirtualServiceInterfaceMock) DeleteCollectionCalls() []struct{ ... }
- func (mock *VirtualServiceInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error
- func (mock *VirtualServiceInterfaceMock) DeleteNamespacedCalls() []struct{ ... }
- func (mock *VirtualServiceInterfaceMock) Get(name string, opts v1.GetOptions) (*v1alpha3.VirtualService, error)
- func (mock *VirtualServiceInterfaceMock) GetCalls() []struct{ ... }
- func (mock *VirtualServiceInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v1alpha3.VirtualService, error)
- func (mock *VirtualServiceInterfaceMock) GetNamespacedCalls() []struct{ ... }
- func (mock *VirtualServiceInterfaceMock) List(opts v1.ListOptions) (*v1alpha3a.VirtualServiceList, error)
- func (mock *VirtualServiceInterfaceMock) ListCalls() []struct{ ... }
- func (mock *VirtualServiceInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v1alpha3a.VirtualServiceList, error)
- func (mock *VirtualServiceInterfaceMock) ListNamespacedCalls() []struct{ ... }
- func (mock *VirtualServiceInterfaceMock) ObjectClient() *objectclient.ObjectClient
- func (mock *VirtualServiceInterfaceMock) ObjectClientCalls() []struct{}
- func (mock *VirtualServiceInterfaceMock) Update(in1 *v1alpha3.VirtualService) (*v1alpha3.VirtualService, error)
- func (mock *VirtualServiceInterfaceMock) UpdateCalls() []struct{ ... }
- func (mock *VirtualServiceInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error)
- func (mock *VirtualServiceInterfaceMock) WatchCalls() []struct{ ... }
- type VirtualServiceListerMock
- func (mock *VirtualServiceListerMock) Get(namespace string, name string) (*v1alpha3.VirtualService, error)
- func (mock *VirtualServiceListerMock) GetCalls() []struct{ ... }
- func (mock *VirtualServiceListerMock) List(namespace string, selector labels.Selector) ([]*v1alpha3.VirtualService, error)
- func (mock *VirtualServiceListerMock) ListCalls() []struct{ ... }
- type VirtualServicesGetterMock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DestinationRuleControllerMock ¶
type DestinationRuleControllerMock struct { // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1alpha3a.DestinationRuleHandlerFunc) // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v1alpha3a.DestinationRuleHandlerFunc) // AddFeatureHandlerFunc mocks the AddFeatureHandler method. AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1alpha3a.DestinationRuleHandlerFunc) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, handler v1alpha3a.DestinationRuleHandlerFunc) // EnqueueFunc mocks the Enqueue method. EnqueueFunc func(namespace string, name string) // EnqueueAfterFunc mocks the EnqueueAfter method. EnqueueAfterFunc func(namespace string, name string, after time.Duration) // GenericFunc mocks the Generic method. GenericFunc func() controller.GenericController // InformerFunc mocks the Informer method. InformerFunc func() cache.SharedIndexInformer // ListerFunc mocks the Lister method. ListerFunc func() v1alpha3a.DestinationRuleLister // StartFunc mocks the Start method. StartFunc func(ctx context.Context, threadiness int) error // SyncFunc mocks the Sync method. SyncFunc func(ctx context.Context) 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{ AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1alpha3a.DestinationRuleHandlerFunc) { panic("mock out the AddClusterScopedFeatureHandler method") }, AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v1alpha3a.DestinationRuleHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1alpha3a.DestinationRuleHandlerFunc) { panic("mock out the AddFeatureHandler method") }, AddHandlerFunc: func(ctx context.Context, name string, handler v1alpha3a.DestinationRuleHandlerFunc) { panic("mock out the AddHandler method") }, EnqueueFunc: func(namespace string, name string) { panic("mock out the Enqueue method") }, EnqueueAfterFunc: func(namespace string, name string, after time.Duration) { panic("mock out the EnqueueAfter method") }, GenericFunc: func() controller.GenericController { panic("mock out the Generic method") }, InformerFunc: func() cache.SharedIndexInformer { panic("mock out the Informer method") }, ListerFunc: func() v1alpha3a.DestinationRuleLister { panic("mock out the Lister method") }, StartFunc: func(ctx context.Context, threadiness int) error { panic("mock out the Start method") }, SyncFunc: func(ctx context.Context) error { panic("mock out the Sync method") }, } // use mockedDestinationRuleController in code that requires DestinationRuleController // and then make assertions. }
func (*DestinationRuleControllerMock) AddClusterScopedFeatureHandler ¶
func (mock *DestinationRuleControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1alpha3a.DestinationRuleHandlerFunc)
AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.
func (*DestinationRuleControllerMock) AddClusterScopedFeatureHandlerCalls ¶
func (mock *DestinationRuleControllerMock) AddClusterScopedFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Handler v1alpha3a.DestinationRuleHandlerFunc }
AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:
len(mockedDestinationRuleController.AddClusterScopedFeatureHandlerCalls())
func (*DestinationRuleControllerMock) AddClusterScopedHandler ¶
func (mock *DestinationRuleControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v1alpha3a.DestinationRuleHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*DestinationRuleControllerMock) AddClusterScopedHandlerCalls ¶
func (mock *DestinationRuleControllerMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Handler v1alpha3a.DestinationRuleHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedDestinationRuleController.AddClusterScopedHandlerCalls())
func (*DestinationRuleControllerMock) AddFeatureHandler ¶
func (mock *DestinationRuleControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1alpha3a.DestinationRuleHandlerFunc)
AddFeatureHandler calls AddFeatureHandlerFunc.
func (*DestinationRuleControllerMock) AddFeatureHandlerCalls ¶
func (mock *DestinationRuleControllerMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string Sync v1alpha3a.DestinationRuleHandlerFunc }
AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:
len(mockedDestinationRuleController.AddFeatureHandlerCalls())
func (*DestinationRuleControllerMock) AddHandler ¶
func (mock *DestinationRuleControllerMock) AddHandler(ctx context.Context, name string, handler v1alpha3a.DestinationRuleHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*DestinationRuleControllerMock) AddHandlerCalls ¶
func (mock *DestinationRuleControllerMock) AddHandlerCalls() []struct { Ctx context.Context Name string Handler v1alpha3a.DestinationRuleHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedDestinationRuleController.AddHandlerCalls())
func (*DestinationRuleControllerMock) Enqueue ¶
func (mock *DestinationRuleControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*DestinationRuleControllerMock) EnqueueAfter ¶
func (mock *DestinationRuleControllerMock) EnqueueAfter(namespace string, name string, after time.Duration)
EnqueueAfter calls EnqueueAfterFunc.
func (*DestinationRuleControllerMock) EnqueueAfterCalls ¶
func (mock *DestinationRuleControllerMock) EnqueueAfterCalls() []struct { Namespace string Name string After time.Duration }
EnqueueAfterCalls gets all the calls that were made to EnqueueAfter. Check the length with:
len(mockedDestinationRuleController.EnqueueAfterCalls())
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) Generic ¶
func (mock *DestinationRuleControllerMock) Generic() controller.GenericController
Generic calls GenericFunc.
func (*DestinationRuleControllerMock) GenericCalls ¶
func (mock *DestinationRuleControllerMock) GenericCalls() []struct { }
GenericCalls gets all the calls that were made to Generic. Check the length with:
len(mockedDestinationRuleController.GenericCalls())
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) Lister ¶
func (mock *DestinationRuleControllerMock) Lister() v1alpha3a.DestinationRuleLister
Lister calls ListerFunc.
func (*DestinationRuleControllerMock) ListerCalls ¶
func (mock *DestinationRuleControllerMock) ListerCalls() []struct { }
ListerCalls gets all the calls that were made to Lister. Check the length with:
len(mockedDestinationRuleController.ListerCalls())
func (*DestinationRuleControllerMock) Start ¶
func (mock *DestinationRuleControllerMock) Start(ctx context.Context, threadiness int) error
Start calls StartFunc.
func (*DestinationRuleControllerMock) StartCalls ¶
func (mock *DestinationRuleControllerMock) StartCalls() []struct { Ctx context.Context Threadiness int }
StartCalls gets all the calls that were made to Start. Check the length with:
len(mockedDestinationRuleController.StartCalls())
func (*DestinationRuleControllerMock) Sync ¶
func (mock *DestinationRuleControllerMock) Sync(ctx context.Context) error
Sync calls SyncFunc.
func (*DestinationRuleControllerMock) SyncCalls ¶
func (mock *DestinationRuleControllerMock) SyncCalls() []struct { Ctx context.Context }
SyncCalls gets all the calls that were made to Sync. Check the length with:
len(mockedDestinationRuleController.SyncCalls())
type DestinationRuleInterfaceMock ¶
type DestinationRuleInterfaceMock struct { // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1alpha3a.DestinationRuleHandlerFunc) // AddClusterScopedFeatureLifecycleFunc mocks the AddClusterScopedFeatureLifecycle method. AddClusterScopedFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1alpha3a.DestinationRuleLifecycle) // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v1alpha3a.DestinationRuleHandlerFunc) // AddClusterScopedLifecycleFunc mocks the AddClusterScopedLifecycle method. AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v1alpha3a.DestinationRuleLifecycle) // AddFeatureHandlerFunc mocks the AddFeatureHandler method. AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1alpha3a.DestinationRuleHandlerFunc) // AddFeatureLifecycleFunc mocks the AddFeatureLifecycle method. AddFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, lifecycle v1alpha3a.DestinationRuleLifecycle) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, sync v1alpha3a.DestinationRuleHandlerFunc) // AddLifecycleFunc mocks the AddLifecycle method. AddLifecycleFunc func(ctx context.Context, name string, lifecycle v1alpha3a.DestinationRuleLifecycle) // ControllerFunc mocks the Controller method. ControllerFunc func() v1alpha3a.DestinationRuleController // CreateFunc mocks the Create method. CreateFunc func(in1 *v1alpha3.DestinationRule) (*v1alpha3.DestinationRule, error) // DeleteFunc mocks the Delete method. DeleteFunc func(name string, options *v1.DeleteOptions) error // DeleteCollectionFunc mocks the DeleteCollection method. DeleteCollectionFunc func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error // DeleteNamespacedFunc mocks the DeleteNamespaced method. DeleteNamespacedFunc func(namespace string, name string, options *v1.DeleteOptions) error // GetFunc mocks the Get method. GetFunc func(name string, opts v1.GetOptions) (*v1alpha3.DestinationRule, error) // GetNamespacedFunc mocks the GetNamespaced method. GetNamespacedFunc func(namespace string, name string, opts v1.GetOptions) (*v1alpha3.DestinationRule, error) // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v1alpha3a.DestinationRuleList, error) // ListNamespacedFunc mocks the ListNamespaced method. ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v1alpha3a.DestinationRuleList, error) // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v1alpha3.DestinationRule) (*v1alpha3.DestinationRule, error) // WatchFunc mocks the Watch method. WatchFunc func(opts v1.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
DestinationRuleInterfaceMock is a mock implementation of DestinationRuleInterface.
func TestSomethingThatUsesDestinationRuleInterface(t *testing.T) { // make and configure a mocked DestinationRuleInterface mockedDestinationRuleInterface := &DestinationRuleInterfaceMock{ AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1alpha3a.DestinationRuleHandlerFunc) { panic("mock out the AddClusterScopedFeatureHandler method") }, AddClusterScopedFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1alpha3a.DestinationRuleLifecycle) { panic("mock out the AddClusterScopedFeatureLifecycle method") }, AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v1alpha3a.DestinationRuleHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v1alpha3a.DestinationRuleLifecycle) { panic("mock out the AddClusterScopedLifecycle method") }, AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1alpha3a.DestinationRuleHandlerFunc) { panic("mock out the AddFeatureHandler method") }, AddFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, lifecycle v1alpha3a.DestinationRuleLifecycle) { panic("mock out the AddFeatureLifecycle method") }, AddHandlerFunc: func(ctx context.Context, name string, sync v1alpha3a.DestinationRuleHandlerFunc) { panic("mock out the AddHandler method") }, AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v1alpha3a.DestinationRuleLifecycle) { panic("mock out the AddLifecycle method") }, ControllerFunc: func() v1alpha3a.DestinationRuleController { panic("mock out the Controller method") }, CreateFunc: func(in1 *v1alpha3.DestinationRule) (*v1alpha3.DestinationRule, error) { panic("mock out the Create method") }, DeleteFunc: func(name string, options *v1.DeleteOptions) error { panic("mock out the Delete method") }, DeleteCollectionFunc: func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error { panic("mock out the DeleteCollection method") }, DeleteNamespacedFunc: func(namespace string, name string, options *v1.DeleteOptions) error { panic("mock out the DeleteNamespaced method") }, GetFunc: func(name string, opts v1.GetOptions) (*v1alpha3.DestinationRule, error) { panic("mock out the Get method") }, GetNamespacedFunc: func(namespace string, name string, opts v1.GetOptions) (*v1alpha3.DestinationRule, error) { panic("mock out the GetNamespaced method") }, ListFunc: func(opts v1.ListOptions) (*v1alpha3a.DestinationRuleList, error) { panic("mock out the List method") }, ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v1alpha3a.DestinationRuleList, error) { panic("mock out the ListNamespaced method") }, ObjectClientFunc: func() *objectclient.ObjectClient { panic("mock out the ObjectClient method") }, UpdateFunc: func(in1 *v1alpha3.DestinationRule) (*v1alpha3.DestinationRule, error) { panic("mock out the Update method") }, WatchFunc: func(opts v1.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedDestinationRuleInterface in code that requires DestinationRuleInterface // and then make assertions. }
func (*DestinationRuleInterfaceMock) AddClusterScopedFeatureHandler ¶
func (mock *DestinationRuleInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1alpha3a.DestinationRuleHandlerFunc)
AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.
func (*DestinationRuleInterfaceMock) AddClusterScopedFeatureHandlerCalls ¶
func (mock *DestinationRuleInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Sync v1alpha3a.DestinationRuleHandlerFunc }
AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:
len(mockedDestinationRuleInterface.AddClusterScopedFeatureHandlerCalls())
func (*DestinationRuleInterfaceMock) AddClusterScopedFeatureLifecycle ¶
func (mock *DestinationRuleInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1alpha3a.DestinationRuleLifecycle)
AddClusterScopedFeatureLifecycle calls AddClusterScopedFeatureLifecycleFunc.
func (*DestinationRuleInterfaceMock) AddClusterScopedFeatureLifecycleCalls ¶
func (mock *DestinationRuleInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Lifecycle v1alpha3a.DestinationRuleLifecycle }
AddClusterScopedFeatureLifecycleCalls gets all the calls that were made to AddClusterScopedFeatureLifecycle. Check the length with:
len(mockedDestinationRuleInterface.AddClusterScopedFeatureLifecycleCalls())
func (*DestinationRuleInterfaceMock) AddClusterScopedHandler ¶
func (mock *DestinationRuleInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v1alpha3a.DestinationRuleHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*DestinationRuleInterfaceMock) AddClusterScopedHandlerCalls ¶
func (mock *DestinationRuleInterfaceMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Sync v1alpha3a.DestinationRuleHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedDestinationRuleInterface.AddClusterScopedHandlerCalls())
func (*DestinationRuleInterfaceMock) AddClusterScopedLifecycle ¶
func (mock *DestinationRuleInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v1alpha3a.DestinationRuleLifecycle)
AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc.
func (*DestinationRuleInterfaceMock) AddClusterScopedLifecycleCalls ¶
func (mock *DestinationRuleInterfaceMock) AddClusterScopedLifecycleCalls() []struct { Ctx context.Context Name string ClusterName string Lifecycle v1alpha3a.DestinationRuleLifecycle }
AddClusterScopedLifecycleCalls gets all the calls that were made to AddClusterScopedLifecycle. Check the length with:
len(mockedDestinationRuleInterface.AddClusterScopedLifecycleCalls())
func (*DestinationRuleInterfaceMock) AddFeatureHandler ¶
func (mock *DestinationRuleInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1alpha3a.DestinationRuleHandlerFunc)
AddFeatureHandler calls AddFeatureHandlerFunc.
func (*DestinationRuleInterfaceMock) AddFeatureHandlerCalls ¶
func (mock *DestinationRuleInterfaceMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string Sync v1alpha3a.DestinationRuleHandlerFunc }
AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:
len(mockedDestinationRuleInterface.AddFeatureHandlerCalls())
func (*DestinationRuleInterfaceMock) AddFeatureLifecycle ¶
func (mock *DestinationRuleInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, lifecycle v1alpha3a.DestinationRuleLifecycle)
AddFeatureLifecycle calls AddFeatureLifecycleFunc.
func (*DestinationRuleInterfaceMock) AddFeatureLifecycleCalls ¶
func (mock *DestinationRuleInterfaceMock) AddFeatureLifecycleCalls() []struct { Ctx context.Context Enabled func() bool Name string Lifecycle v1alpha3a.DestinationRuleLifecycle }
AddFeatureLifecycleCalls gets all the calls that were made to AddFeatureLifecycle. Check the length with:
len(mockedDestinationRuleInterface.AddFeatureLifecycleCalls())
func (*DestinationRuleInterfaceMock) AddHandler ¶
func (mock *DestinationRuleInterfaceMock) AddHandler(ctx context.Context, name string, sync v1alpha3a.DestinationRuleHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*DestinationRuleInterfaceMock) AddHandlerCalls ¶
func (mock *DestinationRuleInterfaceMock) AddHandlerCalls() []struct { Ctx context.Context Name string Sync v1alpha3a.DestinationRuleHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedDestinationRuleInterface.AddHandlerCalls())
func (*DestinationRuleInterfaceMock) AddLifecycle ¶
func (mock *DestinationRuleInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1alpha3a.DestinationRuleLifecycle)
AddLifecycle calls AddLifecycleFunc.
func (*DestinationRuleInterfaceMock) AddLifecycleCalls ¶
func (mock *DestinationRuleInterfaceMock) AddLifecycleCalls() []struct { Ctx context.Context Name string Lifecycle v1alpha3a.DestinationRuleLifecycle }
AddLifecycleCalls gets all the calls that were made to AddLifecycle. Check the length with:
len(mockedDestinationRuleInterface.AddLifecycleCalls())
func (*DestinationRuleInterfaceMock) Controller ¶
func (mock *DestinationRuleInterfaceMock) Controller() v1alpha3a.DestinationRuleController
Controller calls ControllerFunc.
func (*DestinationRuleInterfaceMock) ControllerCalls ¶
func (mock *DestinationRuleInterfaceMock) ControllerCalls() []struct { }
ControllerCalls gets all the calls that were made to Controller. Check the length with:
len(mockedDestinationRuleInterface.ControllerCalls())
func (*DestinationRuleInterfaceMock) Create ¶
func (mock *DestinationRuleInterfaceMock) Create(in1 *v1alpha3.DestinationRule) (*v1alpha3.DestinationRule, error)
Create calls CreateFunc.
func (*DestinationRuleInterfaceMock) CreateCalls ¶
func (mock *DestinationRuleInterfaceMock) CreateCalls() []struct { In1 *v1alpha3.DestinationRule }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedDestinationRuleInterface.CreateCalls())
func (*DestinationRuleInterfaceMock) Delete ¶
func (mock *DestinationRuleInterfaceMock) Delete(name string, options *v1.DeleteOptions) error
Delete calls DeleteFunc.
func (*DestinationRuleInterfaceMock) DeleteCalls ¶
func (mock *DestinationRuleInterfaceMock) DeleteCalls() []struct { Name string Options *v1.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedDestinationRuleInterface.DeleteCalls())
func (*DestinationRuleInterfaceMock) DeleteCollection ¶
func (mock *DestinationRuleInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection calls DeleteCollectionFunc.
func (*DestinationRuleInterfaceMock) DeleteCollectionCalls ¶
func (mock *DestinationRuleInterfaceMock) DeleteCollectionCalls() []struct { DeleteOpts *v1.DeleteOptions ListOpts v1.ListOptions }
DeleteCollectionCalls gets all the calls that were made to DeleteCollection. Check the length with:
len(mockedDestinationRuleInterface.DeleteCollectionCalls())
func (*DestinationRuleInterfaceMock) DeleteNamespaced ¶
func (mock *DestinationRuleInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error
DeleteNamespaced calls DeleteNamespacedFunc.
func (*DestinationRuleInterfaceMock) DeleteNamespacedCalls ¶
func (mock *DestinationRuleInterfaceMock) DeleteNamespacedCalls() []struct { Namespace string Name string Options *v1.DeleteOptions }
DeleteNamespacedCalls gets all the calls that were made to DeleteNamespaced. Check the length with:
len(mockedDestinationRuleInterface.DeleteNamespacedCalls())
func (*DestinationRuleInterfaceMock) Get ¶
func (mock *DestinationRuleInterfaceMock) Get(name string, opts v1.GetOptions) (*v1alpha3.DestinationRule, error)
Get calls GetFunc.
func (*DestinationRuleInterfaceMock) GetCalls ¶
func (mock *DestinationRuleInterfaceMock) GetCalls() []struct { Name string Opts v1.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedDestinationRuleInterface.GetCalls())
func (*DestinationRuleInterfaceMock) GetNamespaced ¶
func (mock *DestinationRuleInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v1alpha3.DestinationRule, error)
GetNamespaced calls GetNamespacedFunc.
func (*DestinationRuleInterfaceMock) GetNamespacedCalls ¶
func (mock *DestinationRuleInterfaceMock) GetNamespacedCalls() []struct { Namespace string Name string Opts v1.GetOptions }
GetNamespacedCalls gets all the calls that were made to GetNamespaced. Check the length with:
len(mockedDestinationRuleInterface.GetNamespacedCalls())
func (*DestinationRuleInterfaceMock) List ¶
func (mock *DestinationRuleInterfaceMock) List(opts v1.ListOptions) (*v1alpha3a.DestinationRuleList, error)
List calls ListFunc.
func (*DestinationRuleInterfaceMock) ListCalls ¶
func (mock *DestinationRuleInterfaceMock) ListCalls() []struct { Opts v1.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedDestinationRuleInterface.ListCalls())
func (*DestinationRuleInterfaceMock) ListNamespaced ¶
func (mock *DestinationRuleInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v1alpha3a.DestinationRuleList, error)
ListNamespaced calls ListNamespacedFunc.
func (*DestinationRuleInterfaceMock) ListNamespacedCalls ¶
func (mock *DestinationRuleInterfaceMock) ListNamespacedCalls() []struct { Namespace string Opts v1.ListOptions }
ListNamespacedCalls gets all the calls that were made to ListNamespaced. Check the length with:
len(mockedDestinationRuleInterface.ListNamespacedCalls())
func (*DestinationRuleInterfaceMock) ObjectClient ¶
func (mock *DestinationRuleInterfaceMock) ObjectClient() *objectclient.ObjectClient
ObjectClient calls ObjectClientFunc.
func (*DestinationRuleInterfaceMock) ObjectClientCalls ¶
func (mock *DestinationRuleInterfaceMock) ObjectClientCalls() []struct { }
ObjectClientCalls gets all the calls that were made to ObjectClient. Check the length with:
len(mockedDestinationRuleInterface.ObjectClientCalls())
func (*DestinationRuleInterfaceMock) Update ¶
func (mock *DestinationRuleInterfaceMock) Update(in1 *v1alpha3.DestinationRule) (*v1alpha3.DestinationRule, error)
Update calls UpdateFunc.
func (*DestinationRuleInterfaceMock) UpdateCalls ¶
func (mock *DestinationRuleInterfaceMock) UpdateCalls() []struct { In1 *v1alpha3.DestinationRule }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedDestinationRuleInterface.UpdateCalls())
func (*DestinationRuleInterfaceMock) Watch ¶
func (mock *DestinationRuleInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*DestinationRuleInterfaceMock) WatchCalls ¶
func (mock *DestinationRuleInterfaceMock) WatchCalls() []struct { Opts v1.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedDestinationRuleInterface.WatchCalls())
type DestinationRuleListerMock ¶
type DestinationRuleListerMock struct { // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v1alpha3.DestinationRule, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v1alpha3.DestinationRule, error) // contains filtered or unexported fields }
DestinationRuleListerMock is a mock implementation of DestinationRuleLister.
func TestSomethingThatUsesDestinationRuleLister(t *testing.T) { // make and configure a mocked DestinationRuleLister mockedDestinationRuleLister := &DestinationRuleListerMock{ GetFunc: func(namespace string, name string) (*v1alpha3.DestinationRule, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v1alpha3.DestinationRule, error) { panic("mock out the List method") }, } // use mockedDestinationRuleLister in code that requires DestinationRuleLister // and then make assertions. }
func (*DestinationRuleListerMock) Get ¶
func (mock *DestinationRuleListerMock) Get(namespace string, name string) (*v1alpha3.DestinationRule, error)
Get calls GetFunc.
func (*DestinationRuleListerMock) GetCalls ¶
func (mock *DestinationRuleListerMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedDestinationRuleLister.GetCalls())
func (*DestinationRuleListerMock) List ¶
func (mock *DestinationRuleListerMock) List(namespace string, selector labels.Selector) ([]*v1alpha3.DestinationRule, error)
List calls ListFunc.
type DestinationRulesGetterMock ¶
type DestinationRulesGetterMock struct { // DestinationRulesFunc mocks the DestinationRules method. DestinationRulesFunc func(namespace string) v1alpha3a.DestinationRuleInterface // contains filtered or unexported fields }
DestinationRulesGetterMock is a mock implementation of DestinationRulesGetter.
func TestSomethingThatUsesDestinationRulesGetter(t *testing.T) { // make and configure a mocked DestinationRulesGetter mockedDestinationRulesGetter := &DestinationRulesGetterMock{ DestinationRulesFunc: func(namespace string) v1alpha3a.DestinationRuleInterface { panic("mock out the DestinationRules method") }, } // use mockedDestinationRulesGetter in code that requires DestinationRulesGetter // and then make assertions. }
func (*DestinationRulesGetterMock) DestinationRules ¶
func (mock *DestinationRulesGetterMock) DestinationRules(namespace string) v1alpha3a.DestinationRuleInterface
DestinationRules calls DestinationRulesFunc.
func (*DestinationRulesGetterMock) DestinationRulesCalls ¶
func (mock *DestinationRulesGetterMock) DestinationRulesCalls() []struct { Namespace string }
DestinationRulesCalls gets all the calls that were made to DestinationRules. Check the length with:
len(mockedDestinationRulesGetter.DestinationRulesCalls())
type VirtualServiceControllerMock ¶
type VirtualServiceControllerMock struct { // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1alpha3a.VirtualServiceHandlerFunc) // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v1alpha3a.VirtualServiceHandlerFunc) // AddFeatureHandlerFunc mocks the AddFeatureHandler method. AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1alpha3a.VirtualServiceHandlerFunc) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, handler v1alpha3a.VirtualServiceHandlerFunc) // EnqueueFunc mocks the Enqueue method. EnqueueFunc func(namespace string, name string) // EnqueueAfterFunc mocks the EnqueueAfter method. EnqueueAfterFunc func(namespace string, name string, after time.Duration) // GenericFunc mocks the Generic method. GenericFunc func() controller.GenericController // InformerFunc mocks the Informer method. InformerFunc func() cache.SharedIndexInformer // ListerFunc mocks the Lister method. ListerFunc func() v1alpha3a.VirtualServiceLister // StartFunc mocks the Start method. StartFunc func(ctx context.Context, threadiness int) error // SyncFunc mocks the Sync method. SyncFunc func(ctx context.Context) 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{ AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1alpha3a.VirtualServiceHandlerFunc) { panic("mock out the AddClusterScopedFeatureHandler method") }, AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v1alpha3a.VirtualServiceHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1alpha3a.VirtualServiceHandlerFunc) { panic("mock out the AddFeatureHandler method") }, AddHandlerFunc: func(ctx context.Context, name string, handler v1alpha3a.VirtualServiceHandlerFunc) { panic("mock out the AddHandler method") }, EnqueueFunc: func(namespace string, name string) { panic("mock out the Enqueue method") }, EnqueueAfterFunc: func(namespace string, name string, after time.Duration) { panic("mock out the EnqueueAfter method") }, GenericFunc: func() controller.GenericController { panic("mock out the Generic method") }, InformerFunc: func() cache.SharedIndexInformer { panic("mock out the Informer method") }, ListerFunc: func() v1alpha3a.VirtualServiceLister { panic("mock out the Lister method") }, StartFunc: func(ctx context.Context, threadiness int) error { panic("mock out the Start method") }, SyncFunc: func(ctx context.Context) error { panic("mock out the Sync method") }, } // use mockedVirtualServiceController in code that requires VirtualServiceController // and then make assertions. }
func (*VirtualServiceControllerMock) AddClusterScopedFeatureHandler ¶
func (mock *VirtualServiceControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1alpha3a.VirtualServiceHandlerFunc)
AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.
func (*VirtualServiceControllerMock) AddClusterScopedFeatureHandlerCalls ¶
func (mock *VirtualServiceControllerMock) AddClusterScopedFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Handler v1alpha3a.VirtualServiceHandlerFunc }
AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:
len(mockedVirtualServiceController.AddClusterScopedFeatureHandlerCalls())
func (*VirtualServiceControllerMock) AddClusterScopedHandler ¶
func (mock *VirtualServiceControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v1alpha3a.VirtualServiceHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*VirtualServiceControllerMock) AddClusterScopedHandlerCalls ¶
func (mock *VirtualServiceControllerMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Handler v1alpha3a.VirtualServiceHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedVirtualServiceController.AddClusterScopedHandlerCalls())
func (*VirtualServiceControllerMock) AddFeatureHandler ¶
func (mock *VirtualServiceControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1alpha3a.VirtualServiceHandlerFunc)
AddFeatureHandler calls AddFeatureHandlerFunc.
func (*VirtualServiceControllerMock) AddFeatureHandlerCalls ¶
func (mock *VirtualServiceControllerMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string Sync v1alpha3a.VirtualServiceHandlerFunc }
AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:
len(mockedVirtualServiceController.AddFeatureHandlerCalls())
func (*VirtualServiceControllerMock) AddHandler ¶
func (mock *VirtualServiceControllerMock) AddHandler(ctx context.Context, name string, handler v1alpha3a.VirtualServiceHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*VirtualServiceControllerMock) AddHandlerCalls ¶
func (mock *VirtualServiceControllerMock) AddHandlerCalls() []struct { Ctx context.Context Name string Handler v1alpha3a.VirtualServiceHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedVirtualServiceController.AddHandlerCalls())
func (*VirtualServiceControllerMock) Enqueue ¶
func (mock *VirtualServiceControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*VirtualServiceControllerMock) EnqueueAfter ¶
func (mock *VirtualServiceControllerMock) EnqueueAfter(namespace string, name string, after time.Duration)
EnqueueAfter calls EnqueueAfterFunc.
func (*VirtualServiceControllerMock) EnqueueAfterCalls ¶
func (mock *VirtualServiceControllerMock) EnqueueAfterCalls() []struct { Namespace string Name string After time.Duration }
EnqueueAfterCalls gets all the calls that were made to EnqueueAfter. Check the length with:
len(mockedVirtualServiceController.EnqueueAfterCalls())
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) Generic ¶
func (mock *VirtualServiceControllerMock) Generic() controller.GenericController
Generic calls GenericFunc.
func (*VirtualServiceControllerMock) GenericCalls ¶
func (mock *VirtualServiceControllerMock) GenericCalls() []struct { }
GenericCalls gets all the calls that were made to Generic. Check the length with:
len(mockedVirtualServiceController.GenericCalls())
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) Lister ¶
func (mock *VirtualServiceControllerMock) Lister() v1alpha3a.VirtualServiceLister
Lister calls ListerFunc.
func (*VirtualServiceControllerMock) ListerCalls ¶
func (mock *VirtualServiceControllerMock) ListerCalls() []struct { }
ListerCalls gets all the calls that were made to Lister. Check the length with:
len(mockedVirtualServiceController.ListerCalls())
func (*VirtualServiceControllerMock) Start ¶
func (mock *VirtualServiceControllerMock) Start(ctx context.Context, threadiness int) error
Start calls StartFunc.
func (*VirtualServiceControllerMock) StartCalls ¶
func (mock *VirtualServiceControllerMock) StartCalls() []struct { Ctx context.Context Threadiness int }
StartCalls gets all the calls that were made to Start. Check the length with:
len(mockedVirtualServiceController.StartCalls())
func (*VirtualServiceControllerMock) Sync ¶
func (mock *VirtualServiceControllerMock) Sync(ctx context.Context) error
Sync calls SyncFunc.
func (*VirtualServiceControllerMock) SyncCalls ¶
func (mock *VirtualServiceControllerMock) SyncCalls() []struct { Ctx context.Context }
SyncCalls gets all the calls that were made to Sync. Check the length with:
len(mockedVirtualServiceController.SyncCalls())
type VirtualServiceInterfaceMock ¶
type VirtualServiceInterfaceMock struct { // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1alpha3a.VirtualServiceHandlerFunc) // AddClusterScopedFeatureLifecycleFunc mocks the AddClusterScopedFeatureLifecycle method. AddClusterScopedFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1alpha3a.VirtualServiceLifecycle) // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v1alpha3a.VirtualServiceHandlerFunc) // AddClusterScopedLifecycleFunc mocks the AddClusterScopedLifecycle method. AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v1alpha3a.VirtualServiceLifecycle) // AddFeatureHandlerFunc mocks the AddFeatureHandler method. AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1alpha3a.VirtualServiceHandlerFunc) // AddFeatureLifecycleFunc mocks the AddFeatureLifecycle method. AddFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, lifecycle v1alpha3a.VirtualServiceLifecycle) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, sync v1alpha3a.VirtualServiceHandlerFunc) // AddLifecycleFunc mocks the AddLifecycle method. AddLifecycleFunc func(ctx context.Context, name string, lifecycle v1alpha3a.VirtualServiceLifecycle) // ControllerFunc mocks the Controller method. ControllerFunc func() v1alpha3a.VirtualServiceController // CreateFunc mocks the Create method. CreateFunc func(in1 *v1alpha3.VirtualService) (*v1alpha3.VirtualService, error) // DeleteFunc mocks the Delete method. DeleteFunc func(name string, options *v1.DeleteOptions) error // DeleteCollectionFunc mocks the DeleteCollection method. DeleteCollectionFunc func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error // DeleteNamespacedFunc mocks the DeleteNamespaced method. DeleteNamespacedFunc func(namespace string, name string, options *v1.DeleteOptions) error // GetFunc mocks the Get method. GetFunc func(name string, opts v1.GetOptions) (*v1alpha3.VirtualService, error) // GetNamespacedFunc mocks the GetNamespaced method. GetNamespacedFunc func(namespace string, name string, opts v1.GetOptions) (*v1alpha3.VirtualService, error) // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v1alpha3a.VirtualServiceList, error) // ListNamespacedFunc mocks the ListNamespaced method. ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v1alpha3a.VirtualServiceList, error) // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v1alpha3.VirtualService) (*v1alpha3.VirtualService, error) // WatchFunc mocks the Watch method. WatchFunc func(opts v1.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
VirtualServiceInterfaceMock is a mock implementation of VirtualServiceInterface.
func TestSomethingThatUsesVirtualServiceInterface(t *testing.T) { // make and configure a mocked VirtualServiceInterface mockedVirtualServiceInterface := &VirtualServiceInterfaceMock{ AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1alpha3a.VirtualServiceHandlerFunc) { panic("mock out the AddClusterScopedFeatureHandler method") }, AddClusterScopedFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1alpha3a.VirtualServiceLifecycle) { panic("mock out the AddClusterScopedFeatureLifecycle method") }, AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v1alpha3a.VirtualServiceHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v1alpha3a.VirtualServiceLifecycle) { panic("mock out the AddClusterScopedLifecycle method") }, AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1alpha3a.VirtualServiceHandlerFunc) { panic("mock out the AddFeatureHandler method") }, AddFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, lifecycle v1alpha3a.VirtualServiceLifecycle) { panic("mock out the AddFeatureLifecycle method") }, AddHandlerFunc: func(ctx context.Context, name string, sync v1alpha3a.VirtualServiceHandlerFunc) { panic("mock out the AddHandler method") }, AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v1alpha3a.VirtualServiceLifecycle) { panic("mock out the AddLifecycle method") }, ControllerFunc: func() v1alpha3a.VirtualServiceController { panic("mock out the Controller method") }, CreateFunc: func(in1 *v1alpha3.VirtualService) (*v1alpha3.VirtualService, error) { panic("mock out the Create method") }, DeleteFunc: func(name string, options *v1.DeleteOptions) error { panic("mock out the Delete method") }, DeleteCollectionFunc: func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error { panic("mock out the DeleteCollection method") }, DeleteNamespacedFunc: func(namespace string, name string, options *v1.DeleteOptions) error { panic("mock out the DeleteNamespaced method") }, GetFunc: func(name string, opts v1.GetOptions) (*v1alpha3.VirtualService, error) { panic("mock out the Get method") }, GetNamespacedFunc: func(namespace string, name string, opts v1.GetOptions) (*v1alpha3.VirtualService, error) { panic("mock out the GetNamespaced method") }, ListFunc: func(opts v1.ListOptions) (*v1alpha3a.VirtualServiceList, error) { panic("mock out the List method") }, ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v1alpha3a.VirtualServiceList, error) { panic("mock out the ListNamespaced method") }, ObjectClientFunc: func() *objectclient.ObjectClient { panic("mock out the ObjectClient method") }, UpdateFunc: func(in1 *v1alpha3.VirtualService) (*v1alpha3.VirtualService, error) { panic("mock out the Update method") }, WatchFunc: func(opts v1.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedVirtualServiceInterface in code that requires VirtualServiceInterface // and then make assertions. }
func (*VirtualServiceInterfaceMock) AddClusterScopedFeatureHandler ¶
func (mock *VirtualServiceInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1alpha3a.VirtualServiceHandlerFunc)
AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.
func (*VirtualServiceInterfaceMock) AddClusterScopedFeatureHandlerCalls ¶
func (mock *VirtualServiceInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Sync v1alpha3a.VirtualServiceHandlerFunc }
AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:
len(mockedVirtualServiceInterface.AddClusterScopedFeatureHandlerCalls())
func (*VirtualServiceInterfaceMock) AddClusterScopedFeatureLifecycle ¶
func (mock *VirtualServiceInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1alpha3a.VirtualServiceLifecycle)
AddClusterScopedFeatureLifecycle calls AddClusterScopedFeatureLifecycleFunc.
func (*VirtualServiceInterfaceMock) AddClusterScopedFeatureLifecycleCalls ¶
func (mock *VirtualServiceInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Lifecycle v1alpha3a.VirtualServiceLifecycle }
AddClusterScopedFeatureLifecycleCalls gets all the calls that were made to AddClusterScopedFeatureLifecycle. Check the length with:
len(mockedVirtualServiceInterface.AddClusterScopedFeatureLifecycleCalls())
func (*VirtualServiceInterfaceMock) AddClusterScopedHandler ¶
func (mock *VirtualServiceInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v1alpha3a.VirtualServiceHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*VirtualServiceInterfaceMock) AddClusterScopedHandlerCalls ¶
func (mock *VirtualServiceInterfaceMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Sync v1alpha3a.VirtualServiceHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedVirtualServiceInterface.AddClusterScopedHandlerCalls())
func (*VirtualServiceInterfaceMock) AddClusterScopedLifecycle ¶
func (mock *VirtualServiceInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v1alpha3a.VirtualServiceLifecycle)
AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc.
func (*VirtualServiceInterfaceMock) AddClusterScopedLifecycleCalls ¶
func (mock *VirtualServiceInterfaceMock) AddClusterScopedLifecycleCalls() []struct { Ctx context.Context Name string ClusterName string Lifecycle v1alpha3a.VirtualServiceLifecycle }
AddClusterScopedLifecycleCalls gets all the calls that were made to AddClusterScopedLifecycle. Check the length with:
len(mockedVirtualServiceInterface.AddClusterScopedLifecycleCalls())
func (*VirtualServiceInterfaceMock) AddFeatureHandler ¶
func (mock *VirtualServiceInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1alpha3a.VirtualServiceHandlerFunc)
AddFeatureHandler calls AddFeatureHandlerFunc.
func (*VirtualServiceInterfaceMock) AddFeatureHandlerCalls ¶
func (mock *VirtualServiceInterfaceMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string Sync v1alpha3a.VirtualServiceHandlerFunc }
AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:
len(mockedVirtualServiceInterface.AddFeatureHandlerCalls())
func (*VirtualServiceInterfaceMock) AddFeatureLifecycle ¶
func (mock *VirtualServiceInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, lifecycle v1alpha3a.VirtualServiceLifecycle)
AddFeatureLifecycle calls AddFeatureLifecycleFunc.
func (*VirtualServiceInterfaceMock) AddFeatureLifecycleCalls ¶
func (mock *VirtualServiceInterfaceMock) AddFeatureLifecycleCalls() []struct { Ctx context.Context Enabled func() bool Name string Lifecycle v1alpha3a.VirtualServiceLifecycle }
AddFeatureLifecycleCalls gets all the calls that were made to AddFeatureLifecycle. Check the length with:
len(mockedVirtualServiceInterface.AddFeatureLifecycleCalls())
func (*VirtualServiceInterfaceMock) AddHandler ¶
func (mock *VirtualServiceInterfaceMock) AddHandler(ctx context.Context, name string, sync v1alpha3a.VirtualServiceHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*VirtualServiceInterfaceMock) AddHandlerCalls ¶
func (mock *VirtualServiceInterfaceMock) AddHandlerCalls() []struct { Ctx context.Context Name string Sync v1alpha3a.VirtualServiceHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedVirtualServiceInterface.AddHandlerCalls())
func (*VirtualServiceInterfaceMock) AddLifecycle ¶
func (mock *VirtualServiceInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1alpha3a.VirtualServiceLifecycle)
AddLifecycle calls AddLifecycleFunc.
func (*VirtualServiceInterfaceMock) AddLifecycleCalls ¶
func (mock *VirtualServiceInterfaceMock) AddLifecycleCalls() []struct { Ctx context.Context Name string Lifecycle v1alpha3a.VirtualServiceLifecycle }
AddLifecycleCalls gets all the calls that were made to AddLifecycle. Check the length with:
len(mockedVirtualServiceInterface.AddLifecycleCalls())
func (*VirtualServiceInterfaceMock) Controller ¶
func (mock *VirtualServiceInterfaceMock) Controller() v1alpha3a.VirtualServiceController
Controller calls ControllerFunc.
func (*VirtualServiceInterfaceMock) ControllerCalls ¶
func (mock *VirtualServiceInterfaceMock) ControllerCalls() []struct { }
ControllerCalls gets all the calls that were made to Controller. Check the length with:
len(mockedVirtualServiceInterface.ControllerCalls())
func (*VirtualServiceInterfaceMock) Create ¶
func (mock *VirtualServiceInterfaceMock) Create(in1 *v1alpha3.VirtualService) (*v1alpha3.VirtualService, error)
Create calls CreateFunc.
func (*VirtualServiceInterfaceMock) CreateCalls ¶
func (mock *VirtualServiceInterfaceMock) CreateCalls() []struct { In1 *v1alpha3.VirtualService }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedVirtualServiceInterface.CreateCalls())
func (*VirtualServiceInterfaceMock) Delete ¶
func (mock *VirtualServiceInterfaceMock) Delete(name string, options *v1.DeleteOptions) error
Delete calls DeleteFunc.
func (*VirtualServiceInterfaceMock) DeleteCalls ¶
func (mock *VirtualServiceInterfaceMock) DeleteCalls() []struct { Name string Options *v1.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedVirtualServiceInterface.DeleteCalls())
func (*VirtualServiceInterfaceMock) DeleteCollection ¶
func (mock *VirtualServiceInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection calls DeleteCollectionFunc.
func (*VirtualServiceInterfaceMock) DeleteCollectionCalls ¶
func (mock *VirtualServiceInterfaceMock) DeleteCollectionCalls() []struct { DeleteOpts *v1.DeleteOptions ListOpts v1.ListOptions }
DeleteCollectionCalls gets all the calls that were made to DeleteCollection. Check the length with:
len(mockedVirtualServiceInterface.DeleteCollectionCalls())
func (*VirtualServiceInterfaceMock) DeleteNamespaced ¶
func (mock *VirtualServiceInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error
DeleteNamespaced calls DeleteNamespacedFunc.
func (*VirtualServiceInterfaceMock) DeleteNamespacedCalls ¶
func (mock *VirtualServiceInterfaceMock) DeleteNamespacedCalls() []struct { Namespace string Name string Options *v1.DeleteOptions }
DeleteNamespacedCalls gets all the calls that were made to DeleteNamespaced. Check the length with:
len(mockedVirtualServiceInterface.DeleteNamespacedCalls())
func (*VirtualServiceInterfaceMock) Get ¶
func (mock *VirtualServiceInterfaceMock) Get(name string, opts v1.GetOptions) (*v1alpha3.VirtualService, error)
Get calls GetFunc.
func (*VirtualServiceInterfaceMock) GetCalls ¶
func (mock *VirtualServiceInterfaceMock) GetCalls() []struct { Name string Opts v1.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedVirtualServiceInterface.GetCalls())
func (*VirtualServiceInterfaceMock) GetNamespaced ¶
func (mock *VirtualServiceInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v1alpha3.VirtualService, error)
GetNamespaced calls GetNamespacedFunc.
func (*VirtualServiceInterfaceMock) GetNamespacedCalls ¶
func (mock *VirtualServiceInterfaceMock) GetNamespacedCalls() []struct { Namespace string Name string Opts v1.GetOptions }
GetNamespacedCalls gets all the calls that were made to GetNamespaced. Check the length with:
len(mockedVirtualServiceInterface.GetNamespacedCalls())
func (*VirtualServiceInterfaceMock) List ¶
func (mock *VirtualServiceInterfaceMock) List(opts v1.ListOptions) (*v1alpha3a.VirtualServiceList, error)
List calls ListFunc.
func (*VirtualServiceInterfaceMock) ListCalls ¶
func (mock *VirtualServiceInterfaceMock) ListCalls() []struct { Opts v1.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedVirtualServiceInterface.ListCalls())
func (*VirtualServiceInterfaceMock) ListNamespaced ¶
func (mock *VirtualServiceInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v1alpha3a.VirtualServiceList, error)
ListNamespaced calls ListNamespacedFunc.
func (*VirtualServiceInterfaceMock) ListNamespacedCalls ¶
func (mock *VirtualServiceInterfaceMock) ListNamespacedCalls() []struct { Namespace string Opts v1.ListOptions }
ListNamespacedCalls gets all the calls that were made to ListNamespaced. Check the length with:
len(mockedVirtualServiceInterface.ListNamespacedCalls())
func (*VirtualServiceInterfaceMock) ObjectClient ¶
func (mock *VirtualServiceInterfaceMock) ObjectClient() *objectclient.ObjectClient
ObjectClient calls ObjectClientFunc.
func (*VirtualServiceInterfaceMock) ObjectClientCalls ¶
func (mock *VirtualServiceInterfaceMock) ObjectClientCalls() []struct { }
ObjectClientCalls gets all the calls that were made to ObjectClient. Check the length with:
len(mockedVirtualServiceInterface.ObjectClientCalls())
func (*VirtualServiceInterfaceMock) Update ¶
func (mock *VirtualServiceInterfaceMock) Update(in1 *v1alpha3.VirtualService) (*v1alpha3.VirtualService, error)
Update calls UpdateFunc.
func (*VirtualServiceInterfaceMock) UpdateCalls ¶
func (mock *VirtualServiceInterfaceMock) UpdateCalls() []struct { In1 *v1alpha3.VirtualService }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedVirtualServiceInterface.UpdateCalls())
func (*VirtualServiceInterfaceMock) Watch ¶
func (mock *VirtualServiceInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*VirtualServiceInterfaceMock) WatchCalls ¶
func (mock *VirtualServiceInterfaceMock) WatchCalls() []struct { Opts v1.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedVirtualServiceInterface.WatchCalls())
type VirtualServiceListerMock ¶
type VirtualServiceListerMock struct { // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v1alpha3.VirtualService, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v1alpha3.VirtualService, error) // contains filtered or unexported fields }
VirtualServiceListerMock is a mock implementation of VirtualServiceLister.
func TestSomethingThatUsesVirtualServiceLister(t *testing.T) { // make and configure a mocked VirtualServiceLister mockedVirtualServiceLister := &VirtualServiceListerMock{ GetFunc: func(namespace string, name string) (*v1alpha3.VirtualService, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v1alpha3.VirtualService, error) { panic("mock out the List method") }, } // use mockedVirtualServiceLister in code that requires VirtualServiceLister // and then make assertions. }
func (*VirtualServiceListerMock) Get ¶
func (mock *VirtualServiceListerMock) Get(namespace string, name string) (*v1alpha3.VirtualService, error)
Get calls GetFunc.
func (*VirtualServiceListerMock) GetCalls ¶
func (mock *VirtualServiceListerMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedVirtualServiceLister.GetCalls())
func (*VirtualServiceListerMock) List ¶
func (mock *VirtualServiceListerMock) List(namespace string, selector labels.Selector) ([]*v1alpha3.VirtualService, error)
List calls ListFunc.
type VirtualServicesGetterMock ¶
type VirtualServicesGetterMock struct { // VirtualServicesFunc mocks the VirtualServices method. VirtualServicesFunc func(namespace string) v1alpha3a.VirtualServiceInterface // contains filtered or unexported fields }
VirtualServicesGetterMock is a mock implementation of VirtualServicesGetter.
func TestSomethingThatUsesVirtualServicesGetter(t *testing.T) { // make and configure a mocked VirtualServicesGetter mockedVirtualServicesGetter := &VirtualServicesGetterMock{ VirtualServicesFunc: func(namespace string) v1alpha3a.VirtualServiceInterface { panic("mock out the VirtualServices method") }, } // use mockedVirtualServicesGetter in code that requires VirtualServicesGetter // and then make assertions. }
func (*VirtualServicesGetterMock) VirtualServices ¶
func (mock *VirtualServicesGetterMock) VirtualServices(namespace string) v1alpha3a.VirtualServiceInterface
VirtualServices calls VirtualServicesFunc.
func (*VirtualServicesGetterMock) VirtualServicesCalls ¶
func (mock *VirtualServicesGetterMock) VirtualServicesCalls() []struct { Namespace string }
VirtualServicesCalls gets all the calls that were made to VirtualServices. Check the length with:
len(mockedVirtualServicesGetter.VirtualServicesCalls())