Documentation ¶
Index ¶
- type AlertmanagerControllerMock
- func (mock *AlertmanagerControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *AlertmanagerControllerMock) AddClusterScopedFeatureHandlerCalls() []struct{ ... }
- func (mock *AlertmanagerControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *AlertmanagerControllerMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *AlertmanagerControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *AlertmanagerControllerMock) AddFeatureHandlerCalls() []struct{ ... }
- func (mock *AlertmanagerControllerMock) AddHandler(ctx context.Context, name string, handler v1a.AlertmanagerHandlerFunc)
- func (mock *AlertmanagerControllerMock) AddHandlerCalls() []struct{ ... }
- func (mock *AlertmanagerControllerMock) Enqueue(namespace string, name string)
- func (mock *AlertmanagerControllerMock) EnqueueAfter(namespace string, name string, after time.Duration)
- func (mock *AlertmanagerControllerMock) EnqueueAfterCalls() []struct{ ... }
- func (mock *AlertmanagerControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *AlertmanagerControllerMock) Generic() controller.GenericController
- func (mock *AlertmanagerControllerMock) GenericCalls() []struct{}
- func (mock *AlertmanagerControllerMock) Informer() cache.SharedIndexInformer
- func (mock *AlertmanagerControllerMock) InformerCalls() []struct{}
- func (mock *AlertmanagerControllerMock) Lister() v1a.AlertmanagerLister
- func (mock *AlertmanagerControllerMock) ListerCalls() []struct{}
- func (mock *AlertmanagerControllerMock) Start(ctx context.Context, threadiness int) error
- func (mock *AlertmanagerControllerMock) StartCalls() []struct{ ... }
- func (mock *AlertmanagerControllerMock) Sync(ctx context.Context) error
- func (mock *AlertmanagerControllerMock) SyncCalls() []struct{ ... }
- type AlertmanagerInterfaceMock
- func (mock *AlertmanagerInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *AlertmanagerInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct{ ... }
- func (mock *AlertmanagerInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *AlertmanagerInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct{ ... }
- func (mock *AlertmanagerInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *AlertmanagerInterfaceMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *AlertmanagerInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, ...)
- func (mock *AlertmanagerInterfaceMock) AddClusterScopedLifecycleCalls() []struct{ ... }
- func (mock *AlertmanagerInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *AlertmanagerInterfaceMock) AddFeatureHandlerCalls() []struct{ ... }
- func (mock *AlertmanagerInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *AlertmanagerInterfaceMock) AddFeatureLifecycleCalls() []struct{ ... }
- func (mock *AlertmanagerInterfaceMock) AddHandler(ctx context.Context, name string, sync v1a.AlertmanagerHandlerFunc)
- func (mock *AlertmanagerInterfaceMock) AddHandlerCalls() []struct{ ... }
- func (mock *AlertmanagerInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1a.AlertmanagerLifecycle)
- func (mock *AlertmanagerInterfaceMock) AddLifecycleCalls() []struct{ ... }
- func (mock *AlertmanagerInterfaceMock) Controller() v1a.AlertmanagerController
- func (mock *AlertmanagerInterfaceMock) ControllerCalls() []struct{}
- func (mock *AlertmanagerInterfaceMock) Create(in1 *v1.Alertmanager) (*v1.Alertmanager, error)
- func (mock *AlertmanagerInterfaceMock) CreateCalls() []struct{ ... }
- func (mock *AlertmanagerInterfaceMock) Delete(name string, options *v1b.DeleteOptions) error
- func (mock *AlertmanagerInterfaceMock) DeleteCalls() []struct{ ... }
- func (mock *AlertmanagerInterfaceMock) DeleteCollection(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error
- func (mock *AlertmanagerInterfaceMock) DeleteCollectionCalls() []struct{ ... }
- func (mock *AlertmanagerInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1b.DeleteOptions) error
- func (mock *AlertmanagerInterfaceMock) DeleteNamespacedCalls() []struct{ ... }
- func (mock *AlertmanagerInterfaceMock) Get(name string, opts v1b.GetOptions) (*v1.Alertmanager, error)
- func (mock *AlertmanagerInterfaceMock) GetCalls() []struct{ ... }
- func (mock *AlertmanagerInterfaceMock) GetNamespaced(namespace string, name string, opts v1b.GetOptions) (*v1.Alertmanager, error)
- func (mock *AlertmanagerInterfaceMock) GetNamespacedCalls() []struct{ ... }
- func (mock *AlertmanagerInterfaceMock) List(opts v1b.ListOptions) (*v1a.AlertmanagerList, error)
- func (mock *AlertmanagerInterfaceMock) ListCalls() []struct{ ... }
- func (mock *AlertmanagerInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.AlertmanagerList, error)
- func (mock *AlertmanagerInterfaceMock) ListNamespacedCalls() []struct{ ... }
- func (mock *AlertmanagerInterfaceMock) ObjectClient() *objectclient.ObjectClient
- func (mock *AlertmanagerInterfaceMock) ObjectClientCalls() []struct{}
- func (mock *AlertmanagerInterfaceMock) Update(in1 *v1.Alertmanager) (*v1.Alertmanager, error)
- func (mock *AlertmanagerInterfaceMock) UpdateCalls() []struct{ ... }
- func (mock *AlertmanagerInterfaceMock) Watch(opts v1b.ListOptions) (watch.Interface, error)
- func (mock *AlertmanagerInterfaceMock) WatchCalls() []struct{ ... }
- type AlertmanagerListerMock
- func (mock *AlertmanagerListerMock) Get(namespace string, name string) (*v1.Alertmanager, error)
- func (mock *AlertmanagerListerMock) GetCalls() []struct{ ... }
- func (mock *AlertmanagerListerMock) List(namespace string, selector labels.Selector) ([]*v1.Alertmanager, error)
- func (mock *AlertmanagerListerMock) ListCalls() []struct{ ... }
- type AlertmanagersGetterMock
- type PrometheusControllerMock
- func (mock *PrometheusControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *PrometheusControllerMock) AddClusterScopedFeatureHandlerCalls() []struct{ ... }
- func (mock *PrometheusControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *PrometheusControllerMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *PrometheusControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *PrometheusControllerMock) AddFeatureHandlerCalls() []struct{ ... }
- func (mock *PrometheusControllerMock) AddHandler(ctx context.Context, name string, handler v1a.PrometheusHandlerFunc)
- func (mock *PrometheusControllerMock) AddHandlerCalls() []struct{ ... }
- func (mock *PrometheusControllerMock) Enqueue(namespace string, name string)
- func (mock *PrometheusControllerMock) EnqueueAfter(namespace string, name string, after time.Duration)
- func (mock *PrometheusControllerMock) EnqueueAfterCalls() []struct{ ... }
- func (mock *PrometheusControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *PrometheusControllerMock) Generic() controller.GenericController
- func (mock *PrometheusControllerMock) GenericCalls() []struct{}
- func (mock *PrometheusControllerMock) Informer() cache.SharedIndexInformer
- func (mock *PrometheusControllerMock) InformerCalls() []struct{}
- func (mock *PrometheusControllerMock) Lister() v1a.PrometheusLister
- func (mock *PrometheusControllerMock) ListerCalls() []struct{}
- func (mock *PrometheusControllerMock) Start(ctx context.Context, threadiness int) error
- func (mock *PrometheusControllerMock) StartCalls() []struct{ ... }
- func (mock *PrometheusControllerMock) Sync(ctx context.Context) error
- func (mock *PrometheusControllerMock) SyncCalls() []struct{ ... }
- type PrometheusInterfaceMock
- func (mock *PrometheusInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *PrometheusInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct{ ... }
- func (mock *PrometheusInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *PrometheusInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct{ ... }
- func (mock *PrometheusInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *PrometheusInterfaceMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *PrometheusInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, ...)
- func (mock *PrometheusInterfaceMock) AddClusterScopedLifecycleCalls() []struct{ ... }
- func (mock *PrometheusInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *PrometheusInterfaceMock) AddFeatureHandlerCalls() []struct{ ... }
- func (mock *PrometheusInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *PrometheusInterfaceMock) AddFeatureLifecycleCalls() []struct{ ... }
- func (mock *PrometheusInterfaceMock) AddHandler(ctx context.Context, name string, sync v1a.PrometheusHandlerFunc)
- func (mock *PrometheusInterfaceMock) AddHandlerCalls() []struct{ ... }
- func (mock *PrometheusInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1a.PrometheusLifecycle)
- func (mock *PrometheusInterfaceMock) AddLifecycleCalls() []struct{ ... }
- func (mock *PrometheusInterfaceMock) Controller() v1a.PrometheusController
- func (mock *PrometheusInterfaceMock) ControllerCalls() []struct{}
- func (mock *PrometheusInterfaceMock) Create(in1 *v1.Prometheus) (*v1.Prometheus, error)
- func (mock *PrometheusInterfaceMock) CreateCalls() []struct{ ... }
- func (mock *PrometheusInterfaceMock) Delete(name string, options *v1b.DeleteOptions) error
- func (mock *PrometheusInterfaceMock) DeleteCalls() []struct{ ... }
- func (mock *PrometheusInterfaceMock) DeleteCollection(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error
- func (mock *PrometheusInterfaceMock) DeleteCollectionCalls() []struct{ ... }
- func (mock *PrometheusInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1b.DeleteOptions) error
- func (mock *PrometheusInterfaceMock) DeleteNamespacedCalls() []struct{ ... }
- func (mock *PrometheusInterfaceMock) Get(name string, opts v1b.GetOptions) (*v1.Prometheus, error)
- func (mock *PrometheusInterfaceMock) GetCalls() []struct{ ... }
- func (mock *PrometheusInterfaceMock) GetNamespaced(namespace string, name string, opts v1b.GetOptions) (*v1.Prometheus, error)
- func (mock *PrometheusInterfaceMock) GetNamespacedCalls() []struct{ ... }
- func (mock *PrometheusInterfaceMock) List(opts v1b.ListOptions) (*v1a.PrometheusList, error)
- func (mock *PrometheusInterfaceMock) ListCalls() []struct{ ... }
- func (mock *PrometheusInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.PrometheusList, error)
- func (mock *PrometheusInterfaceMock) ListNamespacedCalls() []struct{ ... }
- func (mock *PrometheusInterfaceMock) ObjectClient() *objectclient.ObjectClient
- func (mock *PrometheusInterfaceMock) ObjectClientCalls() []struct{}
- func (mock *PrometheusInterfaceMock) Update(in1 *v1.Prometheus) (*v1.Prometheus, error)
- func (mock *PrometheusInterfaceMock) UpdateCalls() []struct{ ... }
- func (mock *PrometheusInterfaceMock) Watch(opts v1b.ListOptions) (watch.Interface, error)
- func (mock *PrometheusInterfaceMock) WatchCalls() []struct{ ... }
- type PrometheusListerMock
- func (mock *PrometheusListerMock) Get(namespace string, name string) (*v1.Prometheus, error)
- func (mock *PrometheusListerMock) GetCalls() []struct{ ... }
- func (mock *PrometheusListerMock) List(namespace string, selector labels.Selector) ([]*v1.Prometheus, error)
- func (mock *PrometheusListerMock) ListCalls() []struct{ ... }
- type PrometheusRuleControllerMock
- func (mock *PrometheusRuleControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *PrometheusRuleControllerMock) AddClusterScopedFeatureHandlerCalls() []struct{ ... }
- func (mock *PrometheusRuleControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *PrometheusRuleControllerMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *PrometheusRuleControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *PrometheusRuleControllerMock) AddFeatureHandlerCalls() []struct{ ... }
- func (mock *PrometheusRuleControllerMock) AddHandler(ctx context.Context, name string, handler v1a.PrometheusRuleHandlerFunc)
- func (mock *PrometheusRuleControllerMock) AddHandlerCalls() []struct{ ... }
- func (mock *PrometheusRuleControllerMock) Enqueue(namespace string, name string)
- func (mock *PrometheusRuleControllerMock) EnqueueAfter(namespace string, name string, after time.Duration)
- func (mock *PrometheusRuleControllerMock) EnqueueAfterCalls() []struct{ ... }
- func (mock *PrometheusRuleControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *PrometheusRuleControllerMock) Generic() controller.GenericController
- func (mock *PrometheusRuleControllerMock) GenericCalls() []struct{}
- func (mock *PrometheusRuleControllerMock) Informer() cache.SharedIndexInformer
- func (mock *PrometheusRuleControllerMock) InformerCalls() []struct{}
- func (mock *PrometheusRuleControllerMock) Lister() v1a.PrometheusRuleLister
- func (mock *PrometheusRuleControllerMock) ListerCalls() []struct{}
- func (mock *PrometheusRuleControllerMock) Start(ctx context.Context, threadiness int) error
- func (mock *PrometheusRuleControllerMock) StartCalls() []struct{ ... }
- func (mock *PrometheusRuleControllerMock) Sync(ctx context.Context) error
- func (mock *PrometheusRuleControllerMock) SyncCalls() []struct{ ... }
- type PrometheusRuleInterfaceMock
- func (mock *PrometheusRuleInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *PrometheusRuleInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct{ ... }
- func (mock *PrometheusRuleInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *PrometheusRuleInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct{ ... }
- func (mock *PrometheusRuleInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *PrometheusRuleInterfaceMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *PrometheusRuleInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, ...)
- func (mock *PrometheusRuleInterfaceMock) AddClusterScopedLifecycleCalls() []struct{ ... }
- func (mock *PrometheusRuleInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *PrometheusRuleInterfaceMock) AddFeatureHandlerCalls() []struct{ ... }
- func (mock *PrometheusRuleInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *PrometheusRuleInterfaceMock) AddFeatureLifecycleCalls() []struct{ ... }
- func (mock *PrometheusRuleInterfaceMock) AddHandler(ctx context.Context, name string, sync v1a.PrometheusRuleHandlerFunc)
- func (mock *PrometheusRuleInterfaceMock) AddHandlerCalls() []struct{ ... }
- func (mock *PrometheusRuleInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1a.PrometheusRuleLifecycle)
- func (mock *PrometheusRuleInterfaceMock) AddLifecycleCalls() []struct{ ... }
- func (mock *PrometheusRuleInterfaceMock) Controller() v1a.PrometheusRuleController
- func (mock *PrometheusRuleInterfaceMock) ControllerCalls() []struct{}
- func (mock *PrometheusRuleInterfaceMock) Create(in1 *v1.PrometheusRule) (*v1.PrometheusRule, error)
- func (mock *PrometheusRuleInterfaceMock) CreateCalls() []struct{ ... }
- func (mock *PrometheusRuleInterfaceMock) Delete(name string, options *v1b.DeleteOptions) error
- func (mock *PrometheusRuleInterfaceMock) DeleteCalls() []struct{ ... }
- func (mock *PrometheusRuleInterfaceMock) DeleteCollection(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error
- func (mock *PrometheusRuleInterfaceMock) DeleteCollectionCalls() []struct{ ... }
- func (mock *PrometheusRuleInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1b.DeleteOptions) error
- func (mock *PrometheusRuleInterfaceMock) DeleteNamespacedCalls() []struct{ ... }
- func (mock *PrometheusRuleInterfaceMock) Get(name string, opts v1b.GetOptions) (*v1.PrometheusRule, error)
- func (mock *PrometheusRuleInterfaceMock) GetCalls() []struct{ ... }
- func (mock *PrometheusRuleInterfaceMock) GetNamespaced(namespace string, name string, opts v1b.GetOptions) (*v1.PrometheusRule, error)
- func (mock *PrometheusRuleInterfaceMock) GetNamespacedCalls() []struct{ ... }
- func (mock *PrometheusRuleInterfaceMock) List(opts v1b.ListOptions) (*v1a.PrometheusRuleList, error)
- func (mock *PrometheusRuleInterfaceMock) ListCalls() []struct{ ... }
- func (mock *PrometheusRuleInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.PrometheusRuleList, error)
- func (mock *PrometheusRuleInterfaceMock) ListNamespacedCalls() []struct{ ... }
- func (mock *PrometheusRuleInterfaceMock) ObjectClient() *objectclient.ObjectClient
- func (mock *PrometheusRuleInterfaceMock) ObjectClientCalls() []struct{}
- func (mock *PrometheusRuleInterfaceMock) Update(in1 *v1.PrometheusRule) (*v1.PrometheusRule, error)
- func (mock *PrometheusRuleInterfaceMock) UpdateCalls() []struct{ ... }
- func (mock *PrometheusRuleInterfaceMock) Watch(opts v1b.ListOptions) (watch.Interface, error)
- func (mock *PrometheusRuleInterfaceMock) WatchCalls() []struct{ ... }
- type PrometheusRuleListerMock
- func (mock *PrometheusRuleListerMock) Get(namespace string, name string) (*v1.PrometheusRule, error)
- func (mock *PrometheusRuleListerMock) GetCalls() []struct{ ... }
- func (mock *PrometheusRuleListerMock) List(namespace string, selector labels.Selector) ([]*v1.PrometheusRule, error)
- func (mock *PrometheusRuleListerMock) ListCalls() []struct{ ... }
- type PrometheusRulesGetterMock
- type PrometheusesGetterMock
- type ServiceMonitorControllerMock
- func (mock *ServiceMonitorControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *ServiceMonitorControllerMock) AddClusterScopedFeatureHandlerCalls() []struct{ ... }
- func (mock *ServiceMonitorControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *ServiceMonitorControllerMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *ServiceMonitorControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *ServiceMonitorControllerMock) AddFeatureHandlerCalls() []struct{ ... }
- func (mock *ServiceMonitorControllerMock) AddHandler(ctx context.Context, name string, handler v1a.ServiceMonitorHandlerFunc)
- func (mock *ServiceMonitorControllerMock) AddHandlerCalls() []struct{ ... }
- func (mock *ServiceMonitorControllerMock) Enqueue(namespace string, name string)
- func (mock *ServiceMonitorControllerMock) EnqueueAfter(namespace string, name string, after time.Duration)
- func (mock *ServiceMonitorControllerMock) EnqueueAfterCalls() []struct{ ... }
- func (mock *ServiceMonitorControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *ServiceMonitorControllerMock) Generic() controller.GenericController
- func (mock *ServiceMonitorControllerMock) GenericCalls() []struct{}
- func (mock *ServiceMonitorControllerMock) Informer() cache.SharedIndexInformer
- func (mock *ServiceMonitorControllerMock) InformerCalls() []struct{}
- func (mock *ServiceMonitorControllerMock) Lister() v1a.ServiceMonitorLister
- func (mock *ServiceMonitorControllerMock) ListerCalls() []struct{}
- func (mock *ServiceMonitorControllerMock) Start(ctx context.Context, threadiness int) error
- func (mock *ServiceMonitorControllerMock) StartCalls() []struct{ ... }
- func (mock *ServiceMonitorControllerMock) Sync(ctx context.Context) error
- func (mock *ServiceMonitorControllerMock) SyncCalls() []struct{ ... }
- type ServiceMonitorInterfaceMock
- func (mock *ServiceMonitorInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *ServiceMonitorInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct{ ... }
- func (mock *ServiceMonitorInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *ServiceMonitorInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct{ ... }
- func (mock *ServiceMonitorInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *ServiceMonitorInterfaceMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *ServiceMonitorInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, ...)
- func (mock *ServiceMonitorInterfaceMock) AddClusterScopedLifecycleCalls() []struct{ ... }
- func (mock *ServiceMonitorInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *ServiceMonitorInterfaceMock) AddFeatureHandlerCalls() []struct{ ... }
- func (mock *ServiceMonitorInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *ServiceMonitorInterfaceMock) AddFeatureLifecycleCalls() []struct{ ... }
- func (mock *ServiceMonitorInterfaceMock) AddHandler(ctx context.Context, name string, sync v1a.ServiceMonitorHandlerFunc)
- func (mock *ServiceMonitorInterfaceMock) AddHandlerCalls() []struct{ ... }
- func (mock *ServiceMonitorInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1a.ServiceMonitorLifecycle)
- func (mock *ServiceMonitorInterfaceMock) AddLifecycleCalls() []struct{ ... }
- func (mock *ServiceMonitorInterfaceMock) Controller() v1a.ServiceMonitorController
- func (mock *ServiceMonitorInterfaceMock) ControllerCalls() []struct{}
- func (mock *ServiceMonitorInterfaceMock) Create(in1 *v1.ServiceMonitor) (*v1.ServiceMonitor, error)
- func (mock *ServiceMonitorInterfaceMock) CreateCalls() []struct{ ... }
- func (mock *ServiceMonitorInterfaceMock) Delete(name string, options *v1b.DeleteOptions) error
- func (mock *ServiceMonitorInterfaceMock) DeleteCalls() []struct{ ... }
- func (mock *ServiceMonitorInterfaceMock) DeleteCollection(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error
- func (mock *ServiceMonitorInterfaceMock) DeleteCollectionCalls() []struct{ ... }
- func (mock *ServiceMonitorInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1b.DeleteOptions) error
- func (mock *ServiceMonitorInterfaceMock) DeleteNamespacedCalls() []struct{ ... }
- func (mock *ServiceMonitorInterfaceMock) Get(name string, opts v1b.GetOptions) (*v1.ServiceMonitor, error)
- func (mock *ServiceMonitorInterfaceMock) GetCalls() []struct{ ... }
- func (mock *ServiceMonitorInterfaceMock) GetNamespaced(namespace string, name string, opts v1b.GetOptions) (*v1.ServiceMonitor, error)
- func (mock *ServiceMonitorInterfaceMock) GetNamespacedCalls() []struct{ ... }
- func (mock *ServiceMonitorInterfaceMock) List(opts v1b.ListOptions) (*v1a.ServiceMonitorList, error)
- func (mock *ServiceMonitorInterfaceMock) ListCalls() []struct{ ... }
- func (mock *ServiceMonitorInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.ServiceMonitorList, error)
- func (mock *ServiceMonitorInterfaceMock) ListNamespacedCalls() []struct{ ... }
- func (mock *ServiceMonitorInterfaceMock) ObjectClient() *objectclient.ObjectClient
- func (mock *ServiceMonitorInterfaceMock) ObjectClientCalls() []struct{}
- func (mock *ServiceMonitorInterfaceMock) Update(in1 *v1.ServiceMonitor) (*v1.ServiceMonitor, error)
- func (mock *ServiceMonitorInterfaceMock) UpdateCalls() []struct{ ... }
- func (mock *ServiceMonitorInterfaceMock) Watch(opts v1b.ListOptions) (watch.Interface, error)
- func (mock *ServiceMonitorInterfaceMock) WatchCalls() []struct{ ... }
- type ServiceMonitorListerMock
- func (mock *ServiceMonitorListerMock) Get(namespace string, name string) (*v1.ServiceMonitor, error)
- func (mock *ServiceMonitorListerMock) GetCalls() []struct{ ... }
- func (mock *ServiceMonitorListerMock) List(namespace string, selector labels.Selector) ([]*v1.ServiceMonitor, error)
- func (mock *ServiceMonitorListerMock) ListCalls() []struct{ ... }
- type ServiceMonitorsGetterMock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertmanagerControllerMock ¶
type AlertmanagerControllerMock struct { // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.AlertmanagerHandlerFunc) // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v1a.AlertmanagerHandlerFunc) // AddFeatureHandlerFunc mocks the AddFeatureHandler method. AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1a.AlertmanagerHandlerFunc) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, handler v1a.AlertmanagerHandlerFunc) // 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() v1a.AlertmanagerLister // 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 }
AlertmanagerControllerMock is a mock implementation of AlertmanagerController.
func TestSomethingThatUsesAlertmanagerController(t *testing.T) { // make and configure a mocked AlertmanagerController mockedAlertmanagerController := &AlertmanagerControllerMock{ AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.AlertmanagerHandlerFunc) { panic("mock out the AddClusterScopedFeatureHandler method") }, AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v1a.AlertmanagerHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1a.AlertmanagerHandlerFunc) { panic("mock out the AddFeatureHandler method") }, AddHandlerFunc: func(ctx context.Context, name string, handler v1a.AlertmanagerHandlerFunc) { 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() v1a.AlertmanagerLister { 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 mockedAlertmanagerController in code that requires AlertmanagerController // and then make assertions. }
func (*AlertmanagerControllerMock) AddClusterScopedFeatureHandler ¶
func (mock *AlertmanagerControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.AlertmanagerHandlerFunc)
AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.
func (*AlertmanagerControllerMock) AddClusterScopedFeatureHandlerCalls ¶
func (mock *AlertmanagerControllerMock) AddClusterScopedFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Handler v1a.AlertmanagerHandlerFunc }
AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:
len(mockedAlertmanagerController.AddClusterScopedFeatureHandlerCalls())
func (*AlertmanagerControllerMock) AddClusterScopedHandler ¶
func (mock *AlertmanagerControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v1a.AlertmanagerHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*AlertmanagerControllerMock) AddClusterScopedHandlerCalls ¶
func (mock *AlertmanagerControllerMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Handler v1a.AlertmanagerHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedAlertmanagerController.AddClusterScopedHandlerCalls())
func (*AlertmanagerControllerMock) AddFeatureHandler ¶
func (mock *AlertmanagerControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1a.AlertmanagerHandlerFunc)
AddFeatureHandler calls AddFeatureHandlerFunc.
func (*AlertmanagerControllerMock) AddFeatureHandlerCalls ¶
func (mock *AlertmanagerControllerMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string Sync v1a.AlertmanagerHandlerFunc }
AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:
len(mockedAlertmanagerController.AddFeatureHandlerCalls())
func (*AlertmanagerControllerMock) AddHandler ¶
func (mock *AlertmanagerControllerMock) AddHandler(ctx context.Context, name string, handler v1a.AlertmanagerHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*AlertmanagerControllerMock) AddHandlerCalls ¶
func (mock *AlertmanagerControllerMock) AddHandlerCalls() []struct { Ctx context.Context Name string Handler v1a.AlertmanagerHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedAlertmanagerController.AddHandlerCalls())
func (*AlertmanagerControllerMock) Enqueue ¶
func (mock *AlertmanagerControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*AlertmanagerControllerMock) EnqueueAfter ¶
func (mock *AlertmanagerControllerMock) EnqueueAfter(namespace string, name string, after time.Duration)
EnqueueAfter calls EnqueueAfterFunc.
func (*AlertmanagerControllerMock) EnqueueAfterCalls ¶
func (mock *AlertmanagerControllerMock) EnqueueAfterCalls() []struct { Namespace string Name string After time.Duration }
EnqueueAfterCalls gets all the calls that were made to EnqueueAfter. Check the length with:
len(mockedAlertmanagerController.EnqueueAfterCalls())
func (*AlertmanagerControllerMock) EnqueueCalls ¶
func (mock *AlertmanagerControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedAlertmanagerController.EnqueueCalls())
func (*AlertmanagerControllerMock) Generic ¶
func (mock *AlertmanagerControllerMock) Generic() controller.GenericController
Generic calls GenericFunc.
func (*AlertmanagerControllerMock) GenericCalls ¶
func (mock *AlertmanagerControllerMock) GenericCalls() []struct { }
GenericCalls gets all the calls that were made to Generic. Check the length with:
len(mockedAlertmanagerController.GenericCalls())
func (*AlertmanagerControllerMock) Informer ¶
func (mock *AlertmanagerControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*AlertmanagerControllerMock) InformerCalls ¶
func (mock *AlertmanagerControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedAlertmanagerController.InformerCalls())
func (*AlertmanagerControllerMock) Lister ¶
func (mock *AlertmanagerControllerMock) Lister() v1a.AlertmanagerLister
Lister calls ListerFunc.
func (*AlertmanagerControllerMock) ListerCalls ¶
func (mock *AlertmanagerControllerMock) ListerCalls() []struct { }
ListerCalls gets all the calls that were made to Lister. Check the length with:
len(mockedAlertmanagerController.ListerCalls())
func (*AlertmanagerControllerMock) Start ¶
func (mock *AlertmanagerControllerMock) Start(ctx context.Context, threadiness int) error
Start calls StartFunc.
func (*AlertmanagerControllerMock) StartCalls ¶
func (mock *AlertmanagerControllerMock) StartCalls() []struct { Ctx context.Context Threadiness int }
StartCalls gets all the calls that were made to Start. Check the length with:
len(mockedAlertmanagerController.StartCalls())
func (*AlertmanagerControllerMock) Sync ¶
func (mock *AlertmanagerControllerMock) Sync(ctx context.Context) error
Sync calls SyncFunc.
func (*AlertmanagerControllerMock) SyncCalls ¶
func (mock *AlertmanagerControllerMock) SyncCalls() []struct { Ctx context.Context }
SyncCalls gets all the calls that were made to Sync. Check the length with:
len(mockedAlertmanagerController.SyncCalls())
type AlertmanagerInterfaceMock ¶
type AlertmanagerInterfaceMock struct { // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.AlertmanagerHandlerFunc) // AddClusterScopedFeatureLifecycleFunc mocks the AddClusterScopedFeatureLifecycle method. AddClusterScopedFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.AlertmanagerLifecycle) // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v1a.AlertmanagerHandlerFunc) // AddClusterScopedLifecycleFunc mocks the AddClusterScopedLifecycle method. AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v1a.AlertmanagerLifecycle) // AddFeatureHandlerFunc mocks the AddFeatureHandler method. AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1a.AlertmanagerHandlerFunc) // AddFeatureLifecycleFunc mocks the AddFeatureLifecycle method. AddFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, lifecycle v1a.AlertmanagerLifecycle) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, sync v1a.AlertmanagerHandlerFunc) // AddLifecycleFunc mocks the AddLifecycle method. AddLifecycleFunc func(ctx context.Context, name string, lifecycle v1a.AlertmanagerLifecycle) // ControllerFunc mocks the Controller method. ControllerFunc func() v1a.AlertmanagerController // CreateFunc mocks the Create method. CreateFunc func(in1 *v1.Alertmanager) (*v1.Alertmanager, error) // DeleteFunc mocks the Delete method. DeleteFunc func(name string, options *v1b.DeleteOptions) error // DeleteCollectionFunc mocks the DeleteCollection method. DeleteCollectionFunc func(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error // DeleteNamespacedFunc mocks the DeleteNamespaced method. DeleteNamespacedFunc func(namespace string, name string, options *v1b.DeleteOptions) error // GetFunc mocks the Get method. GetFunc func(name string, opts v1b.GetOptions) (*v1.Alertmanager, error) // GetNamespacedFunc mocks the GetNamespaced method. GetNamespacedFunc func(namespace string, name string, opts v1b.GetOptions) (*v1.Alertmanager, error) // ListFunc mocks the List method. ListFunc func(opts v1b.ListOptions) (*v1a.AlertmanagerList, error) // ListNamespacedFunc mocks the ListNamespaced method. ListNamespacedFunc func(namespace string, opts v1b.ListOptions) (*v1a.AlertmanagerList, error) // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v1.Alertmanager) (*v1.Alertmanager, error) // WatchFunc mocks the Watch method. WatchFunc func(opts v1b.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
AlertmanagerInterfaceMock is a mock implementation of AlertmanagerInterface.
func TestSomethingThatUsesAlertmanagerInterface(t *testing.T) { // make and configure a mocked AlertmanagerInterface mockedAlertmanagerInterface := &AlertmanagerInterfaceMock{ AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.AlertmanagerHandlerFunc) { panic("mock out the AddClusterScopedFeatureHandler method") }, AddClusterScopedFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.AlertmanagerLifecycle) { panic("mock out the AddClusterScopedFeatureLifecycle method") }, AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v1a.AlertmanagerHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v1a.AlertmanagerLifecycle) { panic("mock out the AddClusterScopedLifecycle method") }, AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1a.AlertmanagerHandlerFunc) { panic("mock out the AddFeatureHandler method") }, AddFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, lifecycle v1a.AlertmanagerLifecycle) { panic("mock out the AddFeatureLifecycle method") }, AddHandlerFunc: func(ctx context.Context, name string, sync v1a.AlertmanagerHandlerFunc) { panic("mock out the AddHandler method") }, AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v1a.AlertmanagerLifecycle) { panic("mock out the AddLifecycle method") }, ControllerFunc: func() v1a.AlertmanagerController { panic("mock out the Controller method") }, CreateFunc: func(in1 *v1.Alertmanager) (*v1.Alertmanager, error) { panic("mock out the Create method") }, DeleteFunc: func(name string, options *v1b.DeleteOptions) error { panic("mock out the Delete method") }, DeleteCollectionFunc: func(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error { panic("mock out the DeleteCollection method") }, DeleteNamespacedFunc: func(namespace string, name string, options *v1b.DeleteOptions) error { panic("mock out the DeleteNamespaced method") }, GetFunc: func(name string, opts v1b.GetOptions) (*v1.Alertmanager, error) { panic("mock out the Get method") }, GetNamespacedFunc: func(namespace string, name string, opts v1b.GetOptions) (*v1.Alertmanager, error) { panic("mock out the GetNamespaced method") }, ListFunc: func(opts v1b.ListOptions) (*v1a.AlertmanagerList, error) { panic("mock out the List method") }, ListNamespacedFunc: func(namespace string, opts v1b.ListOptions) (*v1a.AlertmanagerList, error) { panic("mock out the ListNamespaced method") }, ObjectClientFunc: func() *objectclient.ObjectClient { panic("mock out the ObjectClient method") }, UpdateFunc: func(in1 *v1.Alertmanager) (*v1.Alertmanager, error) { panic("mock out the Update method") }, WatchFunc: func(opts v1b.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedAlertmanagerInterface in code that requires AlertmanagerInterface // and then make assertions. }
func (*AlertmanagerInterfaceMock) AddClusterScopedFeatureHandler ¶
func (mock *AlertmanagerInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.AlertmanagerHandlerFunc)
AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.
func (*AlertmanagerInterfaceMock) AddClusterScopedFeatureHandlerCalls ¶
func (mock *AlertmanagerInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Sync v1a.AlertmanagerHandlerFunc }
AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:
len(mockedAlertmanagerInterface.AddClusterScopedFeatureHandlerCalls())
func (*AlertmanagerInterfaceMock) AddClusterScopedFeatureLifecycle ¶
func (mock *AlertmanagerInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.AlertmanagerLifecycle)
AddClusterScopedFeatureLifecycle calls AddClusterScopedFeatureLifecycleFunc.
func (*AlertmanagerInterfaceMock) AddClusterScopedFeatureLifecycleCalls ¶
func (mock *AlertmanagerInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Lifecycle v1a.AlertmanagerLifecycle }
AddClusterScopedFeatureLifecycleCalls gets all the calls that were made to AddClusterScopedFeatureLifecycle. Check the length with:
len(mockedAlertmanagerInterface.AddClusterScopedFeatureLifecycleCalls())
func (*AlertmanagerInterfaceMock) AddClusterScopedHandler ¶
func (mock *AlertmanagerInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v1a.AlertmanagerHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*AlertmanagerInterfaceMock) AddClusterScopedHandlerCalls ¶
func (mock *AlertmanagerInterfaceMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Sync v1a.AlertmanagerHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedAlertmanagerInterface.AddClusterScopedHandlerCalls())
func (*AlertmanagerInterfaceMock) AddClusterScopedLifecycle ¶
func (mock *AlertmanagerInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v1a.AlertmanagerLifecycle)
AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc.
func (*AlertmanagerInterfaceMock) AddClusterScopedLifecycleCalls ¶
func (mock *AlertmanagerInterfaceMock) AddClusterScopedLifecycleCalls() []struct { Ctx context.Context Name string ClusterName string Lifecycle v1a.AlertmanagerLifecycle }
AddClusterScopedLifecycleCalls gets all the calls that were made to AddClusterScopedLifecycle. Check the length with:
len(mockedAlertmanagerInterface.AddClusterScopedLifecycleCalls())
func (*AlertmanagerInterfaceMock) AddFeatureHandler ¶
func (mock *AlertmanagerInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1a.AlertmanagerHandlerFunc)
AddFeatureHandler calls AddFeatureHandlerFunc.
func (*AlertmanagerInterfaceMock) AddFeatureHandlerCalls ¶
func (mock *AlertmanagerInterfaceMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string Sync v1a.AlertmanagerHandlerFunc }
AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:
len(mockedAlertmanagerInterface.AddFeatureHandlerCalls())
func (*AlertmanagerInterfaceMock) AddFeatureLifecycle ¶
func (mock *AlertmanagerInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, lifecycle v1a.AlertmanagerLifecycle)
AddFeatureLifecycle calls AddFeatureLifecycleFunc.
func (*AlertmanagerInterfaceMock) AddFeatureLifecycleCalls ¶
func (mock *AlertmanagerInterfaceMock) AddFeatureLifecycleCalls() []struct { Ctx context.Context Enabled func() bool Name string Lifecycle v1a.AlertmanagerLifecycle }
AddFeatureLifecycleCalls gets all the calls that were made to AddFeatureLifecycle. Check the length with:
len(mockedAlertmanagerInterface.AddFeatureLifecycleCalls())
func (*AlertmanagerInterfaceMock) AddHandler ¶
func (mock *AlertmanagerInterfaceMock) AddHandler(ctx context.Context, name string, sync v1a.AlertmanagerHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*AlertmanagerInterfaceMock) AddHandlerCalls ¶
func (mock *AlertmanagerInterfaceMock) AddHandlerCalls() []struct { Ctx context.Context Name string Sync v1a.AlertmanagerHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedAlertmanagerInterface.AddHandlerCalls())
func (*AlertmanagerInterfaceMock) AddLifecycle ¶
func (mock *AlertmanagerInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1a.AlertmanagerLifecycle)
AddLifecycle calls AddLifecycleFunc.
func (*AlertmanagerInterfaceMock) AddLifecycleCalls ¶
func (mock *AlertmanagerInterfaceMock) AddLifecycleCalls() []struct { Ctx context.Context Name string Lifecycle v1a.AlertmanagerLifecycle }
AddLifecycleCalls gets all the calls that were made to AddLifecycle. Check the length with:
len(mockedAlertmanagerInterface.AddLifecycleCalls())
func (*AlertmanagerInterfaceMock) Controller ¶
func (mock *AlertmanagerInterfaceMock) Controller() v1a.AlertmanagerController
Controller calls ControllerFunc.
func (*AlertmanagerInterfaceMock) ControllerCalls ¶
func (mock *AlertmanagerInterfaceMock) ControllerCalls() []struct { }
ControllerCalls gets all the calls that were made to Controller. Check the length with:
len(mockedAlertmanagerInterface.ControllerCalls())
func (*AlertmanagerInterfaceMock) Create ¶
func (mock *AlertmanagerInterfaceMock) Create(in1 *v1.Alertmanager) (*v1.Alertmanager, error)
Create calls CreateFunc.
func (*AlertmanagerInterfaceMock) CreateCalls ¶
func (mock *AlertmanagerInterfaceMock) CreateCalls() []struct { In1 *v1.Alertmanager }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedAlertmanagerInterface.CreateCalls())
func (*AlertmanagerInterfaceMock) Delete ¶
func (mock *AlertmanagerInterfaceMock) Delete(name string, options *v1b.DeleteOptions) error
Delete calls DeleteFunc.
func (*AlertmanagerInterfaceMock) DeleteCalls ¶
func (mock *AlertmanagerInterfaceMock) DeleteCalls() []struct { Name string Options *v1b.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedAlertmanagerInterface.DeleteCalls())
func (*AlertmanagerInterfaceMock) DeleteCollection ¶
func (mock *AlertmanagerInterfaceMock) DeleteCollection(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error
DeleteCollection calls DeleteCollectionFunc.
func (*AlertmanagerInterfaceMock) DeleteCollectionCalls ¶
func (mock *AlertmanagerInterfaceMock) DeleteCollectionCalls() []struct { DeleteOpts *v1b.DeleteOptions ListOpts v1b.ListOptions }
DeleteCollectionCalls gets all the calls that were made to DeleteCollection. Check the length with:
len(mockedAlertmanagerInterface.DeleteCollectionCalls())
func (*AlertmanagerInterfaceMock) DeleteNamespaced ¶
func (mock *AlertmanagerInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1b.DeleteOptions) error
DeleteNamespaced calls DeleteNamespacedFunc.
func (*AlertmanagerInterfaceMock) DeleteNamespacedCalls ¶
func (mock *AlertmanagerInterfaceMock) DeleteNamespacedCalls() []struct { Namespace string Name string Options *v1b.DeleteOptions }
DeleteNamespacedCalls gets all the calls that were made to DeleteNamespaced. Check the length with:
len(mockedAlertmanagerInterface.DeleteNamespacedCalls())
func (*AlertmanagerInterfaceMock) Get ¶
func (mock *AlertmanagerInterfaceMock) Get(name string, opts v1b.GetOptions) (*v1.Alertmanager, error)
Get calls GetFunc.
func (*AlertmanagerInterfaceMock) GetCalls ¶
func (mock *AlertmanagerInterfaceMock) GetCalls() []struct { Name string Opts v1b.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedAlertmanagerInterface.GetCalls())
func (*AlertmanagerInterfaceMock) GetNamespaced ¶
func (mock *AlertmanagerInterfaceMock) GetNamespaced(namespace string, name string, opts v1b.GetOptions) (*v1.Alertmanager, error)
GetNamespaced calls GetNamespacedFunc.
func (*AlertmanagerInterfaceMock) GetNamespacedCalls ¶
func (mock *AlertmanagerInterfaceMock) GetNamespacedCalls() []struct { Namespace string Name string Opts v1b.GetOptions }
GetNamespacedCalls gets all the calls that were made to GetNamespaced. Check the length with:
len(mockedAlertmanagerInterface.GetNamespacedCalls())
func (*AlertmanagerInterfaceMock) List ¶
func (mock *AlertmanagerInterfaceMock) List(opts v1b.ListOptions) (*v1a.AlertmanagerList, error)
List calls ListFunc.
func (*AlertmanagerInterfaceMock) ListCalls ¶
func (mock *AlertmanagerInterfaceMock) ListCalls() []struct { Opts v1b.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedAlertmanagerInterface.ListCalls())
func (*AlertmanagerInterfaceMock) ListNamespaced ¶
func (mock *AlertmanagerInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.AlertmanagerList, error)
ListNamespaced calls ListNamespacedFunc.
func (*AlertmanagerInterfaceMock) ListNamespacedCalls ¶
func (mock *AlertmanagerInterfaceMock) ListNamespacedCalls() []struct { Namespace string Opts v1b.ListOptions }
ListNamespacedCalls gets all the calls that were made to ListNamespaced. Check the length with:
len(mockedAlertmanagerInterface.ListNamespacedCalls())
func (*AlertmanagerInterfaceMock) ObjectClient ¶
func (mock *AlertmanagerInterfaceMock) ObjectClient() *objectclient.ObjectClient
ObjectClient calls ObjectClientFunc.
func (*AlertmanagerInterfaceMock) ObjectClientCalls ¶
func (mock *AlertmanagerInterfaceMock) ObjectClientCalls() []struct { }
ObjectClientCalls gets all the calls that were made to ObjectClient. Check the length with:
len(mockedAlertmanagerInterface.ObjectClientCalls())
func (*AlertmanagerInterfaceMock) Update ¶
func (mock *AlertmanagerInterfaceMock) Update(in1 *v1.Alertmanager) (*v1.Alertmanager, error)
Update calls UpdateFunc.
func (*AlertmanagerInterfaceMock) UpdateCalls ¶
func (mock *AlertmanagerInterfaceMock) UpdateCalls() []struct { In1 *v1.Alertmanager }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedAlertmanagerInterface.UpdateCalls())
func (*AlertmanagerInterfaceMock) Watch ¶
func (mock *AlertmanagerInterfaceMock) Watch(opts v1b.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*AlertmanagerInterfaceMock) WatchCalls ¶
func (mock *AlertmanagerInterfaceMock) WatchCalls() []struct { Opts v1b.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedAlertmanagerInterface.WatchCalls())
type AlertmanagerListerMock ¶
type AlertmanagerListerMock struct { // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v1.Alertmanager, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v1.Alertmanager, error) // contains filtered or unexported fields }
AlertmanagerListerMock is a mock implementation of AlertmanagerLister.
func TestSomethingThatUsesAlertmanagerLister(t *testing.T) { // make and configure a mocked AlertmanagerLister mockedAlertmanagerLister := &AlertmanagerListerMock{ GetFunc: func(namespace string, name string) (*v1.Alertmanager, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v1.Alertmanager, error) { panic("mock out the List method") }, } // use mockedAlertmanagerLister in code that requires AlertmanagerLister // and then make assertions. }
func (*AlertmanagerListerMock) Get ¶
func (mock *AlertmanagerListerMock) Get(namespace string, name string) (*v1.Alertmanager, error)
Get calls GetFunc.
func (*AlertmanagerListerMock) GetCalls ¶
func (mock *AlertmanagerListerMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedAlertmanagerLister.GetCalls())
func (*AlertmanagerListerMock) List ¶
func (mock *AlertmanagerListerMock) List(namespace string, selector labels.Selector) ([]*v1.Alertmanager, error)
List calls ListFunc.
type AlertmanagersGetterMock ¶
type AlertmanagersGetterMock struct { // AlertmanagersFunc mocks the Alertmanagers method. AlertmanagersFunc func(namespace string) v1a.AlertmanagerInterface // contains filtered or unexported fields }
AlertmanagersGetterMock is a mock implementation of AlertmanagersGetter.
func TestSomethingThatUsesAlertmanagersGetter(t *testing.T) { // make and configure a mocked AlertmanagersGetter mockedAlertmanagersGetter := &AlertmanagersGetterMock{ AlertmanagersFunc: func(namespace string) v1a.AlertmanagerInterface { panic("mock out the Alertmanagers method") }, } // use mockedAlertmanagersGetter in code that requires AlertmanagersGetter // and then make assertions. }
func (*AlertmanagersGetterMock) Alertmanagers ¶
func (mock *AlertmanagersGetterMock) Alertmanagers(namespace string) v1a.AlertmanagerInterface
Alertmanagers calls AlertmanagersFunc.
func (*AlertmanagersGetterMock) AlertmanagersCalls ¶
func (mock *AlertmanagersGetterMock) AlertmanagersCalls() []struct { Namespace string }
AlertmanagersCalls gets all the calls that were made to Alertmanagers. Check the length with:
len(mockedAlertmanagersGetter.AlertmanagersCalls())
type PrometheusControllerMock ¶
type PrometheusControllerMock struct { // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.PrometheusHandlerFunc) // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v1a.PrometheusHandlerFunc) // AddFeatureHandlerFunc mocks the AddFeatureHandler method. AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1a.PrometheusHandlerFunc) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, handler v1a.PrometheusHandlerFunc) // 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() v1a.PrometheusLister // 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 }
PrometheusControllerMock is a mock implementation of PrometheusController.
func TestSomethingThatUsesPrometheusController(t *testing.T) { // make and configure a mocked PrometheusController mockedPrometheusController := &PrometheusControllerMock{ AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.PrometheusHandlerFunc) { panic("mock out the AddClusterScopedFeatureHandler method") }, AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v1a.PrometheusHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1a.PrometheusHandlerFunc) { panic("mock out the AddFeatureHandler method") }, AddHandlerFunc: func(ctx context.Context, name string, handler v1a.PrometheusHandlerFunc) { 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() v1a.PrometheusLister { 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 mockedPrometheusController in code that requires PrometheusController // and then make assertions. }
func (*PrometheusControllerMock) AddClusterScopedFeatureHandler ¶
func (mock *PrometheusControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.PrometheusHandlerFunc)
AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.
func (*PrometheusControllerMock) AddClusterScopedFeatureHandlerCalls ¶
func (mock *PrometheusControllerMock) AddClusterScopedFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Handler v1a.PrometheusHandlerFunc }
AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:
len(mockedPrometheusController.AddClusterScopedFeatureHandlerCalls())
func (*PrometheusControllerMock) AddClusterScopedHandler ¶
func (mock *PrometheusControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v1a.PrometheusHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*PrometheusControllerMock) AddClusterScopedHandlerCalls ¶
func (mock *PrometheusControllerMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Handler v1a.PrometheusHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedPrometheusController.AddClusterScopedHandlerCalls())
func (*PrometheusControllerMock) AddFeatureHandler ¶
func (mock *PrometheusControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1a.PrometheusHandlerFunc)
AddFeatureHandler calls AddFeatureHandlerFunc.
func (*PrometheusControllerMock) AddFeatureHandlerCalls ¶
func (mock *PrometheusControllerMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string Sync v1a.PrometheusHandlerFunc }
AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:
len(mockedPrometheusController.AddFeatureHandlerCalls())
func (*PrometheusControllerMock) AddHandler ¶
func (mock *PrometheusControllerMock) AddHandler(ctx context.Context, name string, handler v1a.PrometheusHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*PrometheusControllerMock) AddHandlerCalls ¶
func (mock *PrometheusControllerMock) AddHandlerCalls() []struct { Ctx context.Context Name string Handler v1a.PrometheusHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedPrometheusController.AddHandlerCalls())
func (*PrometheusControllerMock) Enqueue ¶
func (mock *PrometheusControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*PrometheusControllerMock) EnqueueAfter ¶
func (mock *PrometheusControllerMock) EnqueueAfter(namespace string, name string, after time.Duration)
EnqueueAfter calls EnqueueAfterFunc.
func (*PrometheusControllerMock) EnqueueAfterCalls ¶
func (mock *PrometheusControllerMock) EnqueueAfterCalls() []struct { Namespace string Name string After time.Duration }
EnqueueAfterCalls gets all the calls that were made to EnqueueAfter. Check the length with:
len(mockedPrometheusController.EnqueueAfterCalls())
func (*PrometheusControllerMock) EnqueueCalls ¶
func (mock *PrometheusControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedPrometheusController.EnqueueCalls())
func (*PrometheusControllerMock) Generic ¶
func (mock *PrometheusControllerMock) Generic() controller.GenericController
Generic calls GenericFunc.
func (*PrometheusControllerMock) GenericCalls ¶
func (mock *PrometheusControllerMock) GenericCalls() []struct { }
GenericCalls gets all the calls that were made to Generic. Check the length with:
len(mockedPrometheusController.GenericCalls())
func (*PrometheusControllerMock) Informer ¶
func (mock *PrometheusControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*PrometheusControllerMock) InformerCalls ¶
func (mock *PrometheusControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedPrometheusController.InformerCalls())
func (*PrometheusControllerMock) Lister ¶
func (mock *PrometheusControllerMock) Lister() v1a.PrometheusLister
Lister calls ListerFunc.
func (*PrometheusControllerMock) ListerCalls ¶
func (mock *PrometheusControllerMock) ListerCalls() []struct { }
ListerCalls gets all the calls that were made to Lister. Check the length with:
len(mockedPrometheusController.ListerCalls())
func (*PrometheusControllerMock) Start ¶
func (mock *PrometheusControllerMock) Start(ctx context.Context, threadiness int) error
Start calls StartFunc.
func (*PrometheusControllerMock) StartCalls ¶
func (mock *PrometheusControllerMock) StartCalls() []struct { Ctx context.Context Threadiness int }
StartCalls gets all the calls that were made to Start. Check the length with:
len(mockedPrometheusController.StartCalls())
func (*PrometheusControllerMock) Sync ¶
func (mock *PrometheusControllerMock) Sync(ctx context.Context) error
Sync calls SyncFunc.
func (*PrometheusControllerMock) SyncCalls ¶
func (mock *PrometheusControllerMock) SyncCalls() []struct { Ctx context.Context }
SyncCalls gets all the calls that were made to Sync. Check the length with:
len(mockedPrometheusController.SyncCalls())
type PrometheusInterfaceMock ¶
type PrometheusInterfaceMock struct { // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.PrometheusHandlerFunc) // AddClusterScopedFeatureLifecycleFunc mocks the AddClusterScopedFeatureLifecycle method. AddClusterScopedFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.PrometheusLifecycle) // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v1a.PrometheusHandlerFunc) // AddClusterScopedLifecycleFunc mocks the AddClusterScopedLifecycle method. AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v1a.PrometheusLifecycle) // AddFeatureHandlerFunc mocks the AddFeatureHandler method. AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1a.PrometheusHandlerFunc) // AddFeatureLifecycleFunc mocks the AddFeatureLifecycle method. AddFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, lifecycle v1a.PrometheusLifecycle) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, sync v1a.PrometheusHandlerFunc) // AddLifecycleFunc mocks the AddLifecycle method. AddLifecycleFunc func(ctx context.Context, name string, lifecycle v1a.PrometheusLifecycle) // ControllerFunc mocks the Controller method. ControllerFunc func() v1a.PrometheusController // CreateFunc mocks the Create method. CreateFunc func(in1 *v1.Prometheus) (*v1.Prometheus, error) // DeleteFunc mocks the Delete method. DeleteFunc func(name string, options *v1b.DeleteOptions) error // DeleteCollectionFunc mocks the DeleteCollection method. DeleteCollectionFunc func(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error // DeleteNamespacedFunc mocks the DeleteNamespaced method. DeleteNamespacedFunc func(namespace string, name string, options *v1b.DeleteOptions) error // GetFunc mocks the Get method. GetFunc func(name string, opts v1b.GetOptions) (*v1.Prometheus, error) // GetNamespacedFunc mocks the GetNamespaced method. GetNamespacedFunc func(namespace string, name string, opts v1b.GetOptions) (*v1.Prometheus, error) // ListFunc mocks the List method. ListFunc func(opts v1b.ListOptions) (*v1a.PrometheusList, error) // ListNamespacedFunc mocks the ListNamespaced method. ListNamespacedFunc func(namespace string, opts v1b.ListOptions) (*v1a.PrometheusList, error) // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v1.Prometheus) (*v1.Prometheus, error) // WatchFunc mocks the Watch method. WatchFunc func(opts v1b.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
PrometheusInterfaceMock is a mock implementation of PrometheusInterface.
func TestSomethingThatUsesPrometheusInterface(t *testing.T) { // make and configure a mocked PrometheusInterface mockedPrometheusInterface := &PrometheusInterfaceMock{ AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.PrometheusHandlerFunc) { panic("mock out the AddClusterScopedFeatureHandler method") }, AddClusterScopedFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.PrometheusLifecycle) { panic("mock out the AddClusterScopedFeatureLifecycle method") }, AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v1a.PrometheusHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v1a.PrometheusLifecycle) { panic("mock out the AddClusterScopedLifecycle method") }, AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1a.PrometheusHandlerFunc) { panic("mock out the AddFeatureHandler method") }, AddFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, lifecycle v1a.PrometheusLifecycle) { panic("mock out the AddFeatureLifecycle method") }, AddHandlerFunc: func(ctx context.Context, name string, sync v1a.PrometheusHandlerFunc) { panic("mock out the AddHandler method") }, AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v1a.PrometheusLifecycle) { panic("mock out the AddLifecycle method") }, ControllerFunc: func() v1a.PrometheusController { panic("mock out the Controller method") }, CreateFunc: func(in1 *v1.Prometheus) (*v1.Prometheus, error) { panic("mock out the Create method") }, DeleteFunc: func(name string, options *v1b.DeleteOptions) error { panic("mock out the Delete method") }, DeleteCollectionFunc: func(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error { panic("mock out the DeleteCollection method") }, DeleteNamespacedFunc: func(namespace string, name string, options *v1b.DeleteOptions) error { panic("mock out the DeleteNamespaced method") }, GetFunc: func(name string, opts v1b.GetOptions) (*v1.Prometheus, error) { panic("mock out the Get method") }, GetNamespacedFunc: func(namespace string, name string, opts v1b.GetOptions) (*v1.Prometheus, error) { panic("mock out the GetNamespaced method") }, ListFunc: func(opts v1b.ListOptions) (*v1a.PrometheusList, error) { panic("mock out the List method") }, ListNamespacedFunc: func(namespace string, opts v1b.ListOptions) (*v1a.PrometheusList, error) { panic("mock out the ListNamespaced method") }, ObjectClientFunc: func() *objectclient.ObjectClient { panic("mock out the ObjectClient method") }, UpdateFunc: func(in1 *v1.Prometheus) (*v1.Prometheus, error) { panic("mock out the Update method") }, WatchFunc: func(opts v1b.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedPrometheusInterface in code that requires PrometheusInterface // and then make assertions. }
func (*PrometheusInterfaceMock) AddClusterScopedFeatureHandler ¶
func (mock *PrometheusInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.PrometheusHandlerFunc)
AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.
func (*PrometheusInterfaceMock) AddClusterScopedFeatureHandlerCalls ¶
func (mock *PrometheusInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Sync v1a.PrometheusHandlerFunc }
AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:
len(mockedPrometheusInterface.AddClusterScopedFeatureHandlerCalls())
func (*PrometheusInterfaceMock) AddClusterScopedFeatureLifecycle ¶
func (mock *PrometheusInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.PrometheusLifecycle)
AddClusterScopedFeatureLifecycle calls AddClusterScopedFeatureLifecycleFunc.
func (*PrometheusInterfaceMock) AddClusterScopedFeatureLifecycleCalls ¶
func (mock *PrometheusInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Lifecycle v1a.PrometheusLifecycle }
AddClusterScopedFeatureLifecycleCalls gets all the calls that were made to AddClusterScopedFeatureLifecycle. Check the length with:
len(mockedPrometheusInterface.AddClusterScopedFeatureLifecycleCalls())
func (*PrometheusInterfaceMock) AddClusterScopedHandler ¶
func (mock *PrometheusInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v1a.PrometheusHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*PrometheusInterfaceMock) AddClusterScopedHandlerCalls ¶
func (mock *PrometheusInterfaceMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Sync v1a.PrometheusHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedPrometheusInterface.AddClusterScopedHandlerCalls())
func (*PrometheusInterfaceMock) AddClusterScopedLifecycle ¶
func (mock *PrometheusInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v1a.PrometheusLifecycle)
AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc.
func (*PrometheusInterfaceMock) AddClusterScopedLifecycleCalls ¶
func (mock *PrometheusInterfaceMock) AddClusterScopedLifecycleCalls() []struct { Ctx context.Context Name string ClusterName string Lifecycle v1a.PrometheusLifecycle }
AddClusterScopedLifecycleCalls gets all the calls that were made to AddClusterScopedLifecycle. Check the length with:
len(mockedPrometheusInterface.AddClusterScopedLifecycleCalls())
func (*PrometheusInterfaceMock) AddFeatureHandler ¶
func (mock *PrometheusInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1a.PrometheusHandlerFunc)
AddFeatureHandler calls AddFeatureHandlerFunc.
func (*PrometheusInterfaceMock) AddFeatureHandlerCalls ¶
func (mock *PrometheusInterfaceMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string Sync v1a.PrometheusHandlerFunc }
AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:
len(mockedPrometheusInterface.AddFeatureHandlerCalls())
func (*PrometheusInterfaceMock) AddFeatureLifecycle ¶
func (mock *PrometheusInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, lifecycle v1a.PrometheusLifecycle)
AddFeatureLifecycle calls AddFeatureLifecycleFunc.
func (*PrometheusInterfaceMock) AddFeatureLifecycleCalls ¶
func (mock *PrometheusInterfaceMock) AddFeatureLifecycleCalls() []struct { Ctx context.Context Enabled func() bool Name string Lifecycle v1a.PrometheusLifecycle }
AddFeatureLifecycleCalls gets all the calls that were made to AddFeatureLifecycle. Check the length with:
len(mockedPrometheusInterface.AddFeatureLifecycleCalls())
func (*PrometheusInterfaceMock) AddHandler ¶
func (mock *PrometheusInterfaceMock) AddHandler(ctx context.Context, name string, sync v1a.PrometheusHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*PrometheusInterfaceMock) AddHandlerCalls ¶
func (mock *PrometheusInterfaceMock) AddHandlerCalls() []struct { Ctx context.Context Name string Sync v1a.PrometheusHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedPrometheusInterface.AddHandlerCalls())
func (*PrometheusInterfaceMock) AddLifecycle ¶
func (mock *PrometheusInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1a.PrometheusLifecycle)
AddLifecycle calls AddLifecycleFunc.
func (*PrometheusInterfaceMock) AddLifecycleCalls ¶
func (mock *PrometheusInterfaceMock) AddLifecycleCalls() []struct { Ctx context.Context Name string Lifecycle v1a.PrometheusLifecycle }
AddLifecycleCalls gets all the calls that were made to AddLifecycle. Check the length with:
len(mockedPrometheusInterface.AddLifecycleCalls())
func (*PrometheusInterfaceMock) Controller ¶
func (mock *PrometheusInterfaceMock) Controller() v1a.PrometheusController
Controller calls ControllerFunc.
func (*PrometheusInterfaceMock) ControllerCalls ¶
func (mock *PrometheusInterfaceMock) ControllerCalls() []struct { }
ControllerCalls gets all the calls that were made to Controller. Check the length with:
len(mockedPrometheusInterface.ControllerCalls())
func (*PrometheusInterfaceMock) Create ¶
func (mock *PrometheusInterfaceMock) Create(in1 *v1.Prometheus) (*v1.Prometheus, error)
Create calls CreateFunc.
func (*PrometheusInterfaceMock) CreateCalls ¶
func (mock *PrometheusInterfaceMock) CreateCalls() []struct { In1 *v1.Prometheus }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedPrometheusInterface.CreateCalls())
func (*PrometheusInterfaceMock) Delete ¶
func (mock *PrometheusInterfaceMock) Delete(name string, options *v1b.DeleteOptions) error
Delete calls DeleteFunc.
func (*PrometheusInterfaceMock) DeleteCalls ¶
func (mock *PrometheusInterfaceMock) DeleteCalls() []struct { Name string Options *v1b.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedPrometheusInterface.DeleteCalls())
func (*PrometheusInterfaceMock) DeleteCollection ¶
func (mock *PrometheusInterfaceMock) DeleteCollection(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error
DeleteCollection calls DeleteCollectionFunc.
func (*PrometheusInterfaceMock) DeleteCollectionCalls ¶
func (mock *PrometheusInterfaceMock) DeleteCollectionCalls() []struct { DeleteOpts *v1b.DeleteOptions ListOpts v1b.ListOptions }
DeleteCollectionCalls gets all the calls that were made to DeleteCollection. Check the length with:
len(mockedPrometheusInterface.DeleteCollectionCalls())
func (*PrometheusInterfaceMock) DeleteNamespaced ¶
func (mock *PrometheusInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1b.DeleteOptions) error
DeleteNamespaced calls DeleteNamespacedFunc.
func (*PrometheusInterfaceMock) DeleteNamespacedCalls ¶
func (mock *PrometheusInterfaceMock) DeleteNamespacedCalls() []struct { Namespace string Name string Options *v1b.DeleteOptions }
DeleteNamespacedCalls gets all the calls that were made to DeleteNamespaced. Check the length with:
len(mockedPrometheusInterface.DeleteNamespacedCalls())
func (*PrometheusInterfaceMock) Get ¶
func (mock *PrometheusInterfaceMock) Get(name string, opts v1b.GetOptions) (*v1.Prometheus, error)
Get calls GetFunc.
func (*PrometheusInterfaceMock) GetCalls ¶
func (mock *PrometheusInterfaceMock) GetCalls() []struct { Name string Opts v1b.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedPrometheusInterface.GetCalls())
func (*PrometheusInterfaceMock) GetNamespaced ¶
func (mock *PrometheusInterfaceMock) GetNamespaced(namespace string, name string, opts v1b.GetOptions) (*v1.Prometheus, error)
GetNamespaced calls GetNamespacedFunc.
func (*PrometheusInterfaceMock) GetNamespacedCalls ¶
func (mock *PrometheusInterfaceMock) GetNamespacedCalls() []struct { Namespace string Name string Opts v1b.GetOptions }
GetNamespacedCalls gets all the calls that were made to GetNamespaced. Check the length with:
len(mockedPrometheusInterface.GetNamespacedCalls())
func (*PrometheusInterfaceMock) List ¶
func (mock *PrometheusInterfaceMock) List(opts v1b.ListOptions) (*v1a.PrometheusList, error)
List calls ListFunc.
func (*PrometheusInterfaceMock) ListCalls ¶
func (mock *PrometheusInterfaceMock) ListCalls() []struct { Opts v1b.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedPrometheusInterface.ListCalls())
func (*PrometheusInterfaceMock) ListNamespaced ¶
func (mock *PrometheusInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.PrometheusList, error)
ListNamespaced calls ListNamespacedFunc.
func (*PrometheusInterfaceMock) ListNamespacedCalls ¶
func (mock *PrometheusInterfaceMock) ListNamespacedCalls() []struct { Namespace string Opts v1b.ListOptions }
ListNamespacedCalls gets all the calls that were made to ListNamespaced. Check the length with:
len(mockedPrometheusInterface.ListNamespacedCalls())
func (*PrometheusInterfaceMock) ObjectClient ¶
func (mock *PrometheusInterfaceMock) ObjectClient() *objectclient.ObjectClient
ObjectClient calls ObjectClientFunc.
func (*PrometheusInterfaceMock) ObjectClientCalls ¶
func (mock *PrometheusInterfaceMock) ObjectClientCalls() []struct { }
ObjectClientCalls gets all the calls that were made to ObjectClient. Check the length with:
len(mockedPrometheusInterface.ObjectClientCalls())
func (*PrometheusInterfaceMock) Update ¶
func (mock *PrometheusInterfaceMock) Update(in1 *v1.Prometheus) (*v1.Prometheus, error)
Update calls UpdateFunc.
func (*PrometheusInterfaceMock) UpdateCalls ¶
func (mock *PrometheusInterfaceMock) UpdateCalls() []struct { In1 *v1.Prometheus }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedPrometheusInterface.UpdateCalls())
func (*PrometheusInterfaceMock) Watch ¶
func (mock *PrometheusInterfaceMock) Watch(opts v1b.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*PrometheusInterfaceMock) WatchCalls ¶
func (mock *PrometheusInterfaceMock) WatchCalls() []struct { Opts v1b.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedPrometheusInterface.WatchCalls())
type PrometheusListerMock ¶
type PrometheusListerMock struct { // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v1.Prometheus, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v1.Prometheus, error) // contains filtered or unexported fields }
PrometheusListerMock is a mock implementation of PrometheusLister.
func TestSomethingThatUsesPrometheusLister(t *testing.T) { // make and configure a mocked PrometheusLister mockedPrometheusLister := &PrometheusListerMock{ GetFunc: func(namespace string, name string) (*v1.Prometheus, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v1.Prometheus, error) { panic("mock out the List method") }, } // use mockedPrometheusLister in code that requires PrometheusLister // and then make assertions. }
func (*PrometheusListerMock) Get ¶
func (mock *PrometheusListerMock) Get(namespace string, name string) (*v1.Prometheus, error)
Get calls GetFunc.
func (*PrometheusListerMock) GetCalls ¶
func (mock *PrometheusListerMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedPrometheusLister.GetCalls())
func (*PrometheusListerMock) List ¶
func (mock *PrometheusListerMock) List(namespace string, selector labels.Selector) ([]*v1.Prometheus, error)
List calls ListFunc.
type PrometheusRuleControllerMock ¶
type PrometheusRuleControllerMock struct { // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.PrometheusRuleHandlerFunc) // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v1a.PrometheusRuleHandlerFunc) // AddFeatureHandlerFunc mocks the AddFeatureHandler method. AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1a.PrometheusRuleHandlerFunc) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, handler v1a.PrometheusRuleHandlerFunc) // 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() v1a.PrometheusRuleLister // 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 }
PrometheusRuleControllerMock is a mock implementation of PrometheusRuleController.
func TestSomethingThatUsesPrometheusRuleController(t *testing.T) { // make and configure a mocked PrometheusRuleController mockedPrometheusRuleController := &PrometheusRuleControllerMock{ AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.PrometheusRuleHandlerFunc) { panic("mock out the AddClusterScopedFeatureHandler method") }, AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v1a.PrometheusRuleHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1a.PrometheusRuleHandlerFunc) { panic("mock out the AddFeatureHandler method") }, AddHandlerFunc: func(ctx context.Context, name string, handler v1a.PrometheusRuleHandlerFunc) { 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() v1a.PrometheusRuleLister { 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 mockedPrometheusRuleController in code that requires PrometheusRuleController // and then make assertions. }
func (*PrometheusRuleControllerMock) AddClusterScopedFeatureHandler ¶
func (mock *PrometheusRuleControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.PrometheusRuleHandlerFunc)
AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.
func (*PrometheusRuleControllerMock) AddClusterScopedFeatureHandlerCalls ¶
func (mock *PrometheusRuleControllerMock) AddClusterScopedFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Handler v1a.PrometheusRuleHandlerFunc }
AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:
len(mockedPrometheusRuleController.AddClusterScopedFeatureHandlerCalls())
func (*PrometheusRuleControllerMock) AddClusterScopedHandler ¶
func (mock *PrometheusRuleControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v1a.PrometheusRuleHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*PrometheusRuleControllerMock) AddClusterScopedHandlerCalls ¶
func (mock *PrometheusRuleControllerMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Handler v1a.PrometheusRuleHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedPrometheusRuleController.AddClusterScopedHandlerCalls())
func (*PrometheusRuleControllerMock) AddFeatureHandler ¶
func (mock *PrometheusRuleControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1a.PrometheusRuleHandlerFunc)
AddFeatureHandler calls AddFeatureHandlerFunc.
func (*PrometheusRuleControllerMock) AddFeatureHandlerCalls ¶
func (mock *PrometheusRuleControllerMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string Sync v1a.PrometheusRuleHandlerFunc }
AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:
len(mockedPrometheusRuleController.AddFeatureHandlerCalls())
func (*PrometheusRuleControllerMock) AddHandler ¶
func (mock *PrometheusRuleControllerMock) AddHandler(ctx context.Context, name string, handler v1a.PrometheusRuleHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*PrometheusRuleControllerMock) AddHandlerCalls ¶
func (mock *PrometheusRuleControllerMock) AddHandlerCalls() []struct { Ctx context.Context Name string Handler v1a.PrometheusRuleHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedPrometheusRuleController.AddHandlerCalls())
func (*PrometheusRuleControllerMock) Enqueue ¶
func (mock *PrometheusRuleControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*PrometheusRuleControllerMock) EnqueueAfter ¶
func (mock *PrometheusRuleControllerMock) EnqueueAfter(namespace string, name string, after time.Duration)
EnqueueAfter calls EnqueueAfterFunc.
func (*PrometheusRuleControllerMock) EnqueueAfterCalls ¶
func (mock *PrometheusRuleControllerMock) EnqueueAfterCalls() []struct { Namespace string Name string After time.Duration }
EnqueueAfterCalls gets all the calls that were made to EnqueueAfter. Check the length with:
len(mockedPrometheusRuleController.EnqueueAfterCalls())
func (*PrometheusRuleControllerMock) EnqueueCalls ¶
func (mock *PrometheusRuleControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedPrometheusRuleController.EnqueueCalls())
func (*PrometheusRuleControllerMock) Generic ¶
func (mock *PrometheusRuleControllerMock) Generic() controller.GenericController
Generic calls GenericFunc.
func (*PrometheusRuleControllerMock) GenericCalls ¶
func (mock *PrometheusRuleControllerMock) GenericCalls() []struct { }
GenericCalls gets all the calls that were made to Generic. Check the length with:
len(mockedPrometheusRuleController.GenericCalls())
func (*PrometheusRuleControllerMock) Informer ¶
func (mock *PrometheusRuleControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*PrometheusRuleControllerMock) InformerCalls ¶
func (mock *PrometheusRuleControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedPrometheusRuleController.InformerCalls())
func (*PrometheusRuleControllerMock) Lister ¶
func (mock *PrometheusRuleControllerMock) Lister() v1a.PrometheusRuleLister
Lister calls ListerFunc.
func (*PrometheusRuleControllerMock) ListerCalls ¶
func (mock *PrometheusRuleControllerMock) ListerCalls() []struct { }
ListerCalls gets all the calls that were made to Lister. Check the length with:
len(mockedPrometheusRuleController.ListerCalls())
func (*PrometheusRuleControllerMock) Start ¶
func (mock *PrometheusRuleControllerMock) Start(ctx context.Context, threadiness int) error
Start calls StartFunc.
func (*PrometheusRuleControllerMock) StartCalls ¶
func (mock *PrometheusRuleControllerMock) StartCalls() []struct { Ctx context.Context Threadiness int }
StartCalls gets all the calls that were made to Start. Check the length with:
len(mockedPrometheusRuleController.StartCalls())
func (*PrometheusRuleControllerMock) Sync ¶
func (mock *PrometheusRuleControllerMock) Sync(ctx context.Context) error
Sync calls SyncFunc.
func (*PrometheusRuleControllerMock) SyncCalls ¶
func (mock *PrometheusRuleControllerMock) SyncCalls() []struct { Ctx context.Context }
SyncCalls gets all the calls that were made to Sync. Check the length with:
len(mockedPrometheusRuleController.SyncCalls())
type PrometheusRuleInterfaceMock ¶
type PrometheusRuleInterfaceMock struct { // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.PrometheusRuleHandlerFunc) // AddClusterScopedFeatureLifecycleFunc mocks the AddClusterScopedFeatureLifecycle method. AddClusterScopedFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.PrometheusRuleLifecycle) // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v1a.PrometheusRuleHandlerFunc) // AddClusterScopedLifecycleFunc mocks the AddClusterScopedLifecycle method. AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v1a.PrometheusRuleLifecycle) // AddFeatureHandlerFunc mocks the AddFeatureHandler method. AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1a.PrometheusRuleHandlerFunc) // AddFeatureLifecycleFunc mocks the AddFeatureLifecycle method. AddFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, lifecycle v1a.PrometheusRuleLifecycle) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, sync v1a.PrometheusRuleHandlerFunc) // AddLifecycleFunc mocks the AddLifecycle method. AddLifecycleFunc func(ctx context.Context, name string, lifecycle v1a.PrometheusRuleLifecycle) // ControllerFunc mocks the Controller method. ControllerFunc func() v1a.PrometheusRuleController // CreateFunc mocks the Create method. CreateFunc func(in1 *v1.PrometheusRule) (*v1.PrometheusRule, error) // DeleteFunc mocks the Delete method. DeleteFunc func(name string, options *v1b.DeleteOptions) error // DeleteCollectionFunc mocks the DeleteCollection method. DeleteCollectionFunc func(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error // DeleteNamespacedFunc mocks the DeleteNamespaced method. DeleteNamespacedFunc func(namespace string, name string, options *v1b.DeleteOptions) error // GetFunc mocks the Get method. GetFunc func(name string, opts v1b.GetOptions) (*v1.PrometheusRule, error) // GetNamespacedFunc mocks the GetNamespaced method. GetNamespacedFunc func(namespace string, name string, opts v1b.GetOptions) (*v1.PrometheusRule, error) // ListFunc mocks the List method. ListFunc func(opts v1b.ListOptions) (*v1a.PrometheusRuleList, error) // ListNamespacedFunc mocks the ListNamespaced method. ListNamespacedFunc func(namespace string, opts v1b.ListOptions) (*v1a.PrometheusRuleList, error) // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v1.PrometheusRule) (*v1.PrometheusRule, error) // WatchFunc mocks the Watch method. WatchFunc func(opts v1b.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
PrometheusRuleInterfaceMock is a mock implementation of PrometheusRuleInterface.
func TestSomethingThatUsesPrometheusRuleInterface(t *testing.T) { // make and configure a mocked PrometheusRuleInterface mockedPrometheusRuleInterface := &PrometheusRuleInterfaceMock{ AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.PrometheusRuleHandlerFunc) { panic("mock out the AddClusterScopedFeatureHandler method") }, AddClusterScopedFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.PrometheusRuleLifecycle) { panic("mock out the AddClusterScopedFeatureLifecycle method") }, AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v1a.PrometheusRuleHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v1a.PrometheusRuleLifecycle) { panic("mock out the AddClusterScopedLifecycle method") }, AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1a.PrometheusRuleHandlerFunc) { panic("mock out the AddFeatureHandler method") }, AddFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, lifecycle v1a.PrometheusRuleLifecycle) { panic("mock out the AddFeatureLifecycle method") }, AddHandlerFunc: func(ctx context.Context, name string, sync v1a.PrometheusRuleHandlerFunc) { panic("mock out the AddHandler method") }, AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v1a.PrometheusRuleLifecycle) { panic("mock out the AddLifecycle method") }, ControllerFunc: func() v1a.PrometheusRuleController { panic("mock out the Controller method") }, CreateFunc: func(in1 *v1.PrometheusRule) (*v1.PrometheusRule, error) { panic("mock out the Create method") }, DeleteFunc: func(name string, options *v1b.DeleteOptions) error { panic("mock out the Delete method") }, DeleteCollectionFunc: func(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error { panic("mock out the DeleteCollection method") }, DeleteNamespacedFunc: func(namespace string, name string, options *v1b.DeleteOptions) error { panic("mock out the DeleteNamespaced method") }, GetFunc: func(name string, opts v1b.GetOptions) (*v1.PrometheusRule, error) { panic("mock out the Get method") }, GetNamespacedFunc: func(namespace string, name string, opts v1b.GetOptions) (*v1.PrometheusRule, error) { panic("mock out the GetNamespaced method") }, ListFunc: func(opts v1b.ListOptions) (*v1a.PrometheusRuleList, error) { panic("mock out the List method") }, ListNamespacedFunc: func(namespace string, opts v1b.ListOptions) (*v1a.PrometheusRuleList, error) { panic("mock out the ListNamespaced method") }, ObjectClientFunc: func() *objectclient.ObjectClient { panic("mock out the ObjectClient method") }, UpdateFunc: func(in1 *v1.PrometheusRule) (*v1.PrometheusRule, error) { panic("mock out the Update method") }, WatchFunc: func(opts v1b.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedPrometheusRuleInterface in code that requires PrometheusRuleInterface // and then make assertions. }
func (*PrometheusRuleInterfaceMock) AddClusterScopedFeatureHandler ¶
func (mock *PrometheusRuleInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.PrometheusRuleHandlerFunc)
AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.
func (*PrometheusRuleInterfaceMock) AddClusterScopedFeatureHandlerCalls ¶
func (mock *PrometheusRuleInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Sync v1a.PrometheusRuleHandlerFunc }
AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:
len(mockedPrometheusRuleInterface.AddClusterScopedFeatureHandlerCalls())
func (*PrometheusRuleInterfaceMock) AddClusterScopedFeatureLifecycle ¶
func (mock *PrometheusRuleInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.PrometheusRuleLifecycle)
AddClusterScopedFeatureLifecycle calls AddClusterScopedFeatureLifecycleFunc.
func (*PrometheusRuleInterfaceMock) AddClusterScopedFeatureLifecycleCalls ¶
func (mock *PrometheusRuleInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Lifecycle v1a.PrometheusRuleLifecycle }
AddClusterScopedFeatureLifecycleCalls gets all the calls that were made to AddClusterScopedFeatureLifecycle. Check the length with:
len(mockedPrometheusRuleInterface.AddClusterScopedFeatureLifecycleCalls())
func (*PrometheusRuleInterfaceMock) AddClusterScopedHandler ¶
func (mock *PrometheusRuleInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v1a.PrometheusRuleHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*PrometheusRuleInterfaceMock) AddClusterScopedHandlerCalls ¶
func (mock *PrometheusRuleInterfaceMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Sync v1a.PrometheusRuleHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedPrometheusRuleInterface.AddClusterScopedHandlerCalls())
func (*PrometheusRuleInterfaceMock) AddClusterScopedLifecycle ¶
func (mock *PrometheusRuleInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v1a.PrometheusRuleLifecycle)
AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc.
func (*PrometheusRuleInterfaceMock) AddClusterScopedLifecycleCalls ¶
func (mock *PrometheusRuleInterfaceMock) AddClusterScopedLifecycleCalls() []struct { Ctx context.Context Name string ClusterName string Lifecycle v1a.PrometheusRuleLifecycle }
AddClusterScopedLifecycleCalls gets all the calls that were made to AddClusterScopedLifecycle. Check the length with:
len(mockedPrometheusRuleInterface.AddClusterScopedLifecycleCalls())
func (*PrometheusRuleInterfaceMock) AddFeatureHandler ¶
func (mock *PrometheusRuleInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1a.PrometheusRuleHandlerFunc)
AddFeatureHandler calls AddFeatureHandlerFunc.
func (*PrometheusRuleInterfaceMock) AddFeatureHandlerCalls ¶
func (mock *PrometheusRuleInterfaceMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string Sync v1a.PrometheusRuleHandlerFunc }
AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:
len(mockedPrometheusRuleInterface.AddFeatureHandlerCalls())
func (*PrometheusRuleInterfaceMock) AddFeatureLifecycle ¶
func (mock *PrometheusRuleInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, lifecycle v1a.PrometheusRuleLifecycle)
AddFeatureLifecycle calls AddFeatureLifecycleFunc.
func (*PrometheusRuleInterfaceMock) AddFeatureLifecycleCalls ¶
func (mock *PrometheusRuleInterfaceMock) AddFeatureLifecycleCalls() []struct { Ctx context.Context Enabled func() bool Name string Lifecycle v1a.PrometheusRuleLifecycle }
AddFeatureLifecycleCalls gets all the calls that were made to AddFeatureLifecycle. Check the length with:
len(mockedPrometheusRuleInterface.AddFeatureLifecycleCalls())
func (*PrometheusRuleInterfaceMock) AddHandler ¶
func (mock *PrometheusRuleInterfaceMock) AddHandler(ctx context.Context, name string, sync v1a.PrometheusRuleHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*PrometheusRuleInterfaceMock) AddHandlerCalls ¶
func (mock *PrometheusRuleInterfaceMock) AddHandlerCalls() []struct { Ctx context.Context Name string Sync v1a.PrometheusRuleHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedPrometheusRuleInterface.AddHandlerCalls())
func (*PrometheusRuleInterfaceMock) AddLifecycle ¶
func (mock *PrometheusRuleInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1a.PrometheusRuleLifecycle)
AddLifecycle calls AddLifecycleFunc.
func (*PrometheusRuleInterfaceMock) AddLifecycleCalls ¶
func (mock *PrometheusRuleInterfaceMock) AddLifecycleCalls() []struct { Ctx context.Context Name string Lifecycle v1a.PrometheusRuleLifecycle }
AddLifecycleCalls gets all the calls that were made to AddLifecycle. Check the length with:
len(mockedPrometheusRuleInterface.AddLifecycleCalls())
func (*PrometheusRuleInterfaceMock) Controller ¶
func (mock *PrometheusRuleInterfaceMock) Controller() v1a.PrometheusRuleController
Controller calls ControllerFunc.
func (*PrometheusRuleInterfaceMock) ControllerCalls ¶
func (mock *PrometheusRuleInterfaceMock) ControllerCalls() []struct { }
ControllerCalls gets all the calls that were made to Controller. Check the length with:
len(mockedPrometheusRuleInterface.ControllerCalls())
func (*PrometheusRuleInterfaceMock) Create ¶
func (mock *PrometheusRuleInterfaceMock) Create(in1 *v1.PrometheusRule) (*v1.PrometheusRule, error)
Create calls CreateFunc.
func (*PrometheusRuleInterfaceMock) CreateCalls ¶
func (mock *PrometheusRuleInterfaceMock) CreateCalls() []struct { In1 *v1.PrometheusRule }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedPrometheusRuleInterface.CreateCalls())
func (*PrometheusRuleInterfaceMock) Delete ¶
func (mock *PrometheusRuleInterfaceMock) Delete(name string, options *v1b.DeleteOptions) error
Delete calls DeleteFunc.
func (*PrometheusRuleInterfaceMock) DeleteCalls ¶
func (mock *PrometheusRuleInterfaceMock) DeleteCalls() []struct { Name string Options *v1b.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedPrometheusRuleInterface.DeleteCalls())
func (*PrometheusRuleInterfaceMock) DeleteCollection ¶
func (mock *PrometheusRuleInterfaceMock) DeleteCollection(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error
DeleteCollection calls DeleteCollectionFunc.
func (*PrometheusRuleInterfaceMock) DeleteCollectionCalls ¶
func (mock *PrometheusRuleInterfaceMock) DeleteCollectionCalls() []struct { DeleteOpts *v1b.DeleteOptions ListOpts v1b.ListOptions }
DeleteCollectionCalls gets all the calls that were made to DeleteCollection. Check the length with:
len(mockedPrometheusRuleInterface.DeleteCollectionCalls())
func (*PrometheusRuleInterfaceMock) DeleteNamespaced ¶
func (mock *PrometheusRuleInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1b.DeleteOptions) error
DeleteNamespaced calls DeleteNamespacedFunc.
func (*PrometheusRuleInterfaceMock) DeleteNamespacedCalls ¶
func (mock *PrometheusRuleInterfaceMock) DeleteNamespacedCalls() []struct { Namespace string Name string Options *v1b.DeleteOptions }
DeleteNamespacedCalls gets all the calls that were made to DeleteNamespaced. Check the length with:
len(mockedPrometheusRuleInterface.DeleteNamespacedCalls())
func (*PrometheusRuleInterfaceMock) Get ¶
func (mock *PrometheusRuleInterfaceMock) Get(name string, opts v1b.GetOptions) (*v1.PrometheusRule, error)
Get calls GetFunc.
func (*PrometheusRuleInterfaceMock) GetCalls ¶
func (mock *PrometheusRuleInterfaceMock) GetCalls() []struct { Name string Opts v1b.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedPrometheusRuleInterface.GetCalls())
func (*PrometheusRuleInterfaceMock) GetNamespaced ¶
func (mock *PrometheusRuleInterfaceMock) GetNamespaced(namespace string, name string, opts v1b.GetOptions) (*v1.PrometheusRule, error)
GetNamespaced calls GetNamespacedFunc.
func (*PrometheusRuleInterfaceMock) GetNamespacedCalls ¶
func (mock *PrometheusRuleInterfaceMock) GetNamespacedCalls() []struct { Namespace string Name string Opts v1b.GetOptions }
GetNamespacedCalls gets all the calls that were made to GetNamespaced. Check the length with:
len(mockedPrometheusRuleInterface.GetNamespacedCalls())
func (*PrometheusRuleInterfaceMock) List ¶
func (mock *PrometheusRuleInterfaceMock) List(opts v1b.ListOptions) (*v1a.PrometheusRuleList, error)
List calls ListFunc.
func (*PrometheusRuleInterfaceMock) ListCalls ¶
func (mock *PrometheusRuleInterfaceMock) ListCalls() []struct { Opts v1b.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedPrometheusRuleInterface.ListCalls())
func (*PrometheusRuleInterfaceMock) ListNamespaced ¶
func (mock *PrometheusRuleInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.PrometheusRuleList, error)
ListNamespaced calls ListNamespacedFunc.
func (*PrometheusRuleInterfaceMock) ListNamespacedCalls ¶
func (mock *PrometheusRuleInterfaceMock) ListNamespacedCalls() []struct { Namespace string Opts v1b.ListOptions }
ListNamespacedCalls gets all the calls that were made to ListNamespaced. Check the length with:
len(mockedPrometheusRuleInterface.ListNamespacedCalls())
func (*PrometheusRuleInterfaceMock) ObjectClient ¶
func (mock *PrometheusRuleInterfaceMock) ObjectClient() *objectclient.ObjectClient
ObjectClient calls ObjectClientFunc.
func (*PrometheusRuleInterfaceMock) ObjectClientCalls ¶
func (mock *PrometheusRuleInterfaceMock) ObjectClientCalls() []struct { }
ObjectClientCalls gets all the calls that were made to ObjectClient. Check the length with:
len(mockedPrometheusRuleInterface.ObjectClientCalls())
func (*PrometheusRuleInterfaceMock) Update ¶
func (mock *PrometheusRuleInterfaceMock) Update(in1 *v1.PrometheusRule) (*v1.PrometheusRule, error)
Update calls UpdateFunc.
func (*PrometheusRuleInterfaceMock) UpdateCalls ¶
func (mock *PrometheusRuleInterfaceMock) UpdateCalls() []struct { In1 *v1.PrometheusRule }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedPrometheusRuleInterface.UpdateCalls())
func (*PrometheusRuleInterfaceMock) Watch ¶
func (mock *PrometheusRuleInterfaceMock) Watch(opts v1b.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*PrometheusRuleInterfaceMock) WatchCalls ¶
func (mock *PrometheusRuleInterfaceMock) WatchCalls() []struct { Opts v1b.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedPrometheusRuleInterface.WatchCalls())
type PrometheusRuleListerMock ¶
type PrometheusRuleListerMock struct { // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v1.PrometheusRule, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v1.PrometheusRule, error) // contains filtered or unexported fields }
PrometheusRuleListerMock is a mock implementation of PrometheusRuleLister.
func TestSomethingThatUsesPrometheusRuleLister(t *testing.T) { // make and configure a mocked PrometheusRuleLister mockedPrometheusRuleLister := &PrometheusRuleListerMock{ GetFunc: func(namespace string, name string) (*v1.PrometheusRule, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v1.PrometheusRule, error) { panic("mock out the List method") }, } // use mockedPrometheusRuleLister in code that requires PrometheusRuleLister // and then make assertions. }
func (*PrometheusRuleListerMock) Get ¶
func (mock *PrometheusRuleListerMock) Get(namespace string, name string) (*v1.PrometheusRule, error)
Get calls GetFunc.
func (*PrometheusRuleListerMock) GetCalls ¶
func (mock *PrometheusRuleListerMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedPrometheusRuleLister.GetCalls())
func (*PrometheusRuleListerMock) List ¶
func (mock *PrometheusRuleListerMock) List(namespace string, selector labels.Selector) ([]*v1.PrometheusRule, error)
List calls ListFunc.
type PrometheusRulesGetterMock ¶
type PrometheusRulesGetterMock struct { // PrometheusRulesFunc mocks the PrometheusRules method. PrometheusRulesFunc func(namespace string) v1a.PrometheusRuleInterface // contains filtered or unexported fields }
PrometheusRulesGetterMock is a mock implementation of PrometheusRulesGetter.
func TestSomethingThatUsesPrometheusRulesGetter(t *testing.T) { // make and configure a mocked PrometheusRulesGetter mockedPrometheusRulesGetter := &PrometheusRulesGetterMock{ PrometheusRulesFunc: func(namespace string) v1a.PrometheusRuleInterface { panic("mock out the PrometheusRules method") }, } // use mockedPrometheusRulesGetter in code that requires PrometheusRulesGetter // and then make assertions. }
func (*PrometheusRulesGetterMock) PrometheusRules ¶
func (mock *PrometheusRulesGetterMock) PrometheusRules(namespace string) v1a.PrometheusRuleInterface
PrometheusRules calls PrometheusRulesFunc.
func (*PrometheusRulesGetterMock) PrometheusRulesCalls ¶
func (mock *PrometheusRulesGetterMock) PrometheusRulesCalls() []struct { Namespace string }
PrometheusRulesCalls gets all the calls that were made to PrometheusRules. Check the length with:
len(mockedPrometheusRulesGetter.PrometheusRulesCalls())
type PrometheusesGetterMock ¶
type PrometheusesGetterMock struct { // PrometheusesFunc mocks the Prometheuses method. PrometheusesFunc func(namespace string) v1a.PrometheusInterface // contains filtered or unexported fields }
PrometheusesGetterMock is a mock implementation of PrometheusesGetter.
func TestSomethingThatUsesPrometheusesGetter(t *testing.T) { // make and configure a mocked PrometheusesGetter mockedPrometheusesGetter := &PrometheusesGetterMock{ PrometheusesFunc: func(namespace string) v1a.PrometheusInterface { panic("mock out the Prometheuses method") }, } // use mockedPrometheusesGetter in code that requires PrometheusesGetter // and then make assertions. }
func (*PrometheusesGetterMock) Prometheuses ¶
func (mock *PrometheusesGetterMock) Prometheuses(namespace string) v1a.PrometheusInterface
Prometheuses calls PrometheusesFunc.
func (*PrometheusesGetterMock) PrometheusesCalls ¶
func (mock *PrometheusesGetterMock) PrometheusesCalls() []struct { Namespace string }
PrometheusesCalls gets all the calls that were made to Prometheuses. Check the length with:
len(mockedPrometheusesGetter.PrometheusesCalls())
type ServiceMonitorControllerMock ¶
type ServiceMonitorControllerMock struct { // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.ServiceMonitorHandlerFunc) // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v1a.ServiceMonitorHandlerFunc) // AddFeatureHandlerFunc mocks the AddFeatureHandler method. AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1a.ServiceMonitorHandlerFunc) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, handler v1a.ServiceMonitorHandlerFunc) // 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() v1a.ServiceMonitorLister // 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 }
ServiceMonitorControllerMock is a mock implementation of ServiceMonitorController.
func TestSomethingThatUsesServiceMonitorController(t *testing.T) { // make and configure a mocked ServiceMonitorController mockedServiceMonitorController := &ServiceMonitorControllerMock{ AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.ServiceMonitorHandlerFunc) { panic("mock out the AddClusterScopedFeatureHandler method") }, AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v1a.ServiceMonitorHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1a.ServiceMonitorHandlerFunc) { panic("mock out the AddFeatureHandler method") }, AddHandlerFunc: func(ctx context.Context, name string, handler v1a.ServiceMonitorHandlerFunc) { 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() v1a.ServiceMonitorLister { 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 mockedServiceMonitorController in code that requires ServiceMonitorController // and then make assertions. }
func (*ServiceMonitorControllerMock) AddClusterScopedFeatureHandler ¶
func (mock *ServiceMonitorControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.ServiceMonitorHandlerFunc)
AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.
func (*ServiceMonitorControllerMock) AddClusterScopedFeatureHandlerCalls ¶
func (mock *ServiceMonitorControllerMock) AddClusterScopedFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Handler v1a.ServiceMonitorHandlerFunc }
AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:
len(mockedServiceMonitorController.AddClusterScopedFeatureHandlerCalls())
func (*ServiceMonitorControllerMock) AddClusterScopedHandler ¶
func (mock *ServiceMonitorControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v1a.ServiceMonitorHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*ServiceMonitorControllerMock) AddClusterScopedHandlerCalls ¶
func (mock *ServiceMonitorControllerMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Handler v1a.ServiceMonitorHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedServiceMonitorController.AddClusterScopedHandlerCalls())
func (*ServiceMonitorControllerMock) AddFeatureHandler ¶
func (mock *ServiceMonitorControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1a.ServiceMonitorHandlerFunc)
AddFeatureHandler calls AddFeatureHandlerFunc.
func (*ServiceMonitorControllerMock) AddFeatureHandlerCalls ¶
func (mock *ServiceMonitorControllerMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string Sync v1a.ServiceMonitorHandlerFunc }
AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:
len(mockedServiceMonitorController.AddFeatureHandlerCalls())
func (*ServiceMonitorControllerMock) AddHandler ¶
func (mock *ServiceMonitorControllerMock) AddHandler(ctx context.Context, name string, handler v1a.ServiceMonitorHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*ServiceMonitorControllerMock) AddHandlerCalls ¶
func (mock *ServiceMonitorControllerMock) AddHandlerCalls() []struct { Ctx context.Context Name string Handler v1a.ServiceMonitorHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedServiceMonitorController.AddHandlerCalls())
func (*ServiceMonitorControllerMock) Enqueue ¶
func (mock *ServiceMonitorControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*ServiceMonitorControllerMock) EnqueueAfter ¶
func (mock *ServiceMonitorControllerMock) EnqueueAfter(namespace string, name string, after time.Duration)
EnqueueAfter calls EnqueueAfterFunc.
func (*ServiceMonitorControllerMock) EnqueueAfterCalls ¶
func (mock *ServiceMonitorControllerMock) EnqueueAfterCalls() []struct { Namespace string Name string After time.Duration }
EnqueueAfterCalls gets all the calls that were made to EnqueueAfter. Check the length with:
len(mockedServiceMonitorController.EnqueueAfterCalls())
func (*ServiceMonitorControllerMock) EnqueueCalls ¶
func (mock *ServiceMonitorControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedServiceMonitorController.EnqueueCalls())
func (*ServiceMonitorControllerMock) Generic ¶
func (mock *ServiceMonitorControllerMock) Generic() controller.GenericController
Generic calls GenericFunc.
func (*ServiceMonitorControllerMock) GenericCalls ¶
func (mock *ServiceMonitorControllerMock) GenericCalls() []struct { }
GenericCalls gets all the calls that were made to Generic. Check the length with:
len(mockedServiceMonitorController.GenericCalls())
func (*ServiceMonitorControllerMock) Informer ¶
func (mock *ServiceMonitorControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*ServiceMonitorControllerMock) InformerCalls ¶
func (mock *ServiceMonitorControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedServiceMonitorController.InformerCalls())
func (*ServiceMonitorControllerMock) Lister ¶
func (mock *ServiceMonitorControllerMock) Lister() v1a.ServiceMonitorLister
Lister calls ListerFunc.
func (*ServiceMonitorControllerMock) ListerCalls ¶
func (mock *ServiceMonitorControllerMock) ListerCalls() []struct { }
ListerCalls gets all the calls that were made to Lister. Check the length with:
len(mockedServiceMonitorController.ListerCalls())
func (*ServiceMonitorControllerMock) Start ¶
func (mock *ServiceMonitorControllerMock) Start(ctx context.Context, threadiness int) error
Start calls StartFunc.
func (*ServiceMonitorControllerMock) StartCalls ¶
func (mock *ServiceMonitorControllerMock) StartCalls() []struct { Ctx context.Context Threadiness int }
StartCalls gets all the calls that were made to Start. Check the length with:
len(mockedServiceMonitorController.StartCalls())
func (*ServiceMonitorControllerMock) Sync ¶
func (mock *ServiceMonitorControllerMock) Sync(ctx context.Context) error
Sync calls SyncFunc.
func (*ServiceMonitorControllerMock) SyncCalls ¶
func (mock *ServiceMonitorControllerMock) SyncCalls() []struct { Ctx context.Context }
SyncCalls gets all the calls that were made to Sync. Check the length with:
len(mockedServiceMonitorController.SyncCalls())
type ServiceMonitorInterfaceMock ¶
type ServiceMonitorInterfaceMock struct { // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.ServiceMonitorHandlerFunc) // AddClusterScopedFeatureLifecycleFunc mocks the AddClusterScopedFeatureLifecycle method. AddClusterScopedFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.ServiceMonitorLifecycle) // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v1a.ServiceMonitorHandlerFunc) // AddClusterScopedLifecycleFunc mocks the AddClusterScopedLifecycle method. AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v1a.ServiceMonitorLifecycle) // AddFeatureHandlerFunc mocks the AddFeatureHandler method. AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1a.ServiceMonitorHandlerFunc) // AddFeatureLifecycleFunc mocks the AddFeatureLifecycle method. AddFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, lifecycle v1a.ServiceMonitorLifecycle) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, sync v1a.ServiceMonitorHandlerFunc) // AddLifecycleFunc mocks the AddLifecycle method. AddLifecycleFunc func(ctx context.Context, name string, lifecycle v1a.ServiceMonitorLifecycle) // ControllerFunc mocks the Controller method. ControllerFunc func() v1a.ServiceMonitorController // CreateFunc mocks the Create method. CreateFunc func(in1 *v1.ServiceMonitor) (*v1.ServiceMonitor, error) // DeleteFunc mocks the Delete method. DeleteFunc func(name string, options *v1b.DeleteOptions) error // DeleteCollectionFunc mocks the DeleteCollection method. DeleteCollectionFunc func(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error // DeleteNamespacedFunc mocks the DeleteNamespaced method. DeleteNamespacedFunc func(namespace string, name string, options *v1b.DeleteOptions) error // GetFunc mocks the Get method. GetFunc func(name string, opts v1b.GetOptions) (*v1.ServiceMonitor, error) // GetNamespacedFunc mocks the GetNamespaced method. GetNamespacedFunc func(namespace string, name string, opts v1b.GetOptions) (*v1.ServiceMonitor, error) // ListFunc mocks the List method. ListFunc func(opts v1b.ListOptions) (*v1a.ServiceMonitorList, error) // ListNamespacedFunc mocks the ListNamespaced method. ListNamespacedFunc func(namespace string, opts v1b.ListOptions) (*v1a.ServiceMonitorList, error) // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v1.ServiceMonitor) (*v1.ServiceMonitor, error) // WatchFunc mocks the Watch method. WatchFunc func(opts v1b.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
ServiceMonitorInterfaceMock is a mock implementation of ServiceMonitorInterface.
func TestSomethingThatUsesServiceMonitorInterface(t *testing.T) { // make and configure a mocked ServiceMonitorInterface mockedServiceMonitorInterface := &ServiceMonitorInterfaceMock{ AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.ServiceMonitorHandlerFunc) { panic("mock out the AddClusterScopedFeatureHandler method") }, AddClusterScopedFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.ServiceMonitorLifecycle) { panic("mock out the AddClusterScopedFeatureLifecycle method") }, AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v1a.ServiceMonitorHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v1a.ServiceMonitorLifecycle) { panic("mock out the AddClusterScopedLifecycle method") }, AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1a.ServiceMonitorHandlerFunc) { panic("mock out the AddFeatureHandler method") }, AddFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, lifecycle v1a.ServiceMonitorLifecycle) { panic("mock out the AddFeatureLifecycle method") }, AddHandlerFunc: func(ctx context.Context, name string, sync v1a.ServiceMonitorHandlerFunc) { panic("mock out the AddHandler method") }, AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v1a.ServiceMonitorLifecycle) { panic("mock out the AddLifecycle method") }, ControllerFunc: func() v1a.ServiceMonitorController { panic("mock out the Controller method") }, CreateFunc: func(in1 *v1.ServiceMonitor) (*v1.ServiceMonitor, error) { panic("mock out the Create method") }, DeleteFunc: func(name string, options *v1b.DeleteOptions) error { panic("mock out the Delete method") }, DeleteCollectionFunc: func(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error { panic("mock out the DeleteCollection method") }, DeleteNamespacedFunc: func(namespace string, name string, options *v1b.DeleteOptions) error { panic("mock out the DeleteNamespaced method") }, GetFunc: func(name string, opts v1b.GetOptions) (*v1.ServiceMonitor, error) { panic("mock out the Get method") }, GetNamespacedFunc: func(namespace string, name string, opts v1b.GetOptions) (*v1.ServiceMonitor, error) { panic("mock out the GetNamespaced method") }, ListFunc: func(opts v1b.ListOptions) (*v1a.ServiceMonitorList, error) { panic("mock out the List method") }, ListNamespacedFunc: func(namespace string, opts v1b.ListOptions) (*v1a.ServiceMonitorList, error) { panic("mock out the ListNamespaced method") }, ObjectClientFunc: func() *objectclient.ObjectClient { panic("mock out the ObjectClient method") }, UpdateFunc: func(in1 *v1.ServiceMonitor) (*v1.ServiceMonitor, error) { panic("mock out the Update method") }, WatchFunc: func(opts v1b.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedServiceMonitorInterface in code that requires ServiceMonitorInterface // and then make assertions. }
func (*ServiceMonitorInterfaceMock) AddClusterScopedFeatureHandler ¶
func (mock *ServiceMonitorInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.ServiceMonitorHandlerFunc)
AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.
func (*ServiceMonitorInterfaceMock) AddClusterScopedFeatureHandlerCalls ¶
func (mock *ServiceMonitorInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Sync v1a.ServiceMonitorHandlerFunc }
AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:
len(mockedServiceMonitorInterface.AddClusterScopedFeatureHandlerCalls())
func (*ServiceMonitorInterfaceMock) AddClusterScopedFeatureLifecycle ¶
func (mock *ServiceMonitorInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.ServiceMonitorLifecycle)
AddClusterScopedFeatureLifecycle calls AddClusterScopedFeatureLifecycleFunc.
func (*ServiceMonitorInterfaceMock) AddClusterScopedFeatureLifecycleCalls ¶
func (mock *ServiceMonitorInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Lifecycle v1a.ServiceMonitorLifecycle }
AddClusterScopedFeatureLifecycleCalls gets all the calls that were made to AddClusterScopedFeatureLifecycle. Check the length with:
len(mockedServiceMonitorInterface.AddClusterScopedFeatureLifecycleCalls())
func (*ServiceMonitorInterfaceMock) AddClusterScopedHandler ¶
func (mock *ServiceMonitorInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v1a.ServiceMonitorHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*ServiceMonitorInterfaceMock) AddClusterScopedHandlerCalls ¶
func (mock *ServiceMonitorInterfaceMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Sync v1a.ServiceMonitorHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedServiceMonitorInterface.AddClusterScopedHandlerCalls())
func (*ServiceMonitorInterfaceMock) AddClusterScopedLifecycle ¶
func (mock *ServiceMonitorInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v1a.ServiceMonitorLifecycle)
AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc.
func (*ServiceMonitorInterfaceMock) AddClusterScopedLifecycleCalls ¶
func (mock *ServiceMonitorInterfaceMock) AddClusterScopedLifecycleCalls() []struct { Ctx context.Context Name string ClusterName string Lifecycle v1a.ServiceMonitorLifecycle }
AddClusterScopedLifecycleCalls gets all the calls that were made to AddClusterScopedLifecycle. Check the length with:
len(mockedServiceMonitorInterface.AddClusterScopedLifecycleCalls())
func (*ServiceMonitorInterfaceMock) AddFeatureHandler ¶
func (mock *ServiceMonitorInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1a.ServiceMonitorHandlerFunc)
AddFeatureHandler calls AddFeatureHandlerFunc.
func (*ServiceMonitorInterfaceMock) AddFeatureHandlerCalls ¶
func (mock *ServiceMonitorInterfaceMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string Sync v1a.ServiceMonitorHandlerFunc }
AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:
len(mockedServiceMonitorInterface.AddFeatureHandlerCalls())
func (*ServiceMonitorInterfaceMock) AddFeatureLifecycle ¶
func (mock *ServiceMonitorInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, lifecycle v1a.ServiceMonitorLifecycle)
AddFeatureLifecycle calls AddFeatureLifecycleFunc.
func (*ServiceMonitorInterfaceMock) AddFeatureLifecycleCalls ¶
func (mock *ServiceMonitorInterfaceMock) AddFeatureLifecycleCalls() []struct { Ctx context.Context Enabled func() bool Name string Lifecycle v1a.ServiceMonitorLifecycle }
AddFeatureLifecycleCalls gets all the calls that were made to AddFeatureLifecycle. Check the length with:
len(mockedServiceMonitorInterface.AddFeatureLifecycleCalls())
func (*ServiceMonitorInterfaceMock) AddHandler ¶
func (mock *ServiceMonitorInterfaceMock) AddHandler(ctx context.Context, name string, sync v1a.ServiceMonitorHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*ServiceMonitorInterfaceMock) AddHandlerCalls ¶
func (mock *ServiceMonitorInterfaceMock) AddHandlerCalls() []struct { Ctx context.Context Name string Sync v1a.ServiceMonitorHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedServiceMonitorInterface.AddHandlerCalls())
func (*ServiceMonitorInterfaceMock) AddLifecycle ¶
func (mock *ServiceMonitorInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1a.ServiceMonitorLifecycle)
AddLifecycle calls AddLifecycleFunc.
func (*ServiceMonitorInterfaceMock) AddLifecycleCalls ¶
func (mock *ServiceMonitorInterfaceMock) AddLifecycleCalls() []struct { Ctx context.Context Name string Lifecycle v1a.ServiceMonitorLifecycle }
AddLifecycleCalls gets all the calls that were made to AddLifecycle. Check the length with:
len(mockedServiceMonitorInterface.AddLifecycleCalls())
func (*ServiceMonitorInterfaceMock) Controller ¶
func (mock *ServiceMonitorInterfaceMock) Controller() v1a.ServiceMonitorController
Controller calls ControllerFunc.
func (*ServiceMonitorInterfaceMock) ControllerCalls ¶
func (mock *ServiceMonitorInterfaceMock) ControllerCalls() []struct { }
ControllerCalls gets all the calls that were made to Controller. Check the length with:
len(mockedServiceMonitorInterface.ControllerCalls())
func (*ServiceMonitorInterfaceMock) Create ¶
func (mock *ServiceMonitorInterfaceMock) Create(in1 *v1.ServiceMonitor) (*v1.ServiceMonitor, error)
Create calls CreateFunc.
func (*ServiceMonitorInterfaceMock) CreateCalls ¶
func (mock *ServiceMonitorInterfaceMock) CreateCalls() []struct { In1 *v1.ServiceMonitor }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedServiceMonitorInterface.CreateCalls())
func (*ServiceMonitorInterfaceMock) Delete ¶
func (mock *ServiceMonitorInterfaceMock) Delete(name string, options *v1b.DeleteOptions) error
Delete calls DeleteFunc.
func (*ServiceMonitorInterfaceMock) DeleteCalls ¶
func (mock *ServiceMonitorInterfaceMock) DeleteCalls() []struct { Name string Options *v1b.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedServiceMonitorInterface.DeleteCalls())
func (*ServiceMonitorInterfaceMock) DeleteCollection ¶
func (mock *ServiceMonitorInterfaceMock) DeleteCollection(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error
DeleteCollection calls DeleteCollectionFunc.
func (*ServiceMonitorInterfaceMock) DeleteCollectionCalls ¶
func (mock *ServiceMonitorInterfaceMock) DeleteCollectionCalls() []struct { DeleteOpts *v1b.DeleteOptions ListOpts v1b.ListOptions }
DeleteCollectionCalls gets all the calls that were made to DeleteCollection. Check the length with:
len(mockedServiceMonitorInterface.DeleteCollectionCalls())
func (*ServiceMonitorInterfaceMock) DeleteNamespaced ¶
func (mock *ServiceMonitorInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1b.DeleteOptions) error
DeleteNamespaced calls DeleteNamespacedFunc.
func (*ServiceMonitorInterfaceMock) DeleteNamespacedCalls ¶
func (mock *ServiceMonitorInterfaceMock) DeleteNamespacedCalls() []struct { Namespace string Name string Options *v1b.DeleteOptions }
DeleteNamespacedCalls gets all the calls that were made to DeleteNamespaced. Check the length with:
len(mockedServiceMonitorInterface.DeleteNamespacedCalls())
func (*ServiceMonitorInterfaceMock) Get ¶
func (mock *ServiceMonitorInterfaceMock) Get(name string, opts v1b.GetOptions) (*v1.ServiceMonitor, error)
Get calls GetFunc.
func (*ServiceMonitorInterfaceMock) GetCalls ¶
func (mock *ServiceMonitorInterfaceMock) GetCalls() []struct { Name string Opts v1b.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedServiceMonitorInterface.GetCalls())
func (*ServiceMonitorInterfaceMock) GetNamespaced ¶
func (mock *ServiceMonitorInterfaceMock) GetNamespaced(namespace string, name string, opts v1b.GetOptions) (*v1.ServiceMonitor, error)
GetNamespaced calls GetNamespacedFunc.
func (*ServiceMonitorInterfaceMock) GetNamespacedCalls ¶
func (mock *ServiceMonitorInterfaceMock) GetNamespacedCalls() []struct { Namespace string Name string Opts v1b.GetOptions }
GetNamespacedCalls gets all the calls that were made to GetNamespaced. Check the length with:
len(mockedServiceMonitorInterface.GetNamespacedCalls())
func (*ServiceMonitorInterfaceMock) List ¶
func (mock *ServiceMonitorInterfaceMock) List(opts v1b.ListOptions) (*v1a.ServiceMonitorList, error)
List calls ListFunc.
func (*ServiceMonitorInterfaceMock) ListCalls ¶
func (mock *ServiceMonitorInterfaceMock) ListCalls() []struct { Opts v1b.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedServiceMonitorInterface.ListCalls())
func (*ServiceMonitorInterfaceMock) ListNamespaced ¶
func (mock *ServiceMonitorInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.ServiceMonitorList, error)
ListNamespaced calls ListNamespacedFunc.
func (*ServiceMonitorInterfaceMock) ListNamespacedCalls ¶
func (mock *ServiceMonitorInterfaceMock) ListNamespacedCalls() []struct { Namespace string Opts v1b.ListOptions }
ListNamespacedCalls gets all the calls that were made to ListNamespaced. Check the length with:
len(mockedServiceMonitorInterface.ListNamespacedCalls())
func (*ServiceMonitorInterfaceMock) ObjectClient ¶
func (mock *ServiceMonitorInterfaceMock) ObjectClient() *objectclient.ObjectClient
ObjectClient calls ObjectClientFunc.
func (*ServiceMonitorInterfaceMock) ObjectClientCalls ¶
func (mock *ServiceMonitorInterfaceMock) ObjectClientCalls() []struct { }
ObjectClientCalls gets all the calls that were made to ObjectClient. Check the length with:
len(mockedServiceMonitorInterface.ObjectClientCalls())
func (*ServiceMonitorInterfaceMock) Update ¶
func (mock *ServiceMonitorInterfaceMock) Update(in1 *v1.ServiceMonitor) (*v1.ServiceMonitor, error)
Update calls UpdateFunc.
func (*ServiceMonitorInterfaceMock) UpdateCalls ¶
func (mock *ServiceMonitorInterfaceMock) UpdateCalls() []struct { In1 *v1.ServiceMonitor }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedServiceMonitorInterface.UpdateCalls())
func (*ServiceMonitorInterfaceMock) Watch ¶
func (mock *ServiceMonitorInterfaceMock) Watch(opts v1b.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*ServiceMonitorInterfaceMock) WatchCalls ¶
func (mock *ServiceMonitorInterfaceMock) WatchCalls() []struct { Opts v1b.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedServiceMonitorInterface.WatchCalls())
type ServiceMonitorListerMock ¶
type ServiceMonitorListerMock struct { // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v1.ServiceMonitor, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v1.ServiceMonitor, error) // contains filtered or unexported fields }
ServiceMonitorListerMock is a mock implementation of ServiceMonitorLister.
func TestSomethingThatUsesServiceMonitorLister(t *testing.T) { // make and configure a mocked ServiceMonitorLister mockedServiceMonitorLister := &ServiceMonitorListerMock{ GetFunc: func(namespace string, name string) (*v1.ServiceMonitor, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v1.ServiceMonitor, error) { panic("mock out the List method") }, } // use mockedServiceMonitorLister in code that requires ServiceMonitorLister // and then make assertions. }
func (*ServiceMonitorListerMock) Get ¶
func (mock *ServiceMonitorListerMock) Get(namespace string, name string) (*v1.ServiceMonitor, error)
Get calls GetFunc.
func (*ServiceMonitorListerMock) GetCalls ¶
func (mock *ServiceMonitorListerMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedServiceMonitorLister.GetCalls())
func (*ServiceMonitorListerMock) List ¶
func (mock *ServiceMonitorListerMock) List(namespace string, selector labels.Selector) ([]*v1.ServiceMonitor, error)
List calls ListFunc.
type ServiceMonitorsGetterMock ¶
type ServiceMonitorsGetterMock struct { // ServiceMonitorsFunc mocks the ServiceMonitors method. ServiceMonitorsFunc func(namespace string) v1a.ServiceMonitorInterface // contains filtered or unexported fields }
ServiceMonitorsGetterMock is a mock implementation of ServiceMonitorsGetter.
func TestSomethingThatUsesServiceMonitorsGetter(t *testing.T) { // make and configure a mocked ServiceMonitorsGetter mockedServiceMonitorsGetter := &ServiceMonitorsGetterMock{ ServiceMonitorsFunc: func(namespace string) v1a.ServiceMonitorInterface { panic("mock out the ServiceMonitors method") }, } // use mockedServiceMonitorsGetter in code that requires ServiceMonitorsGetter // and then make assertions. }
func (*ServiceMonitorsGetterMock) ServiceMonitors ¶
func (mock *ServiceMonitorsGetterMock) ServiceMonitors(namespace string) v1a.ServiceMonitorInterface
ServiceMonitors calls ServiceMonitorsFunc.
func (*ServiceMonitorsGetterMock) ServiceMonitorsCalls ¶
func (mock *ServiceMonitorsGetterMock) ServiceMonitorsCalls() []struct { Namespace string }
ServiceMonitorsCalls gets all the calls that were made to ServiceMonitors. Check the length with:
len(mockedServiceMonitorsGetter.ServiceMonitorsCalls())