mocks

package
v1.21.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2026 License: Apache-2.0 Imports: 3 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) APIVersion

func (_m *Client) APIVersion() uint8

APIVersion provides a mock function with no fields

func (*Client) Delete

func (_m *Client) Delete(ctx context.Context, path string, id string, params api.OrderedValues, headers map[string]string, resp interface{}) error

Delete provides a mock function with given fields: ctx, path, id, params, headers, resp

func (*Client) Do

func (_m *Client) Do(ctx context.Context, method string, path string, id string, params api.OrderedValues, body interface{}, resp interface{}) error

Do provides a mock function with given fields: ctx, method, path, id, params, body, resp

func (*Client) DoWithHeaders

func (_m *Client) DoWithHeaders(ctx context.Context, method string, path string, id string, params api.OrderedValues, headers map[string]string, body interface{}, resp interface{}) error

DoWithHeaders provides a mock function with given fields: ctx, method, path, id, params, headers, body, resp

func (*Client) Get

func (_m *Client) Get(ctx context.Context, path string, id string, params api.OrderedValues, headers map[string]string, resp interface{}) error

Get provides a mock function with given fields: ctx, path, id, params, headers, resp

func (*Client) GetAuthToken

func (_m *Client) GetAuthToken() string

GetAuthToken provides a mock function with no fields

func (*Client) GetCSRFToken

func (_m *Client) GetCSRFToken() string

GetCSRFToken provides a mock function with no fields

func (*Client) GetReferer

func (_m *Client) GetReferer() string

GetReferer provides a mock function with no fields

func (*Client) Group

func (_m *Client) Group() string

Group provides a mock function with no fields

func (*Client) Post

func (_m *Client) Post(ctx context.Context, path string, id string, params api.OrderedValues, headers map[string]string, body interface{}, resp interface{}) error

Post provides a mock function with given fields: ctx, path, id, params, headers, body, resp

func (*Client) Put

func (_m *Client) Put(ctx context.Context, path string, id string, params api.OrderedValues, headers map[string]string, body interface{}, resp interface{}) error

Put provides a mock function with given fields: ctx, path, id, params, headers, body, resp

func (*Client) SetAuthToken

func (_m *Client) SetAuthToken(token string)

SetAuthToken provides a mock function with given fields: token

func (*Client) SetCSRFToken

func (_m *Client) SetCSRFToken(csrf string)

SetCSRFToken provides a mock function with given fields: csrf

func (*Client) SetReferer

func (_m *Client) SetReferer(referer string)

SetReferer provides a mock function with given fields: referer

func (*Client) User

func (_m *Client) User() string

User provides a mock function with no fields

func (*Client) VolumePath

func (_m *Client) VolumePath(name string) string

VolumePath provides a mock function with given fields: name

func (*Client) VolumesPath

func (_m *Client) VolumesPath() string

VolumesPath provides a mock function with no fields

Jump to

Keyboard shortcuts

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