Documentation ¶
Index ¶
- type StorageClassControllerMock
- func (mock *StorageClassControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *StorageClassControllerMock) AddClusterScopedFeatureHandlerCalls() []struct{ ... }
- func (mock *StorageClassControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *StorageClassControllerMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *StorageClassControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *StorageClassControllerMock) AddFeatureHandlerCalls() []struct{ ... }
- func (mock *StorageClassControllerMock) AddHandler(ctx context.Context, name string, handler v1a.StorageClassHandlerFunc)
- func (mock *StorageClassControllerMock) AddHandlerCalls() []struct{ ... }
- func (mock *StorageClassControllerMock) Enqueue(namespace string, name string)
- func (mock *StorageClassControllerMock) EnqueueAfter(namespace string, name string, after time.Duration)
- func (mock *StorageClassControllerMock) EnqueueAfterCalls() []struct{ ... }
- func (mock *StorageClassControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *StorageClassControllerMock) Generic() controller.GenericController
- func (mock *StorageClassControllerMock) GenericCalls() []struct{}
- func (mock *StorageClassControllerMock) Informer() cache.SharedIndexInformer
- func (mock *StorageClassControllerMock) InformerCalls() []struct{}
- func (mock *StorageClassControllerMock) Lister() v1a.StorageClassLister
- func (mock *StorageClassControllerMock) ListerCalls() []struct{}
- func (mock *StorageClassControllerMock) Start(ctx context.Context, threadiness int) error
- func (mock *StorageClassControllerMock) StartCalls() []struct{ ... }
- func (mock *StorageClassControllerMock) Sync(ctx context.Context) error
- func (mock *StorageClassControllerMock) SyncCalls() []struct{ ... }
- type StorageClassInterfaceMock
- func (mock *StorageClassInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *StorageClassInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct{ ... }
- func (mock *StorageClassInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, ...)
- func (mock *StorageClassInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct{ ... }
- func (mock *StorageClassInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *StorageClassInterfaceMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *StorageClassInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, ...)
- func (mock *StorageClassInterfaceMock) AddClusterScopedLifecycleCalls() []struct{ ... }
- func (mock *StorageClassInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *StorageClassInterfaceMock) AddFeatureHandlerCalls() []struct{ ... }
- func (mock *StorageClassInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, ...)
- func (mock *StorageClassInterfaceMock) AddFeatureLifecycleCalls() []struct{ ... }
- func (mock *StorageClassInterfaceMock) AddHandler(ctx context.Context, name string, sync v1a.StorageClassHandlerFunc)
- func (mock *StorageClassInterfaceMock) AddHandlerCalls() []struct{ ... }
- func (mock *StorageClassInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1a.StorageClassLifecycle)
- func (mock *StorageClassInterfaceMock) AddLifecycleCalls() []struct{ ... }
- func (mock *StorageClassInterfaceMock) Controller() v1a.StorageClassController
- func (mock *StorageClassInterfaceMock) ControllerCalls() []struct{}
- func (mock *StorageClassInterfaceMock) Create(in1 *v1.StorageClass) (*v1.StorageClass, error)
- func (mock *StorageClassInterfaceMock) CreateCalls() []struct{ ... }
- func (mock *StorageClassInterfaceMock) Delete(name string, options *v1b.DeleteOptions) error
- func (mock *StorageClassInterfaceMock) DeleteCalls() []struct{ ... }
- func (mock *StorageClassInterfaceMock) DeleteCollection(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error
- func (mock *StorageClassInterfaceMock) DeleteCollectionCalls() []struct{ ... }
- func (mock *StorageClassInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1b.DeleteOptions) error
- func (mock *StorageClassInterfaceMock) DeleteNamespacedCalls() []struct{ ... }
- func (mock *StorageClassInterfaceMock) Get(name string, opts v1b.GetOptions) (*v1.StorageClass, error)
- func (mock *StorageClassInterfaceMock) GetCalls() []struct{ ... }
- func (mock *StorageClassInterfaceMock) GetNamespaced(namespace string, name string, opts v1b.GetOptions) (*v1.StorageClass, error)
- func (mock *StorageClassInterfaceMock) GetNamespacedCalls() []struct{ ... }
- func (mock *StorageClassInterfaceMock) List(opts v1b.ListOptions) (*v1a.StorageClassList, error)
- func (mock *StorageClassInterfaceMock) ListCalls() []struct{ ... }
- func (mock *StorageClassInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.StorageClassList, error)
- func (mock *StorageClassInterfaceMock) ListNamespacedCalls() []struct{ ... }
- func (mock *StorageClassInterfaceMock) ObjectClient() *objectclient.ObjectClient
- func (mock *StorageClassInterfaceMock) ObjectClientCalls() []struct{}
- func (mock *StorageClassInterfaceMock) Update(in1 *v1.StorageClass) (*v1.StorageClass, error)
- func (mock *StorageClassInterfaceMock) UpdateCalls() []struct{ ... }
- func (mock *StorageClassInterfaceMock) Watch(opts v1b.ListOptions) (watch.Interface, error)
- func (mock *StorageClassInterfaceMock) WatchCalls() []struct{ ... }
- type StorageClassListerMock
- func (mock *StorageClassListerMock) Get(namespace string, name string) (*v1.StorageClass, error)
- func (mock *StorageClassListerMock) GetCalls() []struct{ ... }
- func (mock *StorageClassListerMock) List(namespace string, selector labels.Selector) ([]*v1.StorageClass, error)
- func (mock *StorageClassListerMock) ListCalls() []struct{ ... }
- type StorageClassesGetterMock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StorageClassControllerMock ¶
type StorageClassControllerMock struct { // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.StorageClassHandlerFunc) // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v1a.StorageClassHandlerFunc) // AddFeatureHandlerFunc mocks the AddFeatureHandler method. AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1a.StorageClassHandlerFunc) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, handler v1a.StorageClassHandlerFunc) // 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.StorageClassLister // 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 }
StorageClassControllerMock is a mock implementation of StorageClassController.
func TestSomethingThatUsesStorageClassController(t *testing.T) { // make and configure a mocked StorageClassController mockedStorageClassController := &StorageClassControllerMock{ AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.StorageClassHandlerFunc) { panic("mock out the AddClusterScopedFeatureHandler method") }, AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v1a.StorageClassHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1a.StorageClassHandlerFunc) { panic("mock out the AddFeatureHandler method") }, AddHandlerFunc: func(ctx context.Context, name string, handler v1a.StorageClassHandlerFunc) { 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.StorageClassLister { 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 mockedStorageClassController in code that requires StorageClassController // and then make assertions. }
func (*StorageClassControllerMock) AddClusterScopedFeatureHandler ¶
func (mock *StorageClassControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.StorageClassHandlerFunc)
AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.
func (*StorageClassControllerMock) AddClusterScopedFeatureHandlerCalls ¶
func (mock *StorageClassControllerMock) AddClusterScopedFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Handler v1a.StorageClassHandlerFunc }
AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:
len(mockedStorageClassController.AddClusterScopedFeatureHandlerCalls())
func (*StorageClassControllerMock) AddClusterScopedHandler ¶
func (mock *StorageClassControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v1a.StorageClassHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*StorageClassControllerMock) AddClusterScopedHandlerCalls ¶
func (mock *StorageClassControllerMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Handler v1a.StorageClassHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedStorageClassController.AddClusterScopedHandlerCalls())
func (*StorageClassControllerMock) AddFeatureHandler ¶
func (mock *StorageClassControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1a.StorageClassHandlerFunc)
AddFeatureHandler calls AddFeatureHandlerFunc.
func (*StorageClassControllerMock) AddFeatureHandlerCalls ¶
func (mock *StorageClassControllerMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string Sync v1a.StorageClassHandlerFunc }
AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:
len(mockedStorageClassController.AddFeatureHandlerCalls())
func (*StorageClassControllerMock) AddHandler ¶
func (mock *StorageClassControllerMock) AddHandler(ctx context.Context, name string, handler v1a.StorageClassHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*StorageClassControllerMock) AddHandlerCalls ¶
func (mock *StorageClassControllerMock) AddHandlerCalls() []struct { Ctx context.Context Name string Handler v1a.StorageClassHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedStorageClassController.AddHandlerCalls())
func (*StorageClassControllerMock) Enqueue ¶
func (mock *StorageClassControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*StorageClassControllerMock) EnqueueAfter ¶
func (mock *StorageClassControllerMock) EnqueueAfter(namespace string, name string, after time.Duration)
EnqueueAfter calls EnqueueAfterFunc.
func (*StorageClassControllerMock) EnqueueAfterCalls ¶
func (mock *StorageClassControllerMock) EnqueueAfterCalls() []struct { Namespace string Name string After time.Duration }
EnqueueAfterCalls gets all the calls that were made to EnqueueAfter. Check the length with:
len(mockedStorageClassController.EnqueueAfterCalls())
func (*StorageClassControllerMock) EnqueueCalls ¶
func (mock *StorageClassControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedStorageClassController.EnqueueCalls())
func (*StorageClassControllerMock) Generic ¶
func (mock *StorageClassControllerMock) Generic() controller.GenericController
Generic calls GenericFunc.
func (*StorageClassControllerMock) GenericCalls ¶
func (mock *StorageClassControllerMock) GenericCalls() []struct { }
GenericCalls gets all the calls that were made to Generic. Check the length with:
len(mockedStorageClassController.GenericCalls())
func (*StorageClassControllerMock) Informer ¶
func (mock *StorageClassControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*StorageClassControllerMock) InformerCalls ¶
func (mock *StorageClassControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedStorageClassController.InformerCalls())
func (*StorageClassControllerMock) Lister ¶
func (mock *StorageClassControllerMock) Lister() v1a.StorageClassLister
Lister calls ListerFunc.
func (*StorageClassControllerMock) ListerCalls ¶
func (mock *StorageClassControllerMock) ListerCalls() []struct { }
ListerCalls gets all the calls that were made to Lister. Check the length with:
len(mockedStorageClassController.ListerCalls())
func (*StorageClassControllerMock) Start ¶
func (mock *StorageClassControllerMock) Start(ctx context.Context, threadiness int) error
Start calls StartFunc.
func (*StorageClassControllerMock) StartCalls ¶
func (mock *StorageClassControllerMock) StartCalls() []struct { Ctx context.Context Threadiness int }
StartCalls gets all the calls that were made to Start. Check the length with:
len(mockedStorageClassController.StartCalls())
func (*StorageClassControllerMock) Sync ¶
func (mock *StorageClassControllerMock) Sync(ctx context.Context) error
Sync calls SyncFunc.
func (*StorageClassControllerMock) SyncCalls ¶
func (mock *StorageClassControllerMock) SyncCalls() []struct { Ctx context.Context }
SyncCalls gets all the calls that were made to Sync. Check the length with:
len(mockedStorageClassController.SyncCalls())
type StorageClassInterfaceMock ¶
type StorageClassInterfaceMock struct { // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.StorageClassHandlerFunc) // AddClusterScopedFeatureLifecycleFunc mocks the AddClusterScopedFeatureLifecycle method. AddClusterScopedFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.StorageClassLifecycle) // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v1a.StorageClassHandlerFunc) // AddClusterScopedLifecycleFunc mocks the AddClusterScopedLifecycle method. AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v1a.StorageClassLifecycle) // AddFeatureHandlerFunc mocks the AddFeatureHandler method. AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1a.StorageClassHandlerFunc) // AddFeatureLifecycleFunc mocks the AddFeatureLifecycle method. AddFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, lifecycle v1a.StorageClassLifecycle) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, sync v1a.StorageClassHandlerFunc) // AddLifecycleFunc mocks the AddLifecycle method. AddLifecycleFunc func(ctx context.Context, name string, lifecycle v1a.StorageClassLifecycle) // ControllerFunc mocks the Controller method. ControllerFunc func() v1a.StorageClassController // CreateFunc mocks the Create method. CreateFunc func(in1 *v1.StorageClass) (*v1.StorageClass, 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.StorageClass, error) // GetNamespacedFunc mocks the GetNamespaced method. GetNamespacedFunc func(namespace string, name string, opts v1b.GetOptions) (*v1.StorageClass, error) // ListFunc mocks the List method. ListFunc func(opts v1b.ListOptions) (*v1a.StorageClassList, error) // ListNamespacedFunc mocks the ListNamespaced method. ListNamespacedFunc func(namespace string, opts v1b.ListOptions) (*v1a.StorageClassList, error) // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v1.StorageClass) (*v1.StorageClass, error) // WatchFunc mocks the Watch method. WatchFunc func(opts v1b.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
StorageClassInterfaceMock is a mock implementation of StorageClassInterface.
func TestSomethingThatUsesStorageClassInterface(t *testing.T) { // make and configure a mocked StorageClassInterface mockedStorageClassInterface := &StorageClassInterfaceMock{ AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.StorageClassHandlerFunc) { panic("mock out the AddClusterScopedFeatureHandler method") }, AddClusterScopedFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.StorageClassLifecycle) { panic("mock out the AddClusterScopedFeatureLifecycle method") }, AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v1a.StorageClassHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v1a.StorageClassLifecycle) { panic("mock out the AddClusterScopedLifecycle method") }, AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1a.StorageClassHandlerFunc) { panic("mock out the AddFeatureHandler method") }, AddFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, lifecycle v1a.StorageClassLifecycle) { panic("mock out the AddFeatureLifecycle method") }, AddHandlerFunc: func(ctx context.Context, name string, sync v1a.StorageClassHandlerFunc) { panic("mock out the AddHandler method") }, AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v1a.StorageClassLifecycle) { panic("mock out the AddLifecycle method") }, ControllerFunc: func() v1a.StorageClassController { panic("mock out the Controller method") }, CreateFunc: func(in1 *v1.StorageClass) (*v1.StorageClass, 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.StorageClass, error) { panic("mock out the Get method") }, GetNamespacedFunc: func(namespace string, name string, opts v1b.GetOptions) (*v1.StorageClass, error) { panic("mock out the GetNamespaced method") }, ListFunc: func(opts v1b.ListOptions) (*v1a.StorageClassList, error) { panic("mock out the List method") }, ListNamespacedFunc: func(namespace string, opts v1b.ListOptions) (*v1a.StorageClassList, error) { panic("mock out the ListNamespaced method") }, ObjectClientFunc: func() *objectclient.ObjectClient { panic("mock out the ObjectClient method") }, UpdateFunc: func(in1 *v1.StorageClass) (*v1.StorageClass, error) { panic("mock out the Update method") }, WatchFunc: func(opts v1b.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedStorageClassInterface in code that requires StorageClassInterface // and then make assertions. }
func (*StorageClassInterfaceMock) AddClusterScopedFeatureHandler ¶
func (mock *StorageClassInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.StorageClassHandlerFunc)
AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc.
func (*StorageClassInterfaceMock) AddClusterScopedFeatureHandlerCalls ¶
func (mock *StorageClassInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Sync v1a.StorageClassHandlerFunc }
AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. Check the length with:
len(mockedStorageClassInterface.AddClusterScopedFeatureHandlerCalls())
func (*StorageClassInterfaceMock) AddClusterScopedFeatureLifecycle ¶
func (mock *StorageClassInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.StorageClassLifecycle)
AddClusterScopedFeatureLifecycle calls AddClusterScopedFeatureLifecycleFunc.
func (*StorageClassInterfaceMock) AddClusterScopedFeatureLifecycleCalls ¶
func (mock *StorageClassInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct { Ctx context.Context Enabled func() bool Name string ClusterName string Lifecycle v1a.StorageClassLifecycle }
AddClusterScopedFeatureLifecycleCalls gets all the calls that were made to AddClusterScopedFeatureLifecycle. Check the length with:
len(mockedStorageClassInterface.AddClusterScopedFeatureLifecycleCalls())
func (*StorageClassInterfaceMock) AddClusterScopedHandler ¶
func (mock *StorageClassInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v1a.StorageClassHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*StorageClassInterfaceMock) AddClusterScopedHandlerCalls ¶
func (mock *StorageClassInterfaceMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Sync v1a.StorageClassHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedStorageClassInterface.AddClusterScopedHandlerCalls())
func (*StorageClassInterfaceMock) AddClusterScopedLifecycle ¶
func (mock *StorageClassInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v1a.StorageClassLifecycle)
AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc.
func (*StorageClassInterfaceMock) AddClusterScopedLifecycleCalls ¶
func (mock *StorageClassInterfaceMock) AddClusterScopedLifecycleCalls() []struct { Ctx context.Context Name string ClusterName string Lifecycle v1a.StorageClassLifecycle }
AddClusterScopedLifecycleCalls gets all the calls that were made to AddClusterScopedLifecycle. Check the length with:
len(mockedStorageClassInterface.AddClusterScopedLifecycleCalls())
func (*StorageClassInterfaceMock) AddFeatureHandler ¶
func (mock *StorageClassInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1a.StorageClassHandlerFunc)
AddFeatureHandler calls AddFeatureHandlerFunc.
func (*StorageClassInterfaceMock) AddFeatureHandlerCalls ¶
func (mock *StorageClassInterfaceMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string Sync v1a.StorageClassHandlerFunc }
AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. Check the length with:
len(mockedStorageClassInterface.AddFeatureHandlerCalls())
func (*StorageClassInterfaceMock) AddFeatureLifecycle ¶
func (mock *StorageClassInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, lifecycle v1a.StorageClassLifecycle)
AddFeatureLifecycle calls AddFeatureLifecycleFunc.
func (*StorageClassInterfaceMock) AddFeatureLifecycleCalls ¶
func (mock *StorageClassInterfaceMock) AddFeatureLifecycleCalls() []struct { Ctx context.Context Enabled func() bool Name string Lifecycle v1a.StorageClassLifecycle }
AddFeatureLifecycleCalls gets all the calls that were made to AddFeatureLifecycle. Check the length with:
len(mockedStorageClassInterface.AddFeatureLifecycleCalls())
func (*StorageClassInterfaceMock) AddHandler ¶
func (mock *StorageClassInterfaceMock) AddHandler(ctx context.Context, name string, sync v1a.StorageClassHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*StorageClassInterfaceMock) AddHandlerCalls ¶
func (mock *StorageClassInterfaceMock) AddHandlerCalls() []struct { Ctx context.Context Name string Sync v1a.StorageClassHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedStorageClassInterface.AddHandlerCalls())
func (*StorageClassInterfaceMock) AddLifecycle ¶
func (mock *StorageClassInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1a.StorageClassLifecycle)
AddLifecycle calls AddLifecycleFunc.
func (*StorageClassInterfaceMock) AddLifecycleCalls ¶
func (mock *StorageClassInterfaceMock) AddLifecycleCalls() []struct { Ctx context.Context Name string Lifecycle v1a.StorageClassLifecycle }
AddLifecycleCalls gets all the calls that were made to AddLifecycle. Check the length with:
len(mockedStorageClassInterface.AddLifecycleCalls())
func (*StorageClassInterfaceMock) Controller ¶
func (mock *StorageClassInterfaceMock) Controller() v1a.StorageClassController
Controller calls ControllerFunc.
func (*StorageClassInterfaceMock) ControllerCalls ¶
func (mock *StorageClassInterfaceMock) ControllerCalls() []struct { }
ControllerCalls gets all the calls that were made to Controller. Check the length with:
len(mockedStorageClassInterface.ControllerCalls())
func (*StorageClassInterfaceMock) Create ¶
func (mock *StorageClassInterfaceMock) Create(in1 *v1.StorageClass) (*v1.StorageClass, error)
Create calls CreateFunc.
func (*StorageClassInterfaceMock) CreateCalls ¶
func (mock *StorageClassInterfaceMock) CreateCalls() []struct { In1 *v1.StorageClass }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedStorageClassInterface.CreateCalls())
func (*StorageClassInterfaceMock) Delete ¶
func (mock *StorageClassInterfaceMock) Delete(name string, options *v1b.DeleteOptions) error
Delete calls DeleteFunc.
func (*StorageClassInterfaceMock) DeleteCalls ¶
func (mock *StorageClassInterfaceMock) DeleteCalls() []struct { Name string Options *v1b.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedStorageClassInterface.DeleteCalls())
func (*StorageClassInterfaceMock) DeleteCollection ¶
func (mock *StorageClassInterfaceMock) DeleteCollection(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error
DeleteCollection calls DeleteCollectionFunc.
func (*StorageClassInterfaceMock) DeleteCollectionCalls ¶
func (mock *StorageClassInterfaceMock) DeleteCollectionCalls() []struct { DeleteOpts *v1b.DeleteOptions ListOpts v1b.ListOptions }
DeleteCollectionCalls gets all the calls that were made to DeleteCollection. Check the length with:
len(mockedStorageClassInterface.DeleteCollectionCalls())
func (*StorageClassInterfaceMock) DeleteNamespaced ¶
func (mock *StorageClassInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1b.DeleteOptions) error
DeleteNamespaced calls DeleteNamespacedFunc.
func (*StorageClassInterfaceMock) DeleteNamespacedCalls ¶
func (mock *StorageClassInterfaceMock) DeleteNamespacedCalls() []struct { Namespace string Name string Options *v1b.DeleteOptions }
DeleteNamespacedCalls gets all the calls that were made to DeleteNamespaced. Check the length with:
len(mockedStorageClassInterface.DeleteNamespacedCalls())
func (*StorageClassInterfaceMock) Get ¶
func (mock *StorageClassInterfaceMock) Get(name string, opts v1b.GetOptions) (*v1.StorageClass, error)
Get calls GetFunc.
func (*StorageClassInterfaceMock) GetCalls ¶
func (mock *StorageClassInterfaceMock) GetCalls() []struct { Name string Opts v1b.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedStorageClassInterface.GetCalls())
func (*StorageClassInterfaceMock) GetNamespaced ¶
func (mock *StorageClassInterfaceMock) GetNamespaced(namespace string, name string, opts v1b.GetOptions) (*v1.StorageClass, error)
GetNamespaced calls GetNamespacedFunc.
func (*StorageClassInterfaceMock) GetNamespacedCalls ¶
func (mock *StorageClassInterfaceMock) GetNamespacedCalls() []struct { Namespace string Name string Opts v1b.GetOptions }
GetNamespacedCalls gets all the calls that were made to GetNamespaced. Check the length with:
len(mockedStorageClassInterface.GetNamespacedCalls())
func (*StorageClassInterfaceMock) List ¶
func (mock *StorageClassInterfaceMock) List(opts v1b.ListOptions) (*v1a.StorageClassList, error)
List calls ListFunc.
func (*StorageClassInterfaceMock) ListCalls ¶
func (mock *StorageClassInterfaceMock) ListCalls() []struct { Opts v1b.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedStorageClassInterface.ListCalls())
func (*StorageClassInterfaceMock) ListNamespaced ¶
func (mock *StorageClassInterfaceMock) ListNamespaced(namespace string, opts v1b.ListOptions) (*v1a.StorageClassList, error)
ListNamespaced calls ListNamespacedFunc.
func (*StorageClassInterfaceMock) ListNamespacedCalls ¶
func (mock *StorageClassInterfaceMock) ListNamespacedCalls() []struct { Namespace string Opts v1b.ListOptions }
ListNamespacedCalls gets all the calls that were made to ListNamespaced. Check the length with:
len(mockedStorageClassInterface.ListNamespacedCalls())
func (*StorageClassInterfaceMock) ObjectClient ¶
func (mock *StorageClassInterfaceMock) ObjectClient() *objectclient.ObjectClient
ObjectClient calls ObjectClientFunc.
func (*StorageClassInterfaceMock) ObjectClientCalls ¶
func (mock *StorageClassInterfaceMock) ObjectClientCalls() []struct { }
ObjectClientCalls gets all the calls that were made to ObjectClient. Check the length with:
len(mockedStorageClassInterface.ObjectClientCalls())
func (*StorageClassInterfaceMock) Update ¶
func (mock *StorageClassInterfaceMock) Update(in1 *v1.StorageClass) (*v1.StorageClass, error)
Update calls UpdateFunc.
func (*StorageClassInterfaceMock) UpdateCalls ¶
func (mock *StorageClassInterfaceMock) UpdateCalls() []struct { In1 *v1.StorageClass }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedStorageClassInterface.UpdateCalls())
func (*StorageClassInterfaceMock) Watch ¶
func (mock *StorageClassInterfaceMock) Watch(opts v1b.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*StorageClassInterfaceMock) WatchCalls ¶
func (mock *StorageClassInterfaceMock) WatchCalls() []struct { Opts v1b.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedStorageClassInterface.WatchCalls())
type StorageClassListerMock ¶
type StorageClassListerMock struct { // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v1.StorageClass, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v1.StorageClass, error) // contains filtered or unexported fields }
StorageClassListerMock is a mock implementation of StorageClassLister.
func TestSomethingThatUsesStorageClassLister(t *testing.T) { // make and configure a mocked StorageClassLister mockedStorageClassLister := &StorageClassListerMock{ GetFunc: func(namespace string, name string) (*v1.StorageClass, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v1.StorageClass, error) { panic("mock out the List method") }, } // use mockedStorageClassLister in code that requires StorageClassLister // and then make assertions. }
func (*StorageClassListerMock) Get ¶
func (mock *StorageClassListerMock) Get(namespace string, name string) (*v1.StorageClass, error)
Get calls GetFunc.
func (*StorageClassListerMock) GetCalls ¶
func (mock *StorageClassListerMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedStorageClassLister.GetCalls())
func (*StorageClassListerMock) List ¶
func (mock *StorageClassListerMock) List(namespace string, selector labels.Selector) ([]*v1.StorageClass, error)
List calls ListFunc.
type StorageClassesGetterMock ¶
type StorageClassesGetterMock struct { // StorageClassesFunc mocks the StorageClasses method. StorageClassesFunc func(namespace string) v1a.StorageClassInterface // contains filtered or unexported fields }
StorageClassesGetterMock is a mock implementation of StorageClassesGetter.
func TestSomethingThatUsesStorageClassesGetter(t *testing.T) { // make and configure a mocked StorageClassesGetter mockedStorageClassesGetter := &StorageClassesGetterMock{ StorageClassesFunc: func(namespace string) v1a.StorageClassInterface { panic("mock out the StorageClasses method") }, } // use mockedStorageClassesGetter in code that requires StorageClassesGetter // and then make assertions. }
func (*StorageClassesGetterMock) StorageClasses ¶
func (mock *StorageClassesGetterMock) StorageClasses(namespace string) v1a.StorageClassInterface
StorageClasses calls StorageClassesFunc.
func (*StorageClassesGetterMock) StorageClassesCalls ¶
func (mock *StorageClassesGetterMock) StorageClassesCalls() []struct { Namespace string }
StorageClassesCalls gets all the calls that were made to StorageClasses. Check the length with:
len(mockedStorageClassesGetter.StorageClassesCalls())