Documentation
¶
Index ¶
- type PodAutoscalerCacheMock
- func (mock *PodAutoscalerCacheMock) AddIndexer(indexName string, indexer v1alpha1.PodAutoscalerIndexer)
- func (mock *PodAutoscalerCacheMock) AddIndexerCalls() []struct{ ... }
- func (mock *PodAutoscalerCacheMock) Get(namespace string, name string) (*v1alpha1a.PodAutoscaler, error)
- func (mock *PodAutoscalerCacheMock) GetByIndex(indexName string, key string) ([]*v1alpha1a.PodAutoscaler, error)
- func (mock *PodAutoscalerCacheMock) GetByIndexCalls() []struct{ ... }
- func (mock *PodAutoscalerCacheMock) GetCalls() []struct{ ... }
- func (mock *PodAutoscalerCacheMock) List(namespace string, selector labels.Selector) ([]*v1alpha1a.PodAutoscaler, error)
- func (mock *PodAutoscalerCacheMock) ListCalls() []struct{ ... }
- type PodAutoscalerClientMock
- func (mock *PodAutoscalerClientMock) Create(in1 *v1alpha1a.PodAutoscaler) (*v1alpha1a.PodAutoscaler, error)
- func (mock *PodAutoscalerClientMock) CreateCalls() []struct{ ... }
- func (mock *PodAutoscalerClientMock) Delete(namespace string, name string, options *v1.DeleteOptions) error
- func (mock *PodAutoscalerClientMock) DeleteCalls() []struct{ ... }
- func (mock *PodAutoscalerClientMock) Get(namespace string, name string, options v1.GetOptions) (*v1alpha1a.PodAutoscaler, error)
- func (mock *PodAutoscalerClientMock) GetCalls() []struct{ ... }
- func (mock *PodAutoscalerClientMock) List(namespace string, opts v1.ListOptions) (*v1alpha1a.PodAutoscalerList, error)
- func (mock *PodAutoscalerClientMock) ListCalls() []struct{ ... }
- func (mock *PodAutoscalerClientMock) Patch(namespace string, name string, pt types.PatchType, data []byte, ...) (*v1alpha1a.PodAutoscaler, error)
- func (mock *PodAutoscalerClientMock) PatchCalls() []struct{ ... }
- func (mock *PodAutoscalerClientMock) Update(in1 *v1alpha1a.PodAutoscaler) (*v1alpha1a.PodAutoscaler, error)
- func (mock *PodAutoscalerClientMock) UpdateCalls() []struct{ ... }
- func (mock *PodAutoscalerClientMock) UpdateStatus(in1 *v1alpha1a.PodAutoscaler) (*v1alpha1a.PodAutoscaler, error)
- func (mock *PodAutoscalerClientMock) UpdateStatusCalls() []struct{ ... }
- func (mock *PodAutoscalerClientMock) Watch(namespace string, opts v1.ListOptions) (watch.Interface, error)
- func (mock *PodAutoscalerClientMock) WatchCalls() []struct{ ... }
- type PodAutoscalerControllerMock
- func (mock *PodAutoscalerControllerMock) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)
- func (mock *PodAutoscalerControllerMock) AddGenericHandlerCalls() []struct{ ... }
- func (mock *PodAutoscalerControllerMock) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)
- func (mock *PodAutoscalerControllerMock) AddGenericRemoveHandlerCalls() []struct{ ... }
- func (mock *PodAutoscalerControllerMock) Cache() v1alpha1.PodAutoscalerCache
- func (mock *PodAutoscalerControllerMock) CacheCalls() []struct{}
- func (mock *PodAutoscalerControllerMock) Create(in1 *v1alpha1a.PodAutoscaler) (*v1alpha1a.PodAutoscaler, error)
- func (mock *PodAutoscalerControllerMock) CreateCalls() []struct{ ... }
- func (mock *PodAutoscalerControllerMock) Delete(namespace string, name string, options *v1.DeleteOptions) error
- func (mock *PodAutoscalerControllerMock) DeleteCalls() []struct{ ... }
- func (mock *PodAutoscalerControllerMock) Enqueue(namespace string, name string)
- func (mock *PodAutoscalerControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *PodAutoscalerControllerMock) Get(namespace string, name string, options v1.GetOptions) (*v1alpha1a.PodAutoscaler, error)
- func (mock *PodAutoscalerControllerMock) GetCalls() []struct{ ... }
- func (mock *PodAutoscalerControllerMock) GroupVersionKind() schema.GroupVersionKind
- func (mock *PodAutoscalerControllerMock) GroupVersionKindCalls() []struct{}
- func (mock *PodAutoscalerControllerMock) Informer() cache.SharedIndexInformer
- func (mock *PodAutoscalerControllerMock) InformerCalls() []struct{}
- func (mock *PodAutoscalerControllerMock) List(namespace string, opts v1.ListOptions) (*v1alpha1a.PodAutoscalerList, error)
- func (mock *PodAutoscalerControllerMock) ListCalls() []struct{ ... }
- func (mock *PodAutoscalerControllerMock) OnChange(ctx context.Context, name string, sync v1alpha1.PodAutoscalerHandler)
- func (mock *PodAutoscalerControllerMock) OnChangeCalls() []struct{ ... }
- func (mock *PodAutoscalerControllerMock) OnRemove(ctx context.Context, name string, sync v1alpha1.PodAutoscalerHandler)
- func (mock *PodAutoscalerControllerMock) OnRemoveCalls() []struct{ ... }
- func (mock *PodAutoscalerControllerMock) Patch(namespace string, name string, pt types.PatchType, data []byte, ...) (*v1alpha1a.PodAutoscaler, error)
- func (mock *PodAutoscalerControllerMock) PatchCalls() []struct{ ... }
- func (mock *PodAutoscalerControllerMock) Update(in1 *v1alpha1a.PodAutoscaler) (*v1alpha1a.PodAutoscaler, error)
- func (mock *PodAutoscalerControllerMock) UpdateCalls() []struct{ ... }
- func (mock *PodAutoscalerControllerMock) UpdateStatus(in1 *v1alpha1a.PodAutoscaler) (*v1alpha1a.PodAutoscaler, error)
- func (mock *PodAutoscalerControllerMock) UpdateStatusCalls() []struct{ ... }
- func (mock *PodAutoscalerControllerMock) Updater() generic.Updater
- func (mock *PodAutoscalerControllerMock) UpdaterCalls() []struct{}
- func (mock *PodAutoscalerControllerMock) Watch(namespace string, opts v1.ListOptions) (watch.Interface, error)
- func (mock *PodAutoscalerControllerMock) WatchCalls() []struct{ ... }
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PodAutoscalerCacheMock ¶
type PodAutoscalerCacheMock struct {
// AddIndexerFunc mocks the AddIndexer method.
AddIndexerFunc func(indexName string, indexer v1alpha1.PodAutoscalerIndexer)
// GetFunc mocks the Get method.
GetFunc func(namespace string, name string) (*v1alpha1a.PodAutoscaler, error)
// GetByIndexFunc mocks the GetByIndex method.
GetByIndexFunc func(indexName string, key string) ([]*v1alpha1a.PodAutoscaler, error)
// ListFunc mocks the List method.
ListFunc func(namespace string, selector labels.Selector) ([]*v1alpha1a.PodAutoscaler, error)
// contains filtered or unexported fields
}
PodAutoscalerCacheMock is a mock implementation of PodAutoscalerCache.
func TestSomethingThatUsesPodAutoscalerCache(t *testing.T) {
// make and configure a mocked PodAutoscalerCache
mockedPodAutoscalerCache := &PodAutoscalerCacheMock{
AddIndexerFunc: func(indexName string, indexer v1alpha1.PodAutoscalerIndexer) {
panic("mock out the AddIndexer method")
},
GetFunc: func(namespace string, name string) (*v1alpha1a.PodAutoscaler, error) {
panic("mock out the Get method")
},
GetByIndexFunc: func(indexName string, key string) ([]*v1alpha1a.PodAutoscaler, error) {
panic("mock out the GetByIndex method")
},
ListFunc: func(namespace string, selector labels.Selector) ([]*v1alpha1a.PodAutoscaler, error) {
panic("mock out the List method")
},
}
// use mockedPodAutoscalerCache in code that requires PodAutoscalerCache
// and then make assertions.
}
func (*PodAutoscalerCacheMock) AddIndexer ¶
func (mock *PodAutoscalerCacheMock) AddIndexer(indexName string, indexer v1alpha1.PodAutoscalerIndexer)
AddIndexer calls AddIndexerFunc.
func (*PodAutoscalerCacheMock) AddIndexerCalls ¶
func (mock *PodAutoscalerCacheMock) AddIndexerCalls() []struct { IndexName string Indexer v1alpha1.PodAutoscalerIndexer }
AddIndexerCalls gets all the calls that were made to AddIndexer. Check the length with:
len(mockedPodAutoscalerCache.AddIndexerCalls())
func (*PodAutoscalerCacheMock) Get ¶
func (mock *PodAutoscalerCacheMock) Get(namespace string, name string) (*v1alpha1a.PodAutoscaler, error)
Get calls GetFunc.
func (*PodAutoscalerCacheMock) GetByIndex ¶
func (mock *PodAutoscalerCacheMock) GetByIndex(indexName string, key string) ([]*v1alpha1a.PodAutoscaler, error)
GetByIndex calls GetByIndexFunc.
func (*PodAutoscalerCacheMock) GetByIndexCalls ¶
func (mock *PodAutoscalerCacheMock) GetByIndexCalls() []struct { IndexName string Key string }
GetByIndexCalls gets all the calls that were made to GetByIndex. Check the length with:
len(mockedPodAutoscalerCache.GetByIndexCalls())
func (*PodAutoscalerCacheMock) GetCalls ¶
func (mock *PodAutoscalerCacheMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedPodAutoscalerCache.GetCalls())
func (*PodAutoscalerCacheMock) List ¶
func (mock *PodAutoscalerCacheMock) List(namespace string, selector labels.Selector) ([]*v1alpha1a.PodAutoscaler, error)
List calls ListFunc.
type PodAutoscalerClientMock ¶
type PodAutoscalerClientMock struct {
// CreateFunc mocks the Create method.
CreateFunc func(in1 *v1alpha1a.PodAutoscaler) (*v1alpha1a.PodAutoscaler, error)
// DeleteFunc mocks the Delete method.
DeleteFunc func(namespace string, name string, options *v1.DeleteOptions) error
// GetFunc mocks the Get method.
GetFunc func(namespace string, name string, options v1.GetOptions) (*v1alpha1a.PodAutoscaler, error)
// ListFunc mocks the List method.
ListFunc func(namespace string, opts v1.ListOptions) (*v1alpha1a.PodAutoscalerList, error)
// PatchFunc mocks the Patch method.
PatchFunc func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1alpha1a.PodAutoscaler, error)
// UpdateFunc mocks the Update method.
UpdateFunc func(in1 *v1alpha1a.PodAutoscaler) (*v1alpha1a.PodAutoscaler, error)
// UpdateStatusFunc mocks the UpdateStatus method.
UpdateStatusFunc func(in1 *v1alpha1a.PodAutoscaler) (*v1alpha1a.PodAutoscaler, error)
// WatchFunc mocks the Watch method.
WatchFunc func(namespace string, opts v1.ListOptions) (watch.Interface, error)
// contains filtered or unexported fields
}
PodAutoscalerClientMock is a mock implementation of PodAutoscalerClient.
func TestSomethingThatUsesPodAutoscalerClient(t *testing.T) {
// make and configure a mocked PodAutoscalerClient
mockedPodAutoscalerClient := &PodAutoscalerClientMock{
CreateFunc: func(in1 *v1alpha1a.PodAutoscaler) (*v1alpha1a.PodAutoscaler, error) {
panic("mock out the Create method")
},
DeleteFunc: func(namespace string, name string, options *v1.DeleteOptions) error {
panic("mock out the Delete method")
},
GetFunc: func(namespace string, name string, options v1.GetOptions) (*v1alpha1a.PodAutoscaler, error) {
panic("mock out the Get method")
},
ListFunc: func(namespace string, opts v1.ListOptions) (*v1alpha1a.PodAutoscalerList, error) {
panic("mock out the List method")
},
PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1alpha1a.PodAutoscaler, error) {
panic("mock out the Patch method")
},
UpdateFunc: func(in1 *v1alpha1a.PodAutoscaler) (*v1alpha1a.PodAutoscaler, error) {
panic("mock out the Update method")
},
UpdateStatusFunc: func(in1 *v1alpha1a.PodAutoscaler) (*v1alpha1a.PodAutoscaler, error) {
panic("mock out the UpdateStatus method")
},
WatchFunc: func(namespace string, opts v1.ListOptions) (watch.Interface, error) {
panic("mock out the Watch method")
},
}
// use mockedPodAutoscalerClient in code that requires PodAutoscalerClient
// and then make assertions.
}
func (*PodAutoscalerClientMock) Create ¶
func (mock *PodAutoscalerClientMock) Create(in1 *v1alpha1a.PodAutoscaler) (*v1alpha1a.PodAutoscaler, error)
Create calls CreateFunc.
func (*PodAutoscalerClientMock) CreateCalls ¶
func (mock *PodAutoscalerClientMock) CreateCalls() []struct { In1 *v1alpha1a.PodAutoscaler }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedPodAutoscalerClient.CreateCalls())
func (*PodAutoscalerClientMock) Delete ¶
func (mock *PodAutoscalerClientMock) Delete(namespace string, name string, options *v1.DeleteOptions) error
Delete calls DeleteFunc.
func (*PodAutoscalerClientMock) DeleteCalls ¶
func (mock *PodAutoscalerClientMock) DeleteCalls() []struct { Namespace string Name string Options *v1.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedPodAutoscalerClient.DeleteCalls())
func (*PodAutoscalerClientMock) Get ¶
func (mock *PodAutoscalerClientMock) Get(namespace string, name string, options v1.GetOptions) (*v1alpha1a.PodAutoscaler, error)
Get calls GetFunc.
func (*PodAutoscalerClientMock) GetCalls ¶
func (mock *PodAutoscalerClientMock) GetCalls() []struct { Namespace string Name string Options v1.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedPodAutoscalerClient.GetCalls())
func (*PodAutoscalerClientMock) List ¶
func (mock *PodAutoscalerClientMock) List(namespace string, opts v1.ListOptions) (*v1alpha1a.PodAutoscalerList, error)
List calls ListFunc.
func (*PodAutoscalerClientMock) ListCalls ¶
func (mock *PodAutoscalerClientMock) ListCalls() []struct { Namespace string Opts v1.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedPodAutoscalerClient.ListCalls())
func (*PodAutoscalerClientMock) Patch ¶
func (mock *PodAutoscalerClientMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1alpha1a.PodAutoscaler, error)
Patch calls PatchFunc.
func (*PodAutoscalerClientMock) PatchCalls ¶
func (mock *PodAutoscalerClientMock) 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(mockedPodAutoscalerClient.PatchCalls())
func (*PodAutoscalerClientMock) Update ¶
func (mock *PodAutoscalerClientMock) Update(in1 *v1alpha1a.PodAutoscaler) (*v1alpha1a.PodAutoscaler, error)
Update calls UpdateFunc.
func (*PodAutoscalerClientMock) UpdateCalls ¶
func (mock *PodAutoscalerClientMock) UpdateCalls() []struct { In1 *v1alpha1a.PodAutoscaler }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedPodAutoscalerClient.UpdateCalls())
func (*PodAutoscalerClientMock) UpdateStatus ¶
func (mock *PodAutoscalerClientMock) UpdateStatus(in1 *v1alpha1a.PodAutoscaler) (*v1alpha1a.PodAutoscaler, error)
UpdateStatus calls UpdateStatusFunc.
func (*PodAutoscalerClientMock) UpdateStatusCalls ¶
func (mock *PodAutoscalerClientMock) UpdateStatusCalls() []struct { In1 *v1alpha1a.PodAutoscaler }
UpdateStatusCalls gets all the calls that were made to UpdateStatus. Check the length with:
len(mockedPodAutoscalerClient.UpdateStatusCalls())
func (*PodAutoscalerClientMock) Watch ¶
func (mock *PodAutoscalerClientMock) Watch(namespace string, opts v1.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*PodAutoscalerClientMock) WatchCalls ¶
func (mock *PodAutoscalerClientMock) WatchCalls() []struct { Namespace string Opts v1.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedPodAutoscalerClient.WatchCalls())
type PodAutoscalerControllerMock ¶
type PodAutoscalerControllerMock 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() v1alpha1.PodAutoscalerCache
// CreateFunc mocks the Create method.
CreateFunc func(in1 *v1alpha1a.PodAutoscaler) (*v1alpha1a.PodAutoscaler, error)
// DeleteFunc mocks the Delete method.
DeleteFunc func(namespace string, name string, options *v1.DeleteOptions) error
// EnqueueFunc mocks the Enqueue method.
EnqueueFunc func(namespace string, name string)
// GetFunc mocks the Get method.
GetFunc func(namespace string, name string, options v1.GetOptions) (*v1alpha1a.PodAutoscaler, error)
// GroupVersionKindFunc mocks the GroupVersionKind method.
GroupVersionKindFunc func() schema.GroupVersionKind
// InformerFunc mocks the Informer method.
InformerFunc func() cache.SharedIndexInformer
// ListFunc mocks the List method.
ListFunc func(namespace string, opts v1.ListOptions) (*v1alpha1a.PodAutoscalerList, error)
// OnChangeFunc mocks the OnChange method.
OnChangeFunc func(ctx context.Context, name string, sync v1alpha1.PodAutoscalerHandler)
// OnRemoveFunc mocks the OnRemove method.
OnRemoveFunc func(ctx context.Context, name string, sync v1alpha1.PodAutoscalerHandler)
// PatchFunc mocks the Patch method.
PatchFunc func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1alpha1a.PodAutoscaler, error)
// UpdateFunc mocks the Update method.
UpdateFunc func(in1 *v1alpha1a.PodAutoscaler) (*v1alpha1a.PodAutoscaler, error)
// UpdateStatusFunc mocks the UpdateStatus method.
UpdateStatusFunc func(in1 *v1alpha1a.PodAutoscaler) (*v1alpha1a.PodAutoscaler, error)
// UpdaterFunc mocks the Updater method.
UpdaterFunc func() generic.Updater
// WatchFunc mocks the Watch method.
WatchFunc func(namespace string, opts v1.ListOptions) (watch.Interface, error)
// contains filtered or unexported fields
}
PodAutoscalerControllerMock is a mock implementation of PodAutoscalerController.
func TestSomethingThatUsesPodAutoscalerController(t *testing.T) {
// make and configure a mocked PodAutoscalerController
mockedPodAutoscalerController := &PodAutoscalerControllerMock{
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() v1alpha1.PodAutoscalerCache {
panic("mock out the Cache method")
},
CreateFunc: func(in1 *v1alpha1a.PodAutoscaler) (*v1alpha1a.PodAutoscaler, error) {
panic("mock out the Create method")
},
DeleteFunc: func(namespace string, name string, options *v1.DeleteOptions) error {
panic("mock out the Delete method")
},
EnqueueFunc: func(namespace string, name string) {
panic("mock out the Enqueue method")
},
GetFunc: func(namespace string, name string, options v1.GetOptions) (*v1alpha1a.PodAutoscaler, error) {
panic("mock out the Get method")
},
GroupVersionKindFunc: func() schema.GroupVersionKind {
panic("mock out the GroupVersionKind method")
},
InformerFunc: func() cache.SharedIndexInformer {
panic("mock out the Informer method")
},
ListFunc: func(namespace string, opts v1.ListOptions) (*v1alpha1a.PodAutoscalerList, error) {
panic("mock out the List method")
},
OnChangeFunc: func(ctx context.Context, name string, sync v1alpha1.PodAutoscalerHandler) {
panic("mock out the OnChange method")
},
OnRemoveFunc: func(ctx context.Context, name string, sync v1alpha1.PodAutoscalerHandler) {
panic("mock out the OnRemove method")
},
PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1alpha1a.PodAutoscaler, error) {
panic("mock out the Patch method")
},
UpdateFunc: func(in1 *v1alpha1a.PodAutoscaler) (*v1alpha1a.PodAutoscaler, error) {
panic("mock out the Update method")
},
UpdateStatusFunc: func(in1 *v1alpha1a.PodAutoscaler) (*v1alpha1a.PodAutoscaler, error) {
panic("mock out the UpdateStatus method")
},
UpdaterFunc: func() generic.Updater {
panic("mock out the Updater method")
},
WatchFunc: func(namespace string, opts v1.ListOptions) (watch.Interface, error) {
panic("mock out the Watch method")
},
}
// use mockedPodAutoscalerController in code that requires PodAutoscalerController
// and then make assertions.
}
func (*PodAutoscalerControllerMock) AddGenericHandler ¶
func (mock *PodAutoscalerControllerMock) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)
AddGenericHandler calls AddGenericHandlerFunc.
func (*PodAutoscalerControllerMock) AddGenericHandlerCalls ¶
func (mock *PodAutoscalerControllerMock) 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(mockedPodAutoscalerController.AddGenericHandlerCalls())
func (*PodAutoscalerControllerMock) AddGenericRemoveHandler ¶
func (mock *PodAutoscalerControllerMock) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)
AddGenericRemoveHandler calls AddGenericRemoveHandlerFunc.
func (*PodAutoscalerControllerMock) AddGenericRemoveHandlerCalls ¶
func (mock *PodAutoscalerControllerMock) 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(mockedPodAutoscalerController.AddGenericRemoveHandlerCalls())
func (*PodAutoscalerControllerMock) Cache ¶
func (mock *PodAutoscalerControllerMock) Cache() v1alpha1.PodAutoscalerCache
Cache calls CacheFunc.
func (*PodAutoscalerControllerMock) CacheCalls ¶
func (mock *PodAutoscalerControllerMock) CacheCalls() []struct { }
CacheCalls gets all the calls that were made to Cache. Check the length with:
len(mockedPodAutoscalerController.CacheCalls())
func (*PodAutoscalerControllerMock) Create ¶
func (mock *PodAutoscalerControllerMock) Create(in1 *v1alpha1a.PodAutoscaler) (*v1alpha1a.PodAutoscaler, error)
Create calls CreateFunc.
func (*PodAutoscalerControllerMock) CreateCalls ¶
func (mock *PodAutoscalerControllerMock) CreateCalls() []struct { In1 *v1alpha1a.PodAutoscaler }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedPodAutoscalerController.CreateCalls())
func (*PodAutoscalerControllerMock) Delete ¶
func (mock *PodAutoscalerControllerMock) Delete(namespace string, name string, options *v1.DeleteOptions) error
Delete calls DeleteFunc.
func (*PodAutoscalerControllerMock) DeleteCalls ¶
func (mock *PodAutoscalerControllerMock) DeleteCalls() []struct { Namespace string Name string Options *v1.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedPodAutoscalerController.DeleteCalls())
func (*PodAutoscalerControllerMock) Enqueue ¶
func (mock *PodAutoscalerControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*PodAutoscalerControllerMock) EnqueueCalls ¶
func (mock *PodAutoscalerControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedPodAutoscalerController.EnqueueCalls())
func (*PodAutoscalerControllerMock) Get ¶
func (mock *PodAutoscalerControllerMock) Get(namespace string, name string, options v1.GetOptions) (*v1alpha1a.PodAutoscaler, error)
Get calls GetFunc.
func (*PodAutoscalerControllerMock) GetCalls ¶
func (mock *PodAutoscalerControllerMock) GetCalls() []struct { Namespace string Name string Options v1.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedPodAutoscalerController.GetCalls())
func (*PodAutoscalerControllerMock) GroupVersionKind ¶
func (mock *PodAutoscalerControllerMock) GroupVersionKind() schema.GroupVersionKind
GroupVersionKind calls GroupVersionKindFunc.
func (*PodAutoscalerControllerMock) GroupVersionKindCalls ¶
func (mock *PodAutoscalerControllerMock) GroupVersionKindCalls() []struct { }
GroupVersionKindCalls gets all the calls that were made to GroupVersionKind. Check the length with:
len(mockedPodAutoscalerController.GroupVersionKindCalls())
func (*PodAutoscalerControllerMock) Informer ¶
func (mock *PodAutoscalerControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*PodAutoscalerControllerMock) InformerCalls ¶
func (mock *PodAutoscalerControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedPodAutoscalerController.InformerCalls())
func (*PodAutoscalerControllerMock) List ¶
func (mock *PodAutoscalerControllerMock) List(namespace string, opts v1.ListOptions) (*v1alpha1a.PodAutoscalerList, error)
List calls ListFunc.
func (*PodAutoscalerControllerMock) ListCalls ¶
func (mock *PodAutoscalerControllerMock) ListCalls() []struct { Namespace string Opts v1.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedPodAutoscalerController.ListCalls())
func (*PodAutoscalerControllerMock) OnChange ¶
func (mock *PodAutoscalerControllerMock) OnChange(ctx context.Context, name string, sync v1alpha1.PodAutoscalerHandler)
OnChange calls OnChangeFunc.
func (*PodAutoscalerControllerMock) OnChangeCalls ¶
func (mock *PodAutoscalerControllerMock) OnChangeCalls() []struct { Ctx context.Context Name string Sync v1alpha1.PodAutoscalerHandler }
OnChangeCalls gets all the calls that were made to OnChange. Check the length with:
len(mockedPodAutoscalerController.OnChangeCalls())
func (*PodAutoscalerControllerMock) OnRemove ¶
func (mock *PodAutoscalerControllerMock) OnRemove(ctx context.Context, name string, sync v1alpha1.PodAutoscalerHandler)
OnRemove calls OnRemoveFunc.
func (*PodAutoscalerControllerMock) OnRemoveCalls ¶
func (mock *PodAutoscalerControllerMock) OnRemoveCalls() []struct { Ctx context.Context Name string Sync v1alpha1.PodAutoscalerHandler }
OnRemoveCalls gets all the calls that were made to OnRemove. Check the length with:
len(mockedPodAutoscalerController.OnRemoveCalls())
func (*PodAutoscalerControllerMock) Patch ¶
func (mock *PodAutoscalerControllerMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1alpha1a.PodAutoscaler, error)
Patch calls PatchFunc.
func (*PodAutoscalerControllerMock) PatchCalls ¶
func (mock *PodAutoscalerControllerMock) 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(mockedPodAutoscalerController.PatchCalls())
func (*PodAutoscalerControllerMock) Update ¶
func (mock *PodAutoscalerControllerMock) Update(in1 *v1alpha1a.PodAutoscaler) (*v1alpha1a.PodAutoscaler, error)
Update calls UpdateFunc.
func (*PodAutoscalerControllerMock) UpdateCalls ¶
func (mock *PodAutoscalerControllerMock) UpdateCalls() []struct { In1 *v1alpha1a.PodAutoscaler }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedPodAutoscalerController.UpdateCalls())
func (*PodAutoscalerControllerMock) UpdateStatus ¶
func (mock *PodAutoscalerControllerMock) UpdateStatus(in1 *v1alpha1a.PodAutoscaler) (*v1alpha1a.PodAutoscaler, error)
UpdateStatus calls UpdateStatusFunc.
func (*PodAutoscalerControllerMock) UpdateStatusCalls ¶
func (mock *PodAutoscalerControllerMock) UpdateStatusCalls() []struct { In1 *v1alpha1a.PodAutoscaler }
UpdateStatusCalls gets all the calls that were made to UpdateStatus. Check the length with:
len(mockedPodAutoscalerController.UpdateStatusCalls())
func (*PodAutoscalerControllerMock) Updater ¶
func (mock *PodAutoscalerControllerMock) Updater() generic.Updater
Updater calls UpdaterFunc.
func (*PodAutoscalerControllerMock) UpdaterCalls ¶
func (mock *PodAutoscalerControllerMock) UpdaterCalls() []struct { }
UpdaterCalls gets all the calls that were made to Updater. Check the length with:
len(mockedPodAutoscalerController.UpdaterCalls())
func (*PodAutoscalerControllerMock) Watch ¶
func (mock *PodAutoscalerControllerMock) Watch(namespace string, opts v1.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*PodAutoscalerControllerMock) WatchCalls ¶
func (mock *PodAutoscalerControllerMock) WatchCalls() []struct { Namespace string Opts v1.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedPodAutoscalerController.WatchCalls())