uploader

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const GetUploaderFilesIDInternalServerErrorCode int = 500

GetUploaderFilesIDInternalServerErrorCode is the HTTP code returned for type GetUploaderFilesIDInternalServerError

View Source
const GetUploaderFilesIDOKCode int = 200

GetUploaderFilesIDOKCode is the HTTP code returned for type GetUploaderFilesIDOK

View Source
const GetUploaderFilesInternalServerErrorCode int = 500

GetUploaderFilesInternalServerErrorCode is the HTTP code returned for type GetUploaderFilesInternalServerError

View Source
const GetUploaderFilesOKCode int = 200

GetUploaderFilesOKCode is the HTTP code returned for type GetUploaderFilesOK

View Source
const GetUploaderFilesServeIDInternalServerErrorCode int = 500

GetUploaderFilesServeIDInternalServerErrorCode is the HTTP code returned for type GetUploaderFilesServeIDInternalServerError

View Source
const GetUploaderFilesServeIDOKCode int = 200

GetUploaderFilesServeIDOKCode is the HTTP code returned for type GetUploaderFilesServeIDOK

View Source
const PostUploaderFilesInternalServerErrorCode int = 500

PostUploaderFilesInternalServerErrorCode is the HTTP code returned for type PostUploaderFilesInternalServerError

View Source
const PostUploaderFilesOKCode int = 200

PostUploaderFilesOKCode is the HTTP code returned for type PostUploaderFilesOK

View Source
const PutUploaderFilesInternalServerErrorCode int = 500

PutUploaderFilesInternalServerErrorCode is the HTTP code returned for type PutUploaderFilesInternalServerError

View Source
const PutUploaderFilesOKCode int = 200

PutUploaderFilesOKCode is the HTTP code returned for type PutUploaderFilesOK

Variables

View Source
var PostUploaderFilesMaxParseMemory int64 = 32 << 20

PostUploaderFilesMaxParseMemory 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.

View Source
var PutUploaderFilesMaxParseMemory int64 = 32 << 20

PutUploaderFilesMaxParseMemory 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 GetUploaderFiles

type GetUploaderFiles struct {
	Context *middleware.Context
	Handler GetUploaderFilesHandler
}
GetUploaderFiles swagger:route GET /uploader/files uploader getUploaderFiles

GetUploaderFiles get uploader files API

func NewGetUploaderFiles

func NewGetUploaderFiles(ctx *middleware.Context, handler GetUploaderFilesHandler) *GetUploaderFiles

NewGetUploaderFiles creates a new http.Handler for the get uploader files operation

func (*GetUploaderFiles) ServeHTTP

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

type GetUploaderFilesHandler

type GetUploaderFilesHandler interface {
	Handle(GetUploaderFilesParams, *models.Principal) middleware.Responder
}

GetUploaderFilesHandler interface for that can handle valid get uploader files params

type GetUploaderFilesHandlerFunc

type GetUploaderFilesHandlerFunc func(GetUploaderFilesParams, *models.Principal) middleware.Responder

GetUploaderFilesHandlerFunc turns a function with the right signature into a get uploader files handler

func (GetUploaderFilesHandlerFunc) Handle

Handle executing the request and returning a response

type GetUploaderFilesID

type GetUploaderFilesID struct {
	Context *middleware.Context
	Handler GetUploaderFilesIDHandler
}
GetUploaderFilesID swagger:route GET /uploader/files/{id} uploader getUploaderFilesId

get raw file version

func NewGetUploaderFilesID

func NewGetUploaderFilesID(ctx *middleware.Context, handler GetUploaderFilesIDHandler) *GetUploaderFilesID

NewGetUploaderFilesID creates a new http.Handler for the get uploader files ID operation

func (*GetUploaderFilesID) ServeHTTP

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

type GetUploaderFilesIDHandler

type GetUploaderFilesIDHandler interface {
	Handle(GetUploaderFilesIDParams, *models.Principal) middleware.Responder
}

GetUploaderFilesIDHandler interface for that can handle valid get uploader files ID params

type GetUploaderFilesIDHandlerFunc

type GetUploaderFilesIDHandlerFunc func(GetUploaderFilesIDParams, *models.Principal) middleware.Responder

GetUploaderFilesIDHandlerFunc turns a function with the right signature into a get uploader files ID handler

func (GetUploaderFilesIDHandlerFunc) Handle

Handle executing the request and returning a response

type GetUploaderFilesIDInternalServerError

type GetUploaderFilesIDInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

GetUploaderFilesIDInternalServerError When some error occurs

swagger:response getUploaderFilesIdInternalServerError

func NewGetUploaderFilesIDInternalServerError

func NewGetUploaderFilesIDInternalServerError() *GetUploaderFilesIDInternalServerError

NewGetUploaderFilesIDInternalServerError creates GetUploaderFilesIDInternalServerError with default headers values

func (*GetUploaderFilesIDInternalServerError) SetPayload

func (o *GetUploaderFilesIDInternalServerError) SetPayload(payload *models.Error)

SetPayload sets the payload to the get uploader files Id internal server error response

func (*GetUploaderFilesIDInternalServerError) WithPayload

WithPayload adds the payload to the get uploader files Id internal server error response

func (*GetUploaderFilesIDInternalServerError) WriteResponse

WriteResponse to the client

type GetUploaderFilesIDOK

type GetUploaderFilesIDOK struct {

	/*
	  In: Body
	*/
	Payload *models.File `json:"body,omitempty"`
}

GetUploaderFilesIDOK file

swagger:response getUploaderFilesIdOK

func NewGetUploaderFilesIDOK

func NewGetUploaderFilesIDOK() *GetUploaderFilesIDOK

NewGetUploaderFilesIDOK creates GetUploaderFilesIDOK with default headers values

func (*GetUploaderFilesIDOK) SetPayload

func (o *GetUploaderFilesIDOK) SetPayload(payload *models.File)

SetPayload sets the payload to the get uploader files Id o k response

func (*GetUploaderFilesIDOK) WithPayload

func (o *GetUploaderFilesIDOK) WithPayload(payload *models.File) *GetUploaderFilesIDOK

WithPayload adds the payload to the get uploader files Id o k response

func (*GetUploaderFilesIDOK) WriteResponse

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

WriteResponse to the client

type GetUploaderFilesIDParams

type GetUploaderFilesIDParams struct {

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

	/*
	  Required: true
	  In: path
	*/
	ID int64
}

GetUploaderFilesIDParams contains all the bound params for the get uploader files ID operation typically these are obtained from a http.Request

swagger:parameters GetUploaderFilesID

func NewGetUploaderFilesIDParams

func NewGetUploaderFilesIDParams() GetUploaderFilesIDParams

NewGetUploaderFilesIDParams creates a new GetUploaderFilesIDParams object

There are no default values defined in the spec.

func (*GetUploaderFilesIDParams) BindRequest

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 NewGetUploaderFilesIDParams() beforehand.

type GetUploaderFilesIDURL

type GetUploaderFilesIDURL struct {
	ID int64
	// contains filtered or unexported fields
}

GetUploaderFilesIDURL generates an URL for the get uploader files ID operation

func (*GetUploaderFilesIDURL) Build

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

Build a url path and query string

func (*GetUploaderFilesIDURL) BuildFull

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

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

func (*GetUploaderFilesIDURL) Must

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

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

func (*GetUploaderFilesIDURL) SetBasePath

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

func (o *GetUploaderFilesIDURL) String() string

String returns the string representation of the path with query string

func (*GetUploaderFilesIDURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetUploaderFilesIDURL) WithBasePath

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

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 GetUploaderFilesInternalServerError

type GetUploaderFilesInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

GetUploaderFilesInternalServerError When some error occurs

swagger:response getUploaderFilesInternalServerError

func NewGetUploaderFilesInternalServerError

func NewGetUploaderFilesInternalServerError() *GetUploaderFilesInternalServerError

NewGetUploaderFilesInternalServerError creates GetUploaderFilesInternalServerError with default headers values

func (*GetUploaderFilesInternalServerError) SetPayload

func (o *GetUploaderFilesInternalServerError) SetPayload(payload *models.Error)

SetPayload sets the payload to the get uploader files internal server error response

func (*GetUploaderFilesInternalServerError) WithPayload

WithPayload adds the payload to the get uploader files internal server error response

func (*GetUploaderFilesInternalServerError) WriteResponse

WriteResponse to the client

type GetUploaderFilesOK

type GetUploaderFilesOK struct {

	/*
	  In: Body
	*/
	Payload []*models.File `json:"body,omitempty"`
}

GetUploaderFilesOK An array of uploaded files

swagger:response getUploaderFilesOK

func NewGetUploaderFilesOK

func NewGetUploaderFilesOK() *GetUploaderFilesOK

NewGetUploaderFilesOK creates GetUploaderFilesOK with default headers values

func (*GetUploaderFilesOK) SetPayload

func (o *GetUploaderFilesOK) SetPayload(payload []*models.File)

SetPayload sets the payload to the get uploader files o k response

func (*GetUploaderFilesOK) WithPayload

func (o *GetUploaderFilesOK) WithPayload(payload []*models.File) *GetUploaderFilesOK

WithPayload adds the payload to the get uploader files o k response

func (*GetUploaderFilesOK) WriteResponse

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

WriteResponse to the client

type GetUploaderFilesParams

type GetUploaderFilesParams struct {

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

	/*
	  In: query
	*/
	Name *string
}

GetUploaderFilesParams contains all the bound params for the get uploader files operation typically these are obtained from a http.Request

swagger:parameters GetUploaderFiles

func NewGetUploaderFilesParams

func NewGetUploaderFilesParams() GetUploaderFilesParams

NewGetUploaderFilesParams creates a new GetUploaderFilesParams object

There are no default values defined in the spec.

func (*GetUploaderFilesParams) BindRequest

func (o *GetUploaderFilesParams) 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 NewGetUploaderFilesParams() beforehand.

type GetUploaderFilesServeID

type GetUploaderFilesServeID struct {
	Context *middleware.Context
	Handler GetUploaderFilesServeIDHandler
}
GetUploaderFilesServeID swagger:route GET /uploader/files/serve/{id} uploader getUploaderFilesServeId

get raw file version

func NewGetUploaderFilesServeID

func NewGetUploaderFilesServeID(ctx *middleware.Context, handler GetUploaderFilesServeIDHandler) *GetUploaderFilesServeID

NewGetUploaderFilesServeID creates a new http.Handler for the get uploader files serve ID operation

func (*GetUploaderFilesServeID) ServeHTTP

type GetUploaderFilesServeIDHandler

type GetUploaderFilesServeIDHandler interface {
	Handle(GetUploaderFilesServeIDParams, *models.Principal) middleware.Responder
}

GetUploaderFilesServeIDHandler interface for that can handle valid get uploader files serve ID params

type GetUploaderFilesServeIDHandlerFunc

type GetUploaderFilesServeIDHandlerFunc func(GetUploaderFilesServeIDParams, *models.Principal) middleware.Responder

GetUploaderFilesServeIDHandlerFunc turns a function with the right signature into a get uploader files serve ID handler

func (GetUploaderFilesServeIDHandlerFunc) Handle

Handle executing the request and returning a response

type GetUploaderFilesServeIDInternalServerError

type GetUploaderFilesServeIDInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

GetUploaderFilesServeIDInternalServerError When some error occurs

swagger:response getUploaderFilesServeIdInternalServerError

func NewGetUploaderFilesServeIDInternalServerError

func NewGetUploaderFilesServeIDInternalServerError() *GetUploaderFilesServeIDInternalServerError

NewGetUploaderFilesServeIDInternalServerError creates GetUploaderFilesServeIDInternalServerError with default headers values

func (*GetUploaderFilesServeIDInternalServerError) SetPayload

SetPayload sets the payload to the get uploader files serve Id internal server error response

func (*GetUploaderFilesServeIDInternalServerError) WithPayload

WithPayload adds the payload to the get uploader files serve Id internal server error response

func (*GetUploaderFilesServeIDInternalServerError) WriteResponse

WriteResponse to the client

type GetUploaderFilesServeIDOK

type GetUploaderFilesServeIDOK struct {

	/*
	  In: Body
	*/
	Payload *models.File `json:"body,omitempty"`
}

GetUploaderFilesServeIDOK file

swagger:response getUploaderFilesServeIdOK

func NewGetUploaderFilesServeIDOK

func NewGetUploaderFilesServeIDOK() *GetUploaderFilesServeIDOK

NewGetUploaderFilesServeIDOK creates GetUploaderFilesServeIDOK with default headers values

func (*GetUploaderFilesServeIDOK) SetPayload

func (o *GetUploaderFilesServeIDOK) SetPayload(payload *models.File)

SetPayload sets the payload to the get uploader files serve Id o k response

func (*GetUploaderFilesServeIDOK) WithPayload

WithPayload adds the payload to the get uploader files serve Id o k response

func (*GetUploaderFilesServeIDOK) WriteResponse

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

WriteResponse to the client

type GetUploaderFilesServeIDParams

type GetUploaderFilesServeIDParams struct {

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

	/*
	  Required: true
	  In: path
	*/
	ID int64
}

GetUploaderFilesServeIDParams contains all the bound params for the get uploader files serve ID operation typically these are obtained from a http.Request

swagger:parameters GetUploaderFilesServeID

func NewGetUploaderFilesServeIDParams

func NewGetUploaderFilesServeIDParams() GetUploaderFilesServeIDParams

NewGetUploaderFilesServeIDParams creates a new GetUploaderFilesServeIDParams object

There are no default values defined in the spec.

func (*GetUploaderFilesServeIDParams) BindRequest

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 NewGetUploaderFilesServeIDParams() beforehand.

type GetUploaderFilesServeIDURL

type GetUploaderFilesServeIDURL struct {
	ID int64
	// contains filtered or unexported fields
}

GetUploaderFilesServeIDURL generates an URL for the get uploader files serve ID operation

func (*GetUploaderFilesServeIDURL) Build

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

Build a url path and query string

func (*GetUploaderFilesServeIDURL) BuildFull

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

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

func (*GetUploaderFilesServeIDURL) Must

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

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

func (*GetUploaderFilesServeIDURL) SetBasePath

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

func (o *GetUploaderFilesServeIDURL) String() string

String returns the string representation of the path with query string

func (*GetUploaderFilesServeIDURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetUploaderFilesServeIDURL) WithBasePath

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 GetUploaderFilesURL

type GetUploaderFilesURL struct {
	Name *string
	// contains filtered or unexported fields
}

GetUploaderFilesURL generates an URL for the get uploader files operation

func (*GetUploaderFilesURL) Build

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

Build a url path and query string

func (*GetUploaderFilesURL) BuildFull

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

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

func (*GetUploaderFilesURL) Must

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

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

func (*GetUploaderFilesURL) SetBasePath

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

func (o *GetUploaderFilesURL) String() string

String returns the string representation of the path with query string

func (*GetUploaderFilesURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetUploaderFilesURL) WithBasePath

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

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 PostUploaderFiles

type PostUploaderFiles struct {
	Context *middleware.Context
	Handler PostUploaderFilesHandler
}
PostUploaderFiles swagger:route POST /uploader/files uploader postUploaderFiles

Uploads a file.

func NewPostUploaderFiles

func NewPostUploaderFiles(ctx *middleware.Context, handler PostUploaderFilesHandler) *PostUploaderFiles

NewPostUploaderFiles creates a new http.Handler for the post uploader files operation

func (*PostUploaderFiles) ServeHTTP

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

type PostUploaderFilesHandler

type PostUploaderFilesHandler interface {
	Handle(PostUploaderFilesParams, *models.Principal) middleware.Responder
}

PostUploaderFilesHandler interface for that can handle valid post uploader files params

type PostUploaderFilesHandlerFunc

type PostUploaderFilesHandlerFunc func(PostUploaderFilesParams, *models.Principal) middleware.Responder

PostUploaderFilesHandlerFunc turns a function with the right signature into a post uploader files handler

func (PostUploaderFilesHandlerFunc) Handle

Handle executing the request and returning a response

type PostUploaderFilesInternalServerError

type PostUploaderFilesInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

PostUploaderFilesInternalServerError generic error response

swagger:response postUploaderFilesInternalServerError

func NewPostUploaderFilesInternalServerError

func NewPostUploaderFilesInternalServerError() *PostUploaderFilesInternalServerError

NewPostUploaderFilesInternalServerError creates PostUploaderFilesInternalServerError with default headers values

func (*PostUploaderFilesInternalServerError) SetPayload

func (o *PostUploaderFilesInternalServerError) SetPayload(payload *models.Error)

SetPayload sets the payload to the post uploader files internal server error response

func (*PostUploaderFilesInternalServerError) WithPayload

WithPayload adds the payload to the post uploader files internal server error response

func (*PostUploaderFilesInternalServerError) WriteResponse

WriteResponse to the client

type PostUploaderFilesOK

type PostUploaderFilesOK struct {

	/*
	  In: Body
	*/
	Payload *models.PublicFile `json:"body,omitempty"`
}

PostUploaderFilesOK successful upload

swagger:response postUploaderFilesOK

func NewPostUploaderFilesOK

func NewPostUploaderFilesOK() *PostUploaderFilesOK

NewPostUploaderFilesOK creates PostUploaderFilesOK with default headers values

func (*PostUploaderFilesOK) SetPayload

func (o *PostUploaderFilesOK) SetPayload(payload *models.PublicFile)

SetPayload sets the payload to the post uploader files o k response

func (*PostUploaderFilesOK) WithPayload

func (o *PostUploaderFilesOK) WithPayload(payload *models.PublicFile) *PostUploaderFilesOK

WithPayload adds the payload to the post uploader files o k response

func (*PostUploaderFilesOK) WriteResponse

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

WriteResponse to the client

type PostUploaderFilesParams

type PostUploaderFilesParams struct {

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

	/*alternative text
	  In: formData
	*/
	Alt *string
	/*image caption
	  In: formData
	*/
	Caption *string
	/*The file to upload.
	  In: formData
	*/
	File io.ReadCloser
	/*image height
	  In: formData
	*/
	Height *float64
	/*generated file id
	  In: formData
	*/
	ID *string
	/*image name
	  In: formData
	*/
	Name *string
	/*image chapter
	  In: formData
	*/
	Provider *string
	/*image size in bytes
	  In: formData
	*/
	Size *float64
	/*mime type
	  In: formData
	*/
	Type *string
	/*image width
	  In: formData
	*/
	Width *float64
}

PostUploaderFilesParams contains all the bound params for the post uploader files operation typically these are obtained from a http.Request

swagger:parameters PostUploaderFiles

func NewPostUploaderFilesParams

func NewPostUploaderFilesParams() PostUploaderFilesParams

NewPostUploaderFilesParams creates a new PostUploaderFilesParams object

There are no default values defined in the spec.

func (*PostUploaderFilesParams) BindRequest

func (o *PostUploaderFilesParams) 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 NewPostUploaderFilesParams() beforehand.

type PostUploaderFilesURL

type PostUploaderFilesURL struct {
	// contains filtered or unexported fields
}

PostUploaderFilesURL generates an URL for the post uploader files operation

func (*PostUploaderFilesURL) Build

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

Build a url path and query string

func (*PostUploaderFilesURL) BuildFull

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

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

func (*PostUploaderFilesURL) Must

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

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

func (*PostUploaderFilesURL) SetBasePath

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

func (o *PostUploaderFilesURL) String() string

String returns the string representation of the path with query string

func (*PostUploaderFilesURL) StringFull

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

StringFull returns the string representation of a complete url

func (*PostUploaderFilesURL) WithBasePath

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

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 PutUploaderFiles

type PutUploaderFiles struct {
	Context *middleware.Context
	Handler PutUploaderFilesHandler
}
PutUploaderFiles swagger:route PUT /uploader/files uploader putUploaderFiles

Edit uploaded file.

func NewPutUploaderFiles

func NewPutUploaderFiles(ctx *middleware.Context, handler PutUploaderFilesHandler) *PutUploaderFiles

NewPutUploaderFiles creates a new http.Handler for the put uploader files operation

func (*PutUploaderFiles) ServeHTTP

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

type PutUploaderFilesHandler

type PutUploaderFilesHandler interface {
	Handle(PutUploaderFilesParams, *models.Principal) middleware.Responder
}

PutUploaderFilesHandler interface for that can handle valid put uploader files params

type PutUploaderFilesHandlerFunc

type PutUploaderFilesHandlerFunc func(PutUploaderFilesParams, *models.Principal) middleware.Responder

PutUploaderFilesHandlerFunc turns a function with the right signature into a put uploader files handler

func (PutUploaderFilesHandlerFunc) Handle

Handle executing the request and returning a response

type PutUploaderFilesInternalServerError

type PutUploaderFilesInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

PutUploaderFilesInternalServerError When some error occurs

swagger:response putUploaderFilesInternalServerError

func NewPutUploaderFilesInternalServerError

func NewPutUploaderFilesInternalServerError() *PutUploaderFilesInternalServerError

NewPutUploaderFilesInternalServerError creates PutUploaderFilesInternalServerError with default headers values

func (*PutUploaderFilesInternalServerError) SetPayload

func (o *PutUploaderFilesInternalServerError) SetPayload(payload *models.Error)

SetPayload sets the payload to the put uploader files internal server error response

func (*PutUploaderFilesInternalServerError) WithPayload

WithPayload adds the payload to the put uploader files internal server error response

func (*PutUploaderFilesInternalServerError) WriteResponse

WriteResponse to the client

type PutUploaderFilesOK

type PutUploaderFilesOK struct {

	/*
	  In: Body
	*/
	Payload []*models.File `json:"body,omitempty"`
}

PutUploaderFilesOK An array of files

swagger:response putUploaderFilesOK

func NewPutUploaderFilesOK

func NewPutUploaderFilesOK() *PutUploaderFilesOK

NewPutUploaderFilesOK creates PutUploaderFilesOK with default headers values

func (*PutUploaderFilesOK) SetPayload

func (o *PutUploaderFilesOK) SetPayload(payload []*models.File)

SetPayload sets the payload to the put uploader files o k response

func (*PutUploaderFilesOK) WithPayload

func (o *PutUploaderFilesOK) WithPayload(payload []*models.File) *PutUploaderFilesOK

WithPayload adds the payload to the put uploader files o k response

func (*PutUploaderFilesOK) WriteResponse

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

WriteResponse to the client

type PutUploaderFilesParams

type PutUploaderFilesParams struct {

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

	/*alternative text
	  In: formData
	*/
	Alt *string
	/*image caption
	  In: formData
	*/
	Caption *string
	/*The file to upload.
	  In: formData
	*/
	File io.ReadCloser
	/*image height
	  In: formData
	*/
	Height *float64
	/*existing file id
	  In: formData
	*/
	ID *string
	/*image name
	  In: formData
	*/
	Name *string
	/*image chapter
	  In: formData
	*/
	Provider *string
	/*image size in bytes
	  In: formData
	*/
	Size *float64
	/*mime type
	  In: formData
	*/
	Type *string
	/*image width
	  In: formData
	*/
	Width *float64
}

PutUploaderFilesParams contains all the bound params for the put uploader files operation typically these are obtained from a http.Request

swagger:parameters PutUploaderFiles

func NewPutUploaderFilesParams

func NewPutUploaderFilesParams() PutUploaderFilesParams

NewPutUploaderFilesParams creates a new PutUploaderFilesParams object

There are no default values defined in the spec.

func (*PutUploaderFilesParams) BindRequest

func (o *PutUploaderFilesParams) 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 NewPutUploaderFilesParams() beforehand.

type PutUploaderFilesURL

type PutUploaderFilesURL struct {
	// contains filtered or unexported fields
}

PutUploaderFilesURL generates an URL for the put uploader files operation

func (*PutUploaderFilesURL) Build

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

Build a url path and query string

func (*PutUploaderFilesURL) BuildFull

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

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

func (*PutUploaderFilesURL) Must

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

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

func (*PutUploaderFilesURL) SetBasePath

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

func (o *PutUploaderFilesURL) String() string

String returns the string representation of the path with query string

func (*PutUploaderFilesURL) StringFull

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

StringFull returns the string representation of a complete url

func (*PutUploaderFilesURL) WithBasePath

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

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