Documentation ¶
Index ¶
- type Client
- func (_m *Client) Delete(_a0 context.Context, _a1 *unstructured.Unstructured) error
- func (_m *Client) DeletePVCsWithLabel(_a0 context.Context, _a1 string, _a2 string, _a3 string) error
- func (_m *Client) DestinationRuleCRDExists(_a0 context.Context) (bool, error)
- func (_m *Client) EXPECT() *Client_Expecter
- func (_m *Client) GetCRD(_a0 context.Context, _a1 string) (*v1.CustomResourceDefinition, error)
- func (_m *Client) GetSecret(_a0 context.Context, _a1 string, _a2 string) (*corev1.Secret, error)
- func (_m *Client) GetStatefulSet(_a0 context.Context, _a1 string, _a2 string) (*appsv1.StatefulSet, error)
- func (_m *Client) PatchApply(_a0 context.Context, _a1 *unstructured.Unstructured) error
- type Client_DeletePVCsWithLabel_Call
- func (_c *Client_DeletePVCsWithLabel_Call) Return(_a0 error) *Client_DeletePVCsWithLabel_Call
- func (_c *Client_DeletePVCsWithLabel_Call) Run(run func(_a0 context.Context, _a1 string, _a2 string, _a3 string)) *Client_DeletePVCsWithLabel_Call
- func (_c *Client_DeletePVCsWithLabel_Call) RunAndReturn(run func(context.Context, string, string, string) error) *Client_DeletePVCsWithLabel_Call
- type Client_Delete_Call
- func (_c *Client_Delete_Call) Return(_a0 error) *Client_Delete_Call
- func (_c *Client_Delete_Call) Run(run func(_a0 context.Context, _a1 *unstructured.Unstructured)) *Client_Delete_Call
- func (_c *Client_Delete_Call) RunAndReturn(run func(context.Context, *unstructured.Unstructured) error) *Client_Delete_Call
- type Client_DestinationRuleCRDExists_Call
- func (_c *Client_DestinationRuleCRDExists_Call) Return(_a0 bool, _a1 error) *Client_DestinationRuleCRDExists_Call
- func (_c *Client_DestinationRuleCRDExists_Call) Run(run func(_a0 context.Context)) *Client_DestinationRuleCRDExists_Call
- func (_c *Client_DestinationRuleCRDExists_Call) RunAndReturn(run func(context.Context) (bool, error)) *Client_DestinationRuleCRDExists_Call
- type Client_Expecter
- func (_e *Client_Expecter) Delete(_a0 interface{}, _a1 interface{}) *Client_Delete_Call
- func (_e *Client_Expecter) DeletePVCsWithLabel(_a0 interface{}, _a1 interface{}, _a2 interface{}, _a3 interface{}) *Client_DeletePVCsWithLabel_Call
- func (_e *Client_Expecter) DestinationRuleCRDExists(_a0 interface{}) *Client_DestinationRuleCRDExists_Call
- func (_e *Client_Expecter) GetCRD(_a0 interface{}, _a1 interface{}) *Client_GetCRD_Call
- func (_e *Client_Expecter) GetSecret(_a0 interface{}, _a1 interface{}, _a2 interface{}) *Client_GetSecret_Call
- func (_e *Client_Expecter) GetStatefulSet(_a0 interface{}, _a1 interface{}, _a2 interface{}) *Client_GetStatefulSet_Call
- func (_e *Client_Expecter) PatchApply(_a0 interface{}, _a1 interface{}) *Client_PatchApply_Call
- type Client_GetCRD_Call
- func (_c *Client_GetCRD_Call) Return(_a0 *v1.CustomResourceDefinition, _a1 error) *Client_GetCRD_Call
- func (_c *Client_GetCRD_Call) Run(run func(_a0 context.Context, _a1 string)) *Client_GetCRD_Call
- func (_c *Client_GetCRD_Call) RunAndReturn(run func(context.Context, string) (*v1.CustomResourceDefinition, error)) *Client_GetCRD_Call
- type Client_GetSecret_Call
- func (_c *Client_GetSecret_Call) Return(_a0 *corev1.Secret, _a1 error) *Client_GetSecret_Call
- func (_c *Client_GetSecret_Call) Run(run func(_a0 context.Context, _a1 string, _a2 string)) *Client_GetSecret_Call
- func (_c *Client_GetSecret_Call) RunAndReturn(run func(context.Context, string, string) (*corev1.Secret, error)) *Client_GetSecret_Call
- type Client_GetStatefulSet_Call
- func (_c *Client_GetStatefulSet_Call) Return(_a0 *appsv1.StatefulSet, _a1 error) *Client_GetStatefulSet_Call
- func (_c *Client_GetStatefulSet_Call) Run(run func(_a0 context.Context, _a1 string, _a2 string)) *Client_GetStatefulSet_Call
- func (_c *Client_GetStatefulSet_Call) RunAndReturn(run func(context.Context, string, string) (*appsv1.StatefulSet, error)) *Client_GetStatefulSet_Call
- type Client_PatchApply_Call
- func (_c *Client_PatchApply_Call) Return(_a0 error) *Client_PatchApply_Call
- func (_c *Client_PatchApply_Call) Run(run func(_a0 context.Context, _a1 *unstructured.Unstructured)) *Client_PatchApply_Call
- func (_c *Client_PatchApply_Call) RunAndReturn(run func(context.Context, *unstructured.Unstructured) error) *Client_PatchApply_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) Delete ¶
func (_m *Client) Delete(_a0 context.Context, _a1 *unstructured.Unstructured) error
Delete provides a mock function with given fields: _a0, _a1
func (*Client) DeletePVCsWithLabel ¶
func (_m *Client) DeletePVCsWithLabel(_a0 context.Context, _a1 string, _a2 string, _a3 string) error
DeletePVCsWithLabel provides a mock function with given fields: _a0, _a1, _a2, _a3
func (*Client) DestinationRuleCRDExists ¶
DestinationRuleCRDExists provides a mock function with given fields: _a0
func (*Client) EXPECT ¶
func (_m *Client) EXPECT() *Client_Expecter
func (*Client) GetStatefulSet ¶
func (_m *Client) GetStatefulSet(_a0 context.Context, _a1 string, _a2 string) (*appsv1.StatefulSet, error)
GetStatefulSet provides a mock function with given fields: _a0, _a1, _a2
func (*Client) PatchApply ¶
func (_m *Client) PatchApply(_a0 context.Context, _a1 *unstructured.Unstructured) error
PatchApply provides a mock function with given fields: _a0, _a1
type Client_DeletePVCsWithLabel_Call ¶
Client_DeletePVCsWithLabel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeletePVCsWithLabel'
func (*Client_DeletePVCsWithLabel_Call) Return ¶
func (_c *Client_DeletePVCsWithLabel_Call) Return(_a0 error) *Client_DeletePVCsWithLabel_Call
func (*Client_DeletePVCsWithLabel_Call) Run ¶
func (_c *Client_DeletePVCsWithLabel_Call) Run(run func(_a0 context.Context, _a1 string, _a2 string, _a3 string)) *Client_DeletePVCsWithLabel_Call
func (*Client_DeletePVCsWithLabel_Call) RunAndReturn ¶
func (_c *Client_DeletePVCsWithLabel_Call) RunAndReturn(run func(context.Context, string, string, string) error) *Client_DeletePVCsWithLabel_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(_a0 context.Context, _a1 *unstructured.Unstructured)) *Client_Delete_Call
func (*Client_Delete_Call) RunAndReturn ¶
func (_c *Client_Delete_Call) RunAndReturn(run func(context.Context, *unstructured.Unstructured) error) *Client_Delete_Call
type Client_DestinationRuleCRDExists_Call ¶
Client_DestinationRuleCRDExists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DestinationRuleCRDExists'
func (*Client_DestinationRuleCRDExists_Call) Return ¶
func (_c *Client_DestinationRuleCRDExists_Call) Return(_a0 bool, _a1 error) *Client_DestinationRuleCRDExists_Call
func (*Client_DestinationRuleCRDExists_Call) Run ¶
func (_c *Client_DestinationRuleCRDExists_Call) Run(run func(_a0 context.Context)) *Client_DestinationRuleCRDExists_Call
func (*Client_DestinationRuleCRDExists_Call) RunAndReturn ¶
func (_c *Client_DestinationRuleCRDExists_Call) RunAndReturn(run func(context.Context) (bool, error)) *Client_DestinationRuleCRDExists_Call
type Client_Expecter ¶
type Client_Expecter struct {
// contains filtered or unexported fields
}
func (*Client_Expecter) Delete ¶
func (_e *Client_Expecter) Delete(_a0 interface{}, _a1 interface{}) *Client_Delete_Call
Delete is a helper method to define mock.On call
- _a0 context.Context
- _a1 *unstructured.Unstructured
func (*Client_Expecter) DeletePVCsWithLabel ¶
func (_e *Client_Expecter) DeletePVCsWithLabel(_a0 interface{}, _a1 interface{}, _a2 interface{}, _a3 interface{}) *Client_DeletePVCsWithLabel_Call
DeletePVCsWithLabel is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
- _a2 string
- _a3 string
func (*Client_Expecter) DestinationRuleCRDExists ¶
func (_e *Client_Expecter) DestinationRuleCRDExists(_a0 interface{}) *Client_DestinationRuleCRDExists_Call
DestinationRuleCRDExists is a helper method to define mock.On call
- _a0 context.Context
func (*Client_Expecter) GetCRD ¶
func (_e *Client_Expecter) GetCRD(_a0 interface{}, _a1 interface{}) *Client_GetCRD_Call
GetCRD is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
func (*Client_Expecter) GetSecret ¶
func (_e *Client_Expecter) GetSecret(_a0 interface{}, _a1 interface{}, _a2 interface{}) *Client_GetSecret_Call
GetSecret is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
- _a2 string
func (*Client_Expecter) GetStatefulSet ¶
func (_e *Client_Expecter) GetStatefulSet(_a0 interface{}, _a1 interface{}, _a2 interface{}) *Client_GetStatefulSet_Call
GetStatefulSet is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
- _a2 string
func (*Client_Expecter) PatchApply ¶
func (_e *Client_Expecter) PatchApply(_a0 interface{}, _a1 interface{}) *Client_PatchApply_Call
PatchApply is a helper method to define mock.On call
- _a0 context.Context
- _a1 *unstructured.Unstructured
type Client_GetCRD_Call ¶
Client_GetCRD_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCRD'
func (*Client_GetCRD_Call) Return ¶
func (_c *Client_GetCRD_Call) Return(_a0 *v1.CustomResourceDefinition, _a1 error) *Client_GetCRD_Call
func (*Client_GetCRD_Call) Run ¶
func (_c *Client_GetCRD_Call) Run(run func(_a0 context.Context, _a1 string)) *Client_GetCRD_Call
func (*Client_GetCRD_Call) RunAndReturn ¶
func (_c *Client_GetCRD_Call) RunAndReturn(run func(context.Context, string) (*v1.CustomResourceDefinition, error)) *Client_GetCRD_Call
type Client_GetSecret_Call ¶
Client_GetSecret_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSecret'
func (*Client_GetSecret_Call) Return ¶
func (_c *Client_GetSecret_Call) Return(_a0 *corev1.Secret, _a1 error) *Client_GetSecret_Call
func (*Client_GetSecret_Call) Run ¶
func (_c *Client_GetSecret_Call) Run(run func(_a0 context.Context, _a1 string, _a2 string)) *Client_GetSecret_Call
func (*Client_GetSecret_Call) RunAndReturn ¶
func (_c *Client_GetSecret_Call) RunAndReturn(run func(context.Context, string, string) (*corev1.Secret, error)) *Client_GetSecret_Call
type Client_GetStatefulSet_Call ¶
Client_GetStatefulSet_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetStatefulSet'
func (*Client_GetStatefulSet_Call) Return ¶
func (_c *Client_GetStatefulSet_Call) Return(_a0 *appsv1.StatefulSet, _a1 error) *Client_GetStatefulSet_Call
func (*Client_GetStatefulSet_Call) Run ¶
func (_c *Client_GetStatefulSet_Call) Run(run func(_a0 context.Context, _a1 string, _a2 string)) *Client_GetStatefulSet_Call
func (*Client_GetStatefulSet_Call) RunAndReturn ¶
func (_c *Client_GetStatefulSet_Call) RunAndReturn(run func(context.Context, string, string) (*appsv1.StatefulSet, error)) *Client_GetStatefulSet_Call
type Client_PatchApply_Call ¶
Client_PatchApply_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PatchApply'
func (*Client_PatchApply_Call) Return ¶
func (_c *Client_PatchApply_Call) Return(_a0 error) *Client_PatchApply_Call
func (*Client_PatchApply_Call) Run ¶
func (_c *Client_PatchApply_Call) Run(run func(_a0 context.Context, _a1 *unstructured.Unstructured)) *Client_PatchApply_Call
func (*Client_PatchApply_Call) RunAndReturn ¶
func (_c *Client_PatchApply_Call) RunAndReturn(run func(context.Context, *unstructured.Unstructured) error) *Client_PatchApply_Call