Documentation
¶
Index ¶
- type AddTaskCreated
- type AddTaskInternalServerError
- type AddTaskParams
- func (o *AddTaskParams) SetContext(ctx context.Context)
- func (o *AddTaskParams) SetHTTPClient(client *http.Client)
- func (o *AddTaskParams) SetTask(task *models.Task)
- func (o *AddTaskParams) SetTimeout(timeout time.Duration)
- func (o *AddTaskParams) WithContext(ctx context.Context) *AddTaskParams
- func (o *AddTaskParams) WithHTTPClient(client *http.Client) *AddTaskParams
- func (o *AddTaskParams) WithTask(task *models.Task) *AddTaskParams
- func (o *AddTaskParams) WithTimeout(timeout time.Duration) *AddTaskParams
- func (o *AddTaskParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AddTaskReader
- type AddTaskUnauthorized
- type Client
- func (a *Client) AddTask(params *AddTaskParams, authInfo runtime.ClientAuthInfoWriter) (*AddTaskCreated, error)
- func (a *Client) GetTask(params *GetTaskParams, authInfo runtime.ClientAuthInfoWriter) (*GetTaskOK, error)
- func (a *Client) GetTasks(params *GetTasksParams, authInfo runtime.ClientAuthInfoWriter) (*GetTasksOK, error)
- func (a *Client) RemoveTask(params *RemoveTaskParams, authInfo runtime.ClientAuthInfoWriter) (*RemoveTaskNoContent, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateTaskState(params *UpdateTaskStateParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateTaskStateNoContent, error)
- func (a *Client) WatchTask(params *WatchTaskParams, authInfo runtime.ClientAuthInfoWriter) (*WatchTaskOK, error)
- type GetTaskNotFound
- type GetTaskOK
- type GetTaskParams
- func (o *GetTaskParams) SetContext(ctx context.Context)
- func (o *GetTaskParams) SetHTTPClient(client *http.Client)
- func (o *GetTaskParams) SetID(id string)
- func (o *GetTaskParams) SetTimeout(timeout time.Duration)
- func (o *GetTaskParams) WithContext(ctx context.Context) *GetTaskParams
- func (o *GetTaskParams) WithHTTPClient(client *http.Client) *GetTaskParams
- func (o *GetTaskParams) WithID(id string) *GetTaskParams
- func (o *GetTaskParams) WithTimeout(timeout time.Duration) *GetTaskParams
- func (o *GetTaskParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetTaskReader
- type GetTaskUnauthorized
- type GetTasksOK
- type GetTasksOKBody
- type GetTasksParams
- func (o *GetTasksParams) SetContext(ctx context.Context)
- func (o *GetTasksParams) SetHTTPClient(client *http.Client)
- func (o *GetTasksParams) SetTimeout(timeout time.Duration)
- func (o *GetTasksParams) WithContext(ctx context.Context) *GetTasksParams
- func (o *GetTasksParams) WithHTTPClient(client *http.Client) *GetTasksParams
- func (o *GetTasksParams) WithTimeout(timeout time.Duration) *GetTasksParams
- func (o *GetTasksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetTasksReader
- type GetTasksUnauthorized
- type RemoveTaskInternalServerError
- type RemoveTaskNoContent
- type RemoveTaskNotFound
- type RemoveTaskParams
- func (o *RemoveTaskParams) SetContext(ctx context.Context)
- func (o *RemoveTaskParams) SetHTTPClient(client *http.Client)
- func (o *RemoveTaskParams) SetID(id string)
- func (o *RemoveTaskParams) SetTimeout(timeout time.Duration)
- func (o *RemoveTaskParams) WithContext(ctx context.Context) *RemoveTaskParams
- func (o *RemoveTaskParams) WithHTTPClient(client *http.Client) *RemoveTaskParams
- func (o *RemoveTaskParams) WithID(id string) *RemoveTaskParams
- func (o *RemoveTaskParams) WithTimeout(timeout time.Duration) *RemoveTaskParams
- func (o *RemoveTaskParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RemoveTaskReader
- type RemoveTaskUnauthorized
- type UpdateTaskStateBadRequest
- type UpdateTaskStateConflict
- type UpdateTaskStateInternalServerError
- type UpdateTaskStateNoContent
- type UpdateTaskStateParams
- func NewUpdateTaskStateParams() *UpdateTaskStateParams
- func NewUpdateTaskStateParamsWithContext(ctx context.Context) *UpdateTaskStateParams
- func NewUpdateTaskStateParamsWithHTTPClient(client *http.Client) *UpdateTaskStateParams
- func NewUpdateTaskStateParamsWithTimeout(timeout time.Duration) *UpdateTaskStateParams
- func (o *UpdateTaskStateParams) SetAction(action string)
- func (o *UpdateTaskStateParams) SetContext(ctx context.Context)
- func (o *UpdateTaskStateParams) SetHTTPClient(client *http.Client)
- func (o *UpdateTaskStateParams) SetID(id string)
- func (o *UpdateTaskStateParams) SetTimeout(timeout time.Duration)
- func (o *UpdateTaskStateParams) WithAction(action string) *UpdateTaskStateParams
- func (o *UpdateTaskStateParams) WithContext(ctx context.Context) *UpdateTaskStateParams
- func (o *UpdateTaskStateParams) WithHTTPClient(client *http.Client) *UpdateTaskStateParams
- func (o *UpdateTaskStateParams) WithID(id string) *UpdateTaskStateParams
- func (o *UpdateTaskStateParams) WithTimeout(timeout time.Duration) *UpdateTaskStateParams
- func (o *UpdateTaskStateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateTaskStateReader
- type UpdateTaskStateUnauthorized
- type WatchTaskInternalServerError
- type WatchTaskNotFound
- type WatchTaskOK
- type WatchTaskOKBody
- type WatchTaskParams
- func (o *WatchTaskParams) SetContext(ctx context.Context)
- func (o *WatchTaskParams) SetHTTPClient(client *http.Client)
- func (o *WatchTaskParams) SetID(id string)
- func (o *WatchTaskParams) SetTimeout(timeout time.Duration)
- func (o *WatchTaskParams) WithContext(ctx context.Context) *WatchTaskParams
- func (o *WatchTaskParams) WithHTTPClient(client *http.Client) *WatchTaskParams
- func (o *WatchTaskParams) WithID(id string) *WatchTaskParams
- func (o *WatchTaskParams) WithTimeout(timeout time.Duration) *WatchTaskParams
- func (o *WatchTaskParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type WatchTaskReader
- type WatchTaskUnauthorized
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddTaskCreated ¶
AddTaskCreated handles this case with default header values.
TaskResponse returns a task.
func NewAddTaskCreated ¶
func NewAddTaskCreated() *AddTaskCreated
NewAddTaskCreated creates a AddTaskCreated with default headers values
func (*AddTaskCreated) Error ¶
func (o *AddTaskCreated) Error() string
type AddTaskInternalServerError ¶
AddTaskInternalServerError handles this case with default header values.
ErrorResponse represents the Snap error response type.
It includes an error message and a map of fields.
func NewAddTaskInternalServerError ¶
func NewAddTaskInternalServerError() *AddTaskInternalServerError
NewAddTaskInternalServerError creates a AddTaskInternalServerError with default headers values
func (*AddTaskInternalServerError) Error ¶
func (o *AddTaskInternalServerError) Error() string
type AddTaskParams ¶
type AddTaskParams struct { /*Task Create a task. */ Task *models.Task Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
AddTaskParams contains all the parameters to send to the API endpoint for the add task operation typically these are written to a http.Request
func NewAddTaskParams ¶
func NewAddTaskParams() *AddTaskParams
NewAddTaskParams creates a new AddTaskParams object with the default values initialized.
func NewAddTaskParamsWithContext ¶
func NewAddTaskParamsWithContext(ctx context.Context) *AddTaskParams
NewAddTaskParamsWithContext creates a new AddTaskParams object with the default values initialized, and the ability to set a context for a request
func NewAddTaskParamsWithHTTPClient ¶
func NewAddTaskParamsWithHTTPClient(client *http.Client) *AddTaskParams
NewAddTaskParamsWithHTTPClient creates a new AddTaskParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewAddTaskParamsWithTimeout ¶
func NewAddTaskParamsWithTimeout(timeout time.Duration) *AddTaskParams
NewAddTaskParamsWithTimeout creates a new AddTaskParams object with the default values initialized, and the ability to set a timeout on a request
func (*AddTaskParams) SetContext ¶
func (o *AddTaskParams) SetContext(ctx context.Context)
SetContext adds the context to the add task params
func (*AddTaskParams) SetHTTPClient ¶
func (o *AddTaskParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the add task params
func (*AddTaskParams) SetTask ¶
func (o *AddTaskParams) SetTask(task *models.Task)
SetTask adds the task to the add task params
func (*AddTaskParams) SetTimeout ¶
func (o *AddTaskParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the add task params
func (*AddTaskParams) WithContext ¶
func (o *AddTaskParams) WithContext(ctx context.Context) *AddTaskParams
WithContext adds the context to the add task params
func (*AddTaskParams) WithHTTPClient ¶
func (o *AddTaskParams) WithHTTPClient(client *http.Client) *AddTaskParams
WithHTTPClient adds the HTTPClient to the add task params
func (*AddTaskParams) WithTask ¶
func (o *AddTaskParams) WithTask(task *models.Task) *AddTaskParams
WithTask adds the task to the add task params
func (*AddTaskParams) WithTimeout ¶
func (o *AddTaskParams) WithTimeout(timeout time.Duration) *AddTaskParams
WithTimeout adds the timeout to the add task params
func (*AddTaskParams) WriteToRequest ¶
func (o *AddTaskParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type AddTaskReader ¶
type AddTaskReader struct {
// contains filtered or unexported fields
}
AddTaskReader is a Reader for the AddTask structure.
func (*AddTaskReader) ReadResponse ¶
func (o *AddTaskReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type AddTaskUnauthorized ¶
type AddTaskUnauthorized struct {
}AddTaskUnauthorized handles this case with default header values.
UnauthResponse returns Unauthorized error struct message.
func NewAddTaskUnauthorized ¶
func NewAddTaskUnauthorized() *AddTaskUnauthorized
NewAddTaskUnauthorized creates a AddTaskUnauthorized with default headers values
func (*AddTaskUnauthorized) Error ¶
func (o *AddTaskUnauthorized) Error() string
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for tasks API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new tasks API client.
func (*Client) AddTask ¶
func (a *Client) AddTask(params *AddTaskParams, authInfo runtime.ClientAuthInfoWriter) (*AddTaskCreated, error)
AddTask adds
A string representation of Snap task manifest is required.
func (*Client) GetTask ¶
func (a *Client) GetTask(params *GetTaskParams, authInfo runtime.ClientAuthInfoWriter) (*GetTaskOK, error)
GetTask gets
The task ID is required.
func (*Client) GetTasks ¶
func (a *Client) GetTasks(params *GetTasksParams, authInfo runtime.ClientAuthInfoWriter) (*GetTasksOK, error)
GetTasks gets all
An empty list returns if no tasks exist.
func (*Client) RemoveTask ¶
func (a *Client) RemoveTask(params *RemoveTaskParams, authInfo runtime.ClientAuthInfoWriter) (*RemoveTaskNoContent, error)
RemoveTask removes
The task ID is required.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateTaskState ¶
func (a *Client) UpdateTaskState(params *UpdateTaskStateParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateTaskStateNoContent, error)
UpdateTaskState enables start stop
The task ID is required.
func (*Client) WatchTask ¶
func (a *Client) WatchTask(params *WatchTaskParams, authInfo runtime.ClientAuthInfoWriter) (*WatchTaskOK, error)
WatchTask watches
The task ID is required.
type GetTaskNotFound ¶
GetTaskNotFound handles this case with default header values.
ErrorResponse represents the Snap error response type.
It includes an error message and a map of fields.
func NewGetTaskNotFound ¶
func NewGetTaskNotFound() *GetTaskNotFound
NewGetTaskNotFound creates a GetTaskNotFound with default headers values
func (*GetTaskNotFound) Error ¶
func (o *GetTaskNotFound) Error() string
type GetTaskOK ¶
GetTaskOK handles this case with default header values.
TaskResponse returns a task.
func NewGetTaskOK ¶
func NewGetTaskOK() *GetTaskOK
NewGetTaskOK creates a GetTaskOK with default headers values
type GetTaskParams ¶
type GetTaskParams struct { /*ID*/ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetTaskParams contains all the parameters to send to the API endpoint for the get task operation typically these are written to a http.Request
func NewGetTaskParams ¶
func NewGetTaskParams() *GetTaskParams
NewGetTaskParams creates a new GetTaskParams object with the default values initialized.
func NewGetTaskParamsWithContext ¶
func NewGetTaskParamsWithContext(ctx context.Context) *GetTaskParams
NewGetTaskParamsWithContext creates a new GetTaskParams object with the default values initialized, and the ability to set a context for a request
func NewGetTaskParamsWithHTTPClient ¶
func NewGetTaskParamsWithHTTPClient(client *http.Client) *GetTaskParams
NewGetTaskParamsWithHTTPClient creates a new GetTaskParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetTaskParamsWithTimeout ¶
func NewGetTaskParamsWithTimeout(timeout time.Duration) *GetTaskParams
NewGetTaskParamsWithTimeout creates a new GetTaskParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetTaskParams) SetContext ¶
func (o *GetTaskParams) SetContext(ctx context.Context)
SetContext adds the context to the get task params
func (*GetTaskParams) SetHTTPClient ¶
func (o *GetTaskParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get task params
func (*GetTaskParams) SetID ¶
func (o *GetTaskParams) SetID(id string)
SetID adds the id to the get task params
func (*GetTaskParams) SetTimeout ¶
func (o *GetTaskParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get task params
func (*GetTaskParams) WithContext ¶
func (o *GetTaskParams) WithContext(ctx context.Context) *GetTaskParams
WithContext adds the context to the get task params
func (*GetTaskParams) WithHTTPClient ¶
func (o *GetTaskParams) WithHTTPClient(client *http.Client) *GetTaskParams
WithHTTPClient adds the HTTPClient to the get task params
func (*GetTaskParams) WithID ¶
func (o *GetTaskParams) WithID(id string) *GetTaskParams
WithID adds the id to the get task params
func (*GetTaskParams) WithTimeout ¶
func (o *GetTaskParams) WithTimeout(timeout time.Duration) *GetTaskParams
WithTimeout adds the timeout to the get task params
func (*GetTaskParams) WriteToRequest ¶
func (o *GetTaskParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetTaskReader ¶
type GetTaskReader struct {
// contains filtered or unexported fields
}
GetTaskReader is a Reader for the GetTask structure.
func (*GetTaskReader) ReadResponse ¶
func (o *GetTaskReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetTaskUnauthorized ¶
type GetTaskUnauthorized struct {
}GetTaskUnauthorized handles this case with default header values.
UnauthResponse returns Unauthorized error struct message.
func NewGetTaskUnauthorized ¶
func NewGetTaskUnauthorized() *GetTaskUnauthorized
NewGetTaskUnauthorized creates a GetTaskUnauthorized with default headers values
func (*GetTaskUnauthorized) Error ¶
func (o *GetTaskUnauthorized) Error() string
type GetTasksOK ¶
type GetTasksOK struct {
Payload GetTasksOKBody
}
GetTasksOK handles this case with default header values.
TasksResponse returns a list of created tasks.
func NewGetTasksOK ¶
func NewGetTasksOK() *GetTasksOK
NewGetTasksOK creates a GetTasksOK with default headers values
func (*GetTasksOK) Error ¶
func (o *GetTasksOK) Error() string
type GetTasksOKBody ¶
GetTasksOKBody get tasks o k body swagger:model GetTasksOKBody
func (*GetTasksOKBody) MarshalBinary ¶
func (o *GetTasksOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetTasksOKBody) UnmarshalBinary ¶
func (o *GetTasksOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetTasksParams ¶
type GetTasksParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetTasksParams contains all the parameters to send to the API endpoint for the get tasks operation typically these are written to a http.Request
func NewGetTasksParams ¶
func NewGetTasksParams() *GetTasksParams
NewGetTasksParams creates a new GetTasksParams object with the default values initialized.
func NewGetTasksParamsWithContext ¶
func NewGetTasksParamsWithContext(ctx context.Context) *GetTasksParams
NewGetTasksParamsWithContext creates a new GetTasksParams object with the default values initialized, and the ability to set a context for a request
func NewGetTasksParamsWithHTTPClient ¶
func NewGetTasksParamsWithHTTPClient(client *http.Client) *GetTasksParams
NewGetTasksParamsWithHTTPClient creates a new GetTasksParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetTasksParamsWithTimeout ¶
func NewGetTasksParamsWithTimeout(timeout time.Duration) *GetTasksParams
NewGetTasksParamsWithTimeout creates a new GetTasksParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetTasksParams) SetContext ¶
func (o *GetTasksParams) SetContext(ctx context.Context)
SetContext adds the context to the get tasks params
func (*GetTasksParams) SetHTTPClient ¶
func (o *GetTasksParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get tasks params
func (*GetTasksParams) SetTimeout ¶
func (o *GetTasksParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get tasks params
func (*GetTasksParams) WithContext ¶
func (o *GetTasksParams) WithContext(ctx context.Context) *GetTasksParams
WithContext adds the context to the get tasks params
func (*GetTasksParams) WithHTTPClient ¶
func (o *GetTasksParams) WithHTTPClient(client *http.Client) *GetTasksParams
WithHTTPClient adds the HTTPClient to the get tasks params
func (*GetTasksParams) WithTimeout ¶
func (o *GetTasksParams) WithTimeout(timeout time.Duration) *GetTasksParams
WithTimeout adds the timeout to the get tasks params
func (*GetTasksParams) WriteToRequest ¶
func (o *GetTasksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetTasksReader ¶
type GetTasksReader struct {
// contains filtered or unexported fields
}
GetTasksReader is a Reader for the GetTasks structure.
func (*GetTasksReader) ReadResponse ¶
func (o *GetTasksReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetTasksUnauthorized ¶
type GetTasksUnauthorized struct {
}GetTasksUnauthorized handles this case with default header values.
UnauthResponse returns Unauthorized error struct message.
func NewGetTasksUnauthorized ¶
func NewGetTasksUnauthorized() *GetTasksUnauthorized
NewGetTasksUnauthorized creates a GetTasksUnauthorized with default headers values
func (*GetTasksUnauthorized) Error ¶
func (o *GetTasksUnauthorized) Error() string
type RemoveTaskInternalServerError ¶
type RemoveTaskInternalServerError struct { }
RemoveTaskInternalServerError handles this case with default header values.
TaskErrorResponse returns removing a task error.
func NewRemoveTaskInternalServerError ¶
func NewRemoveTaskInternalServerError() *RemoveTaskInternalServerError
NewRemoveTaskInternalServerError creates a RemoveTaskInternalServerError with default headers values
func (*RemoveTaskInternalServerError) Error ¶
func (o *RemoveTaskInternalServerError) Error() string
type RemoveTaskNoContent ¶
RemoveTaskNoContent handles this case with default header values.
TaskResponse returns a task.
func NewRemoveTaskNoContent ¶
func NewRemoveTaskNoContent() *RemoveTaskNoContent
NewRemoveTaskNoContent creates a RemoveTaskNoContent with default headers values
func (*RemoveTaskNoContent) Error ¶
func (o *RemoveTaskNoContent) Error() string
type RemoveTaskNotFound ¶
RemoveTaskNotFound handles this case with default header values.
ErrorResponse represents the Snap error response type.
It includes an error message and a map of fields.
func NewRemoveTaskNotFound ¶
func NewRemoveTaskNotFound() *RemoveTaskNotFound
NewRemoveTaskNotFound creates a RemoveTaskNotFound with default headers values
func (*RemoveTaskNotFound) Error ¶
func (o *RemoveTaskNotFound) Error() string
type RemoveTaskParams ¶
type RemoveTaskParams struct { /*ID*/ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RemoveTaskParams contains all the parameters to send to the API endpoint for the remove task operation typically these are written to a http.Request
func NewRemoveTaskParams ¶
func NewRemoveTaskParams() *RemoveTaskParams
NewRemoveTaskParams creates a new RemoveTaskParams object with the default values initialized.
func NewRemoveTaskParamsWithContext ¶
func NewRemoveTaskParamsWithContext(ctx context.Context) *RemoveTaskParams
NewRemoveTaskParamsWithContext creates a new RemoveTaskParams object with the default values initialized, and the ability to set a context for a request
func NewRemoveTaskParamsWithHTTPClient ¶
func NewRemoveTaskParamsWithHTTPClient(client *http.Client) *RemoveTaskParams
NewRemoveTaskParamsWithHTTPClient creates a new RemoveTaskParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewRemoveTaskParamsWithTimeout ¶
func NewRemoveTaskParamsWithTimeout(timeout time.Duration) *RemoveTaskParams
NewRemoveTaskParamsWithTimeout creates a new RemoveTaskParams object with the default values initialized, and the ability to set a timeout on a request
func (*RemoveTaskParams) SetContext ¶
func (o *RemoveTaskParams) SetContext(ctx context.Context)
SetContext adds the context to the remove task params
func (*RemoveTaskParams) SetHTTPClient ¶
func (o *RemoveTaskParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the remove task params
func (*RemoveTaskParams) SetID ¶
func (o *RemoveTaskParams) SetID(id string)
SetID adds the id to the remove task params
func (*RemoveTaskParams) SetTimeout ¶
func (o *RemoveTaskParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the remove task params
func (*RemoveTaskParams) WithContext ¶
func (o *RemoveTaskParams) WithContext(ctx context.Context) *RemoveTaskParams
WithContext adds the context to the remove task params
func (*RemoveTaskParams) WithHTTPClient ¶
func (o *RemoveTaskParams) WithHTTPClient(client *http.Client) *RemoveTaskParams
WithHTTPClient adds the HTTPClient to the remove task params
func (*RemoveTaskParams) WithID ¶
func (o *RemoveTaskParams) WithID(id string) *RemoveTaskParams
WithID adds the id to the remove task params
func (*RemoveTaskParams) WithTimeout ¶
func (o *RemoveTaskParams) WithTimeout(timeout time.Duration) *RemoveTaskParams
WithTimeout adds the timeout to the remove task params
func (*RemoveTaskParams) WriteToRequest ¶
func (o *RemoveTaskParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RemoveTaskReader ¶
type RemoveTaskReader struct {
// contains filtered or unexported fields
}
RemoveTaskReader is a Reader for the RemoveTask structure.
func (*RemoveTaskReader) ReadResponse ¶
func (o *RemoveTaskReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type RemoveTaskUnauthorized ¶
type RemoveTaskUnauthorized struct {
}RemoveTaskUnauthorized handles this case with default header values.
UnauthResponse returns Unauthorized error struct message.
func NewRemoveTaskUnauthorized ¶
func NewRemoveTaskUnauthorized() *RemoveTaskUnauthorized
NewRemoveTaskUnauthorized creates a RemoveTaskUnauthorized with default headers values
func (*RemoveTaskUnauthorized) Error ¶
func (o *RemoveTaskUnauthorized) Error() string
type UpdateTaskStateBadRequest ¶
UpdateTaskStateBadRequest handles this case with default header values.
ErrorResponse represents the Snap error response type.
It includes an error message and a map of fields.
func NewUpdateTaskStateBadRequest ¶
func NewUpdateTaskStateBadRequest() *UpdateTaskStateBadRequest
NewUpdateTaskStateBadRequest creates a UpdateTaskStateBadRequest with default headers values
func (*UpdateTaskStateBadRequest) Error ¶
func (o *UpdateTaskStateBadRequest) Error() string
type UpdateTaskStateConflict ¶
UpdateTaskStateConflict handles this case with default header values.
ErrorResponse represents the Snap error response type.
It includes an error message and a map of fields.
func NewUpdateTaskStateConflict ¶
func NewUpdateTaskStateConflict() *UpdateTaskStateConflict
NewUpdateTaskStateConflict creates a UpdateTaskStateConflict with default headers values
func (*UpdateTaskStateConflict) Error ¶
func (o *UpdateTaskStateConflict) Error() string
type UpdateTaskStateInternalServerError ¶
UpdateTaskStateInternalServerError handles this case with default header values.
ErrorResponse represents the Snap error response type.
It includes an error message and a map of fields.
func NewUpdateTaskStateInternalServerError ¶
func NewUpdateTaskStateInternalServerError() *UpdateTaskStateInternalServerError
NewUpdateTaskStateInternalServerError creates a UpdateTaskStateInternalServerError with default headers values
func (*UpdateTaskStateInternalServerError) Error ¶
func (o *UpdateTaskStateInternalServerError) Error() string
type UpdateTaskStateNoContent ¶
UpdateTaskStateNoContent handles this case with default header values.
TaskResponse returns a task.
func NewUpdateTaskStateNoContent ¶
func NewUpdateTaskStateNoContent() *UpdateTaskStateNoContent
NewUpdateTaskStateNoContent creates a UpdateTaskStateNoContent with default headers values
func (*UpdateTaskStateNoContent) Error ¶
func (o *UpdateTaskStateNoContent) Error() string
type UpdateTaskStateParams ¶
type UpdateTaskStateParams struct { /*Action Update the state of a task */ Action string /*ID*/ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateTaskStateParams contains all the parameters to send to the API endpoint for the update task state operation typically these are written to a http.Request
func NewUpdateTaskStateParams ¶
func NewUpdateTaskStateParams() *UpdateTaskStateParams
NewUpdateTaskStateParams creates a new UpdateTaskStateParams object with the default values initialized.
func NewUpdateTaskStateParamsWithContext ¶
func NewUpdateTaskStateParamsWithContext(ctx context.Context) *UpdateTaskStateParams
NewUpdateTaskStateParamsWithContext creates a new UpdateTaskStateParams object with the default values initialized, and the ability to set a context for a request
func NewUpdateTaskStateParamsWithHTTPClient ¶
func NewUpdateTaskStateParamsWithHTTPClient(client *http.Client) *UpdateTaskStateParams
NewUpdateTaskStateParamsWithHTTPClient creates a new UpdateTaskStateParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewUpdateTaskStateParamsWithTimeout ¶
func NewUpdateTaskStateParamsWithTimeout(timeout time.Duration) *UpdateTaskStateParams
NewUpdateTaskStateParamsWithTimeout creates a new UpdateTaskStateParams object with the default values initialized, and the ability to set a timeout on a request
func (*UpdateTaskStateParams) SetAction ¶
func (o *UpdateTaskStateParams) SetAction(action string)
SetAction adds the action to the update task state params
func (*UpdateTaskStateParams) SetContext ¶
func (o *UpdateTaskStateParams) SetContext(ctx context.Context)
SetContext adds the context to the update task state params
func (*UpdateTaskStateParams) SetHTTPClient ¶
func (o *UpdateTaskStateParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update task state params
func (*UpdateTaskStateParams) SetID ¶
func (o *UpdateTaskStateParams) SetID(id string)
SetID adds the id to the update task state params
func (*UpdateTaskStateParams) SetTimeout ¶
func (o *UpdateTaskStateParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update task state params
func (*UpdateTaskStateParams) WithAction ¶
func (o *UpdateTaskStateParams) WithAction(action string) *UpdateTaskStateParams
WithAction adds the action to the update task state params
func (*UpdateTaskStateParams) WithContext ¶
func (o *UpdateTaskStateParams) WithContext(ctx context.Context) *UpdateTaskStateParams
WithContext adds the context to the update task state params
func (*UpdateTaskStateParams) WithHTTPClient ¶
func (o *UpdateTaskStateParams) WithHTTPClient(client *http.Client) *UpdateTaskStateParams
WithHTTPClient adds the HTTPClient to the update task state params
func (*UpdateTaskStateParams) WithID ¶
func (o *UpdateTaskStateParams) WithID(id string) *UpdateTaskStateParams
WithID adds the id to the update task state params
func (*UpdateTaskStateParams) WithTimeout ¶
func (o *UpdateTaskStateParams) WithTimeout(timeout time.Duration) *UpdateTaskStateParams
WithTimeout adds the timeout to the update task state params
func (*UpdateTaskStateParams) WriteToRequest ¶
func (o *UpdateTaskStateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateTaskStateReader ¶
type UpdateTaskStateReader struct {
// contains filtered or unexported fields
}
UpdateTaskStateReader is a Reader for the UpdateTaskState structure.
func (*UpdateTaskStateReader) ReadResponse ¶
func (o *UpdateTaskStateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateTaskStateUnauthorized ¶
type UpdateTaskStateUnauthorized struct {
}UpdateTaskStateUnauthorized handles this case with default header values.
UnauthResponse returns Unauthorized error struct message.
func NewUpdateTaskStateUnauthorized ¶
func NewUpdateTaskStateUnauthorized() *UpdateTaskStateUnauthorized
NewUpdateTaskStateUnauthorized creates a UpdateTaskStateUnauthorized with default headers values
func (*UpdateTaskStateUnauthorized) Error ¶
func (o *UpdateTaskStateUnauthorized) Error() string
type WatchTaskInternalServerError ¶
WatchTaskInternalServerError handles this case with default header values.
ErrorResponse represents the Snap error response type.
It includes an error message and a map of fields.
func NewWatchTaskInternalServerError ¶
func NewWatchTaskInternalServerError() *WatchTaskInternalServerError
NewWatchTaskInternalServerError creates a WatchTaskInternalServerError with default headers values
func (*WatchTaskInternalServerError) Error ¶
func (o *WatchTaskInternalServerError) Error() string
type WatchTaskNotFound ¶
WatchTaskNotFound handles this case with default header values.
ErrorResponse represents the Snap error response type.
It includes an error message and a map of fields.
func NewWatchTaskNotFound ¶
func NewWatchTaskNotFound() *WatchTaskNotFound
NewWatchTaskNotFound creates a WatchTaskNotFound with default headers values
func (*WatchTaskNotFound) Error ¶
func (o *WatchTaskNotFound) Error() string
type WatchTaskOK ¶
type WatchTaskOK struct {
Payload WatchTaskOKBody
}
WatchTaskOK handles this case with default header values.
TaskWatchResponse defines the response of the task watching stream.
func NewWatchTaskOK ¶
func NewWatchTaskOK() *WatchTaskOK
NewWatchTaskOK creates a WatchTaskOK with default headers values
func (*WatchTaskOK) Error ¶
func (o *WatchTaskOK) Error() string
type WatchTaskOKBody ¶
type WatchTaskOKBody struct { // task watch // Required: true TaskWatch *models.StreamedTaskEvent `json:"task_watch"` }
WatchTaskOKBody watch task o k body swagger:model WatchTaskOKBody
func (*WatchTaskOKBody) MarshalBinary ¶
func (o *WatchTaskOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*WatchTaskOKBody) UnmarshalBinary ¶
func (o *WatchTaskOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type WatchTaskParams ¶
type WatchTaskParams struct { /*ID*/ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
WatchTaskParams contains all the parameters to send to the API endpoint for the watch task operation typically these are written to a http.Request
func NewWatchTaskParams ¶
func NewWatchTaskParams() *WatchTaskParams
NewWatchTaskParams creates a new WatchTaskParams object with the default values initialized.
func NewWatchTaskParamsWithContext ¶
func NewWatchTaskParamsWithContext(ctx context.Context) *WatchTaskParams
NewWatchTaskParamsWithContext creates a new WatchTaskParams object with the default values initialized, and the ability to set a context for a request
func NewWatchTaskParamsWithHTTPClient ¶
func NewWatchTaskParamsWithHTTPClient(client *http.Client) *WatchTaskParams
NewWatchTaskParamsWithHTTPClient creates a new WatchTaskParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewWatchTaskParamsWithTimeout ¶
func NewWatchTaskParamsWithTimeout(timeout time.Duration) *WatchTaskParams
NewWatchTaskParamsWithTimeout creates a new WatchTaskParams object with the default values initialized, and the ability to set a timeout on a request
func (*WatchTaskParams) SetContext ¶
func (o *WatchTaskParams) SetContext(ctx context.Context)
SetContext adds the context to the watch task params
func (*WatchTaskParams) SetHTTPClient ¶
func (o *WatchTaskParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the watch task params
func (*WatchTaskParams) SetID ¶
func (o *WatchTaskParams) SetID(id string)
SetID adds the id to the watch task params
func (*WatchTaskParams) SetTimeout ¶
func (o *WatchTaskParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the watch task params
func (*WatchTaskParams) WithContext ¶
func (o *WatchTaskParams) WithContext(ctx context.Context) *WatchTaskParams
WithContext adds the context to the watch task params
func (*WatchTaskParams) WithHTTPClient ¶
func (o *WatchTaskParams) WithHTTPClient(client *http.Client) *WatchTaskParams
WithHTTPClient adds the HTTPClient to the watch task params
func (*WatchTaskParams) WithID ¶
func (o *WatchTaskParams) WithID(id string) *WatchTaskParams
WithID adds the id to the watch task params
func (*WatchTaskParams) WithTimeout ¶
func (o *WatchTaskParams) WithTimeout(timeout time.Duration) *WatchTaskParams
WithTimeout adds the timeout to the watch task params
func (*WatchTaskParams) WriteToRequest ¶
func (o *WatchTaskParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type WatchTaskReader ¶
type WatchTaskReader struct {
// contains filtered or unexported fields
}
WatchTaskReader is a Reader for the WatchTask structure.
func (*WatchTaskReader) ReadResponse ¶
func (o *WatchTaskReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type WatchTaskUnauthorized ¶
type WatchTaskUnauthorized struct {
}WatchTaskUnauthorized handles this case with default header values.
UnauthResponse returns Unauthorized error struct message.
func NewWatchTaskUnauthorized ¶
func NewWatchTaskUnauthorized() *WatchTaskUnauthorized
NewWatchTaskUnauthorized creates a WatchTaskUnauthorized with default headers values
func (*WatchTaskUnauthorized) Error ¶
func (o *WatchTaskUnauthorized) Error() string
Source Files
¶
- add_task_parameters.go
- add_task_responses.go
- get_task_parameters.go
- get_task_responses.go
- get_tasks_parameters.go
- get_tasks_responses.go
- remove_task_parameters.go
- remove_task_responses.go
- tasks_client.go
- update_task_state_parameters.go
- update_task_state_responses.go
- watch_task_parameters.go
- watch_task_responses.go