automock

package
v0.0.0-...-cc7cbc4 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2021 License: Apache-2.0 Imports: 7 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 (*Client) Create

func (_m *Client) Create(ctx context.Context, object resource.Object) error

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

func (*Client) CreateWithReference

func (_m *Client) CreateWithReference(ctx context.Context, parent resource.Object, object resource.Object) error

CreateWithReference provides a mock function with given fields: ctx, parent, object

func (*Client) Delete

func (_m *Client) Delete(ctx context.Context, resourceType resource.Object) error

Delete provides a mock function with given fields: ctx, resourceType

func (*Client) DeleteAllBySelector

func (_m *Client) DeleteAllBySelector(ctx context.Context, resourceType resource.Object, namespace string, selector labels.Selector) error

DeleteAllBySelector provides a mock function with given fields: ctx, resourceType, namespace, selector

func (*Client) Get

func (_m *Client) Get(ctx context.Context, key types.NamespacedName, object resource.Object) error

Get provides a mock function with given fields: ctx, key, object

func (*Client) ListByLabel

func (_m *Client) ListByLabel(ctx context.Context, namespace string, _a2 map[string]string, object runtime.Object) error

ListByLabel provides a mock function with given fields: ctx, namespace, _a2, object

func (*Client) Status

func (_m *Client) Status() client.StatusWriter

Status provides a mock function with given fields:

func (*Client) Update

func (_m *Client) Update(ctx context.Context, object resource.Object) error

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

type K8sClient

type K8sClient struct {
	mock.Mock
}

K8sClient is an autogenerated mock type for the K8sClient type

func (*K8sClient) Create

func (_m *K8sClient) Create(_a0 context.Context, _a1 runtime.Object, _a2 ...client.CreateOption) error

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

func (*K8sClient) Delete

func (_m *K8sClient) Delete(ctx context.Context, obj runtime.Object, opts ...client.DeleteOption) error

Delete provides a mock function with given fields: ctx, obj, opts

func (*K8sClient) DeleteAllOf

func (_m *K8sClient) DeleteAllOf(_a0 context.Context, _a1 runtime.Object, _a2 ...client.DeleteAllOfOption) error

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

func (*K8sClient) Get

Get provides a mock function with given fields: ctx, key, obj

func (*K8sClient) List

func (_m *K8sClient) List(_a0 context.Context, _a1 runtime.Object, _a2 ...client.ListOption) error

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

func (*K8sClient) Status

func (_m *K8sClient) Status() client.StatusWriter

Status provides a mock function with given fields:

func (*K8sClient) Update

func (_m *K8sClient) Update(ctx context.Context, obj runtime.Object, opts ...client.UpdateOption) error

Update provides a mock function with given fields: ctx, obj, opts

Jump to

Keyboard shortcuts

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