mocks

package
v0.0.0-...-0585a07 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2024 License: Apache-2.0 Imports: 5 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) 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) GetConfigMap

func (_m *Client) GetConfigMap(ctx context.Context, name string, namespace string) (*v1.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) GetSecret

func (_m *Client) GetSecret(ctx context.Context, name string, namespace string) (*v1.Secret, error)

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

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) UpdateDeployment

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

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

Jump to

Keyboard shortcuts

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