mocks

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func NewClient

func NewClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *Client

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

func (_m *Client) DestinationRuleCRDExists(_a0 context.Context) (bool, error)

DestinationRuleCRDExists provides a mock function with given fields: _a0

func (*Client) EXPECT

func (_m *Client) EXPECT() *Client_Expecter

func (*Client) GetCRD

func (_m *Client) GetCRD(_a0 context.Context, _a1 string) (*v1.CustomResourceDefinition, error)

GetCRD provides a mock function with given fields: _a0, _a1

func (*Client) GetSecret

func (_m *Client) GetSecret(_a0 context.Context, _a1 string, _a2 string) (*corev1.Secret, error)

GetSecret provides a mock function with given fields: _a0, _a1, _a2

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

type Client_DeletePVCsWithLabel_Call struct {
	*mock.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 (*Client_DeletePVCsWithLabel_Call) Run

func (*Client_DeletePVCsWithLabel_Call) RunAndReturn

type Client_Delete_Call

type Client_Delete_Call struct {
	*mock.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 (*Client_Delete_Call) RunAndReturn

type Client_DestinationRuleCRDExists_Call

type Client_DestinationRuleCRDExists_Call struct {
	*mock.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 (*Client_DestinationRuleCRDExists_Call) Run

func (*Client_DestinationRuleCRDExists_Call) RunAndReturn

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

type Client_GetCRD_Call struct {
	*mock.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 (*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

type Client_GetSecret_Call

type Client_GetSecret_Call struct {
	*mock.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 (*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

type Client_GetStatefulSet_Call

type Client_GetStatefulSet_Call struct {
	*mock.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 (*Client_GetStatefulSet_Call) Run

func (*Client_GetStatefulSet_Call) RunAndReturn

type Client_PatchApply_Call

type Client_PatchApply_Call struct {
	*mock.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 (*Client_PatchApply_Call) Run

func (*Client_PatchApply_Call) RunAndReturn

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL