Documentation
¶
Index ¶
- type ServiceScaleRecommendationCacheMock
- func (mock *ServiceScaleRecommendationCacheMock) AddIndexer(indexName string, indexer v1.ServiceScaleRecommendationIndexer)
- func (mock *ServiceScaleRecommendationCacheMock) AddIndexerCalls() []struct{ ... }
- func (mock *ServiceScaleRecommendationCacheMock) Get(namespace string, name string) (*v1a.ServiceScaleRecommendation, error)
- func (mock *ServiceScaleRecommendationCacheMock) GetByIndex(indexName string, key string) ([]*v1a.ServiceScaleRecommendation, error)
- func (mock *ServiceScaleRecommendationCacheMock) GetByIndexCalls() []struct{ ... }
- func (mock *ServiceScaleRecommendationCacheMock) GetCalls() []struct{ ... }
- func (mock *ServiceScaleRecommendationCacheMock) List(namespace string, selector labels.Selector) ([]*v1a.ServiceScaleRecommendation, error)
- func (mock *ServiceScaleRecommendationCacheMock) ListCalls() []struct{ ... }
- type ServiceScaleRecommendationClientMock
- func (mock *ServiceScaleRecommendationClientMock) Create(in1 *v1a.ServiceScaleRecommendation) (*v1a.ServiceScaleRecommendation, error)
- func (mock *ServiceScaleRecommendationClientMock) CreateCalls() []struct{ ... }
- func (mock *ServiceScaleRecommendationClientMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
- func (mock *ServiceScaleRecommendationClientMock) DeleteCalls() []struct{ ... }
- func (mock *ServiceScaleRecommendationClientMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.ServiceScaleRecommendation, error)
- func (mock *ServiceScaleRecommendationClientMock) GetCalls() []struct{ ... }
- func (mock *ServiceScaleRecommendationClientMock) List(namespace string, opts v1b.ListOptions) (*v1a.ServiceScaleRecommendationList, error)
- func (mock *ServiceScaleRecommendationClientMock) ListCalls() []struct{ ... }
- func (mock *ServiceScaleRecommendationClientMock) Patch(namespace string, name string, pt types.PatchType, data []byte, ...) (*v1a.ServiceScaleRecommendation, error)
- func (mock *ServiceScaleRecommendationClientMock) PatchCalls() []struct{ ... }
- func (mock *ServiceScaleRecommendationClientMock) Update(in1 *v1a.ServiceScaleRecommendation) (*v1a.ServiceScaleRecommendation, error)
- func (mock *ServiceScaleRecommendationClientMock) UpdateCalls() []struct{ ... }
- func (mock *ServiceScaleRecommendationClientMock) UpdateStatus(in1 *v1a.ServiceScaleRecommendation) (*v1a.ServiceScaleRecommendation, error)
- func (mock *ServiceScaleRecommendationClientMock) UpdateStatusCalls() []struct{ ... }
- func (mock *ServiceScaleRecommendationClientMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
- func (mock *ServiceScaleRecommendationClientMock) WatchCalls() []struct{ ... }
- type ServiceScaleRecommendationControllerMock
- func (mock *ServiceScaleRecommendationControllerMock) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)
- func (mock *ServiceScaleRecommendationControllerMock) AddGenericHandlerCalls() []struct{ ... }
- func (mock *ServiceScaleRecommendationControllerMock) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)
- func (mock *ServiceScaleRecommendationControllerMock) AddGenericRemoveHandlerCalls() []struct{ ... }
- func (mock *ServiceScaleRecommendationControllerMock) Cache() v1.ServiceScaleRecommendationCache
- func (mock *ServiceScaleRecommendationControllerMock) CacheCalls() []struct{}
- func (mock *ServiceScaleRecommendationControllerMock) Create(in1 *v1a.ServiceScaleRecommendation) (*v1a.ServiceScaleRecommendation, error)
- func (mock *ServiceScaleRecommendationControllerMock) CreateCalls() []struct{ ... }
- func (mock *ServiceScaleRecommendationControllerMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
- func (mock *ServiceScaleRecommendationControllerMock) DeleteCalls() []struct{ ... }
- func (mock *ServiceScaleRecommendationControllerMock) Enqueue(namespace string, name string)
- func (mock *ServiceScaleRecommendationControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *ServiceScaleRecommendationControllerMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.ServiceScaleRecommendation, error)
- func (mock *ServiceScaleRecommendationControllerMock) GetCalls() []struct{ ... }
- func (mock *ServiceScaleRecommendationControllerMock) GroupVersionKind() schema.GroupVersionKind
- func (mock *ServiceScaleRecommendationControllerMock) GroupVersionKindCalls() []struct{}
- func (mock *ServiceScaleRecommendationControllerMock) Informer() cache.SharedIndexInformer
- func (mock *ServiceScaleRecommendationControllerMock) InformerCalls() []struct{}
- func (mock *ServiceScaleRecommendationControllerMock) List(namespace string, opts v1b.ListOptions) (*v1a.ServiceScaleRecommendationList, error)
- func (mock *ServiceScaleRecommendationControllerMock) ListCalls() []struct{ ... }
- func (mock *ServiceScaleRecommendationControllerMock) OnChange(ctx context.Context, name string, sync v1.ServiceScaleRecommendationHandler)
- func (mock *ServiceScaleRecommendationControllerMock) OnChangeCalls() []struct{ ... }
- func (mock *ServiceScaleRecommendationControllerMock) OnRemove(ctx context.Context, name string, sync v1.ServiceScaleRecommendationHandler)
- func (mock *ServiceScaleRecommendationControllerMock) OnRemoveCalls() []struct{ ... }
- func (mock *ServiceScaleRecommendationControllerMock) Patch(namespace string, name string, pt types.PatchType, data []byte, ...) (*v1a.ServiceScaleRecommendation, error)
- func (mock *ServiceScaleRecommendationControllerMock) PatchCalls() []struct{ ... }
- func (mock *ServiceScaleRecommendationControllerMock) Update(in1 *v1a.ServiceScaleRecommendation) (*v1a.ServiceScaleRecommendation, error)
- func (mock *ServiceScaleRecommendationControllerMock) UpdateCalls() []struct{ ... }
- func (mock *ServiceScaleRecommendationControllerMock) UpdateStatus(in1 *v1a.ServiceScaleRecommendation) (*v1a.ServiceScaleRecommendation, error)
- func (mock *ServiceScaleRecommendationControllerMock) UpdateStatusCalls() []struct{ ... }
- func (mock *ServiceScaleRecommendationControllerMock) Updater() generic.Updater
- func (mock *ServiceScaleRecommendationControllerMock) UpdaterCalls() []struct{}
- func (mock *ServiceScaleRecommendationControllerMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
- func (mock *ServiceScaleRecommendationControllerMock) WatchCalls() []struct{ ... }
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServiceScaleRecommendationCacheMock ¶
type ServiceScaleRecommendationCacheMock struct {
// AddIndexerFunc mocks the AddIndexer method.
AddIndexerFunc func(indexName string, indexer v1.ServiceScaleRecommendationIndexer)
// GetFunc mocks the Get method.
GetFunc func(namespace string, name string) (*v1a.ServiceScaleRecommendation, error)
// GetByIndexFunc mocks the GetByIndex method.
GetByIndexFunc func(indexName string, key string) ([]*v1a.ServiceScaleRecommendation, error)
// ListFunc mocks the List method.
ListFunc func(namespace string, selector labels.Selector) ([]*v1a.ServiceScaleRecommendation, error)
// contains filtered or unexported fields
}
ServiceScaleRecommendationCacheMock is a mock implementation of ServiceScaleRecommendationCache.
func TestSomethingThatUsesServiceScaleRecommendationCache(t *testing.T) {
// make and configure a mocked ServiceScaleRecommendationCache
mockedServiceScaleRecommendationCache := &ServiceScaleRecommendationCacheMock{
AddIndexerFunc: func(indexName string, indexer v1.ServiceScaleRecommendationIndexer) {
panic("mock out the AddIndexer method")
},
GetFunc: func(namespace string, name string) (*v1a.ServiceScaleRecommendation, error) {
panic("mock out the Get method")
},
GetByIndexFunc: func(indexName string, key string) ([]*v1a.ServiceScaleRecommendation, error) {
panic("mock out the GetByIndex method")
},
ListFunc: func(namespace string, selector labels.Selector) ([]*v1a.ServiceScaleRecommendation, error) {
panic("mock out the List method")
},
}
// use mockedServiceScaleRecommendationCache in code that requires ServiceScaleRecommendationCache
// and then make assertions.
}
func (*ServiceScaleRecommendationCacheMock) AddIndexer ¶
func (mock *ServiceScaleRecommendationCacheMock) AddIndexer(indexName string, indexer v1.ServiceScaleRecommendationIndexer)
AddIndexer calls AddIndexerFunc.
func (*ServiceScaleRecommendationCacheMock) AddIndexerCalls ¶
func (mock *ServiceScaleRecommendationCacheMock) AddIndexerCalls() []struct { IndexName string Indexer v1.ServiceScaleRecommendationIndexer }
AddIndexerCalls gets all the calls that were made to AddIndexer. Check the length with:
len(mockedServiceScaleRecommendationCache.AddIndexerCalls())
func (*ServiceScaleRecommendationCacheMock) Get ¶
func (mock *ServiceScaleRecommendationCacheMock) Get(namespace string, name string) (*v1a.ServiceScaleRecommendation, error)
Get calls GetFunc.
func (*ServiceScaleRecommendationCacheMock) GetByIndex ¶
func (mock *ServiceScaleRecommendationCacheMock) GetByIndex(indexName string, key string) ([]*v1a.ServiceScaleRecommendation, error)
GetByIndex calls GetByIndexFunc.
func (*ServiceScaleRecommendationCacheMock) GetByIndexCalls ¶
func (mock *ServiceScaleRecommendationCacheMock) GetByIndexCalls() []struct { IndexName string Key string }
GetByIndexCalls gets all the calls that were made to GetByIndex. Check the length with:
len(mockedServiceScaleRecommendationCache.GetByIndexCalls())
func (*ServiceScaleRecommendationCacheMock) GetCalls ¶
func (mock *ServiceScaleRecommendationCacheMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedServiceScaleRecommendationCache.GetCalls())
func (*ServiceScaleRecommendationCacheMock) List ¶
func (mock *ServiceScaleRecommendationCacheMock) List(namespace string, selector labels.Selector) ([]*v1a.ServiceScaleRecommendation, error)
List calls ListFunc.
func (*ServiceScaleRecommendationCacheMock) ListCalls ¶
func (mock *ServiceScaleRecommendationCacheMock) ListCalls() []struct { Namespace string Selector labels.Selector }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedServiceScaleRecommendationCache.ListCalls())
type ServiceScaleRecommendationClientMock ¶
type ServiceScaleRecommendationClientMock struct {
// CreateFunc mocks the Create method.
CreateFunc func(in1 *v1a.ServiceScaleRecommendation) (*v1a.ServiceScaleRecommendation, error)
// DeleteFunc mocks the Delete method.
DeleteFunc func(namespace string, name string, options *v1b.DeleteOptions) error
// GetFunc mocks the Get method.
GetFunc func(namespace string, name string, options v1b.GetOptions) (*v1a.ServiceScaleRecommendation, error)
// ListFunc mocks the List method.
ListFunc func(namespace string, opts v1b.ListOptions) (*v1a.ServiceScaleRecommendationList, error)
// PatchFunc mocks the Patch method.
PatchFunc func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.ServiceScaleRecommendation, error)
// UpdateFunc mocks the Update method.
UpdateFunc func(in1 *v1a.ServiceScaleRecommendation) (*v1a.ServiceScaleRecommendation, error)
// UpdateStatusFunc mocks the UpdateStatus method.
UpdateStatusFunc func(in1 *v1a.ServiceScaleRecommendation) (*v1a.ServiceScaleRecommendation, error)
// WatchFunc mocks the Watch method.
WatchFunc func(namespace string, opts v1b.ListOptions) (watch.Interface, error)
// contains filtered or unexported fields
}
ServiceScaleRecommendationClientMock is a mock implementation of ServiceScaleRecommendationClient.
func TestSomethingThatUsesServiceScaleRecommendationClient(t *testing.T) {
// make and configure a mocked ServiceScaleRecommendationClient
mockedServiceScaleRecommendationClient := &ServiceScaleRecommendationClientMock{
CreateFunc: func(in1 *v1a.ServiceScaleRecommendation) (*v1a.ServiceScaleRecommendation, error) {
panic("mock out the Create method")
},
DeleteFunc: func(namespace string, name string, options *v1b.DeleteOptions) error {
panic("mock out the Delete method")
},
GetFunc: func(namespace string, name string, options v1b.GetOptions) (*v1a.ServiceScaleRecommendation, error) {
panic("mock out the Get method")
},
ListFunc: func(namespace string, opts v1b.ListOptions) (*v1a.ServiceScaleRecommendationList, error) {
panic("mock out the List method")
},
PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.ServiceScaleRecommendation, error) {
panic("mock out the Patch method")
},
UpdateFunc: func(in1 *v1a.ServiceScaleRecommendation) (*v1a.ServiceScaleRecommendation, error) {
panic("mock out the Update method")
},
UpdateStatusFunc: func(in1 *v1a.ServiceScaleRecommendation) (*v1a.ServiceScaleRecommendation, error) {
panic("mock out the UpdateStatus method")
},
WatchFunc: func(namespace string, opts v1b.ListOptions) (watch.Interface, error) {
panic("mock out the Watch method")
},
}
// use mockedServiceScaleRecommendationClient in code that requires ServiceScaleRecommendationClient
// and then make assertions.
}
func (*ServiceScaleRecommendationClientMock) Create ¶
func (mock *ServiceScaleRecommendationClientMock) Create(in1 *v1a.ServiceScaleRecommendation) (*v1a.ServiceScaleRecommendation, error)
Create calls CreateFunc.
func (*ServiceScaleRecommendationClientMock) CreateCalls ¶
func (mock *ServiceScaleRecommendationClientMock) CreateCalls() []struct { In1 *v1a.ServiceScaleRecommendation }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedServiceScaleRecommendationClient.CreateCalls())
func (*ServiceScaleRecommendationClientMock) Delete ¶
func (mock *ServiceScaleRecommendationClientMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
Delete calls DeleteFunc.
func (*ServiceScaleRecommendationClientMock) DeleteCalls ¶
func (mock *ServiceScaleRecommendationClientMock) DeleteCalls() []struct { Namespace string Name string Options *v1b.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedServiceScaleRecommendationClient.DeleteCalls())
func (*ServiceScaleRecommendationClientMock) Get ¶
func (mock *ServiceScaleRecommendationClientMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.ServiceScaleRecommendation, error)
Get calls GetFunc.
func (*ServiceScaleRecommendationClientMock) GetCalls ¶
func (mock *ServiceScaleRecommendationClientMock) GetCalls() []struct { Namespace string Name string Options v1b.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedServiceScaleRecommendationClient.GetCalls())
func (*ServiceScaleRecommendationClientMock) List ¶
func (mock *ServiceScaleRecommendationClientMock) List(namespace string, opts v1b.ListOptions) (*v1a.ServiceScaleRecommendationList, error)
List calls ListFunc.
func (*ServiceScaleRecommendationClientMock) ListCalls ¶
func (mock *ServiceScaleRecommendationClientMock) ListCalls() []struct { Namespace string Opts v1b.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedServiceScaleRecommendationClient.ListCalls())
func (*ServiceScaleRecommendationClientMock) Patch ¶
func (mock *ServiceScaleRecommendationClientMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.ServiceScaleRecommendation, error)
Patch calls PatchFunc.
func (*ServiceScaleRecommendationClientMock) PatchCalls ¶
func (mock *ServiceScaleRecommendationClientMock) PatchCalls() []struct { Namespace string Name string Pt types.PatchType Data []byte Subresources []string }
PatchCalls gets all the calls that were made to Patch. Check the length with:
len(mockedServiceScaleRecommendationClient.PatchCalls())
func (*ServiceScaleRecommendationClientMock) Update ¶
func (mock *ServiceScaleRecommendationClientMock) Update(in1 *v1a.ServiceScaleRecommendation) (*v1a.ServiceScaleRecommendation, error)
Update calls UpdateFunc.
func (*ServiceScaleRecommendationClientMock) UpdateCalls ¶
func (mock *ServiceScaleRecommendationClientMock) UpdateCalls() []struct { In1 *v1a.ServiceScaleRecommendation }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedServiceScaleRecommendationClient.UpdateCalls())
func (*ServiceScaleRecommendationClientMock) UpdateStatus ¶
func (mock *ServiceScaleRecommendationClientMock) UpdateStatus(in1 *v1a.ServiceScaleRecommendation) (*v1a.ServiceScaleRecommendation, error)
UpdateStatus calls UpdateStatusFunc.
func (*ServiceScaleRecommendationClientMock) UpdateStatusCalls ¶
func (mock *ServiceScaleRecommendationClientMock) UpdateStatusCalls() []struct { In1 *v1a.ServiceScaleRecommendation }
UpdateStatusCalls gets all the calls that were made to UpdateStatus. Check the length with:
len(mockedServiceScaleRecommendationClient.UpdateStatusCalls())
func (*ServiceScaleRecommendationClientMock) Watch ¶
func (mock *ServiceScaleRecommendationClientMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*ServiceScaleRecommendationClientMock) WatchCalls ¶
func (mock *ServiceScaleRecommendationClientMock) WatchCalls() []struct { Namespace string Opts v1b.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedServiceScaleRecommendationClient.WatchCalls())
type ServiceScaleRecommendationControllerMock ¶
type ServiceScaleRecommendationControllerMock struct {
// AddGenericHandlerFunc mocks the AddGenericHandler method.
AddGenericHandlerFunc func(ctx context.Context, name string, handler generic.Handler)
// AddGenericRemoveHandlerFunc mocks the AddGenericRemoveHandler method.
AddGenericRemoveHandlerFunc func(ctx context.Context, name string, handler generic.Handler)
// CacheFunc mocks the Cache method.
CacheFunc func() v1.ServiceScaleRecommendationCache
// CreateFunc mocks the Create method.
CreateFunc func(in1 *v1a.ServiceScaleRecommendation) (*v1a.ServiceScaleRecommendation, error)
// DeleteFunc mocks the Delete method.
DeleteFunc func(namespace string, name string, options *v1b.DeleteOptions) error
// EnqueueFunc mocks the Enqueue method.
EnqueueFunc func(namespace string, name string)
// GetFunc mocks the Get method.
GetFunc func(namespace string, name string, options v1b.GetOptions) (*v1a.ServiceScaleRecommendation, error)
// GroupVersionKindFunc mocks the GroupVersionKind method.
GroupVersionKindFunc func() schema.GroupVersionKind
// InformerFunc mocks the Informer method.
InformerFunc func() cache.SharedIndexInformer
// ListFunc mocks the List method.
ListFunc func(namespace string, opts v1b.ListOptions) (*v1a.ServiceScaleRecommendationList, error)
// OnChangeFunc mocks the OnChange method.
OnChangeFunc func(ctx context.Context, name string, sync v1.ServiceScaleRecommendationHandler)
// OnRemoveFunc mocks the OnRemove method.
OnRemoveFunc func(ctx context.Context, name string, sync v1.ServiceScaleRecommendationHandler)
// PatchFunc mocks the Patch method.
PatchFunc func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.ServiceScaleRecommendation, error)
// UpdateFunc mocks the Update method.
UpdateFunc func(in1 *v1a.ServiceScaleRecommendation) (*v1a.ServiceScaleRecommendation, error)
// UpdateStatusFunc mocks the UpdateStatus method.
UpdateStatusFunc func(in1 *v1a.ServiceScaleRecommendation) (*v1a.ServiceScaleRecommendation, error)
// UpdaterFunc mocks the Updater method.
UpdaterFunc func() generic.Updater
// WatchFunc mocks the Watch method.
WatchFunc func(namespace string, opts v1b.ListOptions) (watch.Interface, error)
// contains filtered or unexported fields
}
ServiceScaleRecommendationControllerMock is a mock implementation of ServiceScaleRecommendationController.
func TestSomethingThatUsesServiceScaleRecommendationController(t *testing.T) {
// make and configure a mocked ServiceScaleRecommendationController
mockedServiceScaleRecommendationController := &ServiceScaleRecommendationControllerMock{
AddGenericHandlerFunc: func(ctx context.Context, name string, handler generic.Handler) {
panic("mock out the AddGenericHandler method")
},
AddGenericRemoveHandlerFunc: func(ctx context.Context, name string, handler generic.Handler) {
panic("mock out the AddGenericRemoveHandler method")
},
CacheFunc: func() v1.ServiceScaleRecommendationCache {
panic("mock out the Cache method")
},
CreateFunc: func(in1 *v1a.ServiceScaleRecommendation) (*v1a.ServiceScaleRecommendation, error) {
panic("mock out the Create method")
},
DeleteFunc: func(namespace string, name string, options *v1b.DeleteOptions) error {
panic("mock out the Delete method")
},
EnqueueFunc: func(namespace string, name string) {
panic("mock out the Enqueue method")
},
GetFunc: func(namespace string, name string, options v1b.GetOptions) (*v1a.ServiceScaleRecommendation, error) {
panic("mock out the Get method")
},
GroupVersionKindFunc: func() schema.GroupVersionKind {
panic("mock out the GroupVersionKind method")
},
InformerFunc: func() cache.SharedIndexInformer {
panic("mock out the Informer method")
},
ListFunc: func(namespace string, opts v1b.ListOptions) (*v1a.ServiceScaleRecommendationList, error) {
panic("mock out the List method")
},
OnChangeFunc: func(ctx context.Context, name string, sync v1.ServiceScaleRecommendationHandler) {
panic("mock out the OnChange method")
},
OnRemoveFunc: func(ctx context.Context, name string, sync v1.ServiceScaleRecommendationHandler) {
panic("mock out the OnRemove method")
},
PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.ServiceScaleRecommendation, error) {
panic("mock out the Patch method")
},
UpdateFunc: func(in1 *v1a.ServiceScaleRecommendation) (*v1a.ServiceScaleRecommendation, error) {
panic("mock out the Update method")
},
UpdateStatusFunc: func(in1 *v1a.ServiceScaleRecommendation) (*v1a.ServiceScaleRecommendation, error) {
panic("mock out the UpdateStatus method")
},
UpdaterFunc: func() generic.Updater {
panic("mock out the Updater method")
},
WatchFunc: func(namespace string, opts v1b.ListOptions) (watch.Interface, error) {
panic("mock out the Watch method")
},
}
// use mockedServiceScaleRecommendationController in code that requires ServiceScaleRecommendationController
// and then make assertions.
}
func (*ServiceScaleRecommendationControllerMock) AddGenericHandler ¶
func (mock *ServiceScaleRecommendationControllerMock) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)
AddGenericHandler calls AddGenericHandlerFunc.
func (*ServiceScaleRecommendationControllerMock) AddGenericHandlerCalls ¶
func (mock *ServiceScaleRecommendationControllerMock) AddGenericHandlerCalls() []struct { Ctx context.Context Name string Handler generic.Handler }
AddGenericHandlerCalls gets all the calls that were made to AddGenericHandler. Check the length with:
len(mockedServiceScaleRecommendationController.AddGenericHandlerCalls())
func (*ServiceScaleRecommendationControllerMock) AddGenericRemoveHandler ¶
func (mock *ServiceScaleRecommendationControllerMock) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)
AddGenericRemoveHandler calls AddGenericRemoveHandlerFunc.
func (*ServiceScaleRecommendationControllerMock) AddGenericRemoveHandlerCalls ¶
func (mock *ServiceScaleRecommendationControllerMock) AddGenericRemoveHandlerCalls() []struct { Ctx context.Context Name string Handler generic.Handler }
AddGenericRemoveHandlerCalls gets all the calls that were made to AddGenericRemoveHandler. Check the length with:
len(mockedServiceScaleRecommendationController.AddGenericRemoveHandlerCalls())
func (*ServiceScaleRecommendationControllerMock) Cache ¶
func (mock *ServiceScaleRecommendationControllerMock) Cache() v1.ServiceScaleRecommendationCache
Cache calls CacheFunc.
func (*ServiceScaleRecommendationControllerMock) CacheCalls ¶
func (mock *ServiceScaleRecommendationControllerMock) CacheCalls() []struct { }
CacheCalls gets all the calls that were made to Cache. Check the length with:
len(mockedServiceScaleRecommendationController.CacheCalls())
func (*ServiceScaleRecommendationControllerMock) Create ¶
func (mock *ServiceScaleRecommendationControllerMock) Create(in1 *v1a.ServiceScaleRecommendation) (*v1a.ServiceScaleRecommendation, error)
Create calls CreateFunc.
func (*ServiceScaleRecommendationControllerMock) CreateCalls ¶
func (mock *ServiceScaleRecommendationControllerMock) CreateCalls() []struct { In1 *v1a.ServiceScaleRecommendation }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedServiceScaleRecommendationController.CreateCalls())
func (*ServiceScaleRecommendationControllerMock) Delete ¶
func (mock *ServiceScaleRecommendationControllerMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
Delete calls DeleteFunc.
func (*ServiceScaleRecommendationControllerMock) DeleteCalls ¶
func (mock *ServiceScaleRecommendationControllerMock) DeleteCalls() []struct { Namespace string Name string Options *v1b.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedServiceScaleRecommendationController.DeleteCalls())
func (*ServiceScaleRecommendationControllerMock) Enqueue ¶
func (mock *ServiceScaleRecommendationControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*ServiceScaleRecommendationControllerMock) EnqueueCalls ¶
func (mock *ServiceScaleRecommendationControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedServiceScaleRecommendationController.EnqueueCalls())
func (*ServiceScaleRecommendationControllerMock) Get ¶
func (mock *ServiceScaleRecommendationControllerMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.ServiceScaleRecommendation, error)
Get calls GetFunc.
func (*ServiceScaleRecommendationControllerMock) GetCalls ¶
func (mock *ServiceScaleRecommendationControllerMock) GetCalls() []struct { Namespace string Name string Options v1b.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedServiceScaleRecommendationController.GetCalls())
func (*ServiceScaleRecommendationControllerMock) GroupVersionKind ¶
func (mock *ServiceScaleRecommendationControllerMock) GroupVersionKind() schema.GroupVersionKind
GroupVersionKind calls GroupVersionKindFunc.
func (*ServiceScaleRecommendationControllerMock) GroupVersionKindCalls ¶
func (mock *ServiceScaleRecommendationControllerMock) GroupVersionKindCalls() []struct { }
GroupVersionKindCalls gets all the calls that were made to GroupVersionKind. Check the length with:
len(mockedServiceScaleRecommendationController.GroupVersionKindCalls())
func (*ServiceScaleRecommendationControllerMock) Informer ¶
func (mock *ServiceScaleRecommendationControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*ServiceScaleRecommendationControllerMock) InformerCalls ¶
func (mock *ServiceScaleRecommendationControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedServiceScaleRecommendationController.InformerCalls())
func (*ServiceScaleRecommendationControllerMock) List ¶
func (mock *ServiceScaleRecommendationControllerMock) List(namespace string, opts v1b.ListOptions) (*v1a.ServiceScaleRecommendationList, error)
List calls ListFunc.
func (*ServiceScaleRecommendationControllerMock) ListCalls ¶
func (mock *ServiceScaleRecommendationControllerMock) ListCalls() []struct { Namespace string Opts v1b.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedServiceScaleRecommendationController.ListCalls())
func (*ServiceScaleRecommendationControllerMock) OnChange ¶
func (mock *ServiceScaleRecommendationControllerMock) OnChange(ctx context.Context, name string, sync v1.ServiceScaleRecommendationHandler)
OnChange calls OnChangeFunc.
func (*ServiceScaleRecommendationControllerMock) OnChangeCalls ¶
func (mock *ServiceScaleRecommendationControllerMock) OnChangeCalls() []struct { Ctx context.Context Name string Sync v1.ServiceScaleRecommendationHandler }
OnChangeCalls gets all the calls that were made to OnChange. Check the length with:
len(mockedServiceScaleRecommendationController.OnChangeCalls())
func (*ServiceScaleRecommendationControllerMock) OnRemove ¶
func (mock *ServiceScaleRecommendationControllerMock) OnRemove(ctx context.Context, name string, sync v1.ServiceScaleRecommendationHandler)
OnRemove calls OnRemoveFunc.
func (*ServiceScaleRecommendationControllerMock) OnRemoveCalls ¶
func (mock *ServiceScaleRecommendationControllerMock) OnRemoveCalls() []struct { Ctx context.Context Name string Sync v1.ServiceScaleRecommendationHandler }
OnRemoveCalls gets all the calls that were made to OnRemove. Check the length with:
len(mockedServiceScaleRecommendationController.OnRemoveCalls())
func (*ServiceScaleRecommendationControllerMock) Patch ¶
func (mock *ServiceScaleRecommendationControllerMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.ServiceScaleRecommendation, error)
Patch calls PatchFunc.
func (*ServiceScaleRecommendationControllerMock) PatchCalls ¶
func (mock *ServiceScaleRecommendationControllerMock) PatchCalls() []struct { Namespace string Name string Pt types.PatchType Data []byte Subresources []string }
PatchCalls gets all the calls that were made to Patch. Check the length with:
len(mockedServiceScaleRecommendationController.PatchCalls())
func (*ServiceScaleRecommendationControllerMock) Update ¶
func (mock *ServiceScaleRecommendationControllerMock) Update(in1 *v1a.ServiceScaleRecommendation) (*v1a.ServiceScaleRecommendation, error)
Update calls UpdateFunc.
func (*ServiceScaleRecommendationControllerMock) UpdateCalls ¶
func (mock *ServiceScaleRecommendationControllerMock) UpdateCalls() []struct { In1 *v1a.ServiceScaleRecommendation }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedServiceScaleRecommendationController.UpdateCalls())
func (*ServiceScaleRecommendationControllerMock) UpdateStatus ¶
func (mock *ServiceScaleRecommendationControllerMock) UpdateStatus(in1 *v1a.ServiceScaleRecommendation) (*v1a.ServiceScaleRecommendation, error)
UpdateStatus calls UpdateStatusFunc.
func (*ServiceScaleRecommendationControllerMock) UpdateStatusCalls ¶
func (mock *ServiceScaleRecommendationControllerMock) UpdateStatusCalls() []struct { In1 *v1a.ServiceScaleRecommendation }
UpdateStatusCalls gets all the calls that were made to UpdateStatus. Check the length with:
len(mockedServiceScaleRecommendationController.UpdateStatusCalls())
func (*ServiceScaleRecommendationControllerMock) Updater ¶
func (mock *ServiceScaleRecommendationControllerMock) Updater() generic.Updater
Updater calls UpdaterFunc.
func (*ServiceScaleRecommendationControllerMock) UpdaterCalls ¶
func (mock *ServiceScaleRecommendationControllerMock) UpdaterCalls() []struct { }
UpdaterCalls gets all the calls that were made to Updater. Check the length with:
len(mockedServiceScaleRecommendationController.UpdaterCalls())
func (*ServiceScaleRecommendationControllerMock) Watch ¶
func (mock *ServiceScaleRecommendationControllerMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*ServiceScaleRecommendationControllerMock) WatchCalls ¶
func (mock *ServiceScaleRecommendationControllerMock) WatchCalls() []struct { Namespace string Opts v1b.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedServiceScaleRecommendationController.WatchCalls())
Source Files
¶
- zz_generated_service_scale_recommendation_mock.go