tasks

package
v0.0.0-...-4e509d8 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddTaskCreated

type AddTaskCreated struct {
	Payload *models.Task
}

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

type AddTaskInternalServerError struct {
	Payload *models.Error
}

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

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 {
	Payload *models.UnauthError
}

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

type GetTaskNotFound struct {
	Payload *models.Error
}

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

type GetTaskOK struct {
	Payload *models.Task
}

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

func (*GetTaskOK) Error

func (o *GetTaskOK) Error() string

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 {
	Payload *models.UnauthError
}

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

type GetTasksOKBody struct {

	// tasks
	// Required: true
	Tasks models.Tasks `json:"tasks"`
}

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

func (*GetTasksOKBody) Validate

func (o *GetTasksOKBody) Validate(formats strfmt.Registry) error

Validate validates this get tasks o k body

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 {
	Payload *models.UnauthError
}

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

type RemoveTaskNoContent

type RemoveTaskNoContent struct {
	Payload *models.Task
}

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

type RemoveTaskNotFound struct {
	Payload *models.Error
}

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 {
	Payload *models.UnauthError
}

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

type UpdateTaskStateBadRequest struct {
	Payload *models.Error
}

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

type UpdateTaskStateConflict struct {
	Payload *models.Error
}

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

type UpdateTaskStateInternalServerError struct {
	Payload *models.Error
}

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

type UpdateTaskStateNoContent

type UpdateTaskStateNoContent struct {
	Payload *models.Task
}

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

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

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 {
	Payload *models.UnauthError
}

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

type WatchTaskInternalServerError

type WatchTaskInternalServerError struct {
	Payload *models.Error
}

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

type WatchTaskNotFound

type WatchTaskNotFound struct {
	Payload *models.Error
}

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

func (*WatchTaskOKBody) Validate

func (o *WatchTaskOKBody) Validate(formats strfmt.Registry) error

Validate validates this watch task o k body

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 {
	Payload *models.UnauthError
}

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

Jump to

Keyboard shortcuts

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