Documentation
¶
Index ¶
- 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 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.
func (*DeploymentCacheMock) ListCalls ¶
func (mock *DeploymentCacheMock) ListCalls() []struct { Namespace string Selector labels.Selector }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedDeploymentCache.ListCalls())
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())
Source Files
¶
- zz_generated_deployment_mock.go