Documentation ¶
Index ¶
- Constants
- type GetUpload
- type GetUploadBadRequest
- type GetUploadHandler
- type GetUploadHandlerFunc
- type GetUploadInternalServerError
- type GetUploadNotFound
- type GetUploadOK
- type GetUploadParams
- type GetUploadURL
- func (o *GetUploadURL) Build() (*url.URL, error)
- func (o *GetUploadURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetUploadURL) Must(u *url.URL, err error) *url.URL
- func (o *GetUploadURL) SetBasePath(bp string)
- func (o *GetUploadURL) String() string
- func (o *GetUploadURL) StringFull(scheme, host string) string
- func (o *GetUploadURL) WithBasePath(bp string) *GetUploadURL
- type GetUploadUnauthorized
Constants ¶
const GetUploadBadRequestCode int = 400
GetUploadBadRequestCode is the HTTP code returned for type GetUploadBadRequest
const GetUploadInternalServerErrorCode int = 500
GetUploadInternalServerErrorCode is the HTTP code returned for type GetUploadInternalServerError
const GetUploadNotFoundCode int = 404
GetUploadNotFoundCode is the HTTP code returned for type GetUploadNotFound
const GetUploadOKCode int = 200
GetUploadOKCode is the HTTP code returned for type GetUploadOK
GetUploadUnauthorizedCode is the HTTP code returned for type GetUploadUnauthorized
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetUpload ¶
type GetUpload struct { Context *middleware.Context Handler GetUploadHandler }
GetUpload swagger:route GET /uploads/{uploadId} Uploads getUpload
Get information about an Upload ¶
This endpoint returns a single Upload by ID containing the given Upload and information about the Uploader and Move. Do not use this endpoint directly as it is meant to be used with the Admin UI exclusively.
func NewGetUpload ¶
func NewGetUpload(ctx *middleware.Context, handler GetUploadHandler) *GetUpload
NewGetUpload creates a new http.Handler for the get upload operation
type GetUploadBadRequest ¶
type GetUploadBadRequest struct { }
GetUploadBadRequest invalid request
swagger:response getUploadBadRequest
func NewGetUploadBadRequest ¶
func NewGetUploadBadRequest() *GetUploadBadRequest
NewGetUploadBadRequest creates GetUploadBadRequest with default headers values
func (*GetUploadBadRequest) WriteResponse ¶
func (o *GetUploadBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetUploadHandler ¶
type GetUploadHandler interface {
Handle(GetUploadParams) middleware.Responder
}
GetUploadHandler interface for that can handle valid get upload params
type GetUploadHandlerFunc ¶
type GetUploadHandlerFunc func(GetUploadParams) middleware.Responder
GetUploadHandlerFunc turns a function with the right signature into a get upload handler
func (GetUploadHandlerFunc) Handle ¶
func (fn GetUploadHandlerFunc) Handle(params GetUploadParams) middleware.Responder
Handle executing the request and returning a response
type GetUploadInternalServerError ¶
type GetUploadInternalServerError struct { }
GetUploadInternalServerError server error
swagger:response getUploadInternalServerError
func NewGetUploadInternalServerError ¶
func NewGetUploadInternalServerError() *GetUploadInternalServerError
NewGetUploadInternalServerError creates GetUploadInternalServerError with default headers values
func (*GetUploadInternalServerError) WriteResponse ¶
func (o *GetUploadInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetUploadNotFound ¶
type GetUploadNotFound struct { }
GetUploadNotFound Upload not found
swagger:response getUploadNotFound
func NewGetUploadNotFound ¶
func NewGetUploadNotFound() *GetUploadNotFound
NewGetUploadNotFound creates GetUploadNotFound with default headers values
func (*GetUploadNotFound) WriteResponse ¶
func (o *GetUploadNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetUploadOK ¶
type GetUploadOK struct { /* In: Body */ Payload *adminmessages.UploadInformation `json:"body,omitempty"` }
GetUploadOK success
swagger:response getUploadOK
func NewGetUploadOK ¶
func NewGetUploadOK() *GetUploadOK
NewGetUploadOK creates GetUploadOK with default headers values
func (*GetUploadOK) SetPayload ¶
func (o *GetUploadOK) SetPayload(payload *adminmessages.UploadInformation)
SetPayload sets the payload to the get upload o k response
func (*GetUploadOK) WithPayload ¶
func (o *GetUploadOK) WithPayload(payload *adminmessages.UploadInformation) *GetUploadOK
WithPayload adds the payload to the get upload o k response
func (*GetUploadOK) WriteResponse ¶
func (o *GetUploadOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetUploadParams ¶
type GetUploadParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: path */ UploadID strfmt.UUID }
GetUploadParams contains all the bound params for the get upload operation typically these are obtained from a http.Request
swagger:parameters getUpload
func NewGetUploadParams ¶
func NewGetUploadParams() GetUploadParams
NewGetUploadParams creates a new GetUploadParams object
There are no default values defined in the spec.
func (*GetUploadParams) BindRequest ¶
func (o *GetUploadParams) 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.
To ensure default values, the struct must have been initialized with NewGetUploadParams() beforehand.
type GetUploadURL ¶
GetUploadURL generates an URL for the get upload operation
func (*GetUploadURL) Build ¶
func (o *GetUploadURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetUploadURL) BuildFull ¶
func (o *GetUploadURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetUploadURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetUploadURL) SetBasePath ¶
func (o *GetUploadURL) 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 (*GetUploadURL) String ¶
func (o *GetUploadURL) String() string
String returns the string representation of the path with query string
func (*GetUploadURL) StringFull ¶
func (o *GetUploadURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetUploadURL) WithBasePath ¶
func (o *GetUploadURL) WithBasePath(bp string) *GetUploadURL
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 GetUploadUnauthorized ¶
type GetUploadUnauthorized struct { }
GetUploadUnauthorized request requires user authentication
swagger:response getUploadUnauthorized
func NewGetUploadUnauthorized ¶
func NewGetUploadUnauthorized() *GetUploadUnauthorized
NewGetUploadUnauthorized creates GetUploadUnauthorized with default headers values
func (*GetUploadUnauthorized) WriteResponse ¶
func (o *GetUploadUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client