mocks

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 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
	// contains filtered or unexported fields
}

Client is an autogenerated mock type for the Client type

func NewClient added in v1.16.0

func NewClient(t mockConstructorTestingTNewClient) *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.

func (*Client) Create

func (_m *Client) Create(ctx context.Context, obj client.Object, opts ...client.CreateOption) error

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

func (*Client) Delete

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

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

func (*Client) DeleteAllOf

func (_m *Client) DeleteAllOf(ctx context.Context, obj client.Object, opts ...client.DeleteAllOfOption) error

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

func (*Client) Get

func (_m *Client) Get(ctx context.Context, key types.NamespacedName, obj client.Object, opts ...client.GetOption) error

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

func (*Client) List

func (_m *Client) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error

List provides a mock function with given fields: ctx, list, opts

func (*Client) Patch

func (_m *Client) Patch(ctx context.Context, obj client.Object, patch client.Patch, opts ...client.PatchOption) error

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

func (*Client) RESTMapper

func (_m *Client) RESTMapper() meta.RESTMapper

RESTMapper provides a mock function with given fields:

func (*Client) Scheme

func (_m *Client) Scheme() *runtime.Scheme

Scheme provides a mock function with given fields:

func (*Client) Status

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

Status provides a mock function with given fields. Overrides normal mock functionality (can't be asserted)

func (*Client) SubResource added in v1.16.0

func (_m *Client) SubResource(subResource string) client.SubResourceClient

SubResource provides a mock function with given fields: subResource. Overrides normal mock functionality (can't be asserted)

func (*Client) Update

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

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

type HttpClient

type HttpClient struct {
	mock.Mock
}

HttpClient is an autogenerated mock type for the HttpClient type

func NewHttpClient added in v1.16.0

func NewHttpClient(t mockConstructorTestingTNewHttpClient) *HttpClient

NewHttpClient creates a new instance of HttpClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*HttpClient) Do

func (_m *HttpClient) Do(req *http.Request) (*http.Response, error)

Do provides a mock function with given fields: req

type SubResourceClient added in v1.16.0

type SubResourceClient struct {
	mock.Mock
}

SubResourceClient is an autogenerated mock type for the SubResourceClient type

func NewSubResourceClient added in v1.16.0

func NewSubResourceClient(t mockConstructorTestingTNewSubResourceClient) *SubResourceClient

NewSubResourceClient creates a new instance of SubResourceClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*SubResourceClient) Create added in v1.16.0

func (_m *SubResourceClient) Create(ctx context.Context, obj client.Object, subResource client.Object, opts ...client.SubResourceCreateOption) error

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

func (*SubResourceClient) Get added in v1.16.0

func (_m *SubResourceClient) Get(ctx context.Context, obj client.Object, subResource client.Object, opts ...client.SubResourceGetOption) error

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

func (*SubResourceClient) Patch added in v1.16.0

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

func (*SubResourceClient) Update added in v1.16.0

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