Documentation
¶
Index ¶
- type Client
- func (_m *Client) APIVersion() uint8
- func (_m *Client) Delete(ctx context.Context, path string, id string, params api.OrderedValues, ...) error
- func (_m *Client) Do(ctx context.Context, method string, path string, id string, ...) error
- func (_m *Client) DoWithHeaders(ctx context.Context, method string, path string, id string, ...) error
- func (_m *Client) Get(ctx context.Context, path string, id string, params api.OrderedValues, ...) error
- func (_m *Client) GetAuthToken() string
- func (_m *Client) GetCSRFToken() string
- func (_m *Client) GetReferer() string
- func (_m *Client) Group() string
- func (_m *Client) Post(ctx context.Context, path string, id string, params api.OrderedValues, ...) error
- func (_m *Client) Put(ctx context.Context, path string, id string, params api.OrderedValues, ...) error
- func (_m *Client) SetAuthToken(token string)
- func (_m *Client) SetCSRFToken(csrf string)
- func (_m *Client) SetReferer(referer string)
- func (_m *Client) User() string
- func (_m *Client) VolumePath(name string) string
- func (_m *Client) VolumesPath() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is an autogenerated mock type for the Client type
func NewClient ¶
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 ¶
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 ¶
GetAuthToken provides a mock function with no fields
func (*Client) GetCSRFToken ¶
GetCSRFToken provides a mock function with no fields
func (*Client) GetReferer ¶
GetReferer 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 ¶
SetAuthToken provides a mock function with given fields: token
func (*Client) SetCSRFToken ¶
SetCSRFToken provides a mock function with given fields: csrf
func (*Client) SetReferer ¶
SetReferer provides a mock function with given fields: referer
func (*Client) VolumePath ¶
VolumePath provides a mock function with given fields: name
func (*Client) VolumesPath ¶
VolumesPath provides a mock function with no fields