Documentation
¶
Index ¶
- type AppCacheMock
- func (mock *AppCacheMock) AddIndexer(indexName string, indexer v1.AppIndexer)
- func (mock *AppCacheMock) AddIndexerCalls() []struct{ ... }
- func (mock *AppCacheMock) Get(namespace string, name string) (*v1a.App, error)
- func (mock *AppCacheMock) GetByIndex(indexName string, key string) ([]*v1a.App, error)
- func (mock *AppCacheMock) GetByIndexCalls() []struct{ ... }
- func (mock *AppCacheMock) GetCalls() []struct{ ... }
- func (mock *AppCacheMock) List(namespace string, selector labels.Selector) ([]*v1a.App, error)
- func (mock *AppCacheMock) ListCalls() []struct{ ... }
- type AppClientMock
- func (mock *AppClientMock) Create(in1 *v1a.App) (*v1a.App, error)
- func (mock *AppClientMock) CreateCalls() []struct{ ... }
- func (mock *AppClientMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
- func (mock *AppClientMock) DeleteCalls() []struct{ ... }
- func (mock *AppClientMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.App, error)
- func (mock *AppClientMock) GetCalls() []struct{ ... }
- func (mock *AppClientMock) List(namespace string, opts v1b.ListOptions) (*v1a.AppList, error)
- func (mock *AppClientMock) ListCalls() []struct{ ... }
- func (mock *AppClientMock) Patch(namespace string, name string, pt types.PatchType, data []byte, ...) (*v1a.App, error)
- func (mock *AppClientMock) PatchCalls() []struct{ ... }
- func (mock *AppClientMock) Update(in1 *v1a.App) (*v1a.App, error)
- func (mock *AppClientMock) UpdateCalls() []struct{ ... }
- func (mock *AppClientMock) UpdateStatus(in1 *v1a.App) (*v1a.App, error)
- func (mock *AppClientMock) UpdateStatusCalls() []struct{ ... }
- func (mock *AppClientMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
- func (mock *AppClientMock) WatchCalls() []struct{ ... }
- type AppControllerMock
- func (mock *AppControllerMock) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)
- func (mock *AppControllerMock) AddGenericHandlerCalls() []struct{ ... }
- func (mock *AppControllerMock) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)
- func (mock *AppControllerMock) AddGenericRemoveHandlerCalls() []struct{ ... }
- func (mock *AppControllerMock) Cache() v1.AppCache
- func (mock *AppControllerMock) CacheCalls() []struct{}
- func (mock *AppControllerMock) Create(in1 *v1a.App) (*v1a.App, error)
- func (mock *AppControllerMock) CreateCalls() []struct{ ... }
- func (mock *AppControllerMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
- func (mock *AppControllerMock) DeleteCalls() []struct{ ... }
- func (mock *AppControllerMock) Enqueue(namespace string, name string)
- func (mock *AppControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *AppControllerMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.App, error)
- func (mock *AppControllerMock) GetCalls() []struct{ ... }
- func (mock *AppControllerMock) GroupVersionKind() schema.GroupVersionKind
- func (mock *AppControllerMock) GroupVersionKindCalls() []struct{}
- func (mock *AppControllerMock) Informer() cache.SharedIndexInformer
- func (mock *AppControllerMock) InformerCalls() []struct{}
- func (mock *AppControllerMock) List(namespace string, opts v1b.ListOptions) (*v1a.AppList, error)
- func (mock *AppControllerMock) ListCalls() []struct{ ... }
- func (mock *AppControllerMock) OnChange(ctx context.Context, name string, sync v1.AppHandler)
- func (mock *AppControllerMock) OnChangeCalls() []struct{ ... }
- func (mock *AppControllerMock) OnRemove(ctx context.Context, name string, sync v1.AppHandler)
- func (mock *AppControllerMock) OnRemoveCalls() []struct{ ... }
- func (mock *AppControllerMock) Patch(namespace string, name string, pt types.PatchType, data []byte, ...) (*v1a.App, error)
- func (mock *AppControllerMock) PatchCalls() []struct{ ... }
- func (mock *AppControllerMock) Update(in1 *v1a.App) (*v1a.App, error)
- func (mock *AppControllerMock) UpdateCalls() []struct{ ... }
- func (mock *AppControllerMock) UpdateStatus(in1 *v1a.App) (*v1a.App, error)
- func (mock *AppControllerMock) UpdateStatusCalls() []struct{ ... }
- func (mock *AppControllerMock) Updater() generic.Updater
- func (mock *AppControllerMock) UpdaterCalls() []struct{}
- func (mock *AppControllerMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
- func (mock *AppControllerMock) WatchCalls() []struct{ ... }
- type ExternalServiceCacheMock
- func (mock *ExternalServiceCacheMock) AddIndexer(indexName string, indexer v1.ExternalServiceIndexer)
- func (mock *ExternalServiceCacheMock) AddIndexerCalls() []struct{ ... }
- func (mock *ExternalServiceCacheMock) Get(namespace string, name string) (*v1a.ExternalService, error)
- func (mock *ExternalServiceCacheMock) GetByIndex(indexName string, key string) ([]*v1a.ExternalService, error)
- func (mock *ExternalServiceCacheMock) GetByIndexCalls() []struct{ ... }
- func (mock *ExternalServiceCacheMock) GetCalls() []struct{ ... }
- func (mock *ExternalServiceCacheMock) List(namespace string, selector labels.Selector) ([]*v1a.ExternalService, error)
- func (mock *ExternalServiceCacheMock) ListCalls() []struct{ ... }
- type ExternalServiceClientMock
- func (mock *ExternalServiceClientMock) Create(in1 *v1a.ExternalService) (*v1a.ExternalService, error)
- func (mock *ExternalServiceClientMock) CreateCalls() []struct{ ... }
- func (mock *ExternalServiceClientMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
- func (mock *ExternalServiceClientMock) DeleteCalls() []struct{ ... }
- func (mock *ExternalServiceClientMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.ExternalService, error)
- func (mock *ExternalServiceClientMock) GetCalls() []struct{ ... }
- func (mock *ExternalServiceClientMock) List(namespace string, opts v1b.ListOptions) (*v1a.ExternalServiceList, error)
- func (mock *ExternalServiceClientMock) ListCalls() []struct{ ... }
- func (mock *ExternalServiceClientMock) Patch(namespace string, name string, pt types.PatchType, data []byte, ...) (*v1a.ExternalService, error)
- func (mock *ExternalServiceClientMock) PatchCalls() []struct{ ... }
- func (mock *ExternalServiceClientMock) Update(in1 *v1a.ExternalService) (*v1a.ExternalService, error)
- func (mock *ExternalServiceClientMock) UpdateCalls() []struct{ ... }
- func (mock *ExternalServiceClientMock) UpdateStatus(in1 *v1a.ExternalService) (*v1a.ExternalService, error)
- func (mock *ExternalServiceClientMock) UpdateStatusCalls() []struct{ ... }
- func (mock *ExternalServiceClientMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
- func (mock *ExternalServiceClientMock) WatchCalls() []struct{ ... }
- type ExternalServiceControllerMock
- func (mock *ExternalServiceControllerMock) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)
- func (mock *ExternalServiceControllerMock) AddGenericHandlerCalls() []struct{ ... }
- func (mock *ExternalServiceControllerMock) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)
- func (mock *ExternalServiceControllerMock) AddGenericRemoveHandlerCalls() []struct{ ... }
- func (mock *ExternalServiceControllerMock) Cache() v1.ExternalServiceCache
- func (mock *ExternalServiceControllerMock) CacheCalls() []struct{}
- func (mock *ExternalServiceControllerMock) Create(in1 *v1a.ExternalService) (*v1a.ExternalService, error)
- func (mock *ExternalServiceControllerMock) CreateCalls() []struct{ ... }
- func (mock *ExternalServiceControllerMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
- func (mock *ExternalServiceControllerMock) DeleteCalls() []struct{ ... }
- func (mock *ExternalServiceControllerMock) Enqueue(namespace string, name string)
- func (mock *ExternalServiceControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *ExternalServiceControllerMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.ExternalService, error)
- func (mock *ExternalServiceControllerMock) GetCalls() []struct{ ... }
- func (mock *ExternalServiceControllerMock) GroupVersionKind() schema.GroupVersionKind
- func (mock *ExternalServiceControllerMock) GroupVersionKindCalls() []struct{}
- func (mock *ExternalServiceControllerMock) Informer() cache.SharedIndexInformer
- func (mock *ExternalServiceControllerMock) InformerCalls() []struct{}
- func (mock *ExternalServiceControllerMock) List(namespace string, opts v1b.ListOptions) (*v1a.ExternalServiceList, error)
- func (mock *ExternalServiceControllerMock) ListCalls() []struct{ ... }
- func (mock *ExternalServiceControllerMock) OnChange(ctx context.Context, name string, sync v1.ExternalServiceHandler)
- func (mock *ExternalServiceControllerMock) OnChangeCalls() []struct{ ... }
- func (mock *ExternalServiceControllerMock) OnRemove(ctx context.Context, name string, sync v1.ExternalServiceHandler)
- func (mock *ExternalServiceControllerMock) OnRemoveCalls() []struct{ ... }
- func (mock *ExternalServiceControllerMock) Patch(namespace string, name string, pt types.PatchType, data []byte, ...) (*v1a.ExternalService, error)
- func (mock *ExternalServiceControllerMock) PatchCalls() []struct{ ... }
- func (mock *ExternalServiceControllerMock) Update(in1 *v1a.ExternalService) (*v1a.ExternalService, error)
- func (mock *ExternalServiceControllerMock) UpdateCalls() []struct{ ... }
- func (mock *ExternalServiceControllerMock) UpdateStatus(in1 *v1a.ExternalService) (*v1a.ExternalService, error)
- func (mock *ExternalServiceControllerMock) UpdateStatusCalls() []struct{ ... }
- func (mock *ExternalServiceControllerMock) Updater() generic.Updater
- func (mock *ExternalServiceControllerMock) UpdaterCalls() []struct{}
- func (mock *ExternalServiceControllerMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
- func (mock *ExternalServiceControllerMock) WatchCalls() []struct{ ... }
- type RouterCacheMock
- func (mock *RouterCacheMock) AddIndexer(indexName string, indexer v1.RouterIndexer)
- func (mock *RouterCacheMock) AddIndexerCalls() []struct{ ... }
- func (mock *RouterCacheMock) Get(namespace string, name string) (*v1a.Router, error)
- func (mock *RouterCacheMock) GetByIndex(indexName string, key string) ([]*v1a.Router, error)
- func (mock *RouterCacheMock) GetByIndexCalls() []struct{ ... }
- func (mock *RouterCacheMock) GetCalls() []struct{ ... }
- func (mock *RouterCacheMock) List(namespace string, selector labels.Selector) ([]*v1a.Router, error)
- func (mock *RouterCacheMock) ListCalls() []struct{ ... }
- type RouterClientMock
- func (mock *RouterClientMock) Create(in1 *v1a.Router) (*v1a.Router, error)
- func (mock *RouterClientMock) CreateCalls() []struct{ ... }
- func (mock *RouterClientMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
- func (mock *RouterClientMock) DeleteCalls() []struct{ ... }
- func (mock *RouterClientMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.Router, error)
- func (mock *RouterClientMock) GetCalls() []struct{ ... }
- func (mock *RouterClientMock) List(namespace string, opts v1b.ListOptions) (*v1a.RouterList, error)
- func (mock *RouterClientMock) ListCalls() []struct{ ... }
- func (mock *RouterClientMock) Patch(namespace string, name string, pt types.PatchType, data []byte, ...) (*v1a.Router, error)
- func (mock *RouterClientMock) PatchCalls() []struct{ ... }
- func (mock *RouterClientMock) Update(in1 *v1a.Router) (*v1a.Router, error)
- func (mock *RouterClientMock) UpdateCalls() []struct{ ... }
- func (mock *RouterClientMock) UpdateStatus(in1 *v1a.Router) (*v1a.Router, error)
- func (mock *RouterClientMock) UpdateStatusCalls() []struct{ ... }
- func (mock *RouterClientMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
- func (mock *RouterClientMock) WatchCalls() []struct{ ... }
- type RouterControllerMock
- func (mock *RouterControllerMock) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)
- func (mock *RouterControllerMock) AddGenericHandlerCalls() []struct{ ... }
- func (mock *RouterControllerMock) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)
- func (mock *RouterControllerMock) AddGenericRemoveHandlerCalls() []struct{ ... }
- func (mock *RouterControllerMock) Cache() v1.RouterCache
- func (mock *RouterControllerMock) CacheCalls() []struct{}
- func (mock *RouterControllerMock) Create(in1 *v1a.Router) (*v1a.Router, error)
- func (mock *RouterControllerMock) CreateCalls() []struct{ ... }
- func (mock *RouterControllerMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
- func (mock *RouterControllerMock) DeleteCalls() []struct{ ... }
- func (mock *RouterControllerMock) Enqueue(namespace string, name string)
- func (mock *RouterControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *RouterControllerMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.Router, error)
- func (mock *RouterControllerMock) GetCalls() []struct{ ... }
- func (mock *RouterControllerMock) GroupVersionKind() schema.GroupVersionKind
- func (mock *RouterControllerMock) GroupVersionKindCalls() []struct{}
- func (mock *RouterControllerMock) Informer() cache.SharedIndexInformer
- func (mock *RouterControllerMock) InformerCalls() []struct{}
- func (mock *RouterControllerMock) List(namespace string, opts v1b.ListOptions) (*v1a.RouterList, error)
- func (mock *RouterControllerMock) ListCalls() []struct{ ... }
- func (mock *RouterControllerMock) OnChange(ctx context.Context, name string, sync v1.RouterHandler)
- func (mock *RouterControllerMock) OnChangeCalls() []struct{ ... }
- func (mock *RouterControllerMock) OnRemove(ctx context.Context, name string, sync v1.RouterHandler)
- func (mock *RouterControllerMock) OnRemoveCalls() []struct{ ... }
- func (mock *RouterControllerMock) Patch(namespace string, name string, pt types.PatchType, data []byte, ...) (*v1a.Router, error)
- func (mock *RouterControllerMock) PatchCalls() []struct{ ... }
- func (mock *RouterControllerMock) Update(in1 *v1a.Router) (*v1a.Router, error)
- func (mock *RouterControllerMock) UpdateCalls() []struct{ ... }
- func (mock *RouterControllerMock) UpdateStatus(in1 *v1a.Router) (*v1a.Router, error)
- func (mock *RouterControllerMock) UpdateStatusCalls() []struct{ ... }
- func (mock *RouterControllerMock) Updater() generic.Updater
- func (mock *RouterControllerMock) UpdaterCalls() []struct{}
- func (mock *RouterControllerMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
- func (mock *RouterControllerMock) WatchCalls() []struct{ ... }
- type ServiceCacheMock
- func (mock *ServiceCacheMock) AddIndexer(indexName string, indexer v1.ServiceIndexer)
- func (mock *ServiceCacheMock) AddIndexerCalls() []struct{ ... }
- func (mock *ServiceCacheMock) Get(namespace string, name string) (*v1a.Service, error)
- func (mock *ServiceCacheMock) GetByIndex(indexName string, key string) ([]*v1a.Service, error)
- func (mock *ServiceCacheMock) GetByIndexCalls() []struct{ ... }
- func (mock *ServiceCacheMock) GetCalls() []struct{ ... }
- func (mock *ServiceCacheMock) List(namespace string, selector labels.Selector) ([]*v1a.Service, error)
- func (mock *ServiceCacheMock) ListCalls() []struct{ ... }
- type ServiceClientMock
- func (mock *ServiceClientMock) Create(in1 *v1a.Service) (*v1a.Service, error)
- func (mock *ServiceClientMock) CreateCalls() []struct{ ... }
- func (mock *ServiceClientMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
- func (mock *ServiceClientMock) DeleteCalls() []struct{ ... }
- func (mock *ServiceClientMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.Service, error)
- func (mock *ServiceClientMock) GetCalls() []struct{ ... }
- func (mock *ServiceClientMock) List(namespace string, opts v1b.ListOptions) (*v1a.ServiceList, error)
- func (mock *ServiceClientMock) ListCalls() []struct{ ... }
- func (mock *ServiceClientMock) Patch(namespace string, name string, pt types.PatchType, data []byte, ...) (*v1a.Service, error)
- func (mock *ServiceClientMock) PatchCalls() []struct{ ... }
- func (mock *ServiceClientMock) Update(in1 *v1a.Service) (*v1a.Service, error)
- func (mock *ServiceClientMock) UpdateCalls() []struct{ ... }
- func (mock *ServiceClientMock) UpdateStatus(in1 *v1a.Service) (*v1a.Service, error)
- func (mock *ServiceClientMock) UpdateStatusCalls() []struct{ ... }
- func (mock *ServiceClientMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
- func (mock *ServiceClientMock) WatchCalls() []struct{ ... }
- type ServiceControllerMock
- func (mock *ServiceControllerMock) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)
- func (mock *ServiceControllerMock) AddGenericHandlerCalls() []struct{ ... }
- func (mock *ServiceControllerMock) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)
- func (mock *ServiceControllerMock) AddGenericRemoveHandlerCalls() []struct{ ... }
- func (mock *ServiceControllerMock) Cache() v1.ServiceCache
- func (mock *ServiceControllerMock) CacheCalls() []struct{}
- func (mock *ServiceControllerMock) Create(in1 *v1a.Service) (*v1a.Service, error)
- func (mock *ServiceControllerMock) CreateCalls() []struct{ ... }
- func (mock *ServiceControllerMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
- func (mock *ServiceControllerMock) DeleteCalls() []struct{ ... }
- func (mock *ServiceControllerMock) Enqueue(namespace string, name string)
- func (mock *ServiceControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *ServiceControllerMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.Service, error)
- func (mock *ServiceControllerMock) GetCalls() []struct{ ... }
- func (mock *ServiceControllerMock) GroupVersionKind() schema.GroupVersionKind
- func (mock *ServiceControllerMock) GroupVersionKindCalls() []struct{}
- func (mock *ServiceControllerMock) Informer() cache.SharedIndexInformer
- func (mock *ServiceControllerMock) InformerCalls() []struct{}
- func (mock *ServiceControllerMock) List(namespace string, opts v1b.ListOptions) (*v1a.ServiceList, error)
- func (mock *ServiceControllerMock) ListCalls() []struct{ ... }
- func (mock *ServiceControllerMock) OnChange(ctx context.Context, name string, sync v1.ServiceHandler)
- func (mock *ServiceControllerMock) OnChangeCalls() []struct{ ... }
- func (mock *ServiceControllerMock) OnRemove(ctx context.Context, name string, sync v1.ServiceHandler)
- func (mock *ServiceControllerMock) OnRemoveCalls() []struct{ ... }
- func (mock *ServiceControllerMock) Patch(namespace string, name string, pt types.PatchType, data []byte, ...) (*v1a.Service, error)
- func (mock *ServiceControllerMock) PatchCalls() []struct{ ... }
- func (mock *ServiceControllerMock) Update(in1 *v1a.Service) (*v1a.Service, error)
- func (mock *ServiceControllerMock) UpdateCalls() []struct{ ... }
- func (mock *ServiceControllerMock) UpdateStatus(in1 *v1a.Service) (*v1a.Service, error)
- func (mock *ServiceControllerMock) UpdateStatusCalls() []struct{ ... }
- func (mock *ServiceControllerMock) Updater() generic.Updater
- func (mock *ServiceControllerMock) UpdaterCalls() []struct{}
- func (mock *ServiceControllerMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
- func (mock *ServiceControllerMock) WatchCalls() []struct{ ... }
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppCacheMock ¶
type AppCacheMock struct {
// AddIndexerFunc mocks the AddIndexer method.
AddIndexerFunc func(indexName string, indexer v1.AppIndexer)
// GetFunc mocks the Get method.
GetFunc func(namespace string, name string) (*v1a.App, error)
// GetByIndexFunc mocks the GetByIndex method.
GetByIndexFunc func(indexName string, key string) ([]*v1a.App, error)
// ListFunc mocks the List method.
ListFunc func(namespace string, selector labels.Selector) ([]*v1a.App, error)
// contains filtered or unexported fields
}
AppCacheMock is a mock implementation of AppCache.
func TestSomethingThatUsesAppCache(t *testing.T) {
// make and configure a mocked AppCache
mockedAppCache := &AppCacheMock{
AddIndexerFunc: func(indexName string, indexer v1.AppIndexer) {
panic("mock out the AddIndexer method")
},
GetFunc: func(namespace string, name string) (*v1a.App, error) {
panic("mock out the Get method")
},
GetByIndexFunc: func(indexName string, key string) ([]*v1a.App, error) {
panic("mock out the GetByIndex method")
},
ListFunc: func(namespace string, selector labels.Selector) ([]*v1a.App, error) {
panic("mock out the List method")
},
}
// use mockedAppCache in code that requires AppCache
// and then make assertions.
}
func (*AppCacheMock) AddIndexer ¶
func (mock *AppCacheMock) AddIndexer(indexName string, indexer v1.AppIndexer)
AddIndexer calls AddIndexerFunc.
func (*AppCacheMock) AddIndexerCalls ¶
func (mock *AppCacheMock) AddIndexerCalls() []struct { IndexName string Indexer v1.AppIndexer }
AddIndexerCalls gets all the calls that were made to AddIndexer. Check the length with:
len(mockedAppCache.AddIndexerCalls())
func (*AppCacheMock) Get ¶
Get calls GetFunc.
func (*AppCacheMock) GetByIndex ¶
GetByIndex calls GetByIndexFunc.
func (*AppCacheMock) GetByIndexCalls ¶
func (mock *AppCacheMock) GetByIndexCalls() []struct { IndexName string Key string }
GetByIndexCalls gets all the calls that were made to GetByIndex. Check the length with:
len(mockedAppCache.GetByIndexCalls())
func (*AppCacheMock) GetCalls ¶
func (mock *AppCacheMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedAppCache.GetCalls())
func (*AppCacheMock) List ¶
List calls ListFunc.
func (*AppCacheMock) ListCalls ¶
func (mock *AppCacheMock) ListCalls() []struct { Namespace string Selector labels.Selector }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedAppCache.ListCalls())
type AppClientMock ¶
type AppClientMock struct {
// CreateFunc mocks the Create method.
CreateFunc func(in1 *v1a.App) (*v1a.App, 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.App, error)
// ListFunc mocks the List method.
ListFunc func(namespace string, opts v1b.ListOptions) (*v1a.AppList, error)
// PatchFunc mocks the Patch method.
PatchFunc func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.App, error)
// UpdateFunc mocks the Update method.
UpdateFunc func(in1 *v1a.App) (*v1a.App, error)
// UpdateStatusFunc mocks the UpdateStatus method.
UpdateStatusFunc func(in1 *v1a.App) (*v1a.App, error)
// WatchFunc mocks the Watch method.
WatchFunc func(namespace string, opts v1b.ListOptions) (watch.Interface, error)
// contains filtered or unexported fields
}
AppClientMock is a mock implementation of AppClient.
func TestSomethingThatUsesAppClient(t *testing.T) {
// make and configure a mocked AppClient
mockedAppClient := &AppClientMock{
CreateFunc: func(in1 *v1a.App) (*v1a.App, 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.App, error) {
panic("mock out the Get method")
},
ListFunc: func(namespace string, opts v1b.ListOptions) (*v1a.AppList, error) {
panic("mock out the List method")
},
PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.App, error) {
panic("mock out the Patch method")
},
UpdateFunc: func(in1 *v1a.App) (*v1a.App, error) {
panic("mock out the Update method")
},
UpdateStatusFunc: func(in1 *v1a.App) (*v1a.App, error) {
panic("mock out the UpdateStatus method")
},
WatchFunc: func(namespace string, opts v1b.ListOptions) (watch.Interface, error) {
panic("mock out the Watch method")
},
}
// use mockedAppClient in code that requires AppClient
// and then make assertions.
}
func (*AppClientMock) Create ¶
Create calls CreateFunc.
func (*AppClientMock) CreateCalls ¶
func (mock *AppClientMock) CreateCalls() []struct { In1 *v1a.App }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedAppClient.CreateCalls())
func (*AppClientMock) Delete ¶
func (mock *AppClientMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
Delete calls DeleteFunc.
func (*AppClientMock) DeleteCalls ¶
func (mock *AppClientMock) DeleteCalls() []struct { Namespace string Name string Options *v1b.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedAppClient.DeleteCalls())
func (*AppClientMock) Get ¶
func (mock *AppClientMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.App, error)
Get calls GetFunc.
func (*AppClientMock) GetCalls ¶
func (mock *AppClientMock) GetCalls() []struct { Namespace string Name string Options v1b.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedAppClient.GetCalls())
func (*AppClientMock) List ¶
func (mock *AppClientMock) List(namespace string, opts v1b.ListOptions) (*v1a.AppList, error)
List calls ListFunc.
func (*AppClientMock) ListCalls ¶
func (mock *AppClientMock) ListCalls() []struct { Namespace string Opts v1b.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedAppClient.ListCalls())
func (*AppClientMock) Patch ¶
func (mock *AppClientMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.App, error)
Patch calls PatchFunc.
func (*AppClientMock) PatchCalls ¶
func (mock *AppClientMock) 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(mockedAppClient.PatchCalls())
func (*AppClientMock) Update ¶
Update calls UpdateFunc.
func (*AppClientMock) UpdateCalls ¶
func (mock *AppClientMock) UpdateCalls() []struct { In1 *v1a.App }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedAppClient.UpdateCalls())
func (*AppClientMock) UpdateStatus ¶
UpdateStatus calls UpdateStatusFunc.
func (*AppClientMock) UpdateStatusCalls ¶
func (mock *AppClientMock) UpdateStatusCalls() []struct { In1 *v1a.App }
UpdateStatusCalls gets all the calls that were made to UpdateStatus. Check the length with:
len(mockedAppClient.UpdateStatusCalls())
func (*AppClientMock) Watch ¶
func (mock *AppClientMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*AppClientMock) WatchCalls ¶
func (mock *AppClientMock) WatchCalls() []struct { Namespace string Opts v1b.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedAppClient.WatchCalls())
type AppControllerMock ¶
type AppControllerMock 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.AppCache
// CreateFunc mocks the Create method.
CreateFunc func(in1 *v1a.App) (*v1a.App, 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.App, 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.AppList, error)
// OnChangeFunc mocks the OnChange method.
OnChangeFunc func(ctx context.Context, name string, sync v1.AppHandler)
// OnRemoveFunc mocks the OnRemove method.
OnRemoveFunc func(ctx context.Context, name string, sync v1.AppHandler)
// PatchFunc mocks the Patch method.
PatchFunc func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.App, error)
// UpdateFunc mocks the Update method.
UpdateFunc func(in1 *v1a.App) (*v1a.App, error)
// UpdateStatusFunc mocks the UpdateStatus method.
UpdateStatusFunc func(in1 *v1a.App) (*v1a.App, 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
}
AppControllerMock is a mock implementation of AppController.
func TestSomethingThatUsesAppController(t *testing.T) {
// make and configure a mocked AppController
mockedAppController := &AppControllerMock{
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.AppCache {
panic("mock out the Cache method")
},
CreateFunc: func(in1 *v1a.App) (*v1a.App, 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.App, 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.AppList, error) {
panic("mock out the List method")
},
OnChangeFunc: func(ctx context.Context, name string, sync v1.AppHandler) {
panic("mock out the OnChange method")
},
OnRemoveFunc: func(ctx context.Context, name string, sync v1.AppHandler) {
panic("mock out the OnRemove method")
},
PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.App, error) {
panic("mock out the Patch method")
},
UpdateFunc: func(in1 *v1a.App) (*v1a.App, error) {
panic("mock out the Update method")
},
UpdateStatusFunc: func(in1 *v1a.App) (*v1a.App, 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 mockedAppController in code that requires AppController
// and then make assertions.
}
func (*AppControllerMock) AddGenericHandler ¶
func (mock *AppControllerMock) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)
AddGenericHandler calls AddGenericHandlerFunc.
func (*AppControllerMock) AddGenericHandlerCalls ¶
func (mock *AppControllerMock) 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(mockedAppController.AddGenericHandlerCalls())
func (*AppControllerMock) AddGenericRemoveHandler ¶
func (mock *AppControllerMock) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)
AddGenericRemoveHandler calls AddGenericRemoveHandlerFunc.
func (*AppControllerMock) AddGenericRemoveHandlerCalls ¶
func (mock *AppControllerMock) 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(mockedAppController.AddGenericRemoveHandlerCalls())
func (*AppControllerMock) Cache ¶
func (mock *AppControllerMock) Cache() v1.AppCache
Cache calls CacheFunc.
func (*AppControllerMock) CacheCalls ¶
func (mock *AppControllerMock) CacheCalls() []struct { }
CacheCalls gets all the calls that were made to Cache. Check the length with:
len(mockedAppController.CacheCalls())
func (*AppControllerMock) Create ¶
Create calls CreateFunc.
func (*AppControllerMock) CreateCalls ¶
func (mock *AppControllerMock) CreateCalls() []struct { In1 *v1a.App }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedAppController.CreateCalls())
func (*AppControllerMock) Delete ¶
func (mock *AppControllerMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
Delete calls DeleteFunc.
func (*AppControllerMock) DeleteCalls ¶
func (mock *AppControllerMock) DeleteCalls() []struct { Namespace string Name string Options *v1b.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedAppController.DeleteCalls())
func (*AppControllerMock) Enqueue ¶
func (mock *AppControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*AppControllerMock) EnqueueCalls ¶
func (mock *AppControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedAppController.EnqueueCalls())
func (*AppControllerMock) Get ¶
func (mock *AppControllerMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.App, error)
Get calls GetFunc.
func (*AppControllerMock) GetCalls ¶
func (mock *AppControllerMock) GetCalls() []struct { Namespace string Name string Options v1b.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedAppController.GetCalls())
func (*AppControllerMock) GroupVersionKind ¶
func (mock *AppControllerMock) GroupVersionKind() schema.GroupVersionKind
GroupVersionKind calls GroupVersionKindFunc.
func (*AppControllerMock) GroupVersionKindCalls ¶
func (mock *AppControllerMock) GroupVersionKindCalls() []struct { }
GroupVersionKindCalls gets all the calls that were made to GroupVersionKind. Check the length with:
len(mockedAppController.GroupVersionKindCalls())
func (*AppControllerMock) Informer ¶
func (mock *AppControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*AppControllerMock) InformerCalls ¶
func (mock *AppControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedAppController.InformerCalls())
func (*AppControllerMock) List ¶
func (mock *AppControllerMock) List(namespace string, opts v1b.ListOptions) (*v1a.AppList, error)
List calls ListFunc.
func (*AppControllerMock) ListCalls ¶
func (mock *AppControllerMock) ListCalls() []struct { Namespace string Opts v1b.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedAppController.ListCalls())
func (*AppControllerMock) OnChange ¶
func (mock *AppControllerMock) OnChange(ctx context.Context, name string, sync v1.AppHandler)
OnChange calls OnChangeFunc.
func (*AppControllerMock) OnChangeCalls ¶
func (mock *AppControllerMock) OnChangeCalls() []struct { Ctx context.Context Name string Sync v1.AppHandler }
OnChangeCalls gets all the calls that were made to OnChange. Check the length with:
len(mockedAppController.OnChangeCalls())
func (*AppControllerMock) OnRemove ¶
func (mock *AppControllerMock) OnRemove(ctx context.Context, name string, sync v1.AppHandler)
OnRemove calls OnRemoveFunc.
func (*AppControllerMock) OnRemoveCalls ¶
func (mock *AppControllerMock) OnRemoveCalls() []struct { Ctx context.Context Name string Sync v1.AppHandler }
OnRemoveCalls gets all the calls that were made to OnRemove. Check the length with:
len(mockedAppController.OnRemoveCalls())
func (*AppControllerMock) Patch ¶
func (mock *AppControllerMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.App, error)
Patch calls PatchFunc.
func (*AppControllerMock) PatchCalls ¶
func (mock *AppControllerMock) 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(mockedAppController.PatchCalls())
func (*AppControllerMock) Update ¶
Update calls UpdateFunc.
func (*AppControllerMock) UpdateCalls ¶
func (mock *AppControllerMock) UpdateCalls() []struct { In1 *v1a.App }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedAppController.UpdateCalls())
func (*AppControllerMock) UpdateStatus ¶
UpdateStatus calls UpdateStatusFunc.
func (*AppControllerMock) UpdateStatusCalls ¶
func (mock *AppControllerMock) UpdateStatusCalls() []struct { In1 *v1a.App }
UpdateStatusCalls gets all the calls that were made to UpdateStatus. Check the length with:
len(mockedAppController.UpdateStatusCalls())
func (*AppControllerMock) Updater ¶
func (mock *AppControllerMock) Updater() generic.Updater
Updater calls UpdaterFunc.
func (*AppControllerMock) UpdaterCalls ¶
func (mock *AppControllerMock) UpdaterCalls() []struct { }
UpdaterCalls gets all the calls that were made to Updater. Check the length with:
len(mockedAppController.UpdaterCalls())
func (*AppControllerMock) Watch ¶
func (mock *AppControllerMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*AppControllerMock) WatchCalls ¶
func (mock *AppControllerMock) WatchCalls() []struct { Namespace string Opts v1b.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedAppController.WatchCalls())
type ExternalServiceCacheMock ¶
type ExternalServiceCacheMock struct {
// AddIndexerFunc mocks the AddIndexer method.
AddIndexerFunc func(indexName string, indexer v1.ExternalServiceIndexer)
// GetFunc mocks the Get method.
GetFunc func(namespace string, name string) (*v1a.ExternalService, error)
// GetByIndexFunc mocks the GetByIndex method.
GetByIndexFunc func(indexName string, key string) ([]*v1a.ExternalService, error)
// ListFunc mocks the List method.
ListFunc func(namespace string, selector labels.Selector) ([]*v1a.ExternalService, error)
// contains filtered or unexported fields
}
ExternalServiceCacheMock is a mock implementation of ExternalServiceCache.
func TestSomethingThatUsesExternalServiceCache(t *testing.T) {
// make and configure a mocked ExternalServiceCache
mockedExternalServiceCache := &ExternalServiceCacheMock{
AddIndexerFunc: func(indexName string, indexer v1.ExternalServiceIndexer) {
panic("mock out the AddIndexer method")
},
GetFunc: func(namespace string, name string) (*v1a.ExternalService, error) {
panic("mock out the Get method")
},
GetByIndexFunc: func(indexName string, key string) ([]*v1a.ExternalService, error) {
panic("mock out the GetByIndex method")
},
ListFunc: func(namespace string, selector labels.Selector) ([]*v1a.ExternalService, error) {
panic("mock out the List method")
},
}
// use mockedExternalServiceCache in code that requires ExternalServiceCache
// and then make assertions.
}
func (*ExternalServiceCacheMock) AddIndexer ¶
func (mock *ExternalServiceCacheMock) AddIndexer(indexName string, indexer v1.ExternalServiceIndexer)
AddIndexer calls AddIndexerFunc.
func (*ExternalServiceCacheMock) AddIndexerCalls ¶
func (mock *ExternalServiceCacheMock) AddIndexerCalls() []struct { IndexName string Indexer v1.ExternalServiceIndexer }
AddIndexerCalls gets all the calls that were made to AddIndexer. Check the length with:
len(mockedExternalServiceCache.AddIndexerCalls())
func (*ExternalServiceCacheMock) Get ¶
func (mock *ExternalServiceCacheMock) Get(namespace string, name string) (*v1a.ExternalService, error)
Get calls GetFunc.
func (*ExternalServiceCacheMock) GetByIndex ¶
func (mock *ExternalServiceCacheMock) GetByIndex(indexName string, key string) ([]*v1a.ExternalService, error)
GetByIndex calls GetByIndexFunc.
func (*ExternalServiceCacheMock) GetByIndexCalls ¶
func (mock *ExternalServiceCacheMock) GetByIndexCalls() []struct { IndexName string Key string }
GetByIndexCalls gets all the calls that were made to GetByIndex. Check the length with:
len(mockedExternalServiceCache.GetByIndexCalls())
func (*ExternalServiceCacheMock) GetCalls ¶
func (mock *ExternalServiceCacheMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedExternalServiceCache.GetCalls())
func (*ExternalServiceCacheMock) List ¶
func (mock *ExternalServiceCacheMock) List(namespace string, selector labels.Selector) ([]*v1a.ExternalService, error)
List calls ListFunc.
func (*ExternalServiceCacheMock) ListCalls ¶
func (mock *ExternalServiceCacheMock) ListCalls() []struct { Namespace string Selector labels.Selector }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedExternalServiceCache.ListCalls())
type ExternalServiceClientMock ¶
type ExternalServiceClientMock struct {
// CreateFunc mocks the Create method.
CreateFunc func(in1 *v1a.ExternalService) (*v1a.ExternalService, 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.ExternalService, error)
// ListFunc mocks the List method.
ListFunc func(namespace string, opts v1b.ListOptions) (*v1a.ExternalServiceList, error)
// PatchFunc mocks the Patch method.
PatchFunc func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.ExternalService, error)
// UpdateFunc mocks the Update method.
UpdateFunc func(in1 *v1a.ExternalService) (*v1a.ExternalService, error)
// UpdateStatusFunc mocks the UpdateStatus method.
UpdateStatusFunc func(in1 *v1a.ExternalService) (*v1a.ExternalService, error)
// WatchFunc mocks the Watch method.
WatchFunc func(namespace string, opts v1b.ListOptions) (watch.Interface, error)
// contains filtered or unexported fields
}
ExternalServiceClientMock is a mock implementation of ExternalServiceClient.
func TestSomethingThatUsesExternalServiceClient(t *testing.T) {
// make and configure a mocked ExternalServiceClient
mockedExternalServiceClient := &ExternalServiceClientMock{
CreateFunc: func(in1 *v1a.ExternalService) (*v1a.ExternalService, 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.ExternalService, error) {
panic("mock out the Get method")
},
ListFunc: func(namespace string, opts v1b.ListOptions) (*v1a.ExternalServiceList, error) {
panic("mock out the List method")
},
PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.ExternalService, error) {
panic("mock out the Patch method")
},
UpdateFunc: func(in1 *v1a.ExternalService) (*v1a.ExternalService, error) {
panic("mock out the Update method")
},
UpdateStatusFunc: func(in1 *v1a.ExternalService) (*v1a.ExternalService, error) {
panic("mock out the UpdateStatus method")
},
WatchFunc: func(namespace string, opts v1b.ListOptions) (watch.Interface, error) {
panic("mock out the Watch method")
},
}
// use mockedExternalServiceClient in code that requires ExternalServiceClient
// and then make assertions.
}
func (*ExternalServiceClientMock) Create ¶
func (mock *ExternalServiceClientMock) Create(in1 *v1a.ExternalService) (*v1a.ExternalService, error)
Create calls CreateFunc.
func (*ExternalServiceClientMock) CreateCalls ¶
func (mock *ExternalServiceClientMock) CreateCalls() []struct { In1 *v1a.ExternalService }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedExternalServiceClient.CreateCalls())
func (*ExternalServiceClientMock) Delete ¶
func (mock *ExternalServiceClientMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
Delete calls DeleteFunc.
func (*ExternalServiceClientMock) DeleteCalls ¶
func (mock *ExternalServiceClientMock) DeleteCalls() []struct { Namespace string Name string Options *v1b.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedExternalServiceClient.DeleteCalls())
func (*ExternalServiceClientMock) Get ¶
func (mock *ExternalServiceClientMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.ExternalService, error)
Get calls GetFunc.
func (*ExternalServiceClientMock) GetCalls ¶
func (mock *ExternalServiceClientMock) GetCalls() []struct { Namespace string Name string Options v1b.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedExternalServiceClient.GetCalls())
func (*ExternalServiceClientMock) List ¶
func (mock *ExternalServiceClientMock) List(namespace string, opts v1b.ListOptions) (*v1a.ExternalServiceList, error)
List calls ListFunc.
func (*ExternalServiceClientMock) ListCalls ¶
func (mock *ExternalServiceClientMock) ListCalls() []struct { Namespace string Opts v1b.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedExternalServiceClient.ListCalls())
func (*ExternalServiceClientMock) Patch ¶
func (mock *ExternalServiceClientMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.ExternalService, error)
Patch calls PatchFunc.
func (*ExternalServiceClientMock) PatchCalls ¶
func (mock *ExternalServiceClientMock) 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(mockedExternalServiceClient.PatchCalls())
func (*ExternalServiceClientMock) Update ¶
func (mock *ExternalServiceClientMock) Update(in1 *v1a.ExternalService) (*v1a.ExternalService, error)
Update calls UpdateFunc.
func (*ExternalServiceClientMock) UpdateCalls ¶
func (mock *ExternalServiceClientMock) UpdateCalls() []struct { In1 *v1a.ExternalService }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedExternalServiceClient.UpdateCalls())
func (*ExternalServiceClientMock) UpdateStatus ¶
func (mock *ExternalServiceClientMock) UpdateStatus(in1 *v1a.ExternalService) (*v1a.ExternalService, error)
UpdateStatus calls UpdateStatusFunc.
func (*ExternalServiceClientMock) UpdateStatusCalls ¶
func (mock *ExternalServiceClientMock) UpdateStatusCalls() []struct { In1 *v1a.ExternalService }
UpdateStatusCalls gets all the calls that were made to UpdateStatus. Check the length with:
len(mockedExternalServiceClient.UpdateStatusCalls())
func (*ExternalServiceClientMock) Watch ¶
func (mock *ExternalServiceClientMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*ExternalServiceClientMock) WatchCalls ¶
func (mock *ExternalServiceClientMock) WatchCalls() []struct { Namespace string Opts v1b.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedExternalServiceClient.WatchCalls())
type ExternalServiceControllerMock ¶
type ExternalServiceControllerMock 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.ExternalServiceCache
// CreateFunc mocks the Create method.
CreateFunc func(in1 *v1a.ExternalService) (*v1a.ExternalService, 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.ExternalService, 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.ExternalServiceList, error)
// OnChangeFunc mocks the OnChange method.
OnChangeFunc func(ctx context.Context, name string, sync v1.ExternalServiceHandler)
// OnRemoveFunc mocks the OnRemove method.
OnRemoveFunc func(ctx context.Context, name string, sync v1.ExternalServiceHandler)
// PatchFunc mocks the Patch method.
PatchFunc func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.ExternalService, error)
// UpdateFunc mocks the Update method.
UpdateFunc func(in1 *v1a.ExternalService) (*v1a.ExternalService, error)
// UpdateStatusFunc mocks the UpdateStatus method.
UpdateStatusFunc func(in1 *v1a.ExternalService) (*v1a.ExternalService, 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
}
ExternalServiceControllerMock is a mock implementation of ExternalServiceController.
func TestSomethingThatUsesExternalServiceController(t *testing.T) {
// make and configure a mocked ExternalServiceController
mockedExternalServiceController := &ExternalServiceControllerMock{
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.ExternalServiceCache {
panic("mock out the Cache method")
},
CreateFunc: func(in1 *v1a.ExternalService) (*v1a.ExternalService, 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.ExternalService, 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.ExternalServiceList, error) {
panic("mock out the List method")
},
OnChangeFunc: func(ctx context.Context, name string, sync v1.ExternalServiceHandler) {
panic("mock out the OnChange method")
},
OnRemoveFunc: func(ctx context.Context, name string, sync v1.ExternalServiceHandler) {
panic("mock out the OnRemove method")
},
PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.ExternalService, error) {
panic("mock out the Patch method")
},
UpdateFunc: func(in1 *v1a.ExternalService) (*v1a.ExternalService, error) {
panic("mock out the Update method")
},
UpdateStatusFunc: func(in1 *v1a.ExternalService) (*v1a.ExternalService, 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 mockedExternalServiceController in code that requires ExternalServiceController
// and then make assertions.
}
func (*ExternalServiceControllerMock) AddGenericHandler ¶
func (mock *ExternalServiceControllerMock) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)
AddGenericHandler calls AddGenericHandlerFunc.
func (*ExternalServiceControllerMock) AddGenericHandlerCalls ¶
func (mock *ExternalServiceControllerMock) 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(mockedExternalServiceController.AddGenericHandlerCalls())
func (*ExternalServiceControllerMock) AddGenericRemoveHandler ¶
func (mock *ExternalServiceControllerMock) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)
AddGenericRemoveHandler calls AddGenericRemoveHandlerFunc.
func (*ExternalServiceControllerMock) AddGenericRemoveHandlerCalls ¶
func (mock *ExternalServiceControllerMock) 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(mockedExternalServiceController.AddGenericRemoveHandlerCalls())
func (*ExternalServiceControllerMock) Cache ¶
func (mock *ExternalServiceControllerMock) Cache() v1.ExternalServiceCache
Cache calls CacheFunc.
func (*ExternalServiceControllerMock) CacheCalls ¶
func (mock *ExternalServiceControllerMock) CacheCalls() []struct { }
CacheCalls gets all the calls that were made to Cache. Check the length with:
len(mockedExternalServiceController.CacheCalls())
func (*ExternalServiceControllerMock) Create ¶
func (mock *ExternalServiceControllerMock) Create(in1 *v1a.ExternalService) (*v1a.ExternalService, error)
Create calls CreateFunc.
func (*ExternalServiceControllerMock) CreateCalls ¶
func (mock *ExternalServiceControllerMock) CreateCalls() []struct { In1 *v1a.ExternalService }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedExternalServiceController.CreateCalls())
func (*ExternalServiceControllerMock) Delete ¶
func (mock *ExternalServiceControllerMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
Delete calls DeleteFunc.
func (*ExternalServiceControllerMock) DeleteCalls ¶
func (mock *ExternalServiceControllerMock) DeleteCalls() []struct { Namespace string Name string Options *v1b.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedExternalServiceController.DeleteCalls())
func (*ExternalServiceControllerMock) Enqueue ¶
func (mock *ExternalServiceControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*ExternalServiceControllerMock) EnqueueCalls ¶
func (mock *ExternalServiceControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedExternalServiceController.EnqueueCalls())
func (*ExternalServiceControllerMock) Get ¶
func (mock *ExternalServiceControllerMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.ExternalService, error)
Get calls GetFunc.
func (*ExternalServiceControllerMock) GetCalls ¶
func (mock *ExternalServiceControllerMock) GetCalls() []struct { Namespace string Name string Options v1b.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedExternalServiceController.GetCalls())
func (*ExternalServiceControllerMock) GroupVersionKind ¶
func (mock *ExternalServiceControllerMock) GroupVersionKind() schema.GroupVersionKind
GroupVersionKind calls GroupVersionKindFunc.
func (*ExternalServiceControllerMock) GroupVersionKindCalls ¶
func (mock *ExternalServiceControllerMock) GroupVersionKindCalls() []struct { }
GroupVersionKindCalls gets all the calls that were made to GroupVersionKind. Check the length with:
len(mockedExternalServiceController.GroupVersionKindCalls())
func (*ExternalServiceControllerMock) Informer ¶
func (mock *ExternalServiceControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*ExternalServiceControllerMock) InformerCalls ¶
func (mock *ExternalServiceControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedExternalServiceController.InformerCalls())
func (*ExternalServiceControllerMock) List ¶
func (mock *ExternalServiceControllerMock) List(namespace string, opts v1b.ListOptions) (*v1a.ExternalServiceList, error)
List calls ListFunc.
func (*ExternalServiceControllerMock) ListCalls ¶
func (mock *ExternalServiceControllerMock) ListCalls() []struct { Namespace string Opts v1b.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedExternalServiceController.ListCalls())
func (*ExternalServiceControllerMock) OnChange ¶
func (mock *ExternalServiceControllerMock) OnChange(ctx context.Context, name string, sync v1.ExternalServiceHandler)
OnChange calls OnChangeFunc.
func (*ExternalServiceControllerMock) OnChangeCalls ¶
func (mock *ExternalServiceControllerMock) OnChangeCalls() []struct { Ctx context.Context Name string Sync v1.ExternalServiceHandler }
OnChangeCalls gets all the calls that were made to OnChange. Check the length with:
len(mockedExternalServiceController.OnChangeCalls())
func (*ExternalServiceControllerMock) OnRemove ¶
func (mock *ExternalServiceControllerMock) OnRemove(ctx context.Context, name string, sync v1.ExternalServiceHandler)
OnRemove calls OnRemoveFunc.
func (*ExternalServiceControllerMock) OnRemoveCalls ¶
func (mock *ExternalServiceControllerMock) OnRemoveCalls() []struct { Ctx context.Context Name string Sync v1.ExternalServiceHandler }
OnRemoveCalls gets all the calls that were made to OnRemove. Check the length with:
len(mockedExternalServiceController.OnRemoveCalls())
func (*ExternalServiceControllerMock) Patch ¶
func (mock *ExternalServiceControllerMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.ExternalService, error)
Patch calls PatchFunc.
func (*ExternalServiceControllerMock) PatchCalls ¶
func (mock *ExternalServiceControllerMock) 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(mockedExternalServiceController.PatchCalls())
func (*ExternalServiceControllerMock) Update ¶
func (mock *ExternalServiceControllerMock) Update(in1 *v1a.ExternalService) (*v1a.ExternalService, error)
Update calls UpdateFunc.
func (*ExternalServiceControllerMock) UpdateCalls ¶
func (mock *ExternalServiceControllerMock) UpdateCalls() []struct { In1 *v1a.ExternalService }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedExternalServiceController.UpdateCalls())
func (*ExternalServiceControllerMock) UpdateStatus ¶
func (mock *ExternalServiceControllerMock) UpdateStatus(in1 *v1a.ExternalService) (*v1a.ExternalService, error)
UpdateStatus calls UpdateStatusFunc.
func (*ExternalServiceControllerMock) UpdateStatusCalls ¶
func (mock *ExternalServiceControllerMock) UpdateStatusCalls() []struct { In1 *v1a.ExternalService }
UpdateStatusCalls gets all the calls that were made to UpdateStatus. Check the length with:
len(mockedExternalServiceController.UpdateStatusCalls())
func (*ExternalServiceControllerMock) Updater ¶
func (mock *ExternalServiceControllerMock) Updater() generic.Updater
Updater calls UpdaterFunc.
func (*ExternalServiceControllerMock) UpdaterCalls ¶
func (mock *ExternalServiceControllerMock) UpdaterCalls() []struct { }
UpdaterCalls gets all the calls that were made to Updater. Check the length with:
len(mockedExternalServiceController.UpdaterCalls())
func (*ExternalServiceControllerMock) Watch ¶
func (mock *ExternalServiceControllerMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*ExternalServiceControllerMock) WatchCalls ¶
func (mock *ExternalServiceControllerMock) WatchCalls() []struct { Namespace string Opts v1b.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedExternalServiceController.WatchCalls())
type RouterCacheMock ¶
type RouterCacheMock struct {
// AddIndexerFunc mocks the AddIndexer method.
AddIndexerFunc func(indexName string, indexer v1.RouterIndexer)
// GetFunc mocks the Get method.
GetFunc func(namespace string, name string) (*v1a.Router, error)
// GetByIndexFunc mocks the GetByIndex method.
GetByIndexFunc func(indexName string, key string) ([]*v1a.Router, error)
// ListFunc mocks the List method.
ListFunc func(namespace string, selector labels.Selector) ([]*v1a.Router, error)
// contains filtered or unexported fields
}
RouterCacheMock is a mock implementation of RouterCache.
func TestSomethingThatUsesRouterCache(t *testing.T) {
// make and configure a mocked RouterCache
mockedRouterCache := &RouterCacheMock{
AddIndexerFunc: func(indexName string, indexer v1.RouterIndexer) {
panic("mock out the AddIndexer method")
},
GetFunc: func(namespace string, name string) (*v1a.Router, error) {
panic("mock out the Get method")
},
GetByIndexFunc: func(indexName string, key string) ([]*v1a.Router, error) {
panic("mock out the GetByIndex method")
},
ListFunc: func(namespace string, selector labels.Selector) ([]*v1a.Router, error) {
panic("mock out the List method")
},
}
// use mockedRouterCache in code that requires RouterCache
// and then make assertions.
}
func (*RouterCacheMock) AddIndexer ¶
func (mock *RouterCacheMock) AddIndexer(indexName string, indexer v1.RouterIndexer)
AddIndexer calls AddIndexerFunc.
func (*RouterCacheMock) AddIndexerCalls ¶
func (mock *RouterCacheMock) AddIndexerCalls() []struct { IndexName string Indexer v1.RouterIndexer }
AddIndexerCalls gets all the calls that were made to AddIndexer. Check the length with:
len(mockedRouterCache.AddIndexerCalls())
func (*RouterCacheMock) Get ¶
Get calls GetFunc.
func (*RouterCacheMock) GetByIndex ¶
GetByIndex calls GetByIndexFunc.
func (*RouterCacheMock) GetByIndexCalls ¶
func (mock *RouterCacheMock) GetByIndexCalls() []struct { IndexName string Key string }
GetByIndexCalls gets all the calls that were made to GetByIndex. Check the length with:
len(mockedRouterCache.GetByIndexCalls())
func (*RouterCacheMock) GetCalls ¶
func (mock *RouterCacheMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedRouterCache.GetCalls())
func (*RouterCacheMock) List ¶
func (mock *RouterCacheMock) List(namespace string, selector labels.Selector) ([]*v1a.Router, error)
List calls ListFunc.
func (*RouterCacheMock) ListCalls ¶
func (mock *RouterCacheMock) ListCalls() []struct { Namespace string Selector labels.Selector }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedRouterCache.ListCalls())
type RouterClientMock ¶
type RouterClientMock struct {
// CreateFunc mocks the Create method.
CreateFunc func(in1 *v1a.Router) (*v1a.Router, 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.Router, error)
// ListFunc mocks the List method.
ListFunc func(namespace string, opts v1b.ListOptions) (*v1a.RouterList, error)
// PatchFunc mocks the Patch method.
PatchFunc func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Router, error)
// UpdateFunc mocks the Update method.
UpdateFunc func(in1 *v1a.Router) (*v1a.Router, error)
// UpdateStatusFunc mocks the UpdateStatus method.
UpdateStatusFunc func(in1 *v1a.Router) (*v1a.Router, error)
// WatchFunc mocks the Watch method.
WatchFunc func(namespace string, opts v1b.ListOptions) (watch.Interface, error)
// contains filtered or unexported fields
}
RouterClientMock is a mock implementation of RouterClient.
func TestSomethingThatUsesRouterClient(t *testing.T) {
// make and configure a mocked RouterClient
mockedRouterClient := &RouterClientMock{
CreateFunc: func(in1 *v1a.Router) (*v1a.Router, 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.Router, error) {
panic("mock out the Get method")
},
ListFunc: func(namespace string, opts v1b.ListOptions) (*v1a.RouterList, error) {
panic("mock out the List method")
},
PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Router, error) {
panic("mock out the Patch method")
},
UpdateFunc: func(in1 *v1a.Router) (*v1a.Router, error) {
panic("mock out the Update method")
},
UpdateStatusFunc: func(in1 *v1a.Router) (*v1a.Router, error) {
panic("mock out the UpdateStatus method")
},
WatchFunc: func(namespace string, opts v1b.ListOptions) (watch.Interface, error) {
panic("mock out the Watch method")
},
}
// use mockedRouterClient in code that requires RouterClient
// and then make assertions.
}
func (*RouterClientMock) Create ¶
Create calls CreateFunc.
func (*RouterClientMock) CreateCalls ¶
func (mock *RouterClientMock) CreateCalls() []struct { In1 *v1a.Router }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedRouterClient.CreateCalls())
func (*RouterClientMock) Delete ¶
func (mock *RouterClientMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
Delete calls DeleteFunc.
func (*RouterClientMock) DeleteCalls ¶
func (mock *RouterClientMock) DeleteCalls() []struct { Namespace string Name string Options *v1b.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedRouterClient.DeleteCalls())
func (*RouterClientMock) Get ¶
func (mock *RouterClientMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.Router, error)
Get calls GetFunc.
func (*RouterClientMock) GetCalls ¶
func (mock *RouterClientMock) GetCalls() []struct { Namespace string Name string Options v1b.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedRouterClient.GetCalls())
func (*RouterClientMock) List ¶
func (mock *RouterClientMock) List(namespace string, opts v1b.ListOptions) (*v1a.RouterList, error)
List calls ListFunc.
func (*RouterClientMock) ListCalls ¶
func (mock *RouterClientMock) ListCalls() []struct { Namespace string Opts v1b.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedRouterClient.ListCalls())
func (*RouterClientMock) Patch ¶
func (mock *RouterClientMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Router, error)
Patch calls PatchFunc.
func (*RouterClientMock) PatchCalls ¶
func (mock *RouterClientMock) 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(mockedRouterClient.PatchCalls())
func (*RouterClientMock) Update ¶
Update calls UpdateFunc.
func (*RouterClientMock) UpdateCalls ¶
func (mock *RouterClientMock) UpdateCalls() []struct { In1 *v1a.Router }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedRouterClient.UpdateCalls())
func (*RouterClientMock) UpdateStatus ¶
UpdateStatus calls UpdateStatusFunc.
func (*RouterClientMock) UpdateStatusCalls ¶
func (mock *RouterClientMock) UpdateStatusCalls() []struct { In1 *v1a.Router }
UpdateStatusCalls gets all the calls that were made to UpdateStatus. Check the length with:
len(mockedRouterClient.UpdateStatusCalls())
func (*RouterClientMock) Watch ¶
func (mock *RouterClientMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*RouterClientMock) WatchCalls ¶
func (mock *RouterClientMock) WatchCalls() []struct { Namespace string Opts v1b.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedRouterClient.WatchCalls())
type RouterControllerMock ¶
type RouterControllerMock 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.RouterCache
// CreateFunc mocks the Create method.
CreateFunc func(in1 *v1a.Router) (*v1a.Router, 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.Router, 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.RouterList, error)
// OnChangeFunc mocks the OnChange method.
OnChangeFunc func(ctx context.Context, name string, sync v1.RouterHandler)
// OnRemoveFunc mocks the OnRemove method.
OnRemoveFunc func(ctx context.Context, name string, sync v1.RouterHandler)
// PatchFunc mocks the Patch method.
PatchFunc func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Router, error)
// UpdateFunc mocks the Update method.
UpdateFunc func(in1 *v1a.Router) (*v1a.Router, error)
// UpdateStatusFunc mocks the UpdateStatus method.
UpdateStatusFunc func(in1 *v1a.Router) (*v1a.Router, 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
}
RouterControllerMock is a mock implementation of RouterController.
func TestSomethingThatUsesRouterController(t *testing.T) {
// make and configure a mocked RouterController
mockedRouterController := &RouterControllerMock{
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.RouterCache {
panic("mock out the Cache method")
},
CreateFunc: func(in1 *v1a.Router) (*v1a.Router, 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.Router, 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.RouterList, error) {
panic("mock out the List method")
},
OnChangeFunc: func(ctx context.Context, name string, sync v1.RouterHandler) {
panic("mock out the OnChange method")
},
OnRemoveFunc: func(ctx context.Context, name string, sync v1.RouterHandler) {
panic("mock out the OnRemove method")
},
PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Router, error) {
panic("mock out the Patch method")
},
UpdateFunc: func(in1 *v1a.Router) (*v1a.Router, error) {
panic("mock out the Update method")
},
UpdateStatusFunc: func(in1 *v1a.Router) (*v1a.Router, 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 mockedRouterController in code that requires RouterController
// and then make assertions.
}
func (*RouterControllerMock) AddGenericHandler ¶
func (mock *RouterControllerMock) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)
AddGenericHandler calls AddGenericHandlerFunc.
func (*RouterControllerMock) AddGenericHandlerCalls ¶
func (mock *RouterControllerMock) 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(mockedRouterController.AddGenericHandlerCalls())
func (*RouterControllerMock) AddGenericRemoveHandler ¶
func (mock *RouterControllerMock) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)
AddGenericRemoveHandler calls AddGenericRemoveHandlerFunc.
func (*RouterControllerMock) AddGenericRemoveHandlerCalls ¶
func (mock *RouterControllerMock) 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(mockedRouterController.AddGenericRemoveHandlerCalls())
func (*RouterControllerMock) Cache ¶
func (mock *RouterControllerMock) Cache() v1.RouterCache
Cache calls CacheFunc.
func (*RouterControllerMock) CacheCalls ¶
func (mock *RouterControllerMock) CacheCalls() []struct { }
CacheCalls gets all the calls that were made to Cache. Check the length with:
len(mockedRouterController.CacheCalls())
func (*RouterControllerMock) Create ¶
Create calls CreateFunc.
func (*RouterControllerMock) CreateCalls ¶
func (mock *RouterControllerMock) CreateCalls() []struct { In1 *v1a.Router }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedRouterController.CreateCalls())
func (*RouterControllerMock) Delete ¶
func (mock *RouterControllerMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
Delete calls DeleteFunc.
func (*RouterControllerMock) DeleteCalls ¶
func (mock *RouterControllerMock) DeleteCalls() []struct { Namespace string Name string Options *v1b.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedRouterController.DeleteCalls())
func (*RouterControllerMock) Enqueue ¶
func (mock *RouterControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*RouterControllerMock) EnqueueCalls ¶
func (mock *RouterControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedRouterController.EnqueueCalls())
func (*RouterControllerMock) Get ¶
func (mock *RouterControllerMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.Router, error)
Get calls GetFunc.
func (*RouterControllerMock) GetCalls ¶
func (mock *RouterControllerMock) GetCalls() []struct { Namespace string Name string Options v1b.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedRouterController.GetCalls())
func (*RouterControllerMock) GroupVersionKind ¶
func (mock *RouterControllerMock) GroupVersionKind() schema.GroupVersionKind
GroupVersionKind calls GroupVersionKindFunc.
func (*RouterControllerMock) GroupVersionKindCalls ¶
func (mock *RouterControllerMock) GroupVersionKindCalls() []struct { }
GroupVersionKindCalls gets all the calls that were made to GroupVersionKind. Check the length with:
len(mockedRouterController.GroupVersionKindCalls())
func (*RouterControllerMock) Informer ¶
func (mock *RouterControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*RouterControllerMock) InformerCalls ¶
func (mock *RouterControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedRouterController.InformerCalls())
func (*RouterControllerMock) List ¶
func (mock *RouterControllerMock) List(namespace string, opts v1b.ListOptions) (*v1a.RouterList, error)
List calls ListFunc.
func (*RouterControllerMock) ListCalls ¶
func (mock *RouterControllerMock) ListCalls() []struct { Namespace string Opts v1b.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedRouterController.ListCalls())
func (*RouterControllerMock) OnChange ¶
func (mock *RouterControllerMock) OnChange(ctx context.Context, name string, sync v1.RouterHandler)
OnChange calls OnChangeFunc.
func (*RouterControllerMock) OnChangeCalls ¶
func (mock *RouterControllerMock) OnChangeCalls() []struct { Ctx context.Context Name string Sync v1.RouterHandler }
OnChangeCalls gets all the calls that were made to OnChange. Check the length with:
len(mockedRouterController.OnChangeCalls())
func (*RouterControllerMock) OnRemove ¶
func (mock *RouterControllerMock) OnRemove(ctx context.Context, name string, sync v1.RouterHandler)
OnRemove calls OnRemoveFunc.
func (*RouterControllerMock) OnRemoveCalls ¶
func (mock *RouterControllerMock) OnRemoveCalls() []struct { Ctx context.Context Name string Sync v1.RouterHandler }
OnRemoveCalls gets all the calls that were made to OnRemove. Check the length with:
len(mockedRouterController.OnRemoveCalls())
func (*RouterControllerMock) Patch ¶
func (mock *RouterControllerMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Router, error)
Patch calls PatchFunc.
func (*RouterControllerMock) PatchCalls ¶
func (mock *RouterControllerMock) 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(mockedRouterController.PatchCalls())
func (*RouterControllerMock) Update ¶
Update calls UpdateFunc.
func (*RouterControllerMock) UpdateCalls ¶
func (mock *RouterControllerMock) UpdateCalls() []struct { In1 *v1a.Router }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedRouterController.UpdateCalls())
func (*RouterControllerMock) UpdateStatus ¶
UpdateStatus calls UpdateStatusFunc.
func (*RouterControllerMock) UpdateStatusCalls ¶
func (mock *RouterControllerMock) UpdateStatusCalls() []struct { In1 *v1a.Router }
UpdateStatusCalls gets all the calls that were made to UpdateStatus. Check the length with:
len(mockedRouterController.UpdateStatusCalls())
func (*RouterControllerMock) Updater ¶
func (mock *RouterControllerMock) Updater() generic.Updater
Updater calls UpdaterFunc.
func (*RouterControllerMock) UpdaterCalls ¶
func (mock *RouterControllerMock) UpdaterCalls() []struct { }
UpdaterCalls gets all the calls that were made to Updater. Check the length with:
len(mockedRouterController.UpdaterCalls())
func (*RouterControllerMock) Watch ¶
func (mock *RouterControllerMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*RouterControllerMock) WatchCalls ¶
func (mock *RouterControllerMock) WatchCalls() []struct { Namespace string Opts v1b.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedRouterController.WatchCalls())
type ServiceCacheMock ¶
type ServiceCacheMock struct {
// AddIndexerFunc mocks the AddIndexer method.
AddIndexerFunc func(indexName string, indexer v1.ServiceIndexer)
// GetFunc mocks the Get method.
GetFunc func(namespace string, name string) (*v1a.Service, error)
// GetByIndexFunc mocks the GetByIndex method.
GetByIndexFunc func(indexName string, key string) ([]*v1a.Service, error)
// ListFunc mocks the List method.
ListFunc func(namespace string, selector labels.Selector) ([]*v1a.Service, error)
// contains filtered or unexported fields
}
ServiceCacheMock is a mock implementation of ServiceCache.
func TestSomethingThatUsesServiceCache(t *testing.T) {
// make and configure a mocked ServiceCache
mockedServiceCache := &ServiceCacheMock{
AddIndexerFunc: func(indexName string, indexer v1.ServiceIndexer) {
panic("mock out the AddIndexer method")
},
GetFunc: func(namespace string, name string) (*v1a.Service, error) {
panic("mock out the Get method")
},
GetByIndexFunc: func(indexName string, key string) ([]*v1a.Service, error) {
panic("mock out the GetByIndex method")
},
ListFunc: func(namespace string, selector labels.Selector) ([]*v1a.Service, error) {
panic("mock out the List method")
},
}
// use mockedServiceCache in code that requires ServiceCache
// and then make assertions.
}
func (*ServiceCacheMock) AddIndexer ¶
func (mock *ServiceCacheMock) AddIndexer(indexName string, indexer v1.ServiceIndexer)
AddIndexer calls AddIndexerFunc.
func (*ServiceCacheMock) AddIndexerCalls ¶
func (mock *ServiceCacheMock) AddIndexerCalls() []struct { IndexName string Indexer v1.ServiceIndexer }
AddIndexerCalls gets all the calls that were made to AddIndexer. Check the length with:
len(mockedServiceCache.AddIndexerCalls())
func (*ServiceCacheMock) Get ¶
Get calls GetFunc.
func (*ServiceCacheMock) GetByIndex ¶
GetByIndex calls GetByIndexFunc.
func (*ServiceCacheMock) GetByIndexCalls ¶
func (mock *ServiceCacheMock) GetByIndexCalls() []struct { IndexName string Key string }
GetByIndexCalls gets all the calls that were made to GetByIndex. Check the length with:
len(mockedServiceCache.GetByIndexCalls())
func (*ServiceCacheMock) GetCalls ¶
func (mock *ServiceCacheMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedServiceCache.GetCalls())
func (*ServiceCacheMock) List ¶
func (mock *ServiceCacheMock) List(namespace string, selector labels.Selector) ([]*v1a.Service, error)
List calls ListFunc.
func (*ServiceCacheMock) ListCalls ¶
func (mock *ServiceCacheMock) ListCalls() []struct { Namespace string Selector labels.Selector }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedServiceCache.ListCalls())
type ServiceClientMock ¶
type ServiceClientMock struct {
// CreateFunc mocks the Create method.
CreateFunc func(in1 *v1a.Service) (*v1a.Service, 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.Service, error)
// ListFunc mocks the List method.
ListFunc func(namespace string, opts v1b.ListOptions) (*v1a.ServiceList, error)
// PatchFunc mocks the Patch method.
PatchFunc func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Service, error)
// UpdateFunc mocks the Update method.
UpdateFunc func(in1 *v1a.Service) (*v1a.Service, error)
// UpdateStatusFunc mocks the UpdateStatus method.
UpdateStatusFunc func(in1 *v1a.Service) (*v1a.Service, error)
// WatchFunc mocks the Watch method.
WatchFunc func(namespace string, opts v1b.ListOptions) (watch.Interface, error)
// contains filtered or unexported fields
}
ServiceClientMock is a mock implementation of ServiceClient.
func TestSomethingThatUsesServiceClient(t *testing.T) {
// make and configure a mocked ServiceClient
mockedServiceClient := &ServiceClientMock{
CreateFunc: func(in1 *v1a.Service) (*v1a.Service, 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.Service, error) {
panic("mock out the Get method")
},
ListFunc: func(namespace string, opts v1b.ListOptions) (*v1a.ServiceList, error) {
panic("mock out the List method")
},
PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Service, error) {
panic("mock out the Patch method")
},
UpdateFunc: func(in1 *v1a.Service) (*v1a.Service, error) {
panic("mock out the Update method")
},
UpdateStatusFunc: func(in1 *v1a.Service) (*v1a.Service, error) {
panic("mock out the UpdateStatus method")
},
WatchFunc: func(namespace string, opts v1b.ListOptions) (watch.Interface, error) {
panic("mock out the Watch method")
},
}
// use mockedServiceClient in code that requires ServiceClient
// and then make assertions.
}
func (*ServiceClientMock) Create ¶
Create calls CreateFunc.
func (*ServiceClientMock) CreateCalls ¶
func (mock *ServiceClientMock) CreateCalls() []struct { In1 *v1a.Service }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedServiceClient.CreateCalls())
func (*ServiceClientMock) Delete ¶
func (mock *ServiceClientMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
Delete calls DeleteFunc.
func (*ServiceClientMock) DeleteCalls ¶
func (mock *ServiceClientMock) DeleteCalls() []struct { Namespace string Name string Options *v1b.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedServiceClient.DeleteCalls())
func (*ServiceClientMock) Get ¶
func (mock *ServiceClientMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.Service, error)
Get calls GetFunc.
func (*ServiceClientMock) GetCalls ¶
func (mock *ServiceClientMock) GetCalls() []struct { Namespace string Name string Options v1b.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedServiceClient.GetCalls())
func (*ServiceClientMock) List ¶
func (mock *ServiceClientMock) List(namespace string, opts v1b.ListOptions) (*v1a.ServiceList, error)
List calls ListFunc.
func (*ServiceClientMock) ListCalls ¶
func (mock *ServiceClientMock) ListCalls() []struct { Namespace string Opts v1b.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedServiceClient.ListCalls())
func (*ServiceClientMock) Patch ¶
func (mock *ServiceClientMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Service, error)
Patch calls PatchFunc.
func (*ServiceClientMock) PatchCalls ¶
func (mock *ServiceClientMock) 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(mockedServiceClient.PatchCalls())
func (*ServiceClientMock) Update ¶
Update calls UpdateFunc.
func (*ServiceClientMock) UpdateCalls ¶
func (mock *ServiceClientMock) UpdateCalls() []struct { In1 *v1a.Service }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedServiceClient.UpdateCalls())
func (*ServiceClientMock) UpdateStatus ¶
UpdateStatus calls UpdateStatusFunc.
func (*ServiceClientMock) UpdateStatusCalls ¶
func (mock *ServiceClientMock) UpdateStatusCalls() []struct { In1 *v1a.Service }
UpdateStatusCalls gets all the calls that were made to UpdateStatus. Check the length with:
len(mockedServiceClient.UpdateStatusCalls())
func (*ServiceClientMock) Watch ¶
func (mock *ServiceClientMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*ServiceClientMock) WatchCalls ¶
func (mock *ServiceClientMock) WatchCalls() []struct { Namespace string Opts v1b.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedServiceClient.WatchCalls())
type ServiceControllerMock ¶
type ServiceControllerMock 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.ServiceCache
// CreateFunc mocks the Create method.
CreateFunc func(in1 *v1a.Service) (*v1a.Service, 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.Service, 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.ServiceList, error)
// OnChangeFunc mocks the OnChange method.
OnChangeFunc func(ctx context.Context, name string, sync v1.ServiceHandler)
// OnRemoveFunc mocks the OnRemove method.
OnRemoveFunc func(ctx context.Context, name string, sync v1.ServiceHandler)
// PatchFunc mocks the Patch method.
PatchFunc func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Service, error)
// UpdateFunc mocks the Update method.
UpdateFunc func(in1 *v1a.Service) (*v1a.Service, error)
// UpdateStatusFunc mocks the UpdateStatus method.
UpdateStatusFunc func(in1 *v1a.Service) (*v1a.Service, 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
}
ServiceControllerMock is a mock implementation of ServiceController.
func TestSomethingThatUsesServiceController(t *testing.T) {
// make and configure a mocked ServiceController
mockedServiceController := &ServiceControllerMock{
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.ServiceCache {
panic("mock out the Cache method")
},
CreateFunc: func(in1 *v1a.Service) (*v1a.Service, 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.Service, 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.ServiceList, error) {
panic("mock out the List method")
},
OnChangeFunc: func(ctx context.Context, name string, sync v1.ServiceHandler) {
panic("mock out the OnChange method")
},
OnRemoveFunc: func(ctx context.Context, name string, sync v1.ServiceHandler) {
panic("mock out the OnRemove method")
},
PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Service, error) {
panic("mock out the Patch method")
},
UpdateFunc: func(in1 *v1a.Service) (*v1a.Service, error) {
panic("mock out the Update method")
},
UpdateStatusFunc: func(in1 *v1a.Service) (*v1a.Service, 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 mockedServiceController in code that requires ServiceController
// and then make assertions.
}
func (*ServiceControllerMock) AddGenericHandler ¶
func (mock *ServiceControllerMock) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)
AddGenericHandler calls AddGenericHandlerFunc.
func (*ServiceControllerMock) AddGenericHandlerCalls ¶
func (mock *ServiceControllerMock) 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(mockedServiceController.AddGenericHandlerCalls())
func (*ServiceControllerMock) AddGenericRemoveHandler ¶
func (mock *ServiceControllerMock) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)
AddGenericRemoveHandler calls AddGenericRemoveHandlerFunc.
func (*ServiceControllerMock) AddGenericRemoveHandlerCalls ¶
func (mock *ServiceControllerMock) 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(mockedServiceController.AddGenericRemoveHandlerCalls())
func (*ServiceControllerMock) Cache ¶
func (mock *ServiceControllerMock) Cache() v1.ServiceCache
Cache calls CacheFunc.
func (*ServiceControllerMock) CacheCalls ¶
func (mock *ServiceControllerMock) CacheCalls() []struct { }
CacheCalls gets all the calls that were made to Cache. Check the length with:
len(mockedServiceController.CacheCalls())
func (*ServiceControllerMock) Create ¶
Create calls CreateFunc.
func (*ServiceControllerMock) CreateCalls ¶
func (mock *ServiceControllerMock) CreateCalls() []struct { In1 *v1a.Service }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedServiceController.CreateCalls())
func (*ServiceControllerMock) Delete ¶
func (mock *ServiceControllerMock) Delete(namespace string, name string, options *v1b.DeleteOptions) error
Delete calls DeleteFunc.
func (*ServiceControllerMock) DeleteCalls ¶
func (mock *ServiceControllerMock) DeleteCalls() []struct { Namespace string Name string Options *v1b.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedServiceController.DeleteCalls())
func (*ServiceControllerMock) Enqueue ¶
func (mock *ServiceControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*ServiceControllerMock) EnqueueCalls ¶
func (mock *ServiceControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedServiceController.EnqueueCalls())
func (*ServiceControllerMock) Get ¶
func (mock *ServiceControllerMock) Get(namespace string, name string, options v1b.GetOptions) (*v1a.Service, error)
Get calls GetFunc.
func (*ServiceControllerMock) GetCalls ¶
func (mock *ServiceControllerMock) GetCalls() []struct { Namespace string Name string Options v1b.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedServiceController.GetCalls())
func (*ServiceControllerMock) GroupVersionKind ¶
func (mock *ServiceControllerMock) GroupVersionKind() schema.GroupVersionKind
GroupVersionKind calls GroupVersionKindFunc.
func (*ServiceControllerMock) GroupVersionKindCalls ¶
func (mock *ServiceControllerMock) GroupVersionKindCalls() []struct { }
GroupVersionKindCalls gets all the calls that were made to GroupVersionKind. Check the length with:
len(mockedServiceController.GroupVersionKindCalls())
func (*ServiceControllerMock) Informer ¶
func (mock *ServiceControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*ServiceControllerMock) InformerCalls ¶
func (mock *ServiceControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedServiceController.InformerCalls())
func (*ServiceControllerMock) List ¶
func (mock *ServiceControllerMock) List(namespace string, opts v1b.ListOptions) (*v1a.ServiceList, error)
List calls ListFunc.
func (*ServiceControllerMock) ListCalls ¶
func (mock *ServiceControllerMock) ListCalls() []struct { Namespace string Opts v1b.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedServiceController.ListCalls())
func (*ServiceControllerMock) OnChange ¶
func (mock *ServiceControllerMock) OnChange(ctx context.Context, name string, sync v1.ServiceHandler)
OnChange calls OnChangeFunc.
func (*ServiceControllerMock) OnChangeCalls ¶
func (mock *ServiceControllerMock) OnChangeCalls() []struct { Ctx context.Context Name string Sync v1.ServiceHandler }
OnChangeCalls gets all the calls that were made to OnChange. Check the length with:
len(mockedServiceController.OnChangeCalls())
func (*ServiceControllerMock) OnRemove ¶
func (mock *ServiceControllerMock) OnRemove(ctx context.Context, name string, sync v1.ServiceHandler)
OnRemove calls OnRemoveFunc.
func (*ServiceControllerMock) OnRemoveCalls ¶
func (mock *ServiceControllerMock) OnRemoveCalls() []struct { Ctx context.Context Name string Sync v1.ServiceHandler }
OnRemoveCalls gets all the calls that were made to OnRemove. Check the length with:
len(mockedServiceController.OnRemoveCalls())
func (*ServiceControllerMock) Patch ¶
func (mock *ServiceControllerMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1a.Service, error)
Patch calls PatchFunc.
func (*ServiceControllerMock) PatchCalls ¶
func (mock *ServiceControllerMock) 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(mockedServiceController.PatchCalls())
func (*ServiceControllerMock) Update ¶
Update calls UpdateFunc.
func (*ServiceControllerMock) UpdateCalls ¶
func (mock *ServiceControllerMock) UpdateCalls() []struct { In1 *v1a.Service }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedServiceController.UpdateCalls())
func (*ServiceControllerMock) UpdateStatus ¶
UpdateStatus calls UpdateStatusFunc.
func (*ServiceControllerMock) UpdateStatusCalls ¶
func (mock *ServiceControllerMock) UpdateStatusCalls() []struct { In1 *v1a.Service }
UpdateStatusCalls gets all the calls that were made to UpdateStatus. Check the length with:
len(mockedServiceController.UpdateStatusCalls())
func (*ServiceControllerMock) Updater ¶
func (mock *ServiceControllerMock) Updater() generic.Updater
Updater calls UpdaterFunc.
func (*ServiceControllerMock) UpdaterCalls ¶
func (mock *ServiceControllerMock) UpdaterCalls() []struct { }
UpdaterCalls gets all the calls that were made to Updater. Check the length with:
len(mockedServiceController.UpdaterCalls())
func (*ServiceControllerMock) Watch ¶
func (mock *ServiceControllerMock) Watch(namespace string, opts v1b.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*ServiceControllerMock) WatchCalls ¶
func (mock *ServiceControllerMock) WatchCalls() []struct { Namespace string Opts v1b.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedServiceController.WatchCalls())
Source Files
¶
- zz_generated_app_mock.go
- zz_generated_external_service_mock.go
- zz_generated_router_mock.go
- zz_generated_service_mock.go