Documentation
¶
Index ¶
- type ClientWithResponsesInterface
- func (_m *ClientWithResponsesInterface) CreateTaskWithBodyWithResponse(ctx context.Context, params *oapigen.CreateTaskParams, contentType string, ...) (*oapigen.CreateTaskResponse, error)
- func (_m *ClientWithResponsesInterface) CreateTaskWithResponse(ctx context.Context, params *oapigen.CreateTaskParams, ...) (*oapigen.CreateTaskResponse, error)
- func (_m *ClientWithResponsesInterface) DeleteTaskByNameWithResponse(ctx context.Context, name string, reqEditors ...oapigen.RequestEditorFn) (*oapigen.DeleteTaskByNameResponse, error)
- func (_m *ClientWithResponsesInterface) GetAllTasksWithResponse(ctx context.Context, reqEditors ...oapigen.RequestEditorFn) (*oapigen.GetAllTasksResponse, error)
- func (_m *ClientWithResponsesInterface) GetHealthWithResponse(ctx context.Context, reqEditors ...oapigen.RequestEditorFn) (*oapigen.GetHealthResponse, error)
- func (_m *ClientWithResponsesInterface) GetTaskByNameWithResponse(ctx context.Context, name string, reqEditors ...oapigen.RequestEditorFn) (*oapigen.GetTaskByNameResponse, error)
- type HttpClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientWithResponsesInterface ¶ added in v0.6.0
ClientWithResponsesInterface is an autogenerated mock type for the ClientWithResponsesInterface type
func NewClientWithResponsesInterface ¶ added in v0.6.0
func NewClientWithResponsesInterface(t testing.TB) *ClientWithResponsesInterface
NewClientWithResponsesInterface creates a new instance of ClientWithResponsesInterface. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.
func (*ClientWithResponsesInterface) CreateTaskWithBodyWithResponse ¶ added in v0.6.0
func (_m *ClientWithResponsesInterface) CreateTaskWithBodyWithResponse(ctx context.Context, params *oapigen.CreateTaskParams, contentType string, body io.Reader, reqEditors ...oapigen.RequestEditorFn) (*oapigen.CreateTaskResponse, error)
CreateTaskWithBodyWithResponse provides a mock function with given fields: ctx, params, contentType, body, reqEditors
func (*ClientWithResponsesInterface) CreateTaskWithResponse ¶ added in v0.6.0
func (_m *ClientWithResponsesInterface) CreateTaskWithResponse(ctx context.Context, params *oapigen.CreateTaskParams, body oapigen.CreateTaskJSONRequestBody, reqEditors ...oapigen.RequestEditorFn) (*oapigen.CreateTaskResponse, error)
CreateTaskWithResponse provides a mock function with given fields: ctx, params, body, reqEditors
func (*ClientWithResponsesInterface) DeleteTaskByNameWithResponse ¶ added in v0.6.0
func (_m *ClientWithResponsesInterface) DeleteTaskByNameWithResponse(ctx context.Context, name string, reqEditors ...oapigen.RequestEditorFn) (*oapigen.DeleteTaskByNameResponse, error)
DeleteTaskByNameWithResponse provides a mock function with given fields: ctx, name, reqEditors
func (*ClientWithResponsesInterface) GetAllTasksWithResponse ¶ added in v0.6.0
func (_m *ClientWithResponsesInterface) GetAllTasksWithResponse(ctx context.Context, reqEditors ...oapigen.RequestEditorFn) (*oapigen.GetAllTasksResponse, error)
GetAllTasksWithResponse provides a mock function with given fields: ctx, reqEditors
func (*ClientWithResponsesInterface) GetHealthWithResponse ¶ added in v0.6.0
func (_m *ClientWithResponsesInterface) GetHealthWithResponse(ctx context.Context, reqEditors ...oapigen.RequestEditorFn) (*oapigen.GetHealthResponse, error)
GetHealthWithResponse provides a mock function with given fields: ctx, reqEditors
func (*ClientWithResponsesInterface) GetTaskByNameWithResponse ¶ added in v0.6.0
func (_m *ClientWithResponsesInterface) GetTaskByNameWithResponse(ctx context.Context, name string, reqEditors ...oapigen.RequestEditorFn) (*oapigen.GetTaskByNameResponse, error)
GetTaskByNameWithResponse provides a mock function with given fields: ctx, name, reqEditors
type HttpClient ¶
HttpClient is an autogenerated mock type for the httpClient type
func NewHttpClient ¶ added in v0.6.0
func NewHttpClient(t testing.TB) *HttpClient
NewHttpClient creates a new instance of HttpClient. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.