Documentation
¶
Index ¶
- type Client
- func (_m *Client) Create(ctx context.Context, obj client.Object, opts ...client.CreateOption) error
- func (_m *Client) Delete(ctx context.Context, obj client.Object, opts ...client.DeleteOption) error
- func (_m *Client) DeleteAllOf(ctx context.Context, obj client.Object, opts ...client.DeleteAllOfOption) error
- func (_m *Client) EXPECT() *Client_Expecter
- func (_m *Client) Get(ctx context.Context, key types.NamespacedName, obj client.Object, ...) error
- func (_m *Client) GroupVersionKindFor(obj runtime.Object) (schema.GroupVersionKind, error)
- func (_m *Client) IsObjectNamespaced(obj runtime.Object) (bool, error)
- func (_m *Client) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error
- func (_m *Client) Patch(ctx context.Context, obj client.Object, patch client.Patch, ...) error
- func (_m *Client) RESTMapper() meta.RESTMapper
- func (_m *Client) Scheme() *runtime.Scheme
- func (_m *Client) Status() client.SubResourceWriter
- func (_m *Client) SubResource(subResource string) client.SubResourceClient
- func (_m *Client) Update(ctx context.Context, obj client.Object, opts ...client.UpdateOption) error
- type Client_Create_Call
- func (_c *Client_Create_Call) Return(_a0 error) *Client_Create_Call
- func (_c *Client_Create_Call) Run(run func(ctx context.Context, obj client.Object, opts ...client.CreateOption)) *Client_Create_Call
- func (_c *Client_Create_Call) RunAndReturn(run func(context.Context, client.Object, ...client.CreateOption) error) *Client_Create_Call
- type Client_DeleteAllOf_Call
- type Client_Delete_Call
- func (_c *Client_Delete_Call) Return(_a0 error) *Client_Delete_Call
- func (_c *Client_Delete_Call) Run(run func(ctx context.Context, obj client.Object, opts ...client.DeleteOption)) *Client_Delete_Call
- func (_c *Client_Delete_Call) RunAndReturn(run func(context.Context, client.Object, ...client.DeleteOption) error) *Client_Delete_Call
- type Client_Expecter
- func (_e *Client_Expecter) Create(ctx interface{}, obj interface{}, opts ...interface{}) *Client_Create_Call
- func (_e *Client_Expecter) Delete(ctx interface{}, obj interface{}, opts ...interface{}) *Client_Delete_Call
- func (_e *Client_Expecter) DeleteAllOf(ctx interface{}, obj interface{}, opts ...interface{}) *Client_DeleteAllOf_Call
- func (_e *Client_Expecter) Get(ctx interface{}, key interface{}, obj interface{}, opts ...interface{}) *Client_Get_Call
- func (_e *Client_Expecter) GroupVersionKindFor(obj interface{}) *Client_GroupVersionKindFor_Call
- func (_e *Client_Expecter) IsObjectNamespaced(obj interface{}) *Client_IsObjectNamespaced_Call
- func (_e *Client_Expecter) List(ctx interface{}, list interface{}, opts ...interface{}) *Client_List_Call
- func (_e *Client_Expecter) Patch(ctx interface{}, obj interface{}, patch interface{}, opts ...interface{}) *Client_Patch_Call
- func (_e *Client_Expecter) RESTMapper() *Client_RESTMapper_Call
- func (_e *Client_Expecter) Scheme() *Client_Scheme_Call
- func (_e *Client_Expecter) Status() *Client_Status_Call
- func (_e *Client_Expecter) SubResource(subResource interface{}) *Client_SubResource_Call
- func (_e *Client_Expecter) Update(ctx interface{}, obj interface{}, opts ...interface{}) *Client_Update_Call
- type Client_Get_Call
- type Client_GroupVersionKindFor_Call
- func (_c *Client_GroupVersionKindFor_Call) Return(_a0 schema.GroupVersionKind, _a1 error) *Client_GroupVersionKindFor_Call
- func (_c *Client_GroupVersionKindFor_Call) Run(run func(obj runtime.Object)) *Client_GroupVersionKindFor_Call
- func (_c *Client_GroupVersionKindFor_Call) RunAndReturn(run func(runtime.Object) (schema.GroupVersionKind, error)) *Client_GroupVersionKindFor_Call
- type Client_IsObjectNamespaced_Call
- func (_c *Client_IsObjectNamespaced_Call) Return(_a0 bool, _a1 error) *Client_IsObjectNamespaced_Call
- func (_c *Client_IsObjectNamespaced_Call) Run(run func(obj runtime.Object)) *Client_IsObjectNamespaced_Call
- func (_c *Client_IsObjectNamespaced_Call) RunAndReturn(run func(runtime.Object) (bool, error)) *Client_IsObjectNamespaced_Call
- type Client_List_Call
- type Client_Patch_Call
- type Client_RESTMapper_Call
- type Client_Scheme_Call
- type Client_Status_Call
- type Client_SubResource_Call
- func (_c *Client_SubResource_Call) Return(_a0 client.SubResourceClient) *Client_SubResource_Call
- func (_c *Client_SubResource_Call) Run(run func(subResource string)) *Client_SubResource_Call
- func (_c *Client_SubResource_Call) RunAndReturn(run func(string) client.SubResourceClient) *Client_SubResource_Call
- type Client_Update_Call
- func (_c *Client_Update_Call) Return(_a0 error) *Client_Update_Call
- func (_c *Client_Update_Call) Run(run func(ctx context.Context, obj client.Object, opts ...client.UpdateOption)) *Client_Update_Call
- func (_c *Client_Update_Call) RunAndReturn(run func(context.Context, client.Object, ...client.UpdateOption) error) *Client_Update_Call
- type KcpHelper
- type KcpHelper_Expecter
- type KcpHelper_NewKcpClient_Call
- func (_c *KcpHelper_NewKcpClient_Call) Return(_a0 client.Client, _a1 error) *KcpHelper_NewKcpClient_Call
- func (_c *KcpHelper_NewKcpClient_Call) Run(run func(config *rest.Config, workspacePath string)) *KcpHelper_NewKcpClient_Call
- func (_c *KcpHelper_NewKcpClient_Call) RunAndReturn(run func(*rest.Config, string) (client.Client, error)) *KcpHelper_NewKcpClient_Call
- type Manager
- func (_m *Manager) Add(_a0 manager.Runnable) error
- func (_m *Manager) AddHealthzCheck(name string, check healthz.Checker) error
- func (_m *Manager) AddMetricsServerExtraHandler(path string, handler http.Handler) error
- func (_m *Manager) AddReadyzCheck(name string, check healthz.Checker) error
- func (_m *Manager) EXPECT() *Manager_Expecter
- func (_m *Manager) Elected() <-chan struct{}
- func (_m *Manager) GetAPIReader() client.Reader
- func (_m *Manager) GetCache() cache.Cache
- func (_m *Manager) GetClient() client.Client
- func (_m *Manager) GetConfig() *rest.Config
- func (_m *Manager) GetControllerOptions() config.Controller
- func (_m *Manager) GetEventRecorderFor(name string) record.EventRecorder
- func (_m *Manager) GetFieldIndexer() client.FieldIndexer
- func (_m *Manager) GetHTTPClient() *http.Client
- func (_m *Manager) GetLogger() logr.Logger
- func (_m *Manager) GetRESTMapper() meta.RESTMapper
- func (_m *Manager) GetScheme() *runtime.Scheme
- func (_m *Manager) GetWebhookServer() webhook.Server
- func (_m *Manager) Start(ctx context.Context) error
- type Manager_AddHealthzCheck_Call
- func (_c *Manager_AddHealthzCheck_Call) Return(_a0 error) *Manager_AddHealthzCheck_Call
- func (_c *Manager_AddHealthzCheck_Call) Run(run func(name string, check healthz.Checker)) *Manager_AddHealthzCheck_Call
- func (_c *Manager_AddHealthzCheck_Call) RunAndReturn(run func(string, healthz.Checker) error) *Manager_AddHealthzCheck_Call
- type Manager_AddMetricsServerExtraHandler_Call
- func (_c *Manager_AddMetricsServerExtraHandler_Call) Return(_a0 error) *Manager_AddMetricsServerExtraHandler_Call
- func (_c *Manager_AddMetricsServerExtraHandler_Call) Run(run func(path string, handler http.Handler)) *Manager_AddMetricsServerExtraHandler_Call
- func (_c *Manager_AddMetricsServerExtraHandler_Call) RunAndReturn(run func(string, http.Handler) error) *Manager_AddMetricsServerExtraHandler_Call
- type Manager_AddReadyzCheck_Call
- func (_c *Manager_AddReadyzCheck_Call) Return(_a0 error) *Manager_AddReadyzCheck_Call
- func (_c *Manager_AddReadyzCheck_Call) Run(run func(name string, check healthz.Checker)) *Manager_AddReadyzCheck_Call
- func (_c *Manager_AddReadyzCheck_Call) RunAndReturn(run func(string, healthz.Checker) error) *Manager_AddReadyzCheck_Call
- type Manager_Add_Call
- type Manager_Elected_Call
- type Manager_Expecter
- func (_e *Manager_Expecter) Add(_a0 interface{}) *Manager_Add_Call
- func (_e *Manager_Expecter) AddHealthzCheck(name interface{}, check interface{}) *Manager_AddHealthzCheck_Call
- func (_e *Manager_Expecter) AddMetricsServerExtraHandler(path interface{}, handler interface{}) *Manager_AddMetricsServerExtraHandler_Call
- func (_e *Manager_Expecter) AddReadyzCheck(name interface{}, check interface{}) *Manager_AddReadyzCheck_Call
- func (_e *Manager_Expecter) Elected() *Manager_Elected_Call
- func (_e *Manager_Expecter) GetAPIReader() *Manager_GetAPIReader_Call
- func (_e *Manager_Expecter) GetCache() *Manager_GetCache_Call
- func (_e *Manager_Expecter) GetClient() *Manager_GetClient_Call
- func (_e *Manager_Expecter) GetConfig() *Manager_GetConfig_Call
- func (_e *Manager_Expecter) GetControllerOptions() *Manager_GetControllerOptions_Call
- func (_e *Manager_Expecter) GetEventRecorderFor(name interface{}) *Manager_GetEventRecorderFor_Call
- func (_e *Manager_Expecter) GetFieldIndexer() *Manager_GetFieldIndexer_Call
- func (_e *Manager_Expecter) GetHTTPClient() *Manager_GetHTTPClient_Call
- func (_e *Manager_Expecter) GetLogger() *Manager_GetLogger_Call
- func (_e *Manager_Expecter) GetRESTMapper() *Manager_GetRESTMapper_Call
- func (_e *Manager_Expecter) GetScheme() *Manager_GetScheme_Call
- func (_e *Manager_Expecter) GetWebhookServer() *Manager_GetWebhookServer_Call
- func (_e *Manager_Expecter) Start(ctx interface{}) *Manager_Start_Call
- type Manager_GetAPIReader_Call
- type Manager_GetCache_Call
- type Manager_GetClient_Call
- type Manager_GetConfig_Call
- type Manager_GetControllerOptions_Call
- func (_c *Manager_GetControllerOptions_Call) Return(_a0 config.Controller) *Manager_GetControllerOptions_Call
- func (_c *Manager_GetControllerOptions_Call) Run(run func()) *Manager_GetControllerOptions_Call
- func (_c *Manager_GetControllerOptions_Call) RunAndReturn(run func() config.Controller) *Manager_GetControllerOptions_Call
- type Manager_GetEventRecorderFor_Call
- func (_c *Manager_GetEventRecorderFor_Call) Return(_a0 record.EventRecorder) *Manager_GetEventRecorderFor_Call
- func (_c *Manager_GetEventRecorderFor_Call) Run(run func(name string)) *Manager_GetEventRecorderFor_Call
- func (_c *Manager_GetEventRecorderFor_Call) RunAndReturn(run func(string) record.EventRecorder) *Manager_GetEventRecorderFor_Call
- type Manager_GetFieldIndexer_Call
- func (_c *Manager_GetFieldIndexer_Call) Return(_a0 client.FieldIndexer) *Manager_GetFieldIndexer_Call
- func (_c *Manager_GetFieldIndexer_Call) Run(run func()) *Manager_GetFieldIndexer_Call
- func (_c *Manager_GetFieldIndexer_Call) RunAndReturn(run func() client.FieldIndexer) *Manager_GetFieldIndexer_Call
- type Manager_GetHTTPClient_Call
- type Manager_GetLogger_Call
- type Manager_GetRESTMapper_Call
- type Manager_GetScheme_Call
- type Manager_GetWebhookServer_Call
- type Manager_Start_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is an autogenerated mock type for the Client type
func NewClient ¶
NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Client) DeleteAllOf ¶
func (_m *Client) DeleteAllOf(ctx context.Context, obj client.Object, opts ...client.DeleteAllOfOption) error
DeleteAllOf provides a mock function with given fields: ctx, obj, opts
func (*Client) EXPECT ¶
func (_m *Client) EXPECT() *Client_Expecter
func (*Client) Get ¶
func (_m *Client) Get(ctx context.Context, key types.NamespacedName, obj client.Object, opts ...client.GetOption) error
Get provides a mock function with given fields: ctx, key, obj, opts
func (*Client) GroupVersionKindFor ¶
GroupVersionKindFor provides a mock function with given fields: obj
func (*Client) IsObjectNamespaced ¶
IsObjectNamespaced provides a mock function with given fields: obj
func (*Client) List ¶
func (_m *Client) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error
List provides a mock function with given fields: ctx, list, opts
func (*Client) Patch ¶
func (_m *Client) Patch(ctx context.Context, obj client.Object, patch client.Patch, opts ...client.PatchOption) error
Patch provides a mock function with given fields: ctx, obj, patch, opts
func (*Client) RESTMapper ¶
func (_m *Client) RESTMapper() meta.RESTMapper
RESTMapper provides a mock function with no fields
func (*Client) Status ¶
func (_m *Client) Status() client.SubResourceWriter
Status provides a mock function with no fields
func (*Client) SubResource ¶
func (_m *Client) SubResource(subResource string) client.SubResourceClient
SubResource provides a mock function with given fields: subResource
type Client_Create_Call ¶
Client_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*Client_Create_Call) Return ¶
func (_c *Client_Create_Call) Return(_a0 error) *Client_Create_Call
func (*Client_Create_Call) Run ¶
func (_c *Client_Create_Call) Run(run func(ctx context.Context, obj client.Object, opts ...client.CreateOption)) *Client_Create_Call
func (*Client_Create_Call) RunAndReturn ¶
func (_c *Client_Create_Call) RunAndReturn(run func(context.Context, client.Object, ...client.CreateOption) error) *Client_Create_Call
type Client_DeleteAllOf_Call ¶
Client_DeleteAllOf_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteAllOf'
func (*Client_DeleteAllOf_Call) Return ¶
func (_c *Client_DeleteAllOf_Call) Return(_a0 error) *Client_DeleteAllOf_Call
func (*Client_DeleteAllOf_Call) Run ¶
func (_c *Client_DeleteAllOf_Call) Run(run func(ctx context.Context, obj client.Object, opts ...client.DeleteAllOfOption)) *Client_DeleteAllOf_Call
func (*Client_DeleteAllOf_Call) RunAndReturn ¶
func (_c *Client_DeleteAllOf_Call) RunAndReturn(run func(context.Context, client.Object, ...client.DeleteAllOfOption) error) *Client_DeleteAllOf_Call
type Client_Delete_Call ¶
Client_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*Client_Delete_Call) Return ¶
func (_c *Client_Delete_Call) Return(_a0 error) *Client_Delete_Call
func (*Client_Delete_Call) Run ¶
func (_c *Client_Delete_Call) Run(run func(ctx context.Context, obj client.Object, opts ...client.DeleteOption)) *Client_Delete_Call
func (*Client_Delete_Call) RunAndReturn ¶
func (_c *Client_Delete_Call) RunAndReturn(run func(context.Context, client.Object, ...client.DeleteOption) error) *Client_Delete_Call
type Client_Expecter ¶
type Client_Expecter struct {
// contains filtered or unexported fields
}
func (*Client_Expecter) Create ¶
func (_e *Client_Expecter) Create(ctx interface{}, obj interface{}, opts ...interface{}) *Client_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- obj client.Object
- opts ...client.CreateOption
func (*Client_Expecter) Delete ¶
func (_e *Client_Expecter) Delete(ctx interface{}, obj interface{}, opts ...interface{}) *Client_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- obj client.Object
- opts ...client.DeleteOption
func (*Client_Expecter) DeleteAllOf ¶
func (_e *Client_Expecter) DeleteAllOf(ctx interface{}, obj interface{}, opts ...interface{}) *Client_DeleteAllOf_Call
DeleteAllOf is a helper method to define mock.On call
- ctx context.Context
- obj client.Object
- opts ...client.DeleteAllOfOption
func (*Client_Expecter) Get ¶
func (_e *Client_Expecter) Get(ctx interface{}, key interface{}, obj interface{}, opts ...interface{}) *Client_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- key types.NamespacedName
- obj client.Object
- opts ...client.GetOption
func (*Client_Expecter) GroupVersionKindFor ¶
func (_e *Client_Expecter) GroupVersionKindFor(obj interface{}) *Client_GroupVersionKindFor_Call
GroupVersionKindFor is a helper method to define mock.On call
- obj runtime.Object
func (*Client_Expecter) IsObjectNamespaced ¶
func (_e *Client_Expecter) IsObjectNamespaced(obj interface{}) *Client_IsObjectNamespaced_Call
IsObjectNamespaced is a helper method to define mock.On call
- obj runtime.Object
func (*Client_Expecter) List ¶
func (_e *Client_Expecter) List(ctx interface{}, list interface{}, opts ...interface{}) *Client_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- list client.ObjectList
- opts ...client.ListOption
func (*Client_Expecter) Patch ¶
func (_e *Client_Expecter) Patch(ctx interface{}, obj interface{}, patch interface{}, opts ...interface{}) *Client_Patch_Call
Patch is a helper method to define mock.On call
- ctx context.Context
- obj client.Object
- patch client.Patch
- opts ...client.PatchOption
func (*Client_Expecter) RESTMapper ¶
func (_e *Client_Expecter) RESTMapper() *Client_RESTMapper_Call
RESTMapper is a helper method to define mock.On call
func (*Client_Expecter) Scheme ¶
func (_e *Client_Expecter) Scheme() *Client_Scheme_Call
Scheme is a helper method to define mock.On call
func (*Client_Expecter) Status ¶
func (_e *Client_Expecter) Status() *Client_Status_Call
Status is a helper method to define mock.On call
func (*Client_Expecter) SubResource ¶
func (_e *Client_Expecter) SubResource(subResource interface{}) *Client_SubResource_Call
SubResource is a helper method to define mock.On call
- subResource string
func (*Client_Expecter) Update ¶
func (_e *Client_Expecter) Update(ctx interface{}, obj interface{}, opts ...interface{}) *Client_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- obj client.Object
- opts ...client.UpdateOption
type Client_Get_Call ¶
Client_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*Client_Get_Call) Return ¶
func (_c *Client_Get_Call) Return(_a0 error) *Client_Get_Call
func (*Client_Get_Call) Run ¶
func (_c *Client_Get_Call) Run(run func(ctx context.Context, key types.NamespacedName, obj client.Object, opts ...client.GetOption)) *Client_Get_Call
func (*Client_Get_Call) RunAndReturn ¶
func (_c *Client_Get_Call) RunAndReturn(run func(context.Context, types.NamespacedName, client.Object, ...client.GetOption) error) *Client_Get_Call
type Client_GroupVersionKindFor_Call ¶
Client_GroupVersionKindFor_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GroupVersionKindFor'
func (*Client_GroupVersionKindFor_Call) Return ¶
func (_c *Client_GroupVersionKindFor_Call) Return(_a0 schema.GroupVersionKind, _a1 error) *Client_GroupVersionKindFor_Call
func (*Client_GroupVersionKindFor_Call) Run ¶
func (_c *Client_GroupVersionKindFor_Call) Run(run func(obj runtime.Object)) *Client_GroupVersionKindFor_Call
func (*Client_GroupVersionKindFor_Call) RunAndReturn ¶
func (_c *Client_GroupVersionKindFor_Call) RunAndReturn(run func(runtime.Object) (schema.GroupVersionKind, error)) *Client_GroupVersionKindFor_Call
type Client_IsObjectNamespaced_Call ¶
Client_IsObjectNamespaced_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsObjectNamespaced'
func (*Client_IsObjectNamespaced_Call) Return ¶
func (_c *Client_IsObjectNamespaced_Call) Return(_a0 bool, _a1 error) *Client_IsObjectNamespaced_Call
func (*Client_IsObjectNamespaced_Call) Run ¶
func (_c *Client_IsObjectNamespaced_Call) Run(run func(obj runtime.Object)) *Client_IsObjectNamespaced_Call
func (*Client_IsObjectNamespaced_Call) RunAndReturn ¶
func (_c *Client_IsObjectNamespaced_Call) RunAndReturn(run func(runtime.Object) (bool, error)) *Client_IsObjectNamespaced_Call
type Client_List_Call ¶
Client_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*Client_List_Call) Return ¶
func (_c *Client_List_Call) Return(_a0 error) *Client_List_Call
func (*Client_List_Call) Run ¶
func (_c *Client_List_Call) Run(run func(ctx context.Context, list client.ObjectList, opts ...client.ListOption)) *Client_List_Call
func (*Client_List_Call) RunAndReturn ¶
func (_c *Client_List_Call) RunAndReturn(run func(context.Context, client.ObjectList, ...client.ListOption) error) *Client_List_Call
type Client_Patch_Call ¶
Client_Patch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Patch'
func (*Client_Patch_Call) Return ¶
func (_c *Client_Patch_Call) Return(_a0 error) *Client_Patch_Call
func (*Client_Patch_Call) Run ¶
func (_c *Client_Patch_Call) Run(run func(ctx context.Context, obj client.Object, patch client.Patch, opts ...client.PatchOption)) *Client_Patch_Call
func (*Client_Patch_Call) RunAndReturn ¶
func (_c *Client_Patch_Call) RunAndReturn(run func(context.Context, client.Object, client.Patch, ...client.PatchOption) error) *Client_Patch_Call
type Client_RESTMapper_Call ¶
Client_RESTMapper_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RESTMapper'
func (*Client_RESTMapper_Call) Return ¶
func (_c *Client_RESTMapper_Call) Return(_a0 meta.RESTMapper) *Client_RESTMapper_Call
func (*Client_RESTMapper_Call) Run ¶
func (_c *Client_RESTMapper_Call) Run(run func()) *Client_RESTMapper_Call
func (*Client_RESTMapper_Call) RunAndReturn ¶
func (_c *Client_RESTMapper_Call) RunAndReturn(run func() meta.RESTMapper) *Client_RESTMapper_Call
type Client_Scheme_Call ¶
Client_Scheme_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Scheme'
func (*Client_Scheme_Call) Return ¶
func (_c *Client_Scheme_Call) Return(_a0 *runtime.Scheme) *Client_Scheme_Call
func (*Client_Scheme_Call) Run ¶
func (_c *Client_Scheme_Call) Run(run func()) *Client_Scheme_Call
func (*Client_Scheme_Call) RunAndReturn ¶
func (_c *Client_Scheme_Call) RunAndReturn(run func() *runtime.Scheme) *Client_Scheme_Call
type Client_Status_Call ¶
Client_Status_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Status'
func (*Client_Status_Call) Return ¶
func (_c *Client_Status_Call) Return(_a0 client.SubResourceWriter) *Client_Status_Call
func (*Client_Status_Call) Run ¶
func (_c *Client_Status_Call) Run(run func()) *Client_Status_Call
func (*Client_Status_Call) RunAndReturn ¶
func (_c *Client_Status_Call) RunAndReturn(run func() client.SubResourceWriter) *Client_Status_Call
type Client_SubResource_Call ¶
Client_SubResource_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SubResource'
func (*Client_SubResource_Call) Return ¶
func (_c *Client_SubResource_Call) Return(_a0 client.SubResourceClient) *Client_SubResource_Call
func (*Client_SubResource_Call) Run ¶
func (_c *Client_SubResource_Call) Run(run func(subResource string)) *Client_SubResource_Call
func (*Client_SubResource_Call) RunAndReturn ¶
func (_c *Client_SubResource_Call) RunAndReturn(run func(string) client.SubResourceClient) *Client_SubResource_Call
type Client_Update_Call ¶
Client_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*Client_Update_Call) Return ¶
func (_c *Client_Update_Call) Return(_a0 error) *Client_Update_Call
func (*Client_Update_Call) Run ¶
func (_c *Client_Update_Call) Run(run func(ctx context.Context, obj client.Object, opts ...client.UpdateOption)) *Client_Update_Call
func (*Client_Update_Call) RunAndReturn ¶
func (_c *Client_Update_Call) RunAndReturn(run func(context.Context, client.Object, ...client.UpdateOption) error) *Client_Update_Call
type KcpHelper ¶
KcpHelper is an autogenerated mock type for the KcpHelper type
func NewKcpHelper ¶
NewKcpHelper creates a new instance of KcpHelper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*KcpHelper) EXPECT ¶
func (_m *KcpHelper) EXPECT() *KcpHelper_Expecter
type KcpHelper_Expecter ¶
type KcpHelper_Expecter struct {
// contains filtered or unexported fields
}
func (*KcpHelper_Expecter) NewKcpClient ¶
func (_e *KcpHelper_Expecter) NewKcpClient(config interface{}, workspacePath interface{}) *KcpHelper_NewKcpClient_Call
NewKcpClient is a helper method to define mock.On call
- config *rest.Config
- workspacePath string
type KcpHelper_NewKcpClient_Call ¶
KcpHelper_NewKcpClient_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewKcpClient'
func (*KcpHelper_NewKcpClient_Call) Return ¶
func (_c *KcpHelper_NewKcpClient_Call) Return(_a0 client.Client, _a1 error) *KcpHelper_NewKcpClient_Call
func (*KcpHelper_NewKcpClient_Call) Run ¶
func (_c *KcpHelper_NewKcpClient_Call) Run(run func(config *rest.Config, workspacePath string)) *KcpHelper_NewKcpClient_Call
func (*KcpHelper_NewKcpClient_Call) RunAndReturn ¶
func (_c *KcpHelper_NewKcpClient_Call) RunAndReturn(run func(*rest.Config, string) (client.Client, error)) *KcpHelper_NewKcpClient_Call
type Manager ¶ added in v0.21.4
Manager is an autogenerated mock type for the Manager type
func NewManager ¶ added in v0.21.4
NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Manager) AddHealthzCheck ¶ added in v0.21.4
AddHealthzCheck provides a mock function with given fields: name, check
func (*Manager) AddMetricsServerExtraHandler ¶ added in v0.21.4
AddMetricsServerExtraHandler provides a mock function with given fields: path, handler
func (*Manager) AddReadyzCheck ¶ added in v0.21.4
AddReadyzCheck provides a mock function with given fields: name, check
func (*Manager) EXPECT ¶ added in v0.21.4
func (_m *Manager) EXPECT() *Manager_Expecter
func (*Manager) Elected ¶ added in v0.21.4
func (_m *Manager) Elected() <-chan struct{}
Elected provides a mock function with no fields
func (*Manager) GetAPIReader ¶ added in v0.21.4
GetAPIReader provides a mock function with no fields
func (*Manager) GetControllerOptions ¶ added in v0.21.4
func (_m *Manager) GetControllerOptions() config.Controller
GetControllerOptions provides a mock function with no fields
func (*Manager) GetEventRecorderFor ¶ added in v0.21.4
func (_m *Manager) GetEventRecorderFor(name string) record.EventRecorder
GetEventRecorderFor provides a mock function with given fields: name
func (*Manager) GetFieldIndexer ¶ added in v0.21.4
func (_m *Manager) GetFieldIndexer() client.FieldIndexer
GetFieldIndexer provides a mock function with no fields
func (*Manager) GetHTTPClient ¶ added in v0.21.4
GetHTTPClient provides a mock function with no fields
func (*Manager) GetRESTMapper ¶ added in v0.21.4
func (_m *Manager) GetRESTMapper() meta.RESTMapper
GetRESTMapper provides a mock function with no fields
func (*Manager) GetWebhookServer ¶ added in v0.21.4
GetWebhookServer provides a mock function with no fields
type Manager_AddHealthzCheck_Call ¶ added in v0.21.4
Manager_AddHealthzCheck_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddHealthzCheck'
func (*Manager_AddHealthzCheck_Call) Return ¶ added in v0.21.4
func (_c *Manager_AddHealthzCheck_Call) Return(_a0 error) *Manager_AddHealthzCheck_Call
func (*Manager_AddHealthzCheck_Call) Run ¶ added in v0.21.4
func (_c *Manager_AddHealthzCheck_Call) Run(run func(name string, check healthz.Checker)) *Manager_AddHealthzCheck_Call
func (*Manager_AddHealthzCheck_Call) RunAndReturn ¶ added in v0.21.4
func (_c *Manager_AddHealthzCheck_Call) RunAndReturn(run func(string, healthz.Checker) error) *Manager_AddHealthzCheck_Call
type Manager_AddMetricsServerExtraHandler_Call ¶ added in v0.21.4
Manager_AddMetricsServerExtraHandler_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddMetricsServerExtraHandler'
func (*Manager_AddMetricsServerExtraHandler_Call) Return ¶ added in v0.21.4
func (_c *Manager_AddMetricsServerExtraHandler_Call) Return(_a0 error) *Manager_AddMetricsServerExtraHandler_Call
func (*Manager_AddMetricsServerExtraHandler_Call) Run ¶ added in v0.21.4
func (_c *Manager_AddMetricsServerExtraHandler_Call) Run(run func(path string, handler http.Handler)) *Manager_AddMetricsServerExtraHandler_Call
func (*Manager_AddMetricsServerExtraHandler_Call) RunAndReturn ¶ added in v0.21.4
func (_c *Manager_AddMetricsServerExtraHandler_Call) RunAndReturn(run func(string, http.Handler) error) *Manager_AddMetricsServerExtraHandler_Call
type Manager_AddReadyzCheck_Call ¶ added in v0.21.4
Manager_AddReadyzCheck_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddReadyzCheck'
func (*Manager_AddReadyzCheck_Call) Return ¶ added in v0.21.4
func (_c *Manager_AddReadyzCheck_Call) Return(_a0 error) *Manager_AddReadyzCheck_Call
func (*Manager_AddReadyzCheck_Call) Run ¶ added in v0.21.4
func (_c *Manager_AddReadyzCheck_Call) Run(run func(name string, check healthz.Checker)) *Manager_AddReadyzCheck_Call
func (*Manager_AddReadyzCheck_Call) RunAndReturn ¶ added in v0.21.4
func (_c *Manager_AddReadyzCheck_Call) RunAndReturn(run func(string, healthz.Checker) error) *Manager_AddReadyzCheck_Call
type Manager_Add_Call ¶ added in v0.21.4
Manager_Add_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Add'
func (*Manager_Add_Call) Return ¶ added in v0.21.4
func (_c *Manager_Add_Call) Return(_a0 error) *Manager_Add_Call
func (*Manager_Add_Call) Run ¶ added in v0.21.4
func (_c *Manager_Add_Call) Run(run func(_a0 manager.Runnable)) *Manager_Add_Call
func (*Manager_Add_Call) RunAndReturn ¶ added in v0.21.4
func (_c *Manager_Add_Call) RunAndReturn(run func(manager.Runnable) error) *Manager_Add_Call
type Manager_Elected_Call ¶ added in v0.21.4
Manager_Elected_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Elected'
func (*Manager_Elected_Call) Return ¶ added in v0.21.4
func (_c *Manager_Elected_Call) Return(_a0 <-chan struct{}) *Manager_Elected_Call
func (*Manager_Elected_Call) Run ¶ added in v0.21.4
func (_c *Manager_Elected_Call) Run(run func()) *Manager_Elected_Call
func (*Manager_Elected_Call) RunAndReturn ¶ added in v0.21.4
func (_c *Manager_Elected_Call) RunAndReturn(run func() <-chan struct{}) *Manager_Elected_Call
type Manager_Expecter ¶ added in v0.21.4
type Manager_Expecter struct {
// contains filtered or unexported fields
}
func (*Manager_Expecter) Add ¶ added in v0.21.4
func (_e *Manager_Expecter) Add(_a0 interface{}) *Manager_Add_Call
Add is a helper method to define mock.On call
- _a0 manager.Runnable
func (*Manager_Expecter) AddHealthzCheck ¶ added in v0.21.4
func (_e *Manager_Expecter) AddHealthzCheck(name interface{}, check interface{}) *Manager_AddHealthzCheck_Call
AddHealthzCheck is a helper method to define mock.On call
- name string
- check healthz.Checker
func (*Manager_Expecter) AddMetricsServerExtraHandler ¶ added in v0.21.4
func (_e *Manager_Expecter) AddMetricsServerExtraHandler(path interface{}, handler interface{}) *Manager_AddMetricsServerExtraHandler_Call
AddMetricsServerExtraHandler is a helper method to define mock.On call
- path string
- handler http.Handler
func (*Manager_Expecter) AddReadyzCheck ¶ added in v0.21.4
func (_e *Manager_Expecter) AddReadyzCheck(name interface{}, check interface{}) *Manager_AddReadyzCheck_Call
AddReadyzCheck is a helper method to define mock.On call
- name string
- check healthz.Checker
func (*Manager_Expecter) Elected ¶ added in v0.21.4
func (_e *Manager_Expecter) Elected() *Manager_Elected_Call
Elected is a helper method to define mock.On call
func (*Manager_Expecter) GetAPIReader ¶ added in v0.21.4
func (_e *Manager_Expecter) GetAPIReader() *Manager_GetAPIReader_Call
GetAPIReader is a helper method to define mock.On call
func (*Manager_Expecter) GetCache ¶ added in v0.21.4
func (_e *Manager_Expecter) GetCache() *Manager_GetCache_Call
GetCache is a helper method to define mock.On call
func (*Manager_Expecter) GetClient ¶ added in v0.21.4
func (_e *Manager_Expecter) GetClient() *Manager_GetClient_Call
GetClient is a helper method to define mock.On call
func (*Manager_Expecter) GetConfig ¶ added in v0.21.4
func (_e *Manager_Expecter) GetConfig() *Manager_GetConfig_Call
GetConfig is a helper method to define mock.On call
func (*Manager_Expecter) GetControllerOptions ¶ added in v0.21.4
func (_e *Manager_Expecter) GetControllerOptions() *Manager_GetControllerOptions_Call
GetControllerOptions is a helper method to define mock.On call
func (*Manager_Expecter) GetEventRecorderFor ¶ added in v0.21.4
func (_e *Manager_Expecter) GetEventRecorderFor(name interface{}) *Manager_GetEventRecorderFor_Call
GetEventRecorderFor is a helper method to define mock.On call
- name string
func (*Manager_Expecter) GetFieldIndexer ¶ added in v0.21.4
func (_e *Manager_Expecter) GetFieldIndexer() *Manager_GetFieldIndexer_Call
GetFieldIndexer is a helper method to define mock.On call
func (*Manager_Expecter) GetHTTPClient ¶ added in v0.21.4
func (_e *Manager_Expecter) GetHTTPClient() *Manager_GetHTTPClient_Call
GetHTTPClient is a helper method to define mock.On call
func (*Manager_Expecter) GetLogger ¶ added in v0.21.4
func (_e *Manager_Expecter) GetLogger() *Manager_GetLogger_Call
GetLogger is a helper method to define mock.On call
func (*Manager_Expecter) GetRESTMapper ¶ added in v0.21.4
func (_e *Manager_Expecter) GetRESTMapper() *Manager_GetRESTMapper_Call
GetRESTMapper is a helper method to define mock.On call
func (*Manager_Expecter) GetScheme ¶ added in v0.21.4
func (_e *Manager_Expecter) GetScheme() *Manager_GetScheme_Call
GetScheme is a helper method to define mock.On call
func (*Manager_Expecter) GetWebhookServer ¶ added in v0.21.4
func (_e *Manager_Expecter) GetWebhookServer() *Manager_GetWebhookServer_Call
GetWebhookServer is a helper method to define mock.On call
func (*Manager_Expecter) Start ¶ added in v0.21.4
func (_e *Manager_Expecter) Start(ctx interface{}) *Manager_Start_Call
Start is a helper method to define mock.On call
- ctx context.Context
type Manager_GetAPIReader_Call ¶ added in v0.21.4
Manager_GetAPIReader_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAPIReader'
func (*Manager_GetAPIReader_Call) Return ¶ added in v0.21.4
func (_c *Manager_GetAPIReader_Call) Return(_a0 client.Reader) *Manager_GetAPIReader_Call
func (*Manager_GetAPIReader_Call) Run ¶ added in v0.21.4
func (_c *Manager_GetAPIReader_Call) Run(run func()) *Manager_GetAPIReader_Call
func (*Manager_GetAPIReader_Call) RunAndReturn ¶ added in v0.21.4
func (_c *Manager_GetAPIReader_Call) RunAndReturn(run func() client.Reader) *Manager_GetAPIReader_Call
type Manager_GetCache_Call ¶ added in v0.21.4
Manager_GetCache_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCache'
func (*Manager_GetCache_Call) Return ¶ added in v0.21.4
func (_c *Manager_GetCache_Call) Return(_a0 cache.Cache) *Manager_GetCache_Call
func (*Manager_GetCache_Call) Run ¶ added in v0.21.4
func (_c *Manager_GetCache_Call) Run(run func()) *Manager_GetCache_Call
func (*Manager_GetCache_Call) RunAndReturn ¶ added in v0.21.4
func (_c *Manager_GetCache_Call) RunAndReturn(run func() cache.Cache) *Manager_GetCache_Call
type Manager_GetClient_Call ¶ added in v0.21.4
Manager_GetClient_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetClient'
func (*Manager_GetClient_Call) Return ¶ added in v0.21.4
func (_c *Manager_GetClient_Call) Return(_a0 client.Client) *Manager_GetClient_Call
func (*Manager_GetClient_Call) Run ¶ added in v0.21.4
func (_c *Manager_GetClient_Call) Run(run func()) *Manager_GetClient_Call
func (*Manager_GetClient_Call) RunAndReturn ¶ added in v0.21.4
func (_c *Manager_GetClient_Call) RunAndReturn(run func() client.Client) *Manager_GetClient_Call
type Manager_GetConfig_Call ¶ added in v0.21.4
Manager_GetConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetConfig'
func (*Manager_GetConfig_Call) Return ¶ added in v0.21.4
func (_c *Manager_GetConfig_Call) Return(_a0 *rest.Config) *Manager_GetConfig_Call
func (*Manager_GetConfig_Call) Run ¶ added in v0.21.4
func (_c *Manager_GetConfig_Call) Run(run func()) *Manager_GetConfig_Call
func (*Manager_GetConfig_Call) RunAndReturn ¶ added in v0.21.4
func (_c *Manager_GetConfig_Call) RunAndReturn(run func() *rest.Config) *Manager_GetConfig_Call
type Manager_GetControllerOptions_Call ¶ added in v0.21.4
Manager_GetControllerOptions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetControllerOptions'
func (*Manager_GetControllerOptions_Call) Return ¶ added in v0.21.4
func (_c *Manager_GetControllerOptions_Call) Return(_a0 config.Controller) *Manager_GetControllerOptions_Call
func (*Manager_GetControllerOptions_Call) Run ¶ added in v0.21.4
func (_c *Manager_GetControllerOptions_Call) Run(run func()) *Manager_GetControllerOptions_Call
func (*Manager_GetControllerOptions_Call) RunAndReturn ¶ added in v0.21.4
func (_c *Manager_GetControllerOptions_Call) RunAndReturn(run func() config.Controller) *Manager_GetControllerOptions_Call
type Manager_GetEventRecorderFor_Call ¶ added in v0.21.4
Manager_GetEventRecorderFor_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetEventRecorderFor'
func (*Manager_GetEventRecorderFor_Call) Return ¶ added in v0.21.4
func (_c *Manager_GetEventRecorderFor_Call) Return(_a0 record.EventRecorder) *Manager_GetEventRecorderFor_Call
func (*Manager_GetEventRecorderFor_Call) Run ¶ added in v0.21.4
func (_c *Manager_GetEventRecorderFor_Call) Run(run func(name string)) *Manager_GetEventRecorderFor_Call
func (*Manager_GetEventRecorderFor_Call) RunAndReturn ¶ added in v0.21.4
func (_c *Manager_GetEventRecorderFor_Call) RunAndReturn(run func(string) record.EventRecorder) *Manager_GetEventRecorderFor_Call
type Manager_GetFieldIndexer_Call ¶ added in v0.21.4
Manager_GetFieldIndexer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFieldIndexer'
func (*Manager_GetFieldIndexer_Call) Return ¶ added in v0.21.4
func (_c *Manager_GetFieldIndexer_Call) Return(_a0 client.FieldIndexer) *Manager_GetFieldIndexer_Call
func (*Manager_GetFieldIndexer_Call) Run ¶ added in v0.21.4
func (_c *Manager_GetFieldIndexer_Call) Run(run func()) *Manager_GetFieldIndexer_Call
func (*Manager_GetFieldIndexer_Call) RunAndReturn ¶ added in v0.21.4
func (_c *Manager_GetFieldIndexer_Call) RunAndReturn(run func() client.FieldIndexer) *Manager_GetFieldIndexer_Call
type Manager_GetHTTPClient_Call ¶ added in v0.21.4
Manager_GetHTTPClient_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHTTPClient'
func (*Manager_GetHTTPClient_Call) Return ¶ added in v0.21.4
func (_c *Manager_GetHTTPClient_Call) Return(_a0 *http.Client) *Manager_GetHTTPClient_Call
func (*Manager_GetHTTPClient_Call) Run ¶ added in v0.21.4
func (_c *Manager_GetHTTPClient_Call) Run(run func()) *Manager_GetHTTPClient_Call
func (*Manager_GetHTTPClient_Call) RunAndReturn ¶ added in v0.21.4
func (_c *Manager_GetHTTPClient_Call) RunAndReturn(run func() *http.Client) *Manager_GetHTTPClient_Call
type Manager_GetLogger_Call ¶ added in v0.21.4
Manager_GetLogger_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLogger'
func (*Manager_GetLogger_Call) Return ¶ added in v0.21.4
func (_c *Manager_GetLogger_Call) Return(_a0 logr.Logger) *Manager_GetLogger_Call
func (*Manager_GetLogger_Call) Run ¶ added in v0.21.4
func (_c *Manager_GetLogger_Call) Run(run func()) *Manager_GetLogger_Call
func (*Manager_GetLogger_Call) RunAndReturn ¶ added in v0.21.4
func (_c *Manager_GetLogger_Call) RunAndReturn(run func() logr.Logger) *Manager_GetLogger_Call
type Manager_GetRESTMapper_Call ¶ added in v0.21.4
Manager_GetRESTMapper_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRESTMapper'
func (*Manager_GetRESTMapper_Call) Return ¶ added in v0.21.4
func (_c *Manager_GetRESTMapper_Call) Return(_a0 meta.RESTMapper) *Manager_GetRESTMapper_Call
func (*Manager_GetRESTMapper_Call) Run ¶ added in v0.21.4
func (_c *Manager_GetRESTMapper_Call) Run(run func()) *Manager_GetRESTMapper_Call
func (*Manager_GetRESTMapper_Call) RunAndReturn ¶ added in v0.21.4
func (_c *Manager_GetRESTMapper_Call) RunAndReturn(run func() meta.RESTMapper) *Manager_GetRESTMapper_Call
type Manager_GetScheme_Call ¶ added in v0.21.4
Manager_GetScheme_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetScheme'
func (*Manager_GetScheme_Call) Return ¶ added in v0.21.4
func (_c *Manager_GetScheme_Call) Return(_a0 *runtime.Scheme) *Manager_GetScheme_Call
func (*Manager_GetScheme_Call) Run ¶ added in v0.21.4
func (_c *Manager_GetScheme_Call) Run(run func()) *Manager_GetScheme_Call
func (*Manager_GetScheme_Call) RunAndReturn ¶ added in v0.21.4
func (_c *Manager_GetScheme_Call) RunAndReturn(run func() *runtime.Scheme) *Manager_GetScheme_Call
type Manager_GetWebhookServer_Call ¶ added in v0.21.4
Manager_GetWebhookServer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetWebhookServer'
func (*Manager_GetWebhookServer_Call) Return ¶ added in v0.21.4
func (_c *Manager_GetWebhookServer_Call) Return(_a0 webhook.Server) *Manager_GetWebhookServer_Call
func (*Manager_GetWebhookServer_Call) Run ¶ added in v0.21.4
func (_c *Manager_GetWebhookServer_Call) Run(run func()) *Manager_GetWebhookServer_Call
func (*Manager_GetWebhookServer_Call) RunAndReturn ¶ added in v0.21.4
func (_c *Manager_GetWebhookServer_Call) RunAndReturn(run func() webhook.Server) *Manager_GetWebhookServer_Call
type Manager_Start_Call ¶ added in v0.21.4
Manager_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
func (*Manager_Start_Call) Return ¶ added in v0.21.4
func (_c *Manager_Start_Call) Return(_a0 error) *Manager_Start_Call
func (*Manager_Start_Call) Run ¶ added in v0.21.4
func (_c *Manager_Start_Call) Run(run func(ctx context.Context)) *Manager_Start_Call
func (*Manager_Start_Call) RunAndReturn ¶ added in v0.21.4
func (_c *Manager_Start_Call) RunAndReturn(run func(context.Context) error) *Manager_Start_Call