automock

package
v0.0.0-...-696ba86 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 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) 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 client.ObjectList) 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 NewK8sClient

func NewK8sClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *K8sClient

NewK8sClient creates a new instance of K8sClient. 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 (*K8sClient) Create

func (_m *K8sClient) Create(_a0 context.Context, _a1 client.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 client.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 client.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 client.ObjectList, _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 client.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