Documentation ¶
Index ¶
- Constants
- type DeleteTaskByID
- type DeleteTaskByIDHandler
- type DeleteTaskByIDHandlerFunc
- type DeleteTaskByIDNoContent
- type DeleteTaskByIDNotFound
- type DeleteTaskByIDParams
- type DeleteTaskByIDURL
- func (o *DeleteTaskByIDURL) Build() (*url.URL, error)
- func (o *DeleteTaskByIDURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteTaskByIDURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteTaskByIDURL) SetBasePath(bp string)
- func (o *DeleteTaskByIDURL) String() string
- func (o *DeleteTaskByIDURL) StringFull(scheme, host string) string
- func (o *DeleteTaskByIDURL) WithBasePath(bp string) *DeleteTaskByIDURL
- type GetTaskByID
- type GetTaskByIDHandler
- type GetTaskByIDHandlerFunc
- type GetTaskByIDNotFound
- type GetTaskByIDOK
- type GetTaskByIDParams
- type GetTaskByIDURL
- func (o *GetTaskByIDURL) Build() (*url.URL, error)
- func (o *GetTaskByIDURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetTaskByIDURL) Must(u *url.URL, err error) *url.URL
- func (o *GetTaskByIDURL) SetBasePath(bp string)
- func (o *GetTaskByIDURL) String() string
- func (o *GetTaskByIDURL) StringFull(scheme, host string) string
- func (o *GetTaskByIDURL) WithBasePath(bp string) *GetTaskByIDURL
- type GetTasks
- type GetTasksBadRequest
- type GetTasksHandler
- type GetTasksHandlerFunc
- type GetTasksOK
- type GetTasksParams
- type GetTasksURL
- func (o *GetTasksURL) Build() (*url.URL, error)
- func (o *GetTasksURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetTasksURL) Must(u *url.URL, err error) *url.URL
- func (o *GetTasksURL) SetBasePath(bp string)
- func (o *GetTasksURL) String() string
- func (o *GetTasksURL) StringFull(scheme, host string) string
- func (o *GetTasksURL) WithBasePath(bp string) *GetTasksURL
- type PostTask
- type PostTaskAccepted
- type PostTaskBadRequest
- type PostTaskHandler
- type PostTaskHandlerFunc
- type PostTaskParams
- type PostTaskURL
- func (o *PostTaskURL) Build() (*url.URL, error)
- func (o *PostTaskURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PostTaskURL) Must(u *url.URL, err error) *url.URL
- func (o *PostTaskURL) SetBasePath(bp string)
- func (o *PostTaskURL) String() string
- func (o *PostTaskURL) StringFull(scheme, host string) string
- func (o *PostTaskURL) WithBasePath(bp string) *PostTaskURL
Constants ¶
const DeleteTaskByIDNoContentCode int = 204
DeleteTaskByIDNoContentCode is the HTTP code returned for type DeleteTaskByIDNoContent
const DeleteTaskByIDNotFoundCode int = 404
DeleteTaskByIDNotFoundCode is the HTTP code returned for type DeleteTaskByIDNotFound
const GetTaskByIDNotFoundCode int = 404
GetTaskByIDNotFoundCode is the HTTP code returned for type GetTaskByIDNotFound
const GetTaskByIDOKCode int = 200
GetTaskByIDOKCode is the HTTP code returned for type GetTaskByIDOK
const GetTasksBadRequestCode int = 400
GetTasksBadRequestCode is the HTTP code returned for type GetTasksBadRequest
const GetTasksOKCode int = 200
GetTasksOKCode is the HTTP code returned for type GetTasksOK
const PostTaskAcceptedCode int = 202
PostTaskAcceptedCode is the HTTP code returned for type PostTaskAccepted
const PostTaskBadRequestCode int = 400
PostTaskBadRequestCode is the HTTP code returned for type PostTaskBadRequest
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteTaskByID ¶
type DeleteTaskByID struct { Context *middleware.Context Handler DeleteTaskByIDHandler }
DeleteTaskByID swagger:route DELETE /tasks/{taskID} tasks deleteTaskById
Delete the Task by ID ¶
Delete the task object.
func NewDeleteTaskByID ¶
func NewDeleteTaskByID(ctx *middleware.Context, handler DeleteTaskByIDHandler) *DeleteTaskByID
NewDeleteTaskByID creates a new http.Handler for the delete task by ID operation
func (*DeleteTaskByID) ServeHTTP ¶
func (o *DeleteTaskByID) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteTaskByIDHandler ¶
type DeleteTaskByIDHandler interface {
Handle(DeleteTaskByIDParams) middleware.Responder
}
DeleteTaskByIDHandler interface for that can handle valid delete task by ID params
type DeleteTaskByIDHandlerFunc ¶
type DeleteTaskByIDHandlerFunc func(DeleteTaskByIDParams) middleware.Responder
DeleteTaskByIDHandlerFunc turns a function with the right signature into a delete task by ID handler
func (DeleteTaskByIDHandlerFunc) Handle ¶
func (fn DeleteTaskByIDHandlerFunc) Handle(params DeleteTaskByIDParams) middleware.Responder
Handle executing the request and returning a response
type DeleteTaskByIDNoContent ¶
type DeleteTaskByIDNoContent struct { }
DeleteTaskByIDNoContent successful operation
swagger:response deleteTaskByIdNoContent
func NewDeleteTaskByIDNoContent ¶
func NewDeleteTaskByIDNoContent() *DeleteTaskByIDNoContent
NewDeleteTaskByIDNoContent creates DeleteTaskByIDNoContent with default headers values
func (*DeleteTaskByIDNoContent) WriteResponse ¶
func (o *DeleteTaskByIDNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteTaskByIDNotFound ¶
type DeleteTaskByIDNotFound struct { }
DeleteTaskByIDNotFound Project not found
swagger:response deleteTaskByIdNotFound
func NewDeleteTaskByIDNotFound ¶
func NewDeleteTaskByIDNotFound() *DeleteTaskByIDNotFound
NewDeleteTaskByIDNotFound creates DeleteTaskByIDNotFound with default headers values
func (*DeleteTaskByIDNotFound) WriteResponse ¶
func (o *DeleteTaskByIDNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteTaskByIDParams ¶
type DeleteTaskByIDParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*ID of task to delete Required: true In: path */ TaskID string }
DeleteTaskByIDParams contains all the bound params for the delete task by ID operation typically these are obtained from a http.Request
swagger:parameters deleteTaskByID
func NewDeleteTaskByIDParams ¶
func NewDeleteTaskByIDParams() DeleteTaskByIDParams
NewDeleteTaskByIDParams creates a new DeleteTaskByIDParams object with the default values initialized.
func (*DeleteTaskByIDParams) BindRequest ¶
func (o *DeleteTaskByIDParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls
type DeleteTaskByIDURL ¶
type DeleteTaskByIDURL struct { TaskID string // contains filtered or unexported fields }
DeleteTaskByIDURL generates an URL for the delete task by ID operation
func (*DeleteTaskByIDURL) Build ¶
func (o *DeleteTaskByIDURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteTaskByIDURL) BuildFull ¶
func (o *DeleteTaskByIDURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteTaskByIDURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteTaskByIDURL) SetBasePath ¶
func (o *DeleteTaskByIDURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*DeleteTaskByIDURL) String ¶
func (o *DeleteTaskByIDURL) String() string
String returns the string representation of the path with query string
func (*DeleteTaskByIDURL) StringFull ¶
func (o *DeleteTaskByIDURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteTaskByIDURL) WithBasePath ¶
func (o *DeleteTaskByIDURL) WithBasePath(bp string) *DeleteTaskByIDURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type GetTaskByID ¶
type GetTaskByID struct { Context *middleware.Context Handler GetTaskByIDHandler }
GetTaskByID swagger:route GET /tasks/{taskID} tasks getTaskById
gets the task from ID
getting task object
func NewGetTaskByID ¶
func NewGetTaskByID(ctx *middleware.Context, handler GetTaskByIDHandler) *GetTaskByID
NewGetTaskByID creates a new http.Handler for the get task by ID operation
func (*GetTaskByID) ServeHTTP ¶
func (o *GetTaskByID) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetTaskByIDHandler ¶
type GetTaskByIDHandler interface {
Handle(GetTaskByIDParams) middleware.Responder
}
GetTaskByIDHandler interface for that can handle valid get task by ID params
type GetTaskByIDHandlerFunc ¶
type GetTaskByIDHandlerFunc func(GetTaskByIDParams) middleware.Responder
GetTaskByIDHandlerFunc turns a function with the right signature into a get task by ID handler
func (GetTaskByIDHandlerFunc) Handle ¶
func (fn GetTaskByIDHandlerFunc) Handle(params GetTaskByIDParams) middleware.Responder
Handle executing the request and returning a response
type GetTaskByIDNotFound ¶
type GetTaskByIDNotFound struct { }
GetTaskByIDNotFound Task not found
swagger:response getTaskByIdNotFound
func NewGetTaskByIDNotFound ¶
func NewGetTaskByIDNotFound() *GetTaskByIDNotFound
NewGetTaskByIDNotFound creates GetTaskByIDNotFound with default headers values
func (*GetTaskByIDNotFound) WriteResponse ¶
func (o *GetTaskByIDNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetTaskByIDOK ¶
GetTaskByIDOK Accepted operation
swagger:response getTaskByIdOK
func NewGetTaskByIDOK ¶
func NewGetTaskByIDOK() *GetTaskByIDOK
NewGetTaskByIDOK creates GetTaskByIDOK with default headers values
func (*GetTaskByIDOK) SetPayload ¶
func (o *GetTaskByIDOK) SetPayload(payload *models.Task)
SetPayload sets the payload to the get task by Id o k response
func (*GetTaskByIDOK) WithPayload ¶
func (o *GetTaskByIDOK) WithPayload(payload *models.Task) *GetTaskByIDOK
WithPayload adds the payload to the get task by Id o k response
func (*GetTaskByIDOK) WriteResponse ¶
func (o *GetTaskByIDOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetTaskByIDParams ¶
type GetTaskByIDParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*ID of task to return Required: true In: path */ TaskID string }
GetTaskByIDParams contains all the bound params for the get task by ID operation typically these are obtained from a http.Request
swagger:parameters getTaskByID
func NewGetTaskByIDParams ¶
func NewGetTaskByIDParams() GetTaskByIDParams
NewGetTaskByIDParams creates a new GetTaskByIDParams object with the default values initialized.
func (*GetTaskByIDParams) BindRequest ¶
func (o *GetTaskByIDParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls
type GetTaskByIDURL ¶
type GetTaskByIDURL struct { TaskID string // contains filtered or unexported fields }
GetTaskByIDURL generates an URL for the get task by ID operation
func (*GetTaskByIDURL) Build ¶
func (o *GetTaskByIDURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetTaskByIDURL) BuildFull ¶
func (o *GetTaskByIDURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetTaskByIDURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetTaskByIDURL) SetBasePath ¶
func (o *GetTaskByIDURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetTaskByIDURL) String ¶
func (o *GetTaskByIDURL) String() string
String returns the string representation of the path with query string
func (*GetTaskByIDURL) StringFull ¶
func (o *GetTaskByIDURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetTaskByIDURL) WithBasePath ¶
func (o *GetTaskByIDURL) WithBasePath(bp string) *GetTaskByIDURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type GetTasks ¶
type GetTasks struct { Context *middleware.Context Handler GetTasksHandler }
GetTasks swagger:route GET /tasks tasks getTasks
Returns all the tasks.
func NewGetTasks ¶
func NewGetTasks(ctx *middleware.Context, handler GetTasksHandler) *GetTasks
NewGetTasks creates a new http.Handler for the get tasks operation
type GetTasksBadRequest ¶
type GetTasksBadRequest struct { }
GetTasksBadRequest Bad Request
swagger:response getTasksBadRequest
func NewGetTasksBadRequest ¶
func NewGetTasksBadRequest() *GetTasksBadRequest
NewGetTasksBadRequest creates GetTasksBadRequest with default headers values
func (*GetTasksBadRequest) WriteResponse ¶
func (o *GetTasksBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetTasksHandler ¶
type GetTasksHandler interface {
Handle(GetTasksParams) middleware.Responder
}
GetTasksHandler interface for that can handle valid get tasks params
type GetTasksHandlerFunc ¶
type GetTasksHandlerFunc func(GetTasksParams) middleware.Responder
GetTasksHandlerFunc turns a function with the right signature into a get tasks handler
func (GetTasksHandlerFunc) Handle ¶
func (fn GetTasksHandlerFunc) Handle(params GetTasksParams) middleware.Responder
Handle executing the request and returning a response
type GetTasksOK ¶
GetTasksOK The list of current tasks
swagger:response getTasksOK
func NewGetTasksOK ¶
func NewGetTasksOK() *GetTasksOK
NewGetTasksOK creates GetTasksOK with default headers values
func (*GetTasksOK) SetPayload ¶
func (o *GetTasksOK) SetPayload(payload models.Tasks)
SetPayload sets the payload to the get tasks o k response
func (*GetTasksOK) WithPayload ¶
func (o *GetTasksOK) WithPayload(payload models.Tasks) *GetTasksOK
WithPayload adds the payload to the get tasks o k response
func (*GetTasksOK) WriteResponse ¶
func (o *GetTasksOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetTasksParams ¶
GetTasksParams contains all the bound params for the get tasks operation typically these are obtained from a http.Request
swagger:parameters getTasks
func NewGetTasksParams ¶
func NewGetTasksParams() GetTasksParams
NewGetTasksParams creates a new GetTasksParams object with the default values initialized.
func (*GetTasksParams) BindRequest ¶
func (o *GetTasksParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls
type GetTasksURL ¶
type GetTasksURL struct {
// contains filtered or unexported fields
}
GetTasksURL generates an URL for the get tasks operation
func (*GetTasksURL) Build ¶
func (o *GetTasksURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetTasksURL) BuildFull ¶
func (o *GetTasksURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetTasksURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetTasksURL) SetBasePath ¶
func (o *GetTasksURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetTasksURL) String ¶
func (o *GetTasksURL) String() string
String returns the string representation of the path with query string
func (*GetTasksURL) StringFull ¶
func (o *GetTasksURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetTasksURL) WithBasePath ¶
func (o *GetTasksURL) WithBasePath(bp string) *GetTasksURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type PostTask ¶
type PostTask struct { Context *middleware.Context Handler PostTaskHandler }
PostTask swagger:route POST /tasks tasks postTask
Adds a task configuration ¶
Post a new task config
func NewPostTask ¶
func NewPostTask(ctx *middleware.Context, handler PostTaskHandler) *PostTask
NewPostTask creates a new http.Handler for the post task operation
type PostTaskAccepted ¶
PostTaskAccepted Accepted
swagger:response postTaskAccepted
func NewPostTaskAccepted ¶
func NewPostTaskAccepted() *PostTaskAccepted
NewPostTaskAccepted creates PostTaskAccepted with default headers values
func (*PostTaskAccepted) SetPayload ¶
func (o *PostTaskAccepted) SetPayload(payload *models.Task)
SetPayload sets the payload to the post task accepted response
func (*PostTaskAccepted) WithPayload ¶
func (o *PostTaskAccepted) WithPayload(payload *models.Task) *PostTaskAccepted
WithPayload adds the payload to the post task accepted response
func (*PostTaskAccepted) WriteResponse ¶
func (o *PostTaskAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostTaskBadRequest ¶
type PostTaskBadRequest struct { }
PostTaskBadRequest Bad Request
swagger:response postTaskBadRequest
func NewPostTaskBadRequest ¶
func NewPostTaskBadRequest() *PostTaskBadRequest
NewPostTaskBadRequest creates PostTaskBadRequest with default headers values
func (*PostTaskBadRequest) WriteResponse ¶
func (o *PostTaskBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostTaskHandler ¶
type PostTaskHandler interface {
Handle(PostTaskParams) middleware.Responder
}
PostTaskHandler interface for that can handle valid post task params
type PostTaskHandlerFunc ¶
type PostTaskHandlerFunc func(PostTaskParams) middleware.Responder
PostTaskHandlerFunc turns a function with the right signature into a post task handler
func (PostTaskHandlerFunc) Handle ¶
func (fn PostTaskHandlerFunc) Handle(params PostTaskParams) middleware.Responder
Handle executing the request and returning a response
type PostTaskParams ¶
type PostTaskParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Task definition Required: true In: body */ Body *models.Task }
PostTaskParams contains all the bound params for the post task operation typically these are obtained from a http.Request
swagger:parameters postTask
func NewPostTaskParams ¶
func NewPostTaskParams() PostTaskParams
NewPostTaskParams creates a new PostTaskParams object with the default values initialized.
func (*PostTaskParams) BindRequest ¶
func (o *PostTaskParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls
type PostTaskURL ¶
type PostTaskURL struct {
// contains filtered or unexported fields
}
PostTaskURL generates an URL for the post task operation
func (*PostTaskURL) Build ¶
func (o *PostTaskURL) Build() (*url.URL, error)
Build a url path and query string
func (*PostTaskURL) BuildFull ¶
func (o *PostTaskURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PostTaskURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*PostTaskURL) SetBasePath ¶
func (o *PostTaskURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*PostTaskURL) String ¶
func (o *PostTaskURL) String() string
String returns the string representation of the path with query string
func (*PostTaskURL) StringFull ¶
func (o *PostTaskURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PostTaskURL) WithBasePath ¶
func (o *PostTaskURL) WithBasePath(bp string) *PostTaskURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
Source Files ¶
- delete_task_by_id.go
- delete_task_by_id_parameters.go
- delete_task_by_id_responses.go
- delete_task_by_id_urlbuilder.go
- get_task_by_id.go
- get_task_by_id_parameters.go
- get_task_by_id_responses.go
- get_task_by_id_urlbuilder.go
- get_tasks.go
- get_tasks_parameters.go
- get_tasks_responses.go
- get_tasks_urlbuilder.go
- post_task.go
- post_task_parameters.go
- post_task_responses.go
- post_task_urlbuilder.go