uploads

package
v0.0.0-...-c407d37 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const GetUploadBadRequestCode int = 400

GetUploadBadRequestCode is the HTTP code returned for type GetUploadBadRequest

View Source
const GetUploadInternalServerErrorCode int = 500

GetUploadInternalServerErrorCode is the HTTP code returned for type GetUploadInternalServerError

View Source
const GetUploadNotFoundCode int = 404

GetUploadNotFoundCode is the HTTP code returned for type GetUploadNotFound

View Source
const GetUploadOKCode int = 200

GetUploadOKCode is the HTTP code returned for type GetUploadOK

View Source
const GetUploadUnauthorizedCode int = 401

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

func (*GetUpload) ServeHTTP

func (o *GetUpload) ServeHTTP(rw http.ResponseWriter, r *http.Request)

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

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

type GetUploadURL struct {
	UploadID strfmt.UUID
	// 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

func (o *GetUploadURL) Must(u *url.URL, err error) *url.URL

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

Jump to

Keyboard shortcuts

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