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) GetClusterStatusWithResponse(ctx context.Context, reqEditors ...oapigen.RequestEditorFn) (*oapigen.GetClusterStatusResponse, 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
- type Interceptor
- type Interceptor_Expecter
- type Interceptor_Intercept_Call
- type Interceptor_ShouldIntercept_Call
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 mockConstructorTestingTNewClientWithResponsesInterface) *ClientWithResponsesInterface
NewClientWithResponsesInterface creates a new instance of ClientWithResponsesInterface. It also registers a testing 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.TaskRequest, 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) GetClusterStatusWithResponse ¶ added in v0.7.0
func (_m *ClientWithResponsesInterface) GetClusterStatusWithResponse(ctx context.Context, reqEditors ...oapigen.RequestEditorFn) (*oapigen.GetClusterStatusResponse, error)
GetClusterStatusWithResponse 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 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.
type Interceptor ¶ added in v0.7.0
Interceptor is an autogenerated mock type for the Interceptor type
func NewInterceptor ¶ added in v0.7.0
func NewInterceptor(t mockConstructorTestingTNewInterceptor) *Interceptor
NewInterceptor creates a new instance of Interceptor. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Interceptor) EXPECT ¶ added in v0.7.0
func (_m *Interceptor) EXPECT() *Interceptor_Expecter
func (*Interceptor) Intercept ¶ added in v0.7.0
func (_m *Interceptor) Intercept(_a0 http.ResponseWriter, _a1 *http.Request)
Intercept provides a mock function with given fields: _a0, _a1
func (*Interceptor) ShouldIntercept ¶ added in v0.7.0
func (_m *Interceptor) ShouldIntercept(_a0 *http.Request) bool
ShouldIntercept provides a mock function with given fields: _a0
type Interceptor_Expecter ¶ added in v0.7.0
type Interceptor_Expecter struct {
// contains filtered or unexported fields
}
func (*Interceptor_Expecter) Intercept ¶ added in v0.7.0
func (_e *Interceptor_Expecter) Intercept(_a0 interface{}, _a1 interface{}) *Interceptor_Intercept_Call
Intercept is a helper method to define mock.On call
- _a0 http.ResponseWriter
- _a1 *http.Request
func (*Interceptor_Expecter) ShouldIntercept ¶ added in v0.7.0
func (_e *Interceptor_Expecter) ShouldIntercept(_a0 interface{}) *Interceptor_ShouldIntercept_Call
ShouldIntercept is a helper method to define mock.On call
- _a0 *http.Request
type Interceptor_Intercept_Call ¶ added in v0.7.0
Interceptor_Intercept_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Intercept'
func (*Interceptor_Intercept_Call) Return ¶ added in v0.7.0
func (_c *Interceptor_Intercept_Call) Return() *Interceptor_Intercept_Call
func (*Interceptor_Intercept_Call) Run ¶ added in v0.7.0
func (_c *Interceptor_Intercept_Call) Run(run func(_a0 http.ResponseWriter, _a1 *http.Request)) *Interceptor_Intercept_Call
type Interceptor_ShouldIntercept_Call ¶ added in v0.7.0
Interceptor_ShouldIntercept_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ShouldIntercept'
func (*Interceptor_ShouldIntercept_Call) Return ¶ added in v0.7.0
func (_c *Interceptor_ShouldIntercept_Call) Return(_a0 bool) *Interceptor_ShouldIntercept_Call
func (*Interceptor_ShouldIntercept_Call) Run ¶ added in v0.7.0
func (_c *Interceptor_ShouldIntercept_Call) Run(run func(_a0 *http.Request)) *Interceptor_ShouldIntercept_Call