Documentation ¶
Index ¶
- type Client
- func (_m *Client) APIRuleCRDExists(ctx context.Context) (bool, error)
- func (_m *Client) ApplicationCRDExists(ctx context.Context) (bool, error)
- func (_m *Client) DeleteClusterRole(ctx context.Context, name string, namespace string) error
- func (_m *Client) DeleteClusterRoleBinding(ctx context.Context, name string, namespace string) error
- func (_m *Client) DeleteDeployment(ctx context.Context, name string, namespace string) error
- func (_m *Client) DeleteResource(ctx context.Context, object client.Object) error
- func (_m *Client) EXPECT() *Client_Expecter
- func (_m *Client) GetCRD(ctx context.Context, name string) (*v1.CustomResourceDefinition, error)
- func (_m *Client) GetConfigMap(ctx context.Context, name string, namespace string) (*corev1.ConfigMap, error)
- func (_m *Client) GetDeployment(ctx context.Context, name string, namespace string) (*appsv1.Deployment, error)
- func (_m *Client) GetDeploymentDynamic(ctx context.Context, name string, namespace string) (*appsv1.Deployment, error)
- func (_m *Client) GetNATSResources(ctx context.Context, namespace string) (*v1alpha1.NATSList, error)
- func (_m *Client) GetSecret(ctx context.Context, namespacedName string) (*corev1.Secret, error)
- func (_m *Client) GetSubscriptions(ctx context.Context) (*v1alpha2.SubscriptionList, error)
- func (_m *Client) PatchApply(ctx context.Context, object client.Object) error
- func (_m *Client) PatchApplyPeerAuthentication(ctx context.Context, authentication *v1beta1.PeerAuthentication) error
- func (_m *Client) PeerAuthenticationCRDExists(ctx context.Context) (bool, error)
- func (_m *Client) UpdateDeployment(ctx context.Context, deployment *appsv1.Deployment) error
- type Client_APIRuleCRDExists_Call
- func (_c *Client_APIRuleCRDExists_Call) Return(_a0 bool, _a1 error) *Client_APIRuleCRDExists_Call
- func (_c *Client_APIRuleCRDExists_Call) Run(run func(ctx context.Context)) *Client_APIRuleCRDExists_Call
- func (_c *Client_APIRuleCRDExists_Call) RunAndReturn(run func(context.Context) (bool, error)) *Client_APIRuleCRDExists_Call
- type Client_ApplicationCRDExists_Call
- func (_c *Client_ApplicationCRDExists_Call) Return(_a0 bool, _a1 error) *Client_ApplicationCRDExists_Call
- func (_c *Client_ApplicationCRDExists_Call) Run(run func(ctx context.Context)) *Client_ApplicationCRDExists_Call
- func (_c *Client_ApplicationCRDExists_Call) RunAndReturn(run func(context.Context) (bool, error)) *Client_ApplicationCRDExists_Call
- type Client_DeleteClusterRoleBinding_Call
- func (_c *Client_DeleteClusterRoleBinding_Call) Return(_a0 error) *Client_DeleteClusterRoleBinding_Call
- func (_c *Client_DeleteClusterRoleBinding_Call) Run(run func(ctx context.Context, name string, namespace string)) *Client_DeleteClusterRoleBinding_Call
- func (_c *Client_DeleteClusterRoleBinding_Call) RunAndReturn(run func(context.Context, string, string) error) *Client_DeleteClusterRoleBinding_Call
- type Client_DeleteClusterRole_Call
- func (_c *Client_DeleteClusterRole_Call) Return(_a0 error) *Client_DeleteClusterRole_Call
- func (_c *Client_DeleteClusterRole_Call) Run(run func(ctx context.Context, name string, namespace string)) *Client_DeleteClusterRole_Call
- func (_c *Client_DeleteClusterRole_Call) RunAndReturn(run func(context.Context, string, string) error) *Client_DeleteClusterRole_Call
- type Client_DeleteDeployment_Call
- func (_c *Client_DeleteDeployment_Call) Return(_a0 error) *Client_DeleteDeployment_Call
- func (_c *Client_DeleteDeployment_Call) Run(run func(ctx context.Context, name string, namespace string)) *Client_DeleteDeployment_Call
- func (_c *Client_DeleteDeployment_Call) RunAndReturn(run func(context.Context, string, string) error) *Client_DeleteDeployment_Call
- type Client_DeleteResource_Call
- func (_c *Client_DeleteResource_Call) Return(_a0 error) *Client_DeleteResource_Call
- func (_c *Client_DeleteResource_Call) Run(run func(ctx context.Context, object client.Object)) *Client_DeleteResource_Call
- func (_c *Client_DeleteResource_Call) RunAndReturn(run func(context.Context, client.Object) error) *Client_DeleteResource_Call
- type Client_Expecter
- func (_e *Client_Expecter) APIRuleCRDExists(ctx interface{}) *Client_APIRuleCRDExists_Call
- func (_e *Client_Expecter) ApplicationCRDExists(ctx interface{}) *Client_ApplicationCRDExists_Call
- func (_e *Client_Expecter) DeleteClusterRole(ctx interface{}, name interface{}, namespace interface{}) *Client_DeleteClusterRole_Call
- func (_e *Client_Expecter) DeleteClusterRoleBinding(ctx interface{}, name interface{}, namespace interface{}) *Client_DeleteClusterRoleBinding_Call
- func (_e *Client_Expecter) DeleteDeployment(ctx interface{}, name interface{}, namespace interface{}) *Client_DeleteDeployment_Call
- func (_e *Client_Expecter) DeleteResource(ctx interface{}, object interface{}) *Client_DeleteResource_Call
- func (_e *Client_Expecter) GetCRD(ctx interface{}, name interface{}) *Client_GetCRD_Call
- func (_e *Client_Expecter) GetConfigMap(ctx interface{}, name interface{}, namespace interface{}) *Client_GetConfigMap_Call
- func (_e *Client_Expecter) GetDeployment(ctx interface{}, name interface{}, namespace interface{}) *Client_GetDeployment_Call
- func (_e *Client_Expecter) GetDeploymentDynamic(ctx interface{}, name interface{}, namespace interface{}) *Client_GetDeploymentDynamic_Call
- func (_e *Client_Expecter) GetNATSResources(ctx interface{}, namespace interface{}) *Client_GetNATSResources_Call
- func (_e *Client_Expecter) GetSecret(ctx interface{}, namespacedName interface{}) *Client_GetSecret_Call
- func (_e *Client_Expecter) GetSubscriptions(ctx interface{}) *Client_GetSubscriptions_Call
- func (_e *Client_Expecter) PatchApply(ctx interface{}, object interface{}) *Client_PatchApply_Call
- func (_e *Client_Expecter) PatchApplyPeerAuthentication(ctx interface{}, authentication interface{}) *Client_PatchApplyPeerAuthentication_Call
- func (_e *Client_Expecter) PeerAuthenticationCRDExists(ctx interface{}) *Client_PeerAuthenticationCRDExists_Call
- func (_e *Client_Expecter) UpdateDeployment(ctx interface{}, deployment interface{}) *Client_UpdateDeployment_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(ctx context.Context, name string)) *Client_GetCRD_Call
- func (_c *Client_GetCRD_Call) RunAndReturn(run func(context.Context, string) (*v1.CustomResourceDefinition, error)) *Client_GetCRD_Call
- type Client_GetConfigMap_Call
- func (_c *Client_GetConfigMap_Call) Return(_a0 *corev1.ConfigMap, _a1 error) *Client_GetConfigMap_Call
- func (_c *Client_GetConfigMap_Call) Run(run func(ctx context.Context, name string, namespace string)) *Client_GetConfigMap_Call
- func (_c *Client_GetConfigMap_Call) RunAndReturn(run func(context.Context, string, string) (*corev1.ConfigMap, error)) *Client_GetConfigMap_Call
- type Client_GetDeploymentDynamic_Call
- func (_c *Client_GetDeploymentDynamic_Call) Return(_a0 *appsv1.Deployment, _a1 error) *Client_GetDeploymentDynamic_Call
- func (_c *Client_GetDeploymentDynamic_Call) Run(run func(ctx context.Context, name string, namespace string)) *Client_GetDeploymentDynamic_Call
- func (_c *Client_GetDeploymentDynamic_Call) RunAndReturn(run func(context.Context, string, string) (*appsv1.Deployment, error)) *Client_GetDeploymentDynamic_Call
- type Client_GetDeployment_Call
- func (_c *Client_GetDeployment_Call) Return(_a0 *appsv1.Deployment, _a1 error) *Client_GetDeployment_Call
- func (_c *Client_GetDeployment_Call) Run(run func(ctx context.Context, name string, namespace string)) *Client_GetDeployment_Call
- func (_c *Client_GetDeployment_Call) RunAndReturn(run func(context.Context, string, string) (*appsv1.Deployment, error)) *Client_GetDeployment_Call
- type Client_GetNATSResources_Call
- func (_c *Client_GetNATSResources_Call) Return(_a0 *v1alpha1.NATSList, _a1 error) *Client_GetNATSResources_Call
- func (_c *Client_GetNATSResources_Call) Run(run func(ctx context.Context, namespace string)) *Client_GetNATSResources_Call
- func (_c *Client_GetNATSResources_Call) RunAndReturn(run func(context.Context, string) (*v1alpha1.NATSList, error)) *Client_GetNATSResources_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(ctx context.Context, namespacedName string)) *Client_GetSecret_Call
- func (_c *Client_GetSecret_Call) RunAndReturn(run func(context.Context, string) (*corev1.Secret, error)) *Client_GetSecret_Call
- type Client_GetSubscriptions_Call
- func (_c *Client_GetSubscriptions_Call) Return(_a0 *v1alpha2.SubscriptionList, _a1 error) *Client_GetSubscriptions_Call
- func (_c *Client_GetSubscriptions_Call) Run(run func(ctx context.Context)) *Client_GetSubscriptions_Call
- func (_c *Client_GetSubscriptions_Call) RunAndReturn(run func(context.Context) (*v1alpha2.SubscriptionList, error)) *Client_GetSubscriptions_Call
- type Client_PatchApplyPeerAuthentication_Call
- func (_c *Client_PatchApplyPeerAuthentication_Call) Return(_a0 error) *Client_PatchApplyPeerAuthentication_Call
- func (_c *Client_PatchApplyPeerAuthentication_Call) Run(run func(ctx context.Context, authentication *v1beta1.PeerAuthentication)) *Client_PatchApplyPeerAuthentication_Call
- func (_c *Client_PatchApplyPeerAuthentication_Call) RunAndReturn(run func(context.Context, *v1beta1.PeerAuthentication) error) *Client_PatchApplyPeerAuthentication_Call
- type Client_PatchApply_Call
- func (_c *Client_PatchApply_Call) Return(_a0 error) *Client_PatchApply_Call
- func (_c *Client_PatchApply_Call) Run(run func(ctx context.Context, object client.Object)) *Client_PatchApply_Call
- func (_c *Client_PatchApply_Call) RunAndReturn(run func(context.Context, client.Object) error) *Client_PatchApply_Call
- type Client_PeerAuthenticationCRDExists_Call
- func (_c *Client_PeerAuthenticationCRDExists_Call) Return(_a0 bool, _a1 error) *Client_PeerAuthenticationCRDExists_Call
- func (_c *Client_PeerAuthenticationCRDExists_Call) Run(run func(ctx context.Context)) *Client_PeerAuthenticationCRDExists_Call
- func (_c *Client_PeerAuthenticationCRDExists_Call) RunAndReturn(run func(context.Context) (bool, error)) *Client_PeerAuthenticationCRDExists_Call
- type Client_UpdateDeployment_Call
- func (_c *Client_UpdateDeployment_Call) Return(_a0 error) *Client_UpdateDeployment_Call
- func (_c *Client_UpdateDeployment_Call) Run(run func(ctx context.Context, deployment *appsv1.Deployment)) *Client_UpdateDeployment_Call
- func (_c *Client_UpdateDeployment_Call) RunAndReturn(run func(context.Context, *appsv1.Deployment) error) *Client_UpdateDeployment_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) APIRuleCRDExists ¶
APIRuleCRDExists provides a mock function with given fields: ctx
func (*Client) ApplicationCRDExists ¶
ApplicationCRDExists provides a mock function with given fields: ctx
func (*Client) DeleteClusterRole ¶
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 ¶
DeleteDeployment provides a mock function with given fields: ctx, name, namespace
func (*Client) DeleteResource ¶
DeleteResource provides a mock function with given fields: ctx, object
func (*Client) EXPECT ¶
func (_m *Client) EXPECT() *Client_Expecter
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 ¶
GetSecret provides a mock function with given fields: ctx, namespacedName
func (*Client) GetSubscriptions ¶
GetSubscriptions provides a mock function with given fields: ctx
func (*Client) PatchApply ¶
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 ¶
PeerAuthenticationCRDExists provides a mock function with given fields: ctx
func (*Client) UpdateDeployment ¶
UpdateDeployment provides a mock function with given fields: ctx, deployment
type Client_APIRuleCRDExists_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 (_c *Client_APIRuleCRDExists_Call) Return(_a0 bool, _a1 error) *Client_APIRuleCRDExists_Call
func (*Client_APIRuleCRDExists_Call) Run ¶
func (_c *Client_APIRuleCRDExists_Call) Run(run func(ctx context.Context)) *Client_APIRuleCRDExists_Call
func (*Client_APIRuleCRDExists_Call) RunAndReturn ¶
func (_c *Client_APIRuleCRDExists_Call) RunAndReturn(run func(context.Context) (bool, error)) *Client_APIRuleCRDExists_Call
type Client_ApplicationCRDExists_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 (_c *Client_ApplicationCRDExists_Call) Return(_a0 bool, _a1 error) *Client_ApplicationCRDExists_Call
func (*Client_ApplicationCRDExists_Call) Run ¶
func (_c *Client_ApplicationCRDExists_Call) Run(run func(ctx context.Context)) *Client_ApplicationCRDExists_Call
func (*Client_ApplicationCRDExists_Call) RunAndReturn ¶
func (_c *Client_ApplicationCRDExists_Call) RunAndReturn(run func(context.Context) (bool, error)) *Client_ApplicationCRDExists_Call
type Client_DeleteClusterRoleBinding_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 (_c *Client_DeleteClusterRoleBinding_Call) Return(_a0 error) *Client_DeleteClusterRoleBinding_Call
func (*Client_DeleteClusterRoleBinding_Call) Run ¶
func (_c *Client_DeleteClusterRoleBinding_Call) Run(run func(ctx context.Context, name string, namespace string)) *Client_DeleteClusterRoleBinding_Call
func (*Client_DeleteClusterRoleBinding_Call) RunAndReturn ¶
func (_c *Client_DeleteClusterRoleBinding_Call) RunAndReturn(run func(context.Context, string, string) error) *Client_DeleteClusterRoleBinding_Call
type Client_DeleteClusterRole_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 (_c *Client_DeleteClusterRole_Call) Return(_a0 error) *Client_DeleteClusterRole_Call
func (*Client_DeleteClusterRole_Call) Run ¶
func (_c *Client_DeleteClusterRole_Call) Run(run func(ctx context.Context, name string, namespace string)) *Client_DeleteClusterRole_Call
func (*Client_DeleteClusterRole_Call) RunAndReturn ¶
func (_c *Client_DeleteClusterRole_Call) RunAndReturn(run func(context.Context, string, string) error) *Client_DeleteClusterRole_Call
type Client_DeleteDeployment_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 (_c *Client_DeleteDeployment_Call) Return(_a0 error) *Client_DeleteDeployment_Call
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 ¶
func (_c *Client_DeleteDeployment_Call) RunAndReturn(run func(context.Context, string, string) error) *Client_DeleteDeployment_Call
type Client_DeleteResource_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 (_c *Client_DeleteResource_Call) Return(_a0 error) *Client_DeleteResource_Call
func (*Client_DeleteResource_Call) Run ¶
func (_c *Client_DeleteResource_Call) Run(run func(ctx context.Context, object client.Object)) *Client_DeleteResource_Call
func (*Client_DeleteResource_Call) RunAndReturn ¶
func (_c *Client_DeleteResource_Call) RunAndReturn(run func(context.Context, client.Object) error) *Client_DeleteResource_Call
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 ¶
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(ctx context.Context, name 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_GetConfigMap_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 (_c *Client_GetConfigMap_Call) Return(_a0 *corev1.ConfigMap, _a1 error) *Client_GetConfigMap_Call
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 ¶
func (_c *Client_GetConfigMap_Call) RunAndReturn(run func(context.Context, string, string) (*corev1.ConfigMap, error)) *Client_GetConfigMap_Call
type Client_GetDeploymentDynamic_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 (_c *Client_GetDeploymentDynamic_Call) Return(_a0 *appsv1.Deployment, _a1 error) *Client_GetDeploymentDynamic_Call
func (*Client_GetDeploymentDynamic_Call) Run ¶
func (_c *Client_GetDeploymentDynamic_Call) Run(run func(ctx context.Context, name string, namespace string)) *Client_GetDeploymentDynamic_Call
func (*Client_GetDeploymentDynamic_Call) RunAndReturn ¶
func (_c *Client_GetDeploymentDynamic_Call) RunAndReturn(run func(context.Context, string, string) (*appsv1.Deployment, error)) *Client_GetDeploymentDynamic_Call
type Client_GetDeployment_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 (_c *Client_GetDeployment_Call) Return(_a0 *appsv1.Deployment, _a1 error) *Client_GetDeployment_Call
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 ¶
func (_c *Client_GetDeployment_Call) RunAndReturn(run func(context.Context, string, string) (*appsv1.Deployment, error)) *Client_GetDeployment_Call
type Client_GetNATSResources_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 (_c *Client_GetNATSResources_Call) Return(_a0 *v1alpha1.NATSList, _a1 error) *Client_GetNATSResources_Call
func (*Client_GetNATSResources_Call) Run ¶
func (_c *Client_GetNATSResources_Call) Run(run func(ctx context.Context, namespace string)) *Client_GetNATSResources_Call
func (*Client_GetNATSResources_Call) RunAndReturn ¶
func (_c *Client_GetNATSResources_Call) RunAndReturn(run func(context.Context, string) (*v1alpha1.NATSList, error)) *Client_GetNATSResources_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(ctx context.Context, namespacedName string)) *Client_GetSecret_Call
func (*Client_GetSecret_Call) RunAndReturn ¶
func (_c *Client_GetSecret_Call) RunAndReturn(run func(context.Context, string) (*corev1.Secret, error)) *Client_GetSecret_Call
type Client_GetSubscriptions_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 (_c *Client_GetSubscriptions_Call) Return(_a0 *v1alpha2.SubscriptionList, _a1 error) *Client_GetSubscriptions_Call
func (*Client_GetSubscriptions_Call) Run ¶
func (_c *Client_GetSubscriptions_Call) Run(run func(ctx context.Context)) *Client_GetSubscriptions_Call
func (*Client_GetSubscriptions_Call) RunAndReturn ¶
func (_c *Client_GetSubscriptions_Call) RunAndReturn(run func(context.Context) (*v1alpha2.SubscriptionList, error)) *Client_GetSubscriptions_Call
type Client_PatchApplyPeerAuthentication_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 (_c *Client_PatchApplyPeerAuthentication_Call) Return(_a0 error) *Client_PatchApplyPeerAuthentication_Call
func (*Client_PatchApplyPeerAuthentication_Call) Run ¶
func (_c *Client_PatchApplyPeerAuthentication_Call) Run(run func(ctx context.Context, authentication *v1beta1.PeerAuthentication)) *Client_PatchApplyPeerAuthentication_Call
func (*Client_PatchApplyPeerAuthentication_Call) RunAndReturn ¶
func (_c *Client_PatchApplyPeerAuthentication_Call) RunAndReturn(run func(context.Context, *v1beta1.PeerAuthentication) error) *Client_PatchApplyPeerAuthentication_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(ctx context.Context, object client.Object)) *Client_PatchApply_Call
func (*Client_PatchApply_Call) RunAndReturn ¶
func (_c *Client_PatchApply_Call) RunAndReturn(run func(context.Context, client.Object) error) *Client_PatchApply_Call
type Client_PeerAuthenticationCRDExists_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 (_c *Client_PeerAuthenticationCRDExists_Call) Return(_a0 bool, _a1 error) *Client_PeerAuthenticationCRDExists_Call
func (*Client_PeerAuthenticationCRDExists_Call) Run ¶
func (_c *Client_PeerAuthenticationCRDExists_Call) Run(run func(ctx context.Context)) *Client_PeerAuthenticationCRDExists_Call
func (*Client_PeerAuthenticationCRDExists_Call) RunAndReturn ¶
func (_c *Client_PeerAuthenticationCRDExists_Call) RunAndReturn(run func(context.Context) (bool, error)) *Client_PeerAuthenticationCRDExists_Call
type Client_UpdateDeployment_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 (_c *Client_UpdateDeployment_Call) Return(_a0 error) *Client_UpdateDeployment_Call
func (*Client_UpdateDeployment_Call) Run ¶
func (_c *Client_UpdateDeployment_Call) Run(run func(ctx context.Context, deployment *appsv1.Deployment)) *Client_UpdateDeployment_Call
func (*Client_UpdateDeployment_Call) RunAndReturn ¶
func (_c *Client_UpdateDeployment_Call) RunAndReturn(run func(context.Context, *appsv1.Deployment) error) *Client_UpdateDeployment_Call