Documentation
¶
Index ¶
- type DaemonSetCacheMock
- func (mock *DaemonSetCacheMock) AddIndexer(indexName string, indexer v1.DaemonSetIndexer)
- func (mock *DaemonSetCacheMock) AddIndexerCalls() []struct{ ... }
- func (mock *DaemonSetCacheMock) Get(namespace string, name string) (*v1a.DaemonSet, error)
- func (mock *DaemonSetCacheMock) GetByIndex(indexName string, key string) ([]*v1a.DaemonSet, error)
- func (mock *DaemonSetCacheMock) GetByIndexCalls() []struct{ ... }
- func (mock *DaemonSetCacheMock) GetCalls() []struct{ ... }
- func (mock *DaemonSetCacheMock) List(namespace string, selector labels.Selector) ([]*v1a.DaemonSet, error)
- func (mock *DaemonSetCacheMock) ListCalls() []struct{ ... }
- type DaemonSetClientMock
- func (mock *DaemonSetClientMock) Create(in1 *v1a.DaemonSet) (*v1a.DaemonSet, error)
- func (mock *DaemonSetClientMock) CreateCalls() []struct{ ... }
- func (mock *DaemonSetClientMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
- func (mock *DaemonSetClientMock) DeleteCalls() []struct{ ... }
- func (mock *DaemonSetClientMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.DaemonSet, error)
- func (mock *DaemonSetClientMock) GetCalls() []struct{ ... }
- func (mock *DaemonSetClientMock) List(namespace string, opts v1b.ListOptions) (*v1a.DaemonSetList, error)
- func (mock *DaemonSetClientMock) ListCalls() []struct{ ... }
- func (mock *DaemonSetClientMock) Patch(namespace string, name string, pt types.PatchType, data []byte, ...) (*v1a.DaemonSet, error)
- func (mock *DaemonSetClientMock) PatchCalls() []struct{ ... }
- func (mock *DaemonSetClientMock) Update(in1 *v1a.DaemonSet) (*v1a.DaemonSet, error)
- func (mock *DaemonSetClientMock) UpdateCalls() []struct{ ... }
- func (mock *DaemonSetClientMock) UpdateStatus(in1 *v1a.DaemonSet) (*v1a.DaemonSet, error)
- func (mock *DaemonSetClientMock) UpdateStatusCalls() []struct{ ... }
- func (mock *DaemonSetClientMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
- func (mock *DaemonSetClientMock) WatchCalls() []struct{ ... }
- type DaemonSetControllerMock
- func (mock *DaemonSetControllerMock) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)
- func (mock *DaemonSetControllerMock) AddGenericHandlerCalls() []struct{ ... }
- func (mock *DaemonSetControllerMock) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)
- func (mock *DaemonSetControllerMock) AddGenericRemoveHandlerCalls() []struct{ ... }
- func (mock *DaemonSetControllerMock) Cache() v1.DaemonSetCache
- func (mock *DaemonSetControllerMock) CacheCalls() []struct{}
- func (mock *DaemonSetControllerMock) Create(in1 *v1a.DaemonSet) (*v1a.DaemonSet, error)
- func (mock *DaemonSetControllerMock) CreateCalls() []struct{ ... }
- func (mock *DaemonSetControllerMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
- func (mock *DaemonSetControllerMock) DeleteCalls() []struct{ ... }
- func (mock *DaemonSetControllerMock) Enqueue(namespace string, name string)
- func (mock *DaemonSetControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *DaemonSetControllerMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.DaemonSet, error)
- func (mock *DaemonSetControllerMock) GetCalls() []struct{ ... }
- func (mock *DaemonSetControllerMock) GroupVersionKind() schema.GroupVersionKind
- func (mock *DaemonSetControllerMock) GroupVersionKindCalls() []struct{}
- func (mock *DaemonSetControllerMock) Informer() cache.SharedIndexInformer
- func (mock *DaemonSetControllerMock) InformerCalls() []struct{}
- func (mock *DaemonSetControllerMock) List(namespace string, opts v1b.ListOptions) (*v1a.DaemonSetList, error)
- func (mock *DaemonSetControllerMock) ListCalls() []struct{ ... }
- func (mock *DaemonSetControllerMock) OnChange(ctx context.Context, name string, sync v1.DaemonSetHandler)
- func (mock *DaemonSetControllerMock) OnChangeCalls() []struct{ ... }
- func (mock *DaemonSetControllerMock) OnRemove(ctx context.Context, name string, sync v1.DaemonSetHandler)
- func (mock *DaemonSetControllerMock) OnRemoveCalls() []struct{ ... }
- func (mock *DaemonSetControllerMock) Patch(namespace string, name string, pt types.PatchType, data []byte, ...) (*v1a.DaemonSet, error)
- func (mock *DaemonSetControllerMock) PatchCalls() []struct{ ... }
- func (mock *DaemonSetControllerMock) Update(in1 *v1a.DaemonSet) (*v1a.DaemonSet, error)
- func (mock *DaemonSetControllerMock) UpdateCalls() []struct{ ... }
- func (mock *DaemonSetControllerMock) UpdateStatus(in1 *v1a.DaemonSet) (*v1a.DaemonSet, error)
- func (mock *DaemonSetControllerMock) UpdateStatusCalls() []struct{ ... }
- func (mock *DaemonSetControllerMock) Updater() generic.Updater
- func (mock *DaemonSetControllerMock) UpdaterCalls() []struct{}
- func (mock *DaemonSetControllerMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
- func (mock *DaemonSetControllerMock) WatchCalls() []struct{ ... }
- type DeploymentCacheMock
- func (mock *DeploymentCacheMock) AddIndexer(indexName string, indexer v1.DeploymentIndexer)
- func (mock *DeploymentCacheMock) AddIndexerCalls() []struct{ ... }
- func (mock *DeploymentCacheMock) Get(namespace string, name string) (*v1a.Deployment, error)
- func (mock *DeploymentCacheMock) GetByIndex(indexName string, key string) ([]*v1a.Deployment, error)
- func (mock *DeploymentCacheMock) GetByIndexCalls() []struct{ ... }
- func (mock *DeploymentCacheMock) GetCalls() []struct{ ... }
- func (mock *DeploymentCacheMock) List(namespace string, selector labels.Selector) ([]*v1a.Deployment, error)
- func (mock *DeploymentCacheMock) ListCalls() []struct{ ... }
- type DeploymentClientMock
- func (mock *DeploymentClientMock) Create(in1 *v1a.Deployment) (*v1a.Deployment, error)
- func (mock *DeploymentClientMock) CreateCalls() []struct{ ... }
- func (mock *DeploymentClientMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
- func (mock *DeploymentClientMock) DeleteCalls() []struct{ ... }
- func (mock *DeploymentClientMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.Deployment, error)
- func (mock *DeploymentClientMock) GetCalls() []struct{ ... }
- func (mock *DeploymentClientMock) List(namespace string, opts v1b.ListOptions) (*v1a.DeploymentList, error)
- func (mock *DeploymentClientMock) ListCalls() []struct{ ... }
- func (mock *DeploymentClientMock) Patch(namespace string, name string, pt types.PatchType, data []byte, ...) (*v1a.Deployment, error)
- func (mock *DeploymentClientMock) PatchCalls() []struct{ ... }
- func (mock *DeploymentClientMock) Update(in1 *v1a.Deployment) (*v1a.Deployment, error)
- func (mock *DeploymentClientMock) UpdateCalls() []struct{ ... }
- func (mock *DeploymentClientMock) UpdateStatus(in1 *v1a.Deployment) (*v1a.Deployment, error)
- func (mock *DeploymentClientMock) UpdateStatusCalls() []struct{ ... }
- func (mock *DeploymentClientMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
- func (mock *DeploymentClientMock) WatchCalls() []struct{ ... }
- type DeploymentControllerMock
- func (mock *DeploymentControllerMock) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)
- func (mock *DeploymentControllerMock) AddGenericHandlerCalls() []struct{ ... }
- func (mock *DeploymentControllerMock) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)
- func (mock *DeploymentControllerMock) AddGenericRemoveHandlerCalls() []struct{ ... }
- func (mock *DeploymentControllerMock) Cache() v1.DeploymentCache
- func (mock *DeploymentControllerMock) CacheCalls() []struct{}
- func (mock *DeploymentControllerMock) Create(in1 *v1a.Deployment) (*v1a.Deployment, error)
- func (mock *DeploymentControllerMock) CreateCalls() []struct{ ... }
- func (mock *DeploymentControllerMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
- func (mock *DeploymentControllerMock) DeleteCalls() []struct{ ... }
- func (mock *DeploymentControllerMock) Enqueue(namespace string, name string)
- func (mock *DeploymentControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *DeploymentControllerMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.Deployment, error)
- func (mock *DeploymentControllerMock) GetCalls() []struct{ ... }
- func (mock *DeploymentControllerMock) GroupVersionKind() schema.GroupVersionKind
- func (mock *DeploymentControllerMock) GroupVersionKindCalls() []struct{}
- func (mock *DeploymentControllerMock) Informer() cache.SharedIndexInformer
- func (mock *DeploymentControllerMock) InformerCalls() []struct{}
- func (mock *DeploymentControllerMock) List(namespace string, opts v1b.ListOptions) (*v1a.DeploymentList, error)
- func (mock *DeploymentControllerMock) ListCalls() []struct{ ... }
- func (mock *DeploymentControllerMock) OnChange(ctx context.Context, name string, sync v1.DeploymentHandler)
- func (mock *DeploymentControllerMock) OnChangeCalls() []struct{ ... }
- func (mock *DeploymentControllerMock) OnRemove(ctx context.Context, name string, sync v1.DeploymentHandler)
- func (mock *DeploymentControllerMock) OnRemoveCalls() []struct{ ... }
- func (mock *DeploymentControllerMock) Patch(namespace string, name string, pt types.PatchType, data []byte, ...) (*v1a.Deployment, error)
- func (mock *DeploymentControllerMock) PatchCalls() []struct{ ... }
- func (mock *DeploymentControllerMock) Update(in1 *v1a.Deployment) (*v1a.Deployment, error)
- func (mock *DeploymentControllerMock) UpdateCalls() []struct{ ... }
- func (mock *DeploymentControllerMock) UpdateStatus(in1 *v1a.Deployment) (*v1a.Deployment, error)
- func (mock *DeploymentControllerMock) UpdateStatusCalls() []struct{ ... }
- func (mock *DeploymentControllerMock) Updater() generic.Updater
- func (mock *DeploymentControllerMock) UpdaterCalls() []struct{}
- func (mock *DeploymentControllerMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
- func (mock *DeploymentControllerMock) WatchCalls() []struct{ ... }
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DaemonSetCacheMock ¶
type DaemonSetCacheMock struct {
// AddIndexerFunc mocks the AddIndexer method.
AddIndexerFunc func(indexName string, indexer v1.DaemonSetIndexer)
// GetFunc mocks the Get method.
GetFunc func(namespace string, name string) (*v1a.DaemonSet, error)
// GetByIndexFunc mocks the GetByIndex method.
GetByIndexFunc func(indexName string, key string) ([]*v1a.DaemonSet, error)
// ListFunc mocks the List method.
ListFunc func(namespace string, selector labels.Selector) ([]*v1a.DaemonSet, error)
// contains filtered or unexported fields
}
DaemonSetCacheMock is a mock implementation of DaemonSetCache.
func TestSomethingThatUsesDaemonSetCache(t *testing.T) {
// make and configure a mocked DaemonSetCache
mockedDaemonSetCache := &DaemonSetCacheMock{
AddIndexerFunc: func(indexName string, indexer v1.DaemonSetIndexer) {
panic("mock out the AddIndexer method")
},
GetFunc: func(namespace string, name string) (*v1a.DaemonSet, error) {
panic("mock out the Get method")
},
GetByIndexFunc: func(indexName string, key string) ([]*v1a.DaemonSet, error) {
panic("mock out the GetByIndex method")
},
ListFunc: func(namespace string, selector labels.Selector) ([]*v1a.DaemonSet, error) {
panic("mock out the List method")
},
}
// use mockedDaemonSetCache in code that requires DaemonSetCache
// and then make assertions.
}
func (*DaemonSetCacheMock) AddIndexer ¶
func (mock *DaemonSetCacheMock) AddIndexer(indexName string, indexer v1.DaemonSetIndexer)
AddIndexer calls AddIndexerFunc.
func (*DaemonSetCacheMock) AddIndexerCalls ¶
func (mock *DaemonSetCacheMock) AddIndexerCalls() []struct { IndexName string Indexer v1.DaemonSetIndexer }
AddIndexerCalls gets all the calls that were made to AddIndexer. Check the length with:
len(mockedDaemonSetCache.AddIndexerCalls())
func (*DaemonSetCacheMock) GetByIndex ¶
GetByIndex calls GetByIndexFunc.
func (*DaemonSetCacheMock) GetByIndexCalls ¶
func (mock *DaemonSetCacheMock) GetByIndexCalls() []struct { IndexName string Key string }
GetByIndexCalls gets all the calls that were made to GetByIndex. Check the length with:
len(mockedDaemonSetCache.GetByIndexCalls())
func (*DaemonSetCacheMock) GetCalls ¶
func (mock *DaemonSetCacheMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedDaemonSetCache.GetCalls())
type DaemonSetClientMock ¶
type DaemonSetClientMock struct {
// CreateFunc mocks the Create method.
CreateFunc func(in1 *v1a.DaemonSet) (*v1a.DaemonSet, 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.DaemonSet, error)
// ListFunc mocks the List method.
ListFunc func(namespace string, opts v1b.ListOptions) (*v1a.DaemonSetList, error)
// PatchFunc mocks the Patch method.
PatchFunc func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.DaemonSet, error)
// UpdateFunc mocks the Update method.
UpdateFunc func(in1 *v1a.DaemonSet) (*v1a.DaemonSet, error)
// UpdateStatusFunc mocks the UpdateStatus method.
UpdateStatusFunc func(in1 *v1a.DaemonSet) (*v1a.DaemonSet, error)
// WatchFunc mocks the Watch method.
WatchFunc func(namespace string, opts v1b.ListOptions) (watch.Interface, error)
// contains filtered or unexported fields
}
DaemonSetClientMock is a mock implementation of DaemonSetClient.
func TestSomethingThatUsesDaemonSetClient(t *testing.T) {
// make and configure a mocked DaemonSetClient
mockedDaemonSetClient := &DaemonSetClientMock{
CreateFunc: func(in1 *v1a.DaemonSet) (*v1a.DaemonSet, 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.DaemonSet, error) {
panic("mock out the Get method")
},
ListFunc: func(namespace string, opts v1b.ListOptions) (*v1a.DaemonSetList, error) {
panic("mock out the List method")
},
PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.DaemonSet, error) {
panic("mock out the Patch method")
},
UpdateFunc: func(in1 *v1a.DaemonSet) (*v1a.DaemonSet, error) {
panic("mock out the Update method")
},
UpdateStatusFunc: func(in1 *v1a.DaemonSet) (*v1a.DaemonSet, error) {
panic("mock out the UpdateStatus method")
},
WatchFunc: func(namespace string, opts v1b.ListOptions) (watch.Interface, error) {
panic("mock out the Watch method")
},
}
// use mockedDaemonSetClient in code that requires DaemonSetClient
// and then make assertions.
}
func (*DaemonSetClientMock) CreateCalls ¶
func (mock *DaemonSetClientMock) CreateCalls() []struct { In1 *v1a.DaemonSet }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedDaemonSetClient.CreateCalls())
func (*DaemonSetClientMock) Delete ¶
func (mock *DaemonSetClientMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
Delete calls DeleteFunc.
func (*DaemonSetClientMock) DeleteCalls ¶
func (mock *DaemonSetClientMock) DeleteCalls() []struct { Namespace string Name string Options *v1b.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedDaemonSetClient.DeleteCalls())
func (*DaemonSetClientMock) Get ¶
func (mock *DaemonSetClientMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.DaemonSet, error)
Get calls GetFunc.
func (*DaemonSetClientMock) GetCalls ¶
func (mock *DaemonSetClientMock) GetCalls() []struct { Namespace string Name string Options v1b.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedDaemonSetClient.GetCalls())
func (*DaemonSetClientMock) List ¶
func (mock *DaemonSetClientMock) List(namespace string, opts v1b.ListOptions) (*v1a.DaemonSetList, error)
List calls ListFunc.
func (*DaemonSetClientMock) ListCalls ¶
func (mock *DaemonSetClientMock) ListCalls() []struct { Namespace string Opts v1b.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedDaemonSetClient.ListCalls())
func (*DaemonSetClientMock) Patch ¶
func (mock *DaemonSetClientMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.DaemonSet, error)
Patch calls PatchFunc.
func (*DaemonSetClientMock) PatchCalls ¶
func (mock *DaemonSetClientMock) 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(mockedDaemonSetClient.PatchCalls())
func (*DaemonSetClientMock) UpdateCalls ¶
func (mock *DaemonSetClientMock) UpdateCalls() []struct { In1 *v1a.DaemonSet }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedDaemonSetClient.UpdateCalls())
func (*DaemonSetClientMock) UpdateStatus ¶
UpdateStatus calls UpdateStatusFunc.
func (*DaemonSetClientMock) UpdateStatusCalls ¶
func (mock *DaemonSetClientMock) UpdateStatusCalls() []struct { In1 *v1a.DaemonSet }
UpdateStatusCalls gets all the calls that were made to UpdateStatus. Check the length with:
len(mockedDaemonSetClient.UpdateStatusCalls())
func (*DaemonSetClientMock) Watch ¶
func (mock *DaemonSetClientMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*DaemonSetClientMock) WatchCalls ¶
func (mock *DaemonSetClientMock) WatchCalls() []struct { Namespace string Opts v1b.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedDaemonSetClient.WatchCalls())
type DaemonSetControllerMock ¶
type DaemonSetControllerMock 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.DaemonSetCache
// CreateFunc mocks the Create method.
CreateFunc func(in1 *v1a.DaemonSet) (*v1a.DaemonSet, 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.DaemonSet, 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.DaemonSetList, error)
// OnChangeFunc mocks the OnChange method.
OnChangeFunc func(ctx context.Context, name string, sync v1.DaemonSetHandler)
// OnRemoveFunc mocks the OnRemove method.
OnRemoveFunc func(ctx context.Context, name string, sync v1.DaemonSetHandler)
// PatchFunc mocks the Patch method.
PatchFunc func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.DaemonSet, error)
// UpdateFunc mocks the Update method.
UpdateFunc func(in1 *v1a.DaemonSet) (*v1a.DaemonSet, error)
// UpdateStatusFunc mocks the UpdateStatus method.
UpdateStatusFunc func(in1 *v1a.DaemonSet) (*v1a.DaemonSet, 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
}
DaemonSetControllerMock is a mock implementation of DaemonSetController.
func TestSomethingThatUsesDaemonSetController(t *testing.T) {
// make and configure a mocked DaemonSetController
mockedDaemonSetController := &DaemonSetControllerMock{
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.DaemonSetCache {
panic("mock out the Cache method")
},
CreateFunc: func(in1 *v1a.DaemonSet) (*v1a.DaemonSet, 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.DaemonSet, 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.DaemonSetList, error) {
panic("mock out the List method")
},
OnChangeFunc: func(ctx context.Context, name string, sync v1.DaemonSetHandler) {
panic("mock out the OnChange method")
},
OnRemoveFunc: func(ctx context.Context, name string, sync v1.DaemonSetHandler) {
panic("mock out the OnRemove method")
},
PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.DaemonSet, error) {
panic("mock out the Patch method")
},
UpdateFunc: func(in1 *v1a.DaemonSet) (*v1a.DaemonSet, error) {
panic("mock out the Update method")
},
UpdateStatusFunc: func(in1 *v1a.DaemonSet) (*v1a.DaemonSet, 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 mockedDaemonSetController in code that requires DaemonSetController
// and then make assertions.
}
func (*DaemonSetControllerMock) AddGenericHandler ¶
func (mock *DaemonSetControllerMock) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)
AddGenericHandler calls AddGenericHandlerFunc.
func (*DaemonSetControllerMock) AddGenericHandlerCalls ¶
func (mock *DaemonSetControllerMock) 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(mockedDaemonSetController.AddGenericHandlerCalls())
func (*DaemonSetControllerMock) AddGenericRemoveHandler ¶
func (mock *DaemonSetControllerMock) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)
AddGenericRemoveHandler calls AddGenericRemoveHandlerFunc.
func (*DaemonSetControllerMock) AddGenericRemoveHandlerCalls ¶
func (mock *DaemonSetControllerMock) 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(mockedDaemonSetController.AddGenericRemoveHandlerCalls())
func (*DaemonSetControllerMock) Cache ¶
func (mock *DaemonSetControllerMock) Cache() v1.DaemonSetCache
Cache calls CacheFunc.
func (*DaemonSetControllerMock) CacheCalls ¶
func (mock *DaemonSetControllerMock) CacheCalls() []struct { }
CacheCalls gets all the calls that were made to Cache. Check the length with:
len(mockedDaemonSetController.CacheCalls())
func (*DaemonSetControllerMock) CreateCalls ¶
func (mock *DaemonSetControllerMock) CreateCalls() []struct { In1 *v1a.DaemonSet }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedDaemonSetController.CreateCalls())
func (*DaemonSetControllerMock) Delete ¶
func (mock *DaemonSetControllerMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
Delete calls DeleteFunc.
func (*DaemonSetControllerMock) DeleteCalls ¶
func (mock *DaemonSetControllerMock) DeleteCalls() []struct { Namespace string Name string Options *v1b.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedDaemonSetController.DeleteCalls())
func (*DaemonSetControllerMock) Enqueue ¶
func (mock *DaemonSetControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*DaemonSetControllerMock) EnqueueCalls ¶
func (mock *DaemonSetControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedDaemonSetController.EnqueueCalls())
func (*DaemonSetControllerMock) Get ¶
func (mock *DaemonSetControllerMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.DaemonSet, error)
Get calls GetFunc.
func (*DaemonSetControllerMock) GetCalls ¶
func (mock *DaemonSetControllerMock) GetCalls() []struct { Namespace string Name string Options v1b.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedDaemonSetController.GetCalls())
func (*DaemonSetControllerMock) GroupVersionKind ¶
func (mock *DaemonSetControllerMock) GroupVersionKind() schema.GroupVersionKind
GroupVersionKind calls GroupVersionKindFunc.
func (*DaemonSetControllerMock) GroupVersionKindCalls ¶
func (mock *DaemonSetControllerMock) GroupVersionKindCalls() []struct { }
GroupVersionKindCalls gets all the calls that were made to GroupVersionKind. Check the length with:
len(mockedDaemonSetController.GroupVersionKindCalls())
func (*DaemonSetControllerMock) Informer ¶
func (mock *DaemonSetControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*DaemonSetControllerMock) InformerCalls ¶
func (mock *DaemonSetControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedDaemonSetController.InformerCalls())
func (*DaemonSetControllerMock) List ¶
func (mock *DaemonSetControllerMock) List(namespace string, opts v1b.ListOptions) (*v1a.DaemonSetList, error)
List calls ListFunc.
func (*DaemonSetControllerMock) ListCalls ¶
func (mock *DaemonSetControllerMock) ListCalls() []struct { Namespace string Opts v1b.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedDaemonSetController.ListCalls())
func (*DaemonSetControllerMock) OnChange ¶
func (mock *DaemonSetControllerMock) OnChange(ctx context.Context, name string, sync v1.DaemonSetHandler)
OnChange calls OnChangeFunc.
func (*DaemonSetControllerMock) OnChangeCalls ¶
func (mock *DaemonSetControllerMock) OnChangeCalls() []struct { Ctx context.Context Name string Sync v1.DaemonSetHandler }
OnChangeCalls gets all the calls that were made to OnChange. Check the length with:
len(mockedDaemonSetController.OnChangeCalls())
func (*DaemonSetControllerMock) OnRemove ¶
func (mock *DaemonSetControllerMock) OnRemove(ctx context.Context, name string, sync v1.DaemonSetHandler)
OnRemove calls OnRemoveFunc.
func (*DaemonSetControllerMock) OnRemoveCalls ¶
func (mock *DaemonSetControllerMock) OnRemoveCalls() []struct { Ctx context.Context Name string Sync v1.DaemonSetHandler }
OnRemoveCalls gets all the calls that were made to OnRemove. Check the length with:
len(mockedDaemonSetController.OnRemoveCalls())
func (*DaemonSetControllerMock) Patch ¶
func (mock *DaemonSetControllerMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.DaemonSet, error)
Patch calls PatchFunc.
func (*DaemonSetControllerMock) PatchCalls ¶
func (mock *DaemonSetControllerMock) 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(mockedDaemonSetController.PatchCalls())
func (*DaemonSetControllerMock) UpdateCalls ¶
func (mock *DaemonSetControllerMock) UpdateCalls() []struct { In1 *v1a.DaemonSet }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedDaemonSetController.UpdateCalls())
func (*DaemonSetControllerMock) UpdateStatus ¶
UpdateStatus calls UpdateStatusFunc.
func (*DaemonSetControllerMock) UpdateStatusCalls ¶
func (mock *DaemonSetControllerMock) UpdateStatusCalls() []struct { In1 *v1a.DaemonSet }
UpdateStatusCalls gets all the calls that were made to UpdateStatus. Check the length with:
len(mockedDaemonSetController.UpdateStatusCalls())
func (*DaemonSetControllerMock) Updater ¶
func (mock *DaemonSetControllerMock) Updater() generic.Updater
Updater calls UpdaterFunc.
func (*DaemonSetControllerMock) UpdaterCalls ¶
func (mock *DaemonSetControllerMock) UpdaterCalls() []struct { }
UpdaterCalls gets all the calls that were made to Updater. Check the length with:
len(mockedDaemonSetController.UpdaterCalls())
func (*DaemonSetControllerMock) Watch ¶
func (mock *DaemonSetControllerMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*DaemonSetControllerMock) WatchCalls ¶
func (mock *DaemonSetControllerMock) WatchCalls() []struct { Namespace string Opts v1b.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedDaemonSetController.WatchCalls())
type DeploymentCacheMock ¶
type DeploymentCacheMock struct {
// AddIndexerFunc mocks the AddIndexer method.
AddIndexerFunc func(indexName string, indexer v1.DeploymentIndexer)
// GetFunc mocks the Get method.
GetFunc func(namespace string, name string) (*v1a.Deployment, error)
// GetByIndexFunc mocks the GetByIndex method.
GetByIndexFunc func(indexName string, key string) ([]*v1a.Deployment, error)
// ListFunc mocks the List method.
ListFunc func(namespace string, selector labels.Selector) ([]*v1a.Deployment, error)
// contains filtered or unexported fields
}
DeploymentCacheMock is a mock implementation of DeploymentCache.
func TestSomethingThatUsesDeploymentCache(t *testing.T) {
// make and configure a mocked DeploymentCache
mockedDeploymentCache := &DeploymentCacheMock{
AddIndexerFunc: func(indexName string, indexer v1.DeploymentIndexer) {
panic("mock out the AddIndexer method")
},
GetFunc: func(namespace string, name string) (*v1a.Deployment, error) {
panic("mock out the Get method")
},
GetByIndexFunc: func(indexName string, key string) ([]*v1a.Deployment, error) {
panic("mock out the GetByIndex method")
},
ListFunc: func(namespace string, selector labels.Selector) ([]*v1a.Deployment, error) {
panic("mock out the List method")
},
}
// use mockedDeploymentCache in code that requires DeploymentCache
// and then make assertions.
}
func (*DeploymentCacheMock) AddIndexer ¶
func (mock *DeploymentCacheMock) AddIndexer(indexName string, indexer v1.DeploymentIndexer)
AddIndexer calls AddIndexerFunc.
func (*DeploymentCacheMock) AddIndexerCalls ¶
func (mock *DeploymentCacheMock) AddIndexerCalls() []struct { IndexName string Indexer v1.DeploymentIndexer }
AddIndexerCalls gets all the calls that were made to AddIndexer. Check the length with:
len(mockedDeploymentCache.AddIndexerCalls())
func (*DeploymentCacheMock) Get ¶
func (mock *DeploymentCacheMock) Get(namespace string, name string) (*v1a.Deployment, error)
Get calls GetFunc.
func (*DeploymentCacheMock) GetByIndex ¶
func (mock *DeploymentCacheMock) GetByIndex(indexName string, key string) ([]*v1a.Deployment, error)
GetByIndex calls GetByIndexFunc.
func (*DeploymentCacheMock) GetByIndexCalls ¶
func (mock *DeploymentCacheMock) GetByIndexCalls() []struct { IndexName string Key string }
GetByIndexCalls gets all the calls that were made to GetByIndex. Check the length with:
len(mockedDeploymentCache.GetByIndexCalls())
func (*DeploymentCacheMock) GetCalls ¶
func (mock *DeploymentCacheMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedDeploymentCache.GetCalls())
func (*DeploymentCacheMock) List ¶
func (mock *DeploymentCacheMock) List(namespace string, selector labels.Selector) ([]*v1a.Deployment, error)
List calls ListFunc.
type DeploymentClientMock ¶
type DeploymentClientMock struct {
// CreateFunc mocks the Create method.
CreateFunc func(in1 *v1a.Deployment) (*v1a.Deployment, 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.Deployment, error)
// ListFunc mocks the List method.
ListFunc func(namespace string, opts v1b.ListOptions) (*v1a.DeploymentList, error)
// PatchFunc mocks the Patch method.
PatchFunc func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Deployment, error)
// UpdateFunc mocks the Update method.
UpdateFunc func(in1 *v1a.Deployment) (*v1a.Deployment, error)
// UpdateStatusFunc mocks the UpdateStatus method.
UpdateStatusFunc func(in1 *v1a.Deployment) (*v1a.Deployment, error)
// WatchFunc mocks the Watch method.
WatchFunc func(namespace string, opts v1b.ListOptions) (watch.Interface, error)
// contains filtered or unexported fields
}
DeploymentClientMock is a mock implementation of DeploymentClient.
func TestSomethingThatUsesDeploymentClient(t *testing.T) {
// make and configure a mocked DeploymentClient
mockedDeploymentClient := &DeploymentClientMock{
CreateFunc: func(in1 *v1a.Deployment) (*v1a.Deployment, 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.Deployment, error) {
panic("mock out the Get method")
},
ListFunc: func(namespace string, opts v1b.ListOptions) (*v1a.DeploymentList, error) {
panic("mock out the List method")
},
PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Deployment, error) {
panic("mock out the Patch method")
},
UpdateFunc: func(in1 *v1a.Deployment) (*v1a.Deployment, error) {
panic("mock out the Update method")
},
UpdateStatusFunc: func(in1 *v1a.Deployment) (*v1a.Deployment, error) {
panic("mock out the UpdateStatus method")
},
WatchFunc: func(namespace string, opts v1b.ListOptions) (watch.Interface, error) {
panic("mock out the Watch method")
},
}
// use mockedDeploymentClient in code that requires DeploymentClient
// and then make assertions.
}
func (*DeploymentClientMock) Create ¶
func (mock *DeploymentClientMock) Create(in1 *v1a.Deployment) (*v1a.Deployment, error)
Create calls CreateFunc.
func (*DeploymentClientMock) CreateCalls ¶
func (mock *DeploymentClientMock) CreateCalls() []struct { In1 *v1a.Deployment }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedDeploymentClient.CreateCalls())
func (*DeploymentClientMock) Delete ¶
func (mock *DeploymentClientMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
Delete calls DeleteFunc.
func (*DeploymentClientMock) DeleteCalls ¶
func (mock *DeploymentClientMock) DeleteCalls() []struct { Namespace string Name string Options *v1b.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedDeploymentClient.DeleteCalls())
func (*DeploymentClientMock) Get ¶
func (mock *DeploymentClientMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.Deployment, error)
Get calls GetFunc.
func (*DeploymentClientMock) GetCalls ¶
func (mock *DeploymentClientMock) GetCalls() []struct { Namespace string Name string Options v1b.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedDeploymentClient.GetCalls())
func (*DeploymentClientMock) List ¶
func (mock *DeploymentClientMock) List(namespace string, opts v1b.ListOptions) (*v1a.DeploymentList, error)
List calls ListFunc.
func (*DeploymentClientMock) ListCalls ¶
func (mock *DeploymentClientMock) ListCalls() []struct { Namespace string Opts v1b.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedDeploymentClient.ListCalls())
func (*DeploymentClientMock) Patch ¶
func (mock *DeploymentClientMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Deployment, error)
Patch calls PatchFunc.
func (*DeploymentClientMock) PatchCalls ¶
func (mock *DeploymentClientMock) 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(mockedDeploymentClient.PatchCalls())
func (*DeploymentClientMock) Update ¶
func (mock *DeploymentClientMock) Update(in1 *v1a.Deployment) (*v1a.Deployment, error)
Update calls UpdateFunc.
func (*DeploymentClientMock) UpdateCalls ¶
func (mock *DeploymentClientMock) UpdateCalls() []struct { In1 *v1a.Deployment }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedDeploymentClient.UpdateCalls())
func (*DeploymentClientMock) UpdateStatus ¶
func (mock *DeploymentClientMock) UpdateStatus(in1 *v1a.Deployment) (*v1a.Deployment, error)
UpdateStatus calls UpdateStatusFunc.
func (*DeploymentClientMock) UpdateStatusCalls ¶
func (mock *DeploymentClientMock) UpdateStatusCalls() []struct { In1 *v1a.Deployment }
UpdateStatusCalls gets all the calls that were made to UpdateStatus. Check the length with:
len(mockedDeploymentClient.UpdateStatusCalls())
func (*DeploymentClientMock) Watch ¶
func (mock *DeploymentClientMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*DeploymentClientMock) WatchCalls ¶
func (mock *DeploymentClientMock) WatchCalls() []struct { Namespace string Opts v1b.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedDeploymentClient.WatchCalls())
type DeploymentControllerMock ¶
type DeploymentControllerMock 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.DeploymentCache
// CreateFunc mocks the Create method.
CreateFunc func(in1 *v1a.Deployment) (*v1a.Deployment, 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.Deployment, 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.DeploymentList, error)
// OnChangeFunc mocks the OnChange method.
OnChangeFunc func(ctx context.Context, name string, sync v1.DeploymentHandler)
// OnRemoveFunc mocks the OnRemove method.
OnRemoveFunc func(ctx context.Context, name string, sync v1.DeploymentHandler)
// PatchFunc mocks the Patch method.
PatchFunc func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Deployment, error)
// UpdateFunc mocks the Update method.
UpdateFunc func(in1 *v1a.Deployment) (*v1a.Deployment, error)
// UpdateStatusFunc mocks the UpdateStatus method.
UpdateStatusFunc func(in1 *v1a.Deployment) (*v1a.Deployment, 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
}
DeploymentControllerMock is a mock implementation of DeploymentController.
func TestSomethingThatUsesDeploymentController(t *testing.T) {
// make and configure a mocked DeploymentController
mockedDeploymentController := &DeploymentControllerMock{
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.DeploymentCache {
panic("mock out the Cache method")
},
CreateFunc: func(in1 *v1a.Deployment) (*v1a.Deployment, 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.Deployment, 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.DeploymentList, error) {
panic("mock out the List method")
},
OnChangeFunc: func(ctx context.Context, name string, sync v1.DeploymentHandler) {
panic("mock out the OnChange method")
},
OnRemoveFunc: func(ctx context.Context, name string, sync v1.DeploymentHandler) {
panic("mock out the OnRemove method")
},
PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Deployment, error) {
panic("mock out the Patch method")
},
UpdateFunc: func(in1 *v1a.Deployment) (*v1a.Deployment, error) {
panic("mock out the Update method")
},
UpdateStatusFunc: func(in1 *v1a.Deployment) (*v1a.Deployment, 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 mockedDeploymentController in code that requires DeploymentController
// and then make assertions.
}
func (*DeploymentControllerMock) AddGenericHandler ¶
func (mock *DeploymentControllerMock) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)
AddGenericHandler calls AddGenericHandlerFunc.
func (*DeploymentControllerMock) AddGenericHandlerCalls ¶
func (mock *DeploymentControllerMock) 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(mockedDeploymentController.AddGenericHandlerCalls())
func (*DeploymentControllerMock) AddGenericRemoveHandler ¶
func (mock *DeploymentControllerMock) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)
AddGenericRemoveHandler calls AddGenericRemoveHandlerFunc.
func (*DeploymentControllerMock) AddGenericRemoveHandlerCalls ¶
func (mock *DeploymentControllerMock) 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(mockedDeploymentController.AddGenericRemoveHandlerCalls())
func (*DeploymentControllerMock) Cache ¶
func (mock *DeploymentControllerMock) Cache() v1.DeploymentCache
Cache calls CacheFunc.
func (*DeploymentControllerMock) CacheCalls ¶
func (mock *DeploymentControllerMock) CacheCalls() []struct { }
CacheCalls gets all the calls that were made to Cache. Check the length with:
len(mockedDeploymentController.CacheCalls())
func (*DeploymentControllerMock) Create ¶
func (mock *DeploymentControllerMock) Create(in1 *v1a.Deployment) (*v1a.Deployment, error)
Create calls CreateFunc.
func (*DeploymentControllerMock) CreateCalls ¶
func (mock *DeploymentControllerMock) CreateCalls() []struct { In1 *v1a.Deployment }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedDeploymentController.CreateCalls())
func (*DeploymentControllerMock) Delete ¶
func (mock *DeploymentControllerMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
Delete calls DeleteFunc.
func (*DeploymentControllerMock) DeleteCalls ¶
func (mock *DeploymentControllerMock) DeleteCalls() []struct { Namespace string Name string Options *v1b.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedDeploymentController.DeleteCalls())
func (*DeploymentControllerMock) Enqueue ¶
func (mock *DeploymentControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*DeploymentControllerMock) EnqueueCalls ¶
func (mock *DeploymentControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedDeploymentController.EnqueueCalls())
func (*DeploymentControllerMock) Get ¶
func (mock *DeploymentControllerMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.Deployment, error)
Get calls GetFunc.
func (*DeploymentControllerMock) GetCalls ¶
func (mock *DeploymentControllerMock) GetCalls() []struct { Namespace string Name string Options v1b.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedDeploymentController.GetCalls())
func (*DeploymentControllerMock) GroupVersionKind ¶
func (mock *DeploymentControllerMock) GroupVersionKind() schema.GroupVersionKind
GroupVersionKind calls GroupVersionKindFunc.
func (*DeploymentControllerMock) GroupVersionKindCalls ¶
func (mock *DeploymentControllerMock) GroupVersionKindCalls() []struct { }
GroupVersionKindCalls gets all the calls that were made to GroupVersionKind. Check the length with:
len(mockedDeploymentController.GroupVersionKindCalls())
func (*DeploymentControllerMock) Informer ¶
func (mock *DeploymentControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*DeploymentControllerMock) InformerCalls ¶
func (mock *DeploymentControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedDeploymentController.InformerCalls())
func (*DeploymentControllerMock) List ¶
func (mock *DeploymentControllerMock) List(namespace string, opts v1b.ListOptions) (*v1a.DeploymentList, error)
List calls ListFunc.
func (*DeploymentControllerMock) ListCalls ¶
func (mock *DeploymentControllerMock) ListCalls() []struct { Namespace string Opts v1b.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedDeploymentController.ListCalls())
func (*DeploymentControllerMock) OnChange ¶
func (mock *DeploymentControllerMock) OnChange(ctx context.Context, name string, sync v1.DeploymentHandler)
OnChange calls OnChangeFunc.
func (*DeploymentControllerMock) OnChangeCalls ¶
func (mock *DeploymentControllerMock) OnChangeCalls() []struct { Ctx context.Context Name string Sync v1.DeploymentHandler }
OnChangeCalls gets all the calls that were made to OnChange. Check the length with:
len(mockedDeploymentController.OnChangeCalls())
func (*DeploymentControllerMock) OnRemove ¶
func (mock *DeploymentControllerMock) OnRemove(ctx context.Context, name string, sync v1.DeploymentHandler)
OnRemove calls OnRemoveFunc.
func (*DeploymentControllerMock) OnRemoveCalls ¶
func (mock *DeploymentControllerMock) OnRemoveCalls() []struct { Ctx context.Context Name string Sync v1.DeploymentHandler }
OnRemoveCalls gets all the calls that were made to OnRemove. Check the length with:
len(mockedDeploymentController.OnRemoveCalls())
func (*DeploymentControllerMock) Patch ¶
func (mock *DeploymentControllerMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Deployment, error)
Patch calls PatchFunc.
func (*DeploymentControllerMock) PatchCalls ¶
func (mock *DeploymentControllerMock) 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(mockedDeploymentController.PatchCalls())
func (*DeploymentControllerMock) Update ¶
func (mock *DeploymentControllerMock) Update(in1 *v1a.Deployment) (*v1a.Deployment, error)
Update calls UpdateFunc.
func (*DeploymentControllerMock) UpdateCalls ¶
func (mock *DeploymentControllerMock) UpdateCalls() []struct { In1 *v1a.Deployment }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedDeploymentController.UpdateCalls())
func (*DeploymentControllerMock) UpdateStatus ¶
func (mock *DeploymentControllerMock) UpdateStatus(in1 *v1a.Deployment) (*v1a.Deployment, error)
UpdateStatus calls UpdateStatusFunc.
func (*DeploymentControllerMock) UpdateStatusCalls ¶
func (mock *DeploymentControllerMock) UpdateStatusCalls() []struct { In1 *v1a.Deployment }
UpdateStatusCalls gets all the calls that were made to UpdateStatus. Check the length with:
len(mockedDeploymentController.UpdateStatusCalls())
func (*DeploymentControllerMock) Updater ¶
func (mock *DeploymentControllerMock) Updater() generic.Updater
Updater calls UpdaterFunc.
func (*DeploymentControllerMock) UpdaterCalls ¶
func (mock *DeploymentControllerMock) UpdaterCalls() []struct { }
UpdaterCalls gets all the calls that were made to Updater. Check the length with:
len(mockedDeploymentController.UpdaterCalls())
func (*DeploymentControllerMock) Watch ¶
func (mock *DeploymentControllerMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*DeploymentControllerMock) WatchCalls ¶
func (mock *DeploymentControllerMock) WatchCalls() []struct { Namespace string Opts v1b.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedDeploymentController.WatchCalls())