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: 15 Imported by: 0

Documentation

Index

Constants

View Source
const CreateUploadBadRequestCode int = 400

CreateUploadBadRequestCode is the HTTP code returned for type CreateUploadBadRequest

View Source
const CreateUploadCreatedCode int = 201

CreateUploadCreatedCode is the HTTP code returned for type CreateUploadCreated

View Source
const CreateUploadForbiddenCode int = 403

CreateUploadForbiddenCode is the HTTP code returned for type CreateUploadForbidden

View Source
const CreateUploadInternalServerErrorCode int = 500

CreateUploadInternalServerErrorCode is the HTTP code returned for type CreateUploadInternalServerError

View Source
const CreateUploadNotFoundCode int = 404

CreateUploadNotFoundCode is the HTTP code returned for type CreateUploadNotFound

View Source
const CreateUploadRequestEntityTooLargeCode int = 413

CreateUploadRequestEntityTooLargeCode is the HTTP code returned for type CreateUploadRequestEntityTooLarge

View Source
const DeleteUploadBadRequestCode int = 400

DeleteUploadBadRequestCode is the HTTP code returned for type DeleteUploadBadRequest

View Source
const DeleteUploadForbiddenCode int = 403

DeleteUploadForbiddenCode is the HTTP code returned for type DeleteUploadForbidden

View Source
const DeleteUploadInternalServerErrorCode int = 500

DeleteUploadInternalServerErrorCode is the HTTP code returned for type DeleteUploadInternalServerError

View Source
const DeleteUploadNoContentCode int = 204

DeleteUploadNoContentCode is the HTTP code returned for type DeleteUploadNoContent

View Source
const DeleteUploadNotFoundCode int = 404

DeleteUploadNotFoundCode is the HTTP code returned for type DeleteUploadNotFound

View Source
const DeleteUploadsBadRequestCode int = 400

DeleteUploadsBadRequestCode is the HTTP code returned for type DeleteUploadsBadRequest

View Source
const DeleteUploadsForbiddenCode int = 403

DeleteUploadsForbiddenCode is the HTTP code returned for type DeleteUploadsForbidden

View Source
const DeleteUploadsInternalServerErrorCode int = 500

DeleteUploadsInternalServerErrorCode is the HTTP code returned for type DeleteUploadsInternalServerError

View Source
const DeleteUploadsNoContentCode int = 204

DeleteUploadsNoContentCode is the HTTP code returned for type DeleteUploadsNoContent

View Source
const DeleteUploadsNotFoundCode int = 404

DeleteUploadsNotFoundCode is the HTTP code returned for type DeleteUploadsNotFound

Variables

View Source
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.

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 {

	/*
	  In: Body
	*/
	Payload *internalmessages.InvalidRequestResponsePayload `json:"body,omitempty"`
}

CreateUploadBadRequest invalid request

swagger:response createUploadBadRequest

func NewCreateUploadBadRequest

func NewCreateUploadBadRequest() *CreateUploadBadRequest

NewCreateUploadBadRequest creates CreateUploadBadRequest with default headers values

func (*CreateUploadBadRequest) SetPayload

SetPayload sets the payload to the create upload bad request response

func (*CreateUploadBadRequest) WithPayload

WithPayload adds the payload to the create upload bad request response

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 *internalmessages.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 *internalmessages.Upload)

SetPayload sets the payload to the create upload created response

func (*CreateUploadCreated) WithPayload

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

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

type CreateUploadURL struct {
	DocumentID *strfmt.UUID
	// contains filtered or unexported fields
}

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

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

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 *internalmessages.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

SetPayload sets the payload to the delete upload bad request response

func (*DeleteUploadBadRequest) WithPayload

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

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

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

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 DeleteUploads

type DeleteUploads struct {
	Context *middleware.Context
	Handler DeleteUploadsHandler
}
DeleteUploads swagger:route DELETE /uploads uploads deleteUploads

Deletes a collection of uploads

Uploads represent a single digital file, such as a JPEG or PDF.

func NewDeleteUploads

func NewDeleteUploads(ctx *middleware.Context, handler DeleteUploadsHandler) *DeleteUploads

NewDeleteUploads creates a new http.Handler for the delete uploads operation

func (*DeleteUploads) ServeHTTP

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

type DeleteUploadsBadRequest

type DeleteUploadsBadRequest struct {

	/*
	  In: Body
	*/
	Payload *internalmessages.InvalidRequestResponsePayload `json:"body,omitempty"`
}

DeleteUploadsBadRequest invalid request

swagger:response deleteUploadsBadRequest

func NewDeleteUploadsBadRequest

func NewDeleteUploadsBadRequest() *DeleteUploadsBadRequest

NewDeleteUploadsBadRequest creates DeleteUploadsBadRequest with default headers values

func (*DeleteUploadsBadRequest) SetPayload

SetPayload sets the payload to the delete uploads bad request response

func (*DeleteUploadsBadRequest) WithPayload

WithPayload adds the payload to the delete uploads bad request response

func (*DeleteUploadsBadRequest) WriteResponse

func (o *DeleteUploadsBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteUploadsForbidden

type DeleteUploadsForbidden struct {
}

DeleteUploadsForbidden not authorized

swagger:response deleteUploadsForbidden

func NewDeleteUploadsForbidden

func NewDeleteUploadsForbidden() *DeleteUploadsForbidden

NewDeleteUploadsForbidden creates DeleteUploadsForbidden with default headers values

func (*DeleteUploadsForbidden) WriteResponse

func (o *DeleteUploadsForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteUploadsHandler

type DeleteUploadsHandler interface {
	Handle(DeleteUploadsParams) middleware.Responder
}

DeleteUploadsHandler interface for that can handle valid delete uploads params

type DeleteUploadsHandlerFunc

type DeleteUploadsHandlerFunc func(DeleteUploadsParams) middleware.Responder

DeleteUploadsHandlerFunc turns a function with the right signature into a delete uploads handler

func (DeleteUploadsHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteUploadsInternalServerError

type DeleteUploadsInternalServerError struct {
}

DeleteUploadsInternalServerError server error

swagger:response deleteUploadsInternalServerError

func NewDeleteUploadsInternalServerError

func NewDeleteUploadsInternalServerError() *DeleteUploadsInternalServerError

NewDeleteUploadsInternalServerError creates DeleteUploadsInternalServerError with default headers values

func (*DeleteUploadsInternalServerError) WriteResponse

func (o *DeleteUploadsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteUploadsNoContent

type DeleteUploadsNoContent struct {
}

DeleteUploadsNoContent deleted

swagger:response deleteUploadsNoContent

func NewDeleteUploadsNoContent

func NewDeleteUploadsNoContent() *DeleteUploadsNoContent

NewDeleteUploadsNoContent creates DeleteUploadsNoContent with default headers values

func (*DeleteUploadsNoContent) WriteResponse

func (o *DeleteUploadsNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteUploadsNotFound

type DeleteUploadsNotFound struct {
}

DeleteUploadsNotFound not found

swagger:response deleteUploadsNotFound

func NewDeleteUploadsNotFound

func NewDeleteUploadsNotFound() *DeleteUploadsNotFound

NewDeleteUploadsNotFound creates DeleteUploadsNotFound with default headers values

func (*DeleteUploadsNotFound) WriteResponse

func (o *DeleteUploadsNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteUploadsParams

type DeleteUploadsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Array of UUIDs to be deleted
	  Required: true
	  In: query
	*/
	UploadIds []strfmt.UUID
}

DeleteUploadsParams contains all the bound params for the delete uploads operation typically these are obtained from a http.Request

swagger:parameters deleteUploads

func NewDeleteUploadsParams

func NewDeleteUploadsParams() DeleteUploadsParams

NewDeleteUploadsParams creates a new DeleteUploadsParams object

There are no default values defined in the spec.

func (*DeleteUploadsParams) BindRequest

func (o *DeleteUploadsParams) 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 NewDeleteUploadsParams() beforehand.

type DeleteUploadsURL

type DeleteUploadsURL struct {
	UploadIds []strfmt.UUID
	// contains filtered or unexported fields
}

DeleteUploadsURL generates an URL for the delete uploads operation

func (*DeleteUploadsURL) Build

func (o *DeleteUploadsURL) Build() (*url.URL, error)

Build a url path and query string

func (*DeleteUploadsURL) BuildFull

func (o *DeleteUploadsURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*DeleteUploadsURL) Must

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

Must is a helper function to panic when the url builder returns an error

func (*DeleteUploadsURL) SetBasePath

func (o *DeleteUploadsURL) 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 (*DeleteUploadsURL) String

func (o *DeleteUploadsURL) String() string

String returns the string representation of the path with query string

func (*DeleteUploadsURL) StringFull

func (o *DeleteUploadsURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*DeleteUploadsURL) WithBasePath

func (o *DeleteUploadsURL) WithBasePath(bp string) *DeleteUploadsURL

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

Jump to

Keyboard shortcuts

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