mocks

package
v0.0.0-...-11b31ba Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 9 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) APIRuleCRDExists

func (_m *Client) APIRuleCRDExists(ctx context.Context) (bool, error)

APIRuleCRDExists provides a mock function with given fields: ctx

func (*Client) ApplicationCRDExists

func (_m *Client) ApplicationCRDExists(ctx context.Context) (bool, error)

ApplicationCRDExists provides a mock function with given fields: ctx

func (*Client) DeleteClusterRole

func (_m *Client) DeleteClusterRole(ctx context.Context, name string, namespace string) error

DeleteClusterRole provides a mock function with given fields: ctx, name, namespace

func (*Client) DeleteClusterRoleBinding

func (_m *Client) DeleteClusterRoleBinding(ctx context.Context, name string, namespace string) error

DeleteClusterRoleBinding provides a mock function with given fields: ctx, name, namespace

func (*Client) DeleteDeployment

func (_m *Client) DeleteDeployment(ctx context.Context, name string, namespace string) error

DeleteDeployment provides a mock function with given fields: ctx, name, namespace

func (*Client) DeleteResource

func (_m *Client) DeleteResource(ctx context.Context, object client.Object) error

DeleteResource provides a mock function with given fields: ctx, object

func (*Client) EXPECT

func (_m *Client) EXPECT() *Client_Expecter

func (*Client) GetCRD

func (_m *Client) GetCRD(ctx context.Context, name string) (*v1.CustomResourceDefinition, error)

GetCRD provides a mock function with given fields: ctx, name

func (*Client) GetConfigMap

func (_m *Client) GetConfigMap(ctx context.Context, name string, namespace string) (*corev1.ConfigMap, error)

GetConfigMap provides a mock function with given fields: ctx, name, namespace

func (*Client) GetDeployment

func (_m *Client) GetDeployment(ctx context.Context, name string, namespace string) (*appsv1.Deployment, error)

GetDeployment provides a mock function with given fields: ctx, name, namespace

func (*Client) GetDeploymentDynamic

func (_m *Client) GetDeploymentDynamic(ctx context.Context, name string, namespace string) (*appsv1.Deployment, error)

GetDeploymentDynamic provides a mock function with given fields: ctx, name, namespace

func (*Client) GetNATSResources

func (_m *Client) GetNATSResources(ctx context.Context, namespace string) (*v1alpha1.NATSList, error)

GetNATSResources provides a mock function with given fields: ctx, namespace

func (*Client) GetSecret

func (_m *Client) GetSecret(ctx context.Context, namespacedName string) (*corev1.Secret, error)

GetSecret provides a mock function with given fields: ctx, namespacedName

func (*Client) GetSubscriptions

func (_m *Client) GetSubscriptions(ctx context.Context) (*v1alpha2.SubscriptionList, error)

GetSubscriptions provides a mock function with given fields: ctx

func (*Client) PatchApply

func (_m *Client) PatchApply(ctx context.Context, object client.Object) error

PatchApply provides a mock function with given fields: ctx, object

func (*Client) PatchApplyPeerAuthentication

func (_m *Client) PatchApplyPeerAuthentication(ctx context.Context, authentication *v1beta1.PeerAuthentication) error

PatchApplyPeerAuthentication provides a mock function with given fields: ctx, authentication

func (*Client) PeerAuthenticationCRDExists

func (_m *Client) PeerAuthenticationCRDExists(ctx context.Context) (bool, error)

PeerAuthenticationCRDExists provides a mock function with given fields: ctx

func (*Client) UpdateDeployment

func (_m *Client) UpdateDeployment(ctx context.Context, deployment *appsv1.Deployment) error

UpdateDeployment provides a mock function with given fields: ctx, deployment

type Client_APIRuleCRDExists_Call

type Client_APIRuleCRDExists_Call struct {
	*mock.Call
}

Client_APIRuleCRDExists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'APIRuleCRDExists'

func (*Client_APIRuleCRDExists_Call) Return

func (*Client_APIRuleCRDExists_Call) Run

func (*Client_APIRuleCRDExists_Call) RunAndReturn

type Client_ApplicationCRDExists_Call

type Client_ApplicationCRDExists_Call struct {
	*mock.Call
}

Client_ApplicationCRDExists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ApplicationCRDExists'

func (*Client_ApplicationCRDExists_Call) Return

func (*Client_ApplicationCRDExists_Call) Run

func (*Client_ApplicationCRDExists_Call) RunAndReturn

type Client_DeleteClusterRoleBinding_Call

type Client_DeleteClusterRoleBinding_Call struct {
	*mock.Call
}

Client_DeleteClusterRoleBinding_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteClusterRoleBinding'

func (*Client_DeleteClusterRoleBinding_Call) Return

func (*Client_DeleteClusterRoleBinding_Call) Run

func (*Client_DeleteClusterRoleBinding_Call) RunAndReturn

type Client_DeleteClusterRole_Call

type Client_DeleteClusterRole_Call struct {
	*mock.Call
}

Client_DeleteClusterRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteClusterRole'

func (*Client_DeleteClusterRole_Call) Return

func (*Client_DeleteClusterRole_Call) Run

func (*Client_DeleteClusterRole_Call) RunAndReturn

type Client_DeleteDeployment_Call

type Client_DeleteDeployment_Call struct {
	*mock.Call
}

Client_DeleteDeployment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteDeployment'

func (*Client_DeleteDeployment_Call) Return

func (*Client_DeleteDeployment_Call) Run

func (_c *Client_DeleteDeployment_Call) Run(run func(ctx context.Context, name string, namespace string)) *Client_DeleteDeployment_Call

func (*Client_DeleteDeployment_Call) RunAndReturn

type Client_DeleteResource_Call

type Client_DeleteResource_Call struct {
	*mock.Call
}

Client_DeleteResource_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteResource'

func (*Client_DeleteResource_Call) Return

func (*Client_DeleteResource_Call) Run

func (*Client_DeleteResource_Call) RunAndReturn

type Client_Expecter

type Client_Expecter struct {
	// contains filtered or unexported fields
}

func (*Client_Expecter) APIRuleCRDExists

func (_e *Client_Expecter) APIRuleCRDExists(ctx interface{}) *Client_APIRuleCRDExists_Call

APIRuleCRDExists is a helper method to define mock.On call

  • ctx context.Context

func (*Client_Expecter) ApplicationCRDExists

func (_e *Client_Expecter) ApplicationCRDExists(ctx interface{}) *Client_ApplicationCRDExists_Call

ApplicationCRDExists is a helper method to define mock.On call

  • ctx context.Context

func (*Client_Expecter) DeleteClusterRole

func (_e *Client_Expecter) DeleteClusterRole(ctx interface{}, name interface{}, namespace interface{}) *Client_DeleteClusterRole_Call

DeleteClusterRole is a helper method to define mock.On call

  • ctx context.Context
  • name string
  • namespace string

func (*Client_Expecter) DeleteClusterRoleBinding

func (_e *Client_Expecter) DeleteClusterRoleBinding(ctx interface{}, name interface{}, namespace interface{}) *Client_DeleteClusterRoleBinding_Call

DeleteClusterRoleBinding is a helper method to define mock.On call

  • ctx context.Context
  • name string
  • namespace string

func (*Client_Expecter) DeleteDeployment

func (_e *Client_Expecter) DeleteDeployment(ctx interface{}, name interface{}, namespace interface{}) *Client_DeleteDeployment_Call

DeleteDeployment is a helper method to define mock.On call

  • ctx context.Context
  • name string
  • namespace string

func (*Client_Expecter) DeleteResource

func (_e *Client_Expecter) DeleteResource(ctx interface{}, object interface{}) *Client_DeleteResource_Call

DeleteResource is a helper method to define mock.On call

  • ctx context.Context
  • object client.Object

func (*Client_Expecter) GetCRD

func (_e *Client_Expecter) GetCRD(ctx interface{}, name interface{}) *Client_GetCRD_Call

GetCRD is a helper method to define mock.On call

  • ctx context.Context
  • name string

func (*Client_Expecter) GetConfigMap

func (_e *Client_Expecter) GetConfigMap(ctx interface{}, name interface{}, namespace interface{}) *Client_GetConfigMap_Call

GetConfigMap is a helper method to define mock.On call

  • ctx context.Context
  • name string
  • namespace string

func (*Client_Expecter) GetDeployment

func (_e *Client_Expecter) GetDeployment(ctx interface{}, name interface{}, namespace interface{}) *Client_GetDeployment_Call

GetDeployment is a helper method to define mock.On call

  • ctx context.Context
  • name string
  • namespace string

func (*Client_Expecter) GetDeploymentDynamic

func (_e *Client_Expecter) GetDeploymentDynamic(ctx interface{}, name interface{}, namespace interface{}) *Client_GetDeploymentDynamic_Call

GetDeploymentDynamic is a helper method to define mock.On call

  • ctx context.Context
  • name string
  • namespace string

func (*Client_Expecter) GetNATSResources

func (_e *Client_Expecter) GetNATSResources(ctx interface{}, namespace interface{}) *Client_GetNATSResources_Call

GetNATSResources is a helper method to define mock.On call

  • ctx context.Context
  • namespace string

func (*Client_Expecter) GetSecret

func (_e *Client_Expecter) GetSecret(ctx interface{}, namespacedName interface{}) *Client_GetSecret_Call

GetSecret is a helper method to define mock.On call

  • ctx context.Context
  • namespacedName string

func (*Client_Expecter) GetSubscriptions

func (_e *Client_Expecter) GetSubscriptions(ctx interface{}) *Client_GetSubscriptions_Call

GetSubscriptions is a helper method to define mock.On call

  • ctx context.Context

func (*Client_Expecter) PatchApply

func (_e *Client_Expecter) PatchApply(ctx interface{}, object interface{}) *Client_PatchApply_Call

PatchApply is a helper method to define mock.On call

  • ctx context.Context
  • object client.Object

func (*Client_Expecter) PatchApplyPeerAuthentication

func (_e *Client_Expecter) PatchApplyPeerAuthentication(ctx interface{}, authentication interface{}) *Client_PatchApplyPeerAuthentication_Call

PatchApplyPeerAuthentication is a helper method to define mock.On call

  • ctx context.Context
  • authentication *v1beta1.PeerAuthentication

func (*Client_Expecter) PeerAuthenticationCRDExists

func (_e *Client_Expecter) PeerAuthenticationCRDExists(ctx interface{}) *Client_PeerAuthenticationCRDExists_Call

PeerAuthenticationCRDExists is a helper method to define mock.On call

  • ctx context.Context

func (*Client_Expecter) UpdateDeployment

func (_e *Client_Expecter) UpdateDeployment(ctx interface{}, deployment interface{}) *Client_UpdateDeployment_Call

UpdateDeployment is a helper method to define mock.On call

  • ctx context.Context
  • deployment *appsv1.Deployment

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(ctx context.Context, name string)) *Client_GetCRD_Call

func (*Client_GetCRD_Call) RunAndReturn

type Client_GetConfigMap_Call

type Client_GetConfigMap_Call struct {
	*mock.Call
}

Client_GetConfigMap_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetConfigMap'

func (*Client_GetConfigMap_Call) Return

func (*Client_GetConfigMap_Call) Run

func (_c *Client_GetConfigMap_Call) Run(run func(ctx context.Context, name string, namespace string)) *Client_GetConfigMap_Call

func (*Client_GetConfigMap_Call) RunAndReturn

type Client_GetDeploymentDynamic_Call

type Client_GetDeploymentDynamic_Call struct {
	*mock.Call
}

Client_GetDeploymentDynamic_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDeploymentDynamic'

func (*Client_GetDeploymentDynamic_Call) Return

func (*Client_GetDeploymentDynamic_Call) Run

func (*Client_GetDeploymentDynamic_Call) RunAndReturn

type Client_GetDeployment_Call

type Client_GetDeployment_Call struct {
	*mock.Call
}

Client_GetDeployment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDeployment'

func (*Client_GetDeployment_Call) Return

func (*Client_GetDeployment_Call) Run

func (_c *Client_GetDeployment_Call) Run(run func(ctx context.Context, name string, namespace string)) *Client_GetDeployment_Call

func (*Client_GetDeployment_Call) RunAndReturn

type Client_GetNATSResources_Call

type Client_GetNATSResources_Call struct {
	*mock.Call
}

Client_GetNATSResources_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetNATSResources'

func (*Client_GetNATSResources_Call) Return

func (*Client_GetNATSResources_Call) Run

func (*Client_GetNATSResources_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(ctx context.Context, namespacedName string)) *Client_GetSecret_Call

func (*Client_GetSecret_Call) RunAndReturn

type Client_GetSubscriptions_Call

type Client_GetSubscriptions_Call struct {
	*mock.Call
}

Client_GetSubscriptions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSubscriptions'

func (*Client_GetSubscriptions_Call) Return

func (*Client_GetSubscriptions_Call) Run

func (*Client_GetSubscriptions_Call) RunAndReturn

type Client_PatchApplyPeerAuthentication_Call

type Client_PatchApplyPeerAuthentication_Call struct {
	*mock.Call
}

Client_PatchApplyPeerAuthentication_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PatchApplyPeerAuthentication'

func (*Client_PatchApplyPeerAuthentication_Call) Return

func (*Client_PatchApplyPeerAuthentication_Call) Run

func (*Client_PatchApplyPeerAuthentication_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

type Client_PeerAuthenticationCRDExists_Call

type Client_PeerAuthenticationCRDExists_Call struct {
	*mock.Call
}

Client_PeerAuthenticationCRDExists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PeerAuthenticationCRDExists'

func (*Client_PeerAuthenticationCRDExists_Call) Return

func (*Client_PeerAuthenticationCRDExists_Call) Run

func (*Client_PeerAuthenticationCRDExists_Call) RunAndReturn

type Client_UpdateDeployment_Call

type Client_UpdateDeployment_Call struct {
	*mock.Call
}

Client_UpdateDeployment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateDeployment'

func (*Client_UpdateDeployment_Call) Return

func (*Client_UpdateDeployment_Call) Run

func (*Client_UpdateDeployment_Call) RunAndReturn

Jump to

Keyboard shortcuts

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