Documentation ¶
Index ¶
- Constants
- Variables
- type CreateUpload
- type CreateUploadBadRequest
- type CreateUploadCreated
- type CreateUploadForbidden
- type CreateUploadHandler
- type CreateUploadHandlerFunc
- type CreateUploadInternalServerError
- type CreateUploadNotFound
- type CreateUploadParams
- type CreateUploadRequestEntityTooLarge
- type CreateUploadURL
- func (o *CreateUploadURL) Build() (*url.URL, error)
- func (o *CreateUploadURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CreateUploadURL) Must(u *url.URL, err error) *url.URL
- func (o *CreateUploadURL) SetBasePath(bp string)
- func (o *CreateUploadURL) String() string
- func (o *CreateUploadURL) StringFull(scheme, host string) string
- func (o *CreateUploadURL) WithBasePath(bp string) *CreateUploadURL
- type DeleteUpload
- type DeleteUploadBadRequest
- func (o *DeleteUploadBadRequest) SetPayload(payload *ghcmessages.InvalidRequestResponsePayload)
- func (o *DeleteUploadBadRequest) WithPayload(payload *ghcmessages.InvalidRequestResponsePayload) *DeleteUploadBadRequest
- func (o *DeleteUploadBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteUploadForbidden
- type DeleteUploadHandler
- type DeleteUploadHandlerFunc
- type DeleteUploadInternalServerError
- type DeleteUploadNoContent
- type DeleteUploadNotFound
- type DeleteUploadParams
- type DeleteUploadURL
- func (o *DeleteUploadURL) Build() (*url.URL, error)
- func (o *DeleteUploadURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteUploadURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteUploadURL) SetBasePath(bp string)
- func (o *DeleteUploadURL) String() string
- func (o *DeleteUploadURL) StringFull(scheme, host string) string
- func (o *DeleteUploadURL) WithBasePath(bp string) *DeleteUploadURL
- type GetUpload
- type GetUploadBadRequest
- type GetUploadForbidden
- 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
- type UpdateUpload
- type UpdateUploadBadRequest
- type UpdateUploadBody
- type UpdateUploadCreated
- type UpdateUploadForbidden
- type UpdateUploadHandler
- type UpdateUploadHandlerFunc
- type UpdateUploadInternalServerError
- type UpdateUploadNotFound
- type UpdateUploadParams
- type UpdateUploadRequestEntityTooLarge
- type UpdateUploadURL
- func (o *UpdateUploadURL) Build() (*url.URL, error)
- func (o *UpdateUploadURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *UpdateUploadURL) Must(u *url.URL, err error) *url.URL
- func (o *UpdateUploadURL) SetBasePath(bp string)
- func (o *UpdateUploadURL) String() string
- func (o *UpdateUploadURL) StringFull(scheme, host string) string
- func (o *UpdateUploadURL) WithBasePath(bp string) *UpdateUploadURL
Constants ¶
const CreateUploadBadRequestCode int = 400
CreateUploadBadRequestCode is the HTTP code returned for type CreateUploadBadRequest
const CreateUploadCreatedCode int = 201
CreateUploadCreatedCode is the HTTP code returned for type CreateUploadCreated
const CreateUploadForbiddenCode int = 403
CreateUploadForbiddenCode is the HTTP code returned for type CreateUploadForbidden
const CreateUploadInternalServerErrorCode int = 500
CreateUploadInternalServerErrorCode is the HTTP code returned for type CreateUploadInternalServerError
const CreateUploadNotFoundCode int = 404
CreateUploadNotFoundCode is the HTTP code returned for type CreateUploadNotFound
const CreateUploadRequestEntityTooLargeCode int = 413
CreateUploadRequestEntityTooLargeCode is the HTTP code returned for type CreateUploadRequestEntityTooLarge
const DeleteUploadBadRequestCode int = 400
DeleteUploadBadRequestCode is the HTTP code returned for type DeleteUploadBadRequest
const DeleteUploadForbiddenCode int = 403
DeleteUploadForbiddenCode is the HTTP code returned for type DeleteUploadForbidden
const DeleteUploadInternalServerErrorCode int = 500
DeleteUploadInternalServerErrorCode is the HTTP code returned for type DeleteUploadInternalServerError
const DeleteUploadNoContentCode int = 204
DeleteUploadNoContentCode is the HTTP code returned for type DeleteUploadNoContent
const DeleteUploadNotFoundCode int = 404
DeleteUploadNotFoundCode is the HTTP code returned for type DeleteUploadNotFound
const GetUploadBadRequestCode int = 400
GetUploadBadRequestCode is the HTTP code returned for type GetUploadBadRequest
const GetUploadForbiddenCode int = 403
GetUploadForbiddenCode is the HTTP code returned for type GetUploadForbidden
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
const UpdateUploadBadRequestCode int = 400
UpdateUploadBadRequestCode is the HTTP code returned for type UpdateUploadBadRequest
const UpdateUploadCreatedCode int = 201
UpdateUploadCreatedCode is the HTTP code returned for type UpdateUploadCreated
const UpdateUploadForbiddenCode int = 403
UpdateUploadForbiddenCode is the HTTP code returned for type UpdateUploadForbidden
const UpdateUploadInternalServerErrorCode int = 500
UpdateUploadInternalServerErrorCode is the HTTP code returned for type UpdateUploadInternalServerError
const UpdateUploadNotFoundCode int = 404
UpdateUploadNotFoundCode is the HTTP code returned for type UpdateUploadNotFound
const UpdateUploadRequestEntityTooLargeCode int = 413
UpdateUploadRequestEntityTooLargeCode is the HTTP code returned for type UpdateUploadRequestEntityTooLarge
Variables ¶
var CreateUploadMaxParseMemory int64 = 32 << 20
CreateUploadMaxParseMemory sets the maximum size in bytes for the multipart form parser for this operation.
The default value is 32 MB. The multipart parser stores up to this + 10MB.
Functions ¶
This section is empty.
Types ¶
type CreateUpload ¶
type CreateUpload struct { Context *middleware.Context Handler CreateUploadHandler }
CreateUpload swagger:route POST /uploads uploads createUpload
Create a new upload ¶
Uploads represent a single digital file, such as a JPEG or PDF. Currently, office application uploads are only for Services Counselors to upload files for orders, but this may be expanded in the future.
func NewCreateUpload ¶
func NewCreateUpload(ctx *middleware.Context, handler CreateUploadHandler) *CreateUpload
NewCreateUpload creates a new http.Handler for the create upload operation
func (*CreateUpload) ServeHTTP ¶
func (o *CreateUpload) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type CreateUploadBadRequest ¶
type CreateUploadBadRequest struct { }
CreateUploadBadRequest invalid request
swagger:response createUploadBadRequest
func NewCreateUploadBadRequest ¶
func NewCreateUploadBadRequest() *CreateUploadBadRequest
NewCreateUploadBadRequest creates CreateUploadBadRequest with default headers values
func (*CreateUploadBadRequest) WriteResponse ¶
func (o *CreateUploadBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateUploadCreated ¶
type CreateUploadCreated struct { /* In: Body */ Payload *ghcmessages.Upload `json:"body,omitempty"` }
CreateUploadCreated created upload
swagger:response createUploadCreated
func NewCreateUploadCreated ¶
func NewCreateUploadCreated() *CreateUploadCreated
NewCreateUploadCreated creates CreateUploadCreated with default headers values
func (*CreateUploadCreated) SetPayload ¶
func (o *CreateUploadCreated) SetPayload(payload *ghcmessages.Upload)
SetPayload sets the payload to the create upload created response
func (*CreateUploadCreated) WithPayload ¶
func (o *CreateUploadCreated) WithPayload(payload *ghcmessages.Upload) *CreateUploadCreated
WithPayload adds the payload to the create upload created response
func (*CreateUploadCreated) WriteResponse ¶
func (o *CreateUploadCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateUploadForbidden ¶
type CreateUploadForbidden struct { }
CreateUploadForbidden not authorized
swagger:response createUploadForbidden
func NewCreateUploadForbidden ¶
func NewCreateUploadForbidden() *CreateUploadForbidden
NewCreateUploadForbidden creates CreateUploadForbidden with default headers values
func (*CreateUploadForbidden) WriteResponse ¶
func (o *CreateUploadForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateUploadHandler ¶
type CreateUploadHandler interface {
Handle(CreateUploadParams) middleware.Responder
}
CreateUploadHandler interface for that can handle valid create upload params
type CreateUploadHandlerFunc ¶
type CreateUploadHandlerFunc func(CreateUploadParams) middleware.Responder
CreateUploadHandlerFunc turns a function with the right signature into a create upload handler
func (CreateUploadHandlerFunc) Handle ¶
func (fn CreateUploadHandlerFunc) Handle(params CreateUploadParams) middleware.Responder
Handle executing the request and returning a response
type CreateUploadInternalServerError ¶
type CreateUploadInternalServerError struct { }
CreateUploadInternalServerError server error
swagger:response createUploadInternalServerError
func NewCreateUploadInternalServerError ¶
func NewCreateUploadInternalServerError() *CreateUploadInternalServerError
NewCreateUploadInternalServerError creates CreateUploadInternalServerError with default headers values
func (*CreateUploadInternalServerError) WriteResponse ¶
func (o *CreateUploadInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateUploadNotFound ¶
type CreateUploadNotFound struct { }
CreateUploadNotFound not found
swagger:response createUploadNotFound
func NewCreateUploadNotFound ¶
func NewCreateUploadNotFound() *CreateUploadNotFound
NewCreateUploadNotFound creates CreateUploadNotFound with default headers values
func (*CreateUploadNotFound) WriteResponse ¶
func (o *CreateUploadNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateUploadParams ¶
type CreateUploadParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*UUID of the document to add an upload to In: query */ DocumentID *strfmt.UUID /*The file to upload. Required: true In: formData */ File io.ReadCloser }
CreateUploadParams contains all the bound params for the create upload operation typically these are obtained from a http.Request
swagger:parameters createUpload
func NewCreateUploadParams ¶
func NewCreateUploadParams() CreateUploadParams
NewCreateUploadParams creates a new CreateUploadParams object
There are no default values defined in the spec.
func (*CreateUploadParams) BindRequest ¶
func (o *CreateUploadParams) 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 NewCreateUploadParams() beforehand.
type CreateUploadRequestEntityTooLarge ¶
type CreateUploadRequestEntityTooLarge struct { }
CreateUploadRequestEntityTooLarge payload is too large
swagger:response createUploadRequestEntityTooLarge
func NewCreateUploadRequestEntityTooLarge ¶
func NewCreateUploadRequestEntityTooLarge() *CreateUploadRequestEntityTooLarge
NewCreateUploadRequestEntityTooLarge creates CreateUploadRequestEntityTooLarge with default headers values
func (*CreateUploadRequestEntityTooLarge) WriteResponse ¶
func (o *CreateUploadRequestEntityTooLarge) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateUploadURL ¶
CreateUploadURL generates an URL for the create upload operation
func (*CreateUploadURL) Build ¶
func (o *CreateUploadURL) Build() (*url.URL, error)
Build a url path and query string
func (*CreateUploadURL) BuildFull ¶
func (o *CreateUploadURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*CreateUploadURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*CreateUploadURL) SetBasePath ¶
func (o *CreateUploadURL) 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 (*CreateUploadURL) String ¶
func (o *CreateUploadURL) String() string
String returns the string representation of the path with query string
func (*CreateUploadURL) StringFull ¶
func (o *CreateUploadURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*CreateUploadURL) WithBasePath ¶
func (o *CreateUploadURL) WithBasePath(bp string) *CreateUploadURL
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 DeleteUpload ¶
type DeleteUpload struct { Context *middleware.Context Handler DeleteUploadHandler }
DeleteUpload swagger:route DELETE /uploads/{uploadID} uploads deleteUpload
Deletes an upload ¶
Uploads represent a single digital file, such as a JPEG or PDF.
func NewDeleteUpload ¶
func NewDeleteUpload(ctx *middleware.Context, handler DeleteUploadHandler) *DeleteUpload
NewDeleteUpload creates a new http.Handler for the delete upload operation
func (*DeleteUpload) ServeHTTP ¶
func (o *DeleteUpload) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteUploadBadRequest ¶
type DeleteUploadBadRequest struct { /* In: Body */ Payload *ghcmessages.InvalidRequestResponsePayload `json:"body,omitempty"` }
DeleteUploadBadRequest invalid request
swagger:response deleteUploadBadRequest
func NewDeleteUploadBadRequest ¶
func NewDeleteUploadBadRequest() *DeleteUploadBadRequest
NewDeleteUploadBadRequest creates DeleteUploadBadRequest with default headers values
func (*DeleteUploadBadRequest) SetPayload ¶
func (o *DeleteUploadBadRequest) SetPayload(payload *ghcmessages.InvalidRequestResponsePayload)
SetPayload sets the payload to the delete upload bad request response
func (*DeleteUploadBadRequest) WithPayload ¶
func (o *DeleteUploadBadRequest) WithPayload(payload *ghcmessages.InvalidRequestResponsePayload) *DeleteUploadBadRequest
WithPayload adds the payload to the delete upload bad request response
func (*DeleteUploadBadRequest) WriteResponse ¶
func (o *DeleteUploadBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteUploadForbidden ¶
type DeleteUploadForbidden struct { }
DeleteUploadForbidden not authorized
swagger:response deleteUploadForbidden
func NewDeleteUploadForbidden ¶
func NewDeleteUploadForbidden() *DeleteUploadForbidden
NewDeleteUploadForbidden creates DeleteUploadForbidden with default headers values
func (*DeleteUploadForbidden) WriteResponse ¶
func (o *DeleteUploadForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteUploadHandler ¶
type DeleteUploadHandler interface {
Handle(DeleteUploadParams) middleware.Responder
}
DeleteUploadHandler interface for that can handle valid delete upload params
type DeleteUploadHandlerFunc ¶
type DeleteUploadHandlerFunc func(DeleteUploadParams) middleware.Responder
DeleteUploadHandlerFunc turns a function with the right signature into a delete upload handler
func (DeleteUploadHandlerFunc) Handle ¶
func (fn DeleteUploadHandlerFunc) Handle(params DeleteUploadParams) middleware.Responder
Handle executing the request and returning a response
type DeleteUploadInternalServerError ¶
type DeleteUploadInternalServerError struct { }
DeleteUploadInternalServerError server error
swagger:response deleteUploadInternalServerError
func NewDeleteUploadInternalServerError ¶
func NewDeleteUploadInternalServerError() *DeleteUploadInternalServerError
NewDeleteUploadInternalServerError creates DeleteUploadInternalServerError with default headers values
func (*DeleteUploadInternalServerError) WriteResponse ¶
func (o *DeleteUploadInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteUploadNoContent ¶
type DeleteUploadNoContent struct { }
DeleteUploadNoContent deleted
swagger:response deleteUploadNoContent
func NewDeleteUploadNoContent ¶
func NewDeleteUploadNoContent() *DeleteUploadNoContent
NewDeleteUploadNoContent creates DeleteUploadNoContent with default headers values
func (*DeleteUploadNoContent) WriteResponse ¶
func (o *DeleteUploadNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteUploadNotFound ¶
type DeleteUploadNotFound struct { }
DeleteUploadNotFound not found
swagger:response deleteUploadNotFound
func NewDeleteUploadNotFound ¶
func NewDeleteUploadNotFound() *DeleteUploadNotFound
NewDeleteUploadNotFound creates DeleteUploadNotFound with default headers values
func (*DeleteUploadNotFound) WriteResponse ¶
func (o *DeleteUploadNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteUploadParams ¶
type DeleteUploadParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*ID of the order that the upload belongs to In: query */ OrderID *strfmt.UUID /*UUID of the upload to be deleted Required: true In: path */ UploadID strfmt.UUID }
DeleteUploadParams contains all the bound params for the delete upload operation typically these are obtained from a http.Request
swagger:parameters deleteUpload
func NewDeleteUploadParams ¶
func NewDeleteUploadParams() DeleteUploadParams
NewDeleteUploadParams creates a new DeleteUploadParams object
There are no default values defined in the spec.
func (*DeleteUploadParams) BindRequest ¶
func (o *DeleteUploadParams) 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 NewDeleteUploadParams() beforehand.
type DeleteUploadURL ¶
type DeleteUploadURL struct { UploadID strfmt.UUID OrderID *strfmt.UUID // contains filtered or unexported fields }
DeleteUploadURL generates an URL for the delete upload operation
func (*DeleteUploadURL) Build ¶
func (o *DeleteUploadURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteUploadURL) BuildFull ¶
func (o *DeleteUploadURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteUploadURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteUploadURL) SetBasePath ¶
func (o *DeleteUploadURL) 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 (*DeleteUploadURL) String ¶
func (o *DeleteUploadURL) String() string
String returns the string representation of the path with query string
func (*DeleteUploadURL) StringFull ¶
func (o *DeleteUploadURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteUploadURL) WithBasePath ¶
func (o *DeleteUploadURL) WithBasePath(bp string) *DeleteUploadURL
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 GetUpload ¶
type GetUpload struct { Context *middleware.Context Handler GetUploadHandler }
GetUpload swagger:route GET /uploads/get/ uploads getUpload
Gets an upload by ID ¶
Gets an upload
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 { /* In: Body */ Payload *ghcmessages.Error `json:"body,omitempty"` }
GetUploadBadRequest The request payload is invalid
swagger:response getUploadBadRequest
func NewGetUploadBadRequest ¶
func NewGetUploadBadRequest() *GetUploadBadRequest
NewGetUploadBadRequest creates GetUploadBadRequest with default headers values
func (*GetUploadBadRequest) SetPayload ¶
func (o *GetUploadBadRequest) SetPayload(payload *ghcmessages.Error)
SetPayload sets the payload to the get upload bad request response
func (*GetUploadBadRequest) WithPayload ¶
func (o *GetUploadBadRequest) WithPayload(payload *ghcmessages.Error) *GetUploadBadRequest
WithPayload adds the payload to the get upload bad request response
func (*GetUploadBadRequest) WriteResponse ¶
func (o *GetUploadBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetUploadForbidden ¶
type GetUploadForbidden struct { /* In: Body */ Payload *ghcmessages.Error `json:"body,omitempty"` }
GetUploadForbidden The request was denied
swagger:response getUploadForbidden
func NewGetUploadForbidden ¶
func NewGetUploadForbidden() *GetUploadForbidden
NewGetUploadForbidden creates GetUploadForbidden with default headers values
func (*GetUploadForbidden) SetPayload ¶
func (o *GetUploadForbidden) SetPayload(payload *ghcmessages.Error)
SetPayload sets the payload to the get upload forbidden response
func (*GetUploadForbidden) WithPayload ¶
func (o *GetUploadForbidden) WithPayload(payload *ghcmessages.Error) *GetUploadForbidden
WithPayload adds the payload to the get upload forbidden response
func (*GetUploadForbidden) WriteResponse ¶
func (o *GetUploadForbidden) 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 { /* In: Body */ Payload *ghcmessages.Error `json:"body,omitempty"` }
GetUploadInternalServerError A server error occurred
swagger:response getUploadInternalServerError
func NewGetUploadInternalServerError ¶
func NewGetUploadInternalServerError() *GetUploadInternalServerError
NewGetUploadInternalServerError creates GetUploadInternalServerError with default headers values
func (*GetUploadInternalServerError) SetPayload ¶
func (o *GetUploadInternalServerError) SetPayload(payload *ghcmessages.Error)
SetPayload sets the payload to the get upload internal server error response
func (*GetUploadInternalServerError) WithPayload ¶
func (o *GetUploadInternalServerError) WithPayload(payload *ghcmessages.Error) *GetUploadInternalServerError
WithPayload adds the payload to the get upload internal server error response
func (*GetUploadInternalServerError) WriteResponse ¶
func (o *GetUploadInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetUploadNotFound ¶
type GetUploadNotFound struct { /* In: Body */ Payload *ghcmessages.Error `json:"body,omitempty"` }
GetUploadNotFound The requested resource wasn't found
swagger:response getUploadNotFound
func NewGetUploadNotFound ¶
func NewGetUploadNotFound() *GetUploadNotFound
NewGetUploadNotFound creates GetUploadNotFound with default headers values
func (*GetUploadNotFound) SetPayload ¶
func (o *GetUploadNotFound) SetPayload(payload *ghcmessages.Error)
SetPayload sets the payload to the get upload not found response
func (*GetUploadNotFound) WithPayload ¶
func (o *GetUploadNotFound) WithPayload(payload *ghcmessages.Error) *GetUploadNotFound
WithPayload adds the payload to the get upload not found response
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 *ghcmessages.Upload `json:"body,omitempty"` }
GetUploadOK Successfully retrieved upload
swagger:response getUploadOK
func NewGetUploadOK ¶
func NewGetUploadOK() *GetUploadOK
NewGetUploadOK creates GetUploadOK with default headers values
func (*GetUploadOK) SetPayload ¶
func (o *GetUploadOK) SetPayload(payload *ghcmessages.Upload)
SetPayload sets the payload to the get upload o k response
func (*GetUploadOK) WithPayload ¶
func (o *GetUploadOK) WithPayload(payload *ghcmessages.Upload) *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 ¶
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 ¶
type GetUploadURL struct {
// contains filtered or unexported fields
}
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 { ghcmessages.Error `json:"body,omitempty"` }Payload *
GetUploadUnauthorized The request was denied
swagger:response getUploadUnauthorized
func NewGetUploadUnauthorized ¶
func NewGetUploadUnauthorized() *GetUploadUnauthorized
NewGetUploadUnauthorized creates GetUploadUnauthorized with default headers values
func (*GetUploadUnauthorized) SetPayload ¶
func (o *GetUploadUnauthorized) SetPayload(payload *ghcmessages.Error)
SetPayload sets the payload to the get upload unauthorized response
func (*GetUploadUnauthorized) WithPayload ¶
func (o *GetUploadUnauthorized) WithPayload(payload *ghcmessages.Error) *GetUploadUnauthorized
WithPayload adds the payload to the get upload unauthorized response
func (*GetUploadUnauthorized) WriteResponse ¶
func (o *GetUploadUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateUpload ¶
type UpdateUpload struct { Context *middleware.Context Handler UpdateUploadHandler }
UpdateUpload swagger:route PATCH /uploads/{uploadID}/update uploads updateUpload
Update an existing upload. This is only needed currently for updating the image rotation.
Uploads represent a single digital file, such as a JPEG or PDF. The rotation is relevant to how it is displayed on the page.
func NewUpdateUpload ¶
func NewUpdateUpload(ctx *middleware.Context, handler UpdateUploadHandler) *UpdateUpload
NewUpdateUpload creates a new http.Handler for the update upload operation
func (*UpdateUpload) ServeHTTP ¶
func (o *UpdateUpload) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type UpdateUploadBadRequest ¶
type UpdateUploadBadRequest struct { }
UpdateUploadBadRequest invalid request
swagger:response updateUploadBadRequest
func NewUpdateUploadBadRequest ¶
func NewUpdateUploadBadRequest() *UpdateUploadBadRequest
NewUpdateUploadBadRequest creates UpdateUploadBadRequest with default headers values
func (*UpdateUploadBadRequest) WriteResponse ¶
func (o *UpdateUploadBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateUploadBody ¶
type UpdateUploadBody struct { // The rotation of the image // Maximum: 3 // Minimum: 0 Rotation *int64 `json:"rotation,omitempty"` }
UpdateUploadBody update upload body
swagger:model UpdateUploadBody
func (*UpdateUploadBody) ContextValidate ¶
ContextValidate validates this update upload body based on context it is used
func (*UpdateUploadBody) MarshalBinary ¶
func (o *UpdateUploadBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*UpdateUploadBody) UnmarshalBinary ¶
func (o *UpdateUploadBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type UpdateUploadCreated ¶
type UpdateUploadCreated struct { /* In: Body */ Payload *ghcmessages.Upload `json:"body,omitempty"` }
UpdateUploadCreated updated upload
swagger:response updateUploadCreated
func NewUpdateUploadCreated ¶
func NewUpdateUploadCreated() *UpdateUploadCreated
NewUpdateUploadCreated creates UpdateUploadCreated with default headers values
func (*UpdateUploadCreated) SetPayload ¶
func (o *UpdateUploadCreated) SetPayload(payload *ghcmessages.Upload)
SetPayload sets the payload to the update upload created response
func (*UpdateUploadCreated) WithPayload ¶
func (o *UpdateUploadCreated) WithPayload(payload *ghcmessages.Upload) *UpdateUploadCreated
WithPayload adds the payload to the update upload created response
func (*UpdateUploadCreated) WriteResponse ¶
func (o *UpdateUploadCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateUploadForbidden ¶
type UpdateUploadForbidden struct { }
UpdateUploadForbidden not authorized
swagger:response updateUploadForbidden
func NewUpdateUploadForbidden ¶
func NewUpdateUploadForbidden() *UpdateUploadForbidden
NewUpdateUploadForbidden creates UpdateUploadForbidden with default headers values
func (*UpdateUploadForbidden) WriteResponse ¶
func (o *UpdateUploadForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateUploadHandler ¶
type UpdateUploadHandler interface {
Handle(UpdateUploadParams) middleware.Responder
}
UpdateUploadHandler interface for that can handle valid update upload params
type UpdateUploadHandlerFunc ¶
type UpdateUploadHandlerFunc func(UpdateUploadParams) middleware.Responder
UpdateUploadHandlerFunc turns a function with the right signature into a update upload handler
func (UpdateUploadHandlerFunc) Handle ¶
func (fn UpdateUploadHandlerFunc) Handle(params UpdateUploadParams) middleware.Responder
Handle executing the request and returning a response
type UpdateUploadInternalServerError ¶
type UpdateUploadInternalServerError struct { }
UpdateUploadInternalServerError server error
swagger:response updateUploadInternalServerError
func NewUpdateUploadInternalServerError ¶
func NewUpdateUploadInternalServerError() *UpdateUploadInternalServerError
NewUpdateUploadInternalServerError creates UpdateUploadInternalServerError with default headers values
func (*UpdateUploadInternalServerError) WriteResponse ¶
func (o *UpdateUploadInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateUploadNotFound ¶
type UpdateUploadNotFound struct { }
UpdateUploadNotFound not found
swagger:response updateUploadNotFound
func NewUpdateUploadNotFound ¶
func NewUpdateUploadNotFound() *UpdateUploadNotFound
NewUpdateUploadNotFound creates UpdateUploadNotFound with default headers values
func (*UpdateUploadNotFound) WriteResponse ¶
func (o *UpdateUploadNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateUploadParams ¶
type UpdateUploadParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: body */ Body UpdateUploadBody /*UUID of the upload to be updated Required: true In: path */ UploadID strfmt.UUID }
UpdateUploadParams contains all the bound params for the update upload operation typically these are obtained from a http.Request
swagger:parameters updateUpload
func NewUpdateUploadParams ¶
func NewUpdateUploadParams() UpdateUploadParams
NewUpdateUploadParams creates a new UpdateUploadParams object
There are no default values defined in the spec.
func (*UpdateUploadParams) BindRequest ¶
func (o *UpdateUploadParams) 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 NewUpdateUploadParams() beforehand.
type UpdateUploadRequestEntityTooLarge ¶
type UpdateUploadRequestEntityTooLarge struct { }
UpdateUploadRequestEntityTooLarge payload is too large
swagger:response updateUploadRequestEntityTooLarge
func NewUpdateUploadRequestEntityTooLarge ¶
func NewUpdateUploadRequestEntityTooLarge() *UpdateUploadRequestEntityTooLarge
NewUpdateUploadRequestEntityTooLarge creates UpdateUploadRequestEntityTooLarge with default headers values
func (*UpdateUploadRequestEntityTooLarge) WriteResponse ¶
func (o *UpdateUploadRequestEntityTooLarge) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateUploadURL ¶
UpdateUploadURL generates an URL for the update upload operation
func (*UpdateUploadURL) Build ¶
func (o *UpdateUploadURL) Build() (*url.URL, error)
Build a url path and query string
func (*UpdateUploadURL) BuildFull ¶
func (o *UpdateUploadURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*UpdateUploadURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*UpdateUploadURL) SetBasePath ¶
func (o *UpdateUploadURL) 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 (*UpdateUploadURL) String ¶
func (o *UpdateUploadURL) String() string
String returns the string representation of the path with query string
func (*UpdateUploadURL) StringFull ¶
func (o *UpdateUploadURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*UpdateUploadURL) WithBasePath ¶
func (o *UpdateUploadURL) WithBasePath(bp string) *UpdateUploadURL
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 ¶
- create_upload.go
- create_upload_parameters.go
- create_upload_responses.go
- create_upload_urlbuilder.go
- delete_upload.go
- delete_upload_parameters.go
- delete_upload_responses.go
- delete_upload_urlbuilder.go
- get_upload.go
- get_upload_parameters.go
- get_upload_responses.go
- get_upload_urlbuilder.go
- update_upload.go
- update_upload_parameters.go
- update_upload_responses.go
- update_upload_urlbuilder.go