file_storage

package
v0.0.0-...-bfae352 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const GetFrontendStorageFilesBadRequestCode int = 400

GetFrontendStorageFilesBadRequestCode is the HTTP code returned for type GetFrontendStorageFilesBadRequest

View Source
const GetFrontendStorageFilesInternalServerErrorCode int = 500

GetFrontendStorageFilesInternalServerErrorCode is the HTTP code returned for type GetFrontendStorageFilesInternalServerError

View Source
const GetFrontendStorageFilesNotFoundCode int = 404

GetFrontendStorageFilesNotFoundCode is the HTTP code returned for type GetFrontendStorageFilesNotFound

View Source
const GetFrontendStorageFilesOKCode int = 200

GetFrontendStorageFilesOKCode is the HTTP code returned for type GetFrontendStorageFilesOK

View Source
const GetFrontendStorageFilesUnauthorizedCode int = 401

GetFrontendStorageFilesUnauthorizedCode is the HTTP code returned for type GetFrontendStorageFilesUnauthorized

View Source
const PostFrontendStorageFilesBadRequestCode int = 400

PostFrontendStorageFilesBadRequestCode is the HTTP code returned for type PostFrontendStorageFilesBadRequest

View Source
const PostFrontendStorageFilesInternalServerErrorCode int = 500

PostFrontendStorageFilesInternalServerErrorCode is the HTTP code returned for type PostFrontendStorageFilesInternalServerError

View Source
const PostFrontendStorageFilesNotFoundCode int = 404

PostFrontendStorageFilesNotFoundCode is the HTTP code returned for type PostFrontendStorageFilesNotFound

View Source
const PostFrontendStorageFilesOKCode int = 200

PostFrontendStorageFilesOKCode is the HTTP code returned for type PostFrontendStorageFilesOK

View Source
const PostFrontendStorageFilesUnauthorizedCode int = 401

PostFrontendStorageFilesUnauthorizedCode is the HTTP code returned for type PostFrontendStorageFilesUnauthorized

View Source
const PutFrontendStorageFilesBadRequestCode int = 400

PutFrontendStorageFilesBadRequestCode is the HTTP code returned for type PutFrontendStorageFilesBadRequest

View Source
const PutFrontendStorageFilesInternalServerErrorCode int = 500

PutFrontendStorageFilesInternalServerErrorCode is the HTTP code returned for type PutFrontendStorageFilesInternalServerError

View Source
const PutFrontendStorageFilesNotFoundCode int = 404

PutFrontendStorageFilesNotFoundCode is the HTTP code returned for type PutFrontendStorageFilesNotFound

View Source
const PutFrontendStorageFilesOKCode int = 200

PutFrontendStorageFilesOKCode is the HTTP code returned for type PutFrontendStorageFilesOK

View Source
const PutFrontendStorageFilesUnauthorizedCode int = 401

PutFrontendStorageFilesUnauthorizedCode is the HTTP code returned for type PutFrontendStorageFilesUnauthorized

Variables

View Source
var PostFrontendStorageFilesMaxParseMemory int64 = 32 << 20

PostFrontendStorageFilesMaxParseMemory 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 PutFrontendStorageFilesMaxParseMemory int64 = 32 << 20

PutFrontendStorageFilesMaxParseMemory 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 GetFrontendStorageFiles

type GetFrontendStorageFiles struct {
	Context *middleware.Context
	Handler GetFrontendStorageFilesHandler
}
GetFrontendStorageFiles swagger:route GET /frontend/storage/files FileStorage getFrontendStorageFiles

GetFrontendStorageFiles get frontend storage files API

func NewGetFrontendStorageFiles

func NewGetFrontendStorageFiles(ctx *middleware.Context, handler GetFrontendStorageFilesHandler) *GetFrontendStorageFiles

NewGetFrontendStorageFiles creates a new http.Handler for the get frontend storage files operation

func (*GetFrontendStorageFiles) ServeHTTP

type GetFrontendStorageFilesBadRequest

type GetFrontendStorageFilesBadRequest struct {

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

GetFrontendStorageFilesBadRequest Bad request due to missing or invalid parameters.

swagger:response getFrontendStorageFilesBadRequest

func NewGetFrontendStorageFilesBadRequest

func NewGetFrontendStorageFilesBadRequest() *GetFrontendStorageFilesBadRequest

NewGetFrontendStorageFilesBadRequest creates GetFrontendStorageFilesBadRequest with default headers values

func (*GetFrontendStorageFilesBadRequest) SetPayload

func (o *GetFrontendStorageFilesBadRequest) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the get frontend storage files bad request response

func (*GetFrontendStorageFilesBadRequest) WithPayload

WithPayload adds the payload to the get frontend storage files bad request response

func (*GetFrontendStorageFilesBadRequest) WriteResponse

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

WriteResponse to the client

type GetFrontendStorageFilesHandler

type GetFrontendStorageFilesHandler interface {
	Handle(GetFrontendStorageFilesParams, *models.Principal) middleware.Responder
}

GetFrontendStorageFilesHandler interface for that can handle valid get frontend storage files params

type GetFrontendStorageFilesHandlerFunc

type GetFrontendStorageFilesHandlerFunc func(GetFrontendStorageFilesParams, *models.Principal) middleware.Responder

GetFrontendStorageFilesHandlerFunc turns a function with the right signature into a get frontend storage files handler

func (GetFrontendStorageFilesHandlerFunc) Handle

Handle executing the request and returning a response

type GetFrontendStorageFilesInternalServerError

type GetFrontendStorageFilesInternalServerError struct {

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

GetFrontendStorageFilesInternalServerError Internal server error.

swagger:response getFrontendStorageFilesInternalServerError

func NewGetFrontendStorageFilesInternalServerError

func NewGetFrontendStorageFilesInternalServerError() *GetFrontendStorageFilesInternalServerError

NewGetFrontendStorageFilesInternalServerError creates GetFrontendStorageFilesInternalServerError with default headers values

func (*GetFrontendStorageFilesInternalServerError) SetPayload

SetPayload sets the payload to the get frontend storage files internal server error response

func (*GetFrontendStorageFilesInternalServerError) WithPayload

WithPayload adds the payload to the get frontend storage files internal server error response

func (*GetFrontendStorageFilesInternalServerError) WriteResponse

WriteResponse to the client

type GetFrontendStorageFilesNotFound

type GetFrontendStorageFilesNotFound struct {

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

GetFrontendStorageFilesNotFound Not found. The requested resource could not be found.

swagger:response getFrontendStorageFilesNotFound

func NewGetFrontendStorageFilesNotFound

func NewGetFrontendStorageFilesNotFound() *GetFrontendStorageFilesNotFound

NewGetFrontendStorageFilesNotFound creates GetFrontendStorageFilesNotFound with default headers values

func (*GetFrontendStorageFilesNotFound) SetPayload

func (o *GetFrontendStorageFilesNotFound) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the get frontend storage files not found response

func (*GetFrontendStorageFilesNotFound) WithPayload

WithPayload adds the payload to the get frontend storage files not found response

func (*GetFrontendStorageFilesNotFound) WriteResponse

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

WriteResponse to the client

type GetFrontendStorageFilesOK

type GetFrontendStorageFilesOK struct {

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

GetFrontendStorageFilesOK An array of uploaded files

swagger:response getFrontendStorageFilesOK

func NewGetFrontendStorageFilesOK

func NewGetFrontendStorageFilesOK() *GetFrontendStorageFilesOK

NewGetFrontendStorageFilesOK creates GetFrontendStorageFilesOK with default headers values

func (*GetFrontendStorageFilesOK) SetPayload

func (o *GetFrontendStorageFilesOK) SetPayload(payload []*models.PublicFile)

SetPayload sets the payload to the get frontend storage files o k response

func (*GetFrontendStorageFilesOK) WithPayload

WithPayload adds the payload to the get frontend storage files o k response

func (*GetFrontendStorageFilesOK) WriteResponse

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

WriteResponse to the client

type GetFrontendStorageFilesParams

type GetFrontendStorageFilesParams struct {

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

	/*
	  In: query
	*/
	Name *string
}

GetFrontendStorageFilesParams contains all the bound params for the get frontend storage files operation typically these are obtained from a http.Request

swagger:parameters GetFrontendStorageFiles

func NewGetFrontendStorageFilesParams

func NewGetFrontendStorageFilesParams() GetFrontendStorageFilesParams

NewGetFrontendStorageFilesParams creates a new GetFrontendStorageFilesParams object

There are no default values defined in the spec.

func (*GetFrontendStorageFilesParams) 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 NewGetFrontendStorageFilesParams() beforehand.

type GetFrontendStorageFilesURL

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

GetFrontendStorageFilesURL generates an URL for the get frontend storage files operation

func (*GetFrontendStorageFilesURL) Build

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

Build a url path and query string

func (*GetFrontendStorageFilesURL) BuildFull

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

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

func (*GetFrontendStorageFilesURL) Must

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

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

func (*GetFrontendStorageFilesURL) SetBasePath

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

func (o *GetFrontendStorageFilesURL) String() string

String returns the string representation of the path with query string

func (*GetFrontendStorageFilesURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetFrontendStorageFilesURL) 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 GetFrontendStorageFilesUnauthorized

type GetFrontendStorageFilesUnauthorized struct {

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

GetFrontendStorageFilesUnauthorized Unauthorized. The request is missing valid authentication.

swagger:response getFrontendStorageFilesUnauthorized

func NewGetFrontendStorageFilesUnauthorized

func NewGetFrontendStorageFilesUnauthorized() *GetFrontendStorageFilesUnauthorized

NewGetFrontendStorageFilesUnauthorized creates GetFrontendStorageFilesUnauthorized with default headers values

func (*GetFrontendStorageFilesUnauthorized) SetPayload

SetPayload sets the payload to the get frontend storage files unauthorized response

func (*GetFrontendStorageFilesUnauthorized) WithPayload

WithPayload adds the payload to the get frontend storage files unauthorized response

func (*GetFrontendStorageFilesUnauthorized) WriteResponse

WriteResponse to the client

type PostFrontendStorageFiles

type PostFrontendStorageFiles struct {
	Context *middleware.Context
	Handler PostFrontendStorageFilesHandler
}
PostFrontendStorageFiles swagger:route POST /frontend/storage/files FileStorage postFrontendStorageFiles

Uploads a file.

func NewPostFrontendStorageFiles

func NewPostFrontendStorageFiles(ctx *middleware.Context, handler PostFrontendStorageFilesHandler) *PostFrontendStorageFiles

NewPostFrontendStorageFiles creates a new http.Handler for the post frontend storage files operation

func (*PostFrontendStorageFiles) ServeHTTP

type PostFrontendStorageFilesBadRequest

type PostFrontendStorageFilesBadRequest struct {

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

PostFrontendStorageFilesBadRequest Bad request due to missing or invalid parameters.

swagger:response postFrontendStorageFilesBadRequest

func NewPostFrontendStorageFilesBadRequest

func NewPostFrontendStorageFilesBadRequest() *PostFrontendStorageFilesBadRequest

NewPostFrontendStorageFilesBadRequest creates PostFrontendStorageFilesBadRequest with default headers values

func (*PostFrontendStorageFilesBadRequest) SetPayload

SetPayload sets the payload to the post frontend storage files bad request response

func (*PostFrontendStorageFilesBadRequest) WithPayload

WithPayload adds the payload to the post frontend storage files bad request response

func (*PostFrontendStorageFilesBadRequest) WriteResponse

WriteResponse to the client

type PostFrontendStorageFilesHandler

type PostFrontendStorageFilesHandler interface {
	Handle(PostFrontendStorageFilesParams, *models.Principal) middleware.Responder
}

PostFrontendStorageFilesHandler interface for that can handle valid post frontend storage files params

type PostFrontendStorageFilesHandlerFunc

type PostFrontendStorageFilesHandlerFunc func(PostFrontendStorageFilesParams, *models.Principal) middleware.Responder

PostFrontendStorageFilesHandlerFunc turns a function with the right signature into a post frontend storage files handler

func (PostFrontendStorageFilesHandlerFunc) Handle

Handle executing the request and returning a response

type PostFrontendStorageFilesInternalServerError

type PostFrontendStorageFilesInternalServerError struct {

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

PostFrontendStorageFilesInternalServerError Internal server error.

swagger:response postFrontendStorageFilesInternalServerError

func NewPostFrontendStorageFilesInternalServerError

func NewPostFrontendStorageFilesInternalServerError() *PostFrontendStorageFilesInternalServerError

NewPostFrontendStorageFilesInternalServerError creates PostFrontendStorageFilesInternalServerError with default headers values

func (*PostFrontendStorageFilesInternalServerError) SetPayload

SetPayload sets the payload to the post frontend storage files internal server error response

func (*PostFrontendStorageFilesInternalServerError) WithPayload

WithPayload adds the payload to the post frontend storage files internal server error response

func (*PostFrontendStorageFilesInternalServerError) WriteResponse

WriteResponse to the client

type PostFrontendStorageFilesNotFound

type PostFrontendStorageFilesNotFound struct {

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

PostFrontendStorageFilesNotFound Not found. The requested resource could not be found.

swagger:response postFrontendStorageFilesNotFound

func NewPostFrontendStorageFilesNotFound

func NewPostFrontendStorageFilesNotFound() *PostFrontendStorageFilesNotFound

NewPostFrontendStorageFilesNotFound creates PostFrontendStorageFilesNotFound with default headers values

func (*PostFrontendStorageFilesNotFound) SetPayload

func (o *PostFrontendStorageFilesNotFound) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the post frontend storage files not found response

func (*PostFrontendStorageFilesNotFound) WithPayload

WithPayload adds the payload to the post frontend storage files not found response

func (*PostFrontendStorageFilesNotFound) WriteResponse

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

WriteResponse to the client

type PostFrontendStorageFilesOK

type PostFrontendStorageFilesOK struct {

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

PostFrontendStorageFilesOK successful upload

swagger:response postFrontendStorageFilesOK

func NewPostFrontendStorageFilesOK

func NewPostFrontendStorageFilesOK() *PostFrontendStorageFilesOK

NewPostFrontendStorageFilesOK creates PostFrontendStorageFilesOK with default headers values

func (*PostFrontendStorageFilesOK) SetPayload

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

SetPayload sets the payload to the post frontend storage files o k response

func (*PostFrontendStorageFilesOK) WithPayload

WithPayload adds the payload to the post frontend storage files o k response

func (*PostFrontendStorageFilesOK) WriteResponse

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

WriteResponse to the client

type PostFrontendStorageFilesParams

type PostFrontendStorageFilesParams 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
}

PostFrontendStorageFilesParams contains all the bound params for the post frontend storage files operation typically these are obtained from a http.Request

swagger:parameters PostFrontendStorageFiles

func NewPostFrontendStorageFilesParams

func NewPostFrontendStorageFilesParams() PostFrontendStorageFilesParams

NewPostFrontendStorageFilesParams creates a new PostFrontendStorageFilesParams object

There are no default values defined in the spec.

func (*PostFrontendStorageFilesParams) 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 NewPostFrontendStorageFilesParams() beforehand.

type PostFrontendStorageFilesURL

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

PostFrontendStorageFilesURL generates an URL for the post frontend storage files operation

func (*PostFrontendStorageFilesURL) Build

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

Build a url path and query string

func (*PostFrontendStorageFilesURL) BuildFull

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

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

func (*PostFrontendStorageFilesURL) Must

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

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

func (*PostFrontendStorageFilesURL) SetBasePath

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

func (o *PostFrontendStorageFilesURL) String() string

String returns the string representation of the path with query string

func (*PostFrontendStorageFilesURL) StringFull

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

StringFull returns the string representation of a complete url

func (*PostFrontendStorageFilesURL) 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 PostFrontendStorageFilesUnauthorized

type PostFrontendStorageFilesUnauthorized struct {

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

PostFrontendStorageFilesUnauthorized Unauthorized. The request is missing valid authentication.

swagger:response postFrontendStorageFilesUnauthorized

func NewPostFrontendStorageFilesUnauthorized

func NewPostFrontendStorageFilesUnauthorized() *PostFrontendStorageFilesUnauthorized

NewPostFrontendStorageFilesUnauthorized creates PostFrontendStorageFilesUnauthorized with default headers values

func (*PostFrontendStorageFilesUnauthorized) SetPayload

SetPayload sets the payload to the post frontend storage files unauthorized response

func (*PostFrontendStorageFilesUnauthorized) WithPayload

WithPayload adds the payload to the post frontend storage files unauthorized response

func (*PostFrontendStorageFilesUnauthorized) WriteResponse

WriteResponse to the client

type PutFrontendStorageFiles

type PutFrontendStorageFiles struct {
	Context *middleware.Context
	Handler PutFrontendStorageFilesHandler
}
PutFrontendStorageFiles swagger:route PUT /frontend/storage/files FileStorage putFrontendStorageFiles

Edit uploaded file.

func NewPutFrontendStorageFiles

func NewPutFrontendStorageFiles(ctx *middleware.Context, handler PutFrontendStorageFilesHandler) *PutFrontendStorageFiles

NewPutFrontendStorageFiles creates a new http.Handler for the put frontend storage files operation

func (*PutFrontendStorageFiles) ServeHTTP

type PutFrontendStorageFilesBadRequest

type PutFrontendStorageFilesBadRequest struct {

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

PutFrontendStorageFilesBadRequest Bad request due to missing or invalid parameters.

swagger:response putFrontendStorageFilesBadRequest

func NewPutFrontendStorageFilesBadRequest

func NewPutFrontendStorageFilesBadRequest() *PutFrontendStorageFilesBadRequest

NewPutFrontendStorageFilesBadRequest creates PutFrontendStorageFilesBadRequest with default headers values

func (*PutFrontendStorageFilesBadRequest) SetPayload

func (o *PutFrontendStorageFilesBadRequest) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the put frontend storage files bad request response

func (*PutFrontendStorageFilesBadRequest) WithPayload

WithPayload adds the payload to the put frontend storage files bad request response

func (*PutFrontendStorageFilesBadRequest) WriteResponse

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

WriteResponse to the client

type PutFrontendStorageFilesHandler

type PutFrontendStorageFilesHandler interface {
	Handle(PutFrontendStorageFilesParams, *models.Principal) middleware.Responder
}

PutFrontendStorageFilesHandler interface for that can handle valid put frontend storage files params

type PutFrontendStorageFilesHandlerFunc

type PutFrontendStorageFilesHandlerFunc func(PutFrontendStorageFilesParams, *models.Principal) middleware.Responder

PutFrontendStorageFilesHandlerFunc turns a function with the right signature into a put frontend storage files handler

func (PutFrontendStorageFilesHandlerFunc) Handle

Handle executing the request and returning a response

type PutFrontendStorageFilesInternalServerError

type PutFrontendStorageFilesInternalServerError struct {

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

PutFrontendStorageFilesInternalServerError Internal server error.

swagger:response putFrontendStorageFilesInternalServerError

func NewPutFrontendStorageFilesInternalServerError

func NewPutFrontendStorageFilesInternalServerError() *PutFrontendStorageFilesInternalServerError

NewPutFrontendStorageFilesInternalServerError creates PutFrontendStorageFilesInternalServerError with default headers values

func (*PutFrontendStorageFilesInternalServerError) SetPayload

SetPayload sets the payload to the put frontend storage files internal server error response

func (*PutFrontendStorageFilesInternalServerError) WithPayload

WithPayload adds the payload to the put frontend storage files internal server error response

func (*PutFrontendStorageFilesInternalServerError) WriteResponse

WriteResponse to the client

type PutFrontendStorageFilesNotFound

type PutFrontendStorageFilesNotFound struct {

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

PutFrontendStorageFilesNotFound Not found. The requested resource could not be found.

swagger:response putFrontendStorageFilesNotFound

func NewPutFrontendStorageFilesNotFound

func NewPutFrontendStorageFilesNotFound() *PutFrontendStorageFilesNotFound

NewPutFrontendStorageFilesNotFound creates PutFrontendStorageFilesNotFound with default headers values

func (*PutFrontendStorageFilesNotFound) SetPayload

func (o *PutFrontendStorageFilesNotFound) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the put frontend storage files not found response

func (*PutFrontendStorageFilesNotFound) WithPayload

WithPayload adds the payload to the put frontend storage files not found response

func (*PutFrontendStorageFilesNotFound) WriteResponse

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

WriteResponse to the client

type PutFrontendStorageFilesOK

type PutFrontendStorageFilesOK struct {

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

PutFrontendStorageFilesOK successful edit

swagger:response putFrontendStorageFilesOK

func NewPutFrontendStorageFilesOK

func NewPutFrontendStorageFilesOK() *PutFrontendStorageFilesOK

NewPutFrontendStorageFilesOK creates PutFrontendStorageFilesOK with default headers values

func (*PutFrontendStorageFilesOK) SetPayload

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

SetPayload sets the payload to the put frontend storage files o k response

func (*PutFrontendStorageFilesOK) WithPayload

WithPayload adds the payload to the put frontend storage files o k response

func (*PutFrontendStorageFilesOK) WriteResponse

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

WriteResponse to the client

type PutFrontendStorageFilesParams

type PutFrontendStorageFilesParams struct {

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

	/*alternative text
	  In: formData
	*/
	Alt *string
	/*blur
	  In: formData
	*/
	Blur *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
}

PutFrontendStorageFilesParams contains all the bound params for the put frontend storage files operation typically these are obtained from a http.Request

swagger:parameters PutFrontendStorageFiles

func NewPutFrontendStorageFilesParams

func NewPutFrontendStorageFilesParams() PutFrontendStorageFilesParams

NewPutFrontendStorageFilesParams creates a new PutFrontendStorageFilesParams object

There are no default values defined in the spec.

func (*PutFrontendStorageFilesParams) 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 NewPutFrontendStorageFilesParams() beforehand.

type PutFrontendStorageFilesURL

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

PutFrontendStorageFilesURL generates an URL for the put frontend storage files operation

func (*PutFrontendStorageFilesURL) Build

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

Build a url path and query string

func (*PutFrontendStorageFilesURL) BuildFull

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

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

func (*PutFrontendStorageFilesURL) Must

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

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

func (*PutFrontendStorageFilesURL) SetBasePath

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

func (o *PutFrontendStorageFilesURL) String() string

String returns the string representation of the path with query string

func (*PutFrontendStorageFilesURL) StringFull

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

StringFull returns the string representation of a complete url

func (*PutFrontendStorageFilesURL) 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 PutFrontendStorageFilesUnauthorized

type PutFrontendStorageFilesUnauthorized struct {

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

PutFrontendStorageFilesUnauthorized Unauthorized. The request is missing valid authentication.

swagger:response putFrontendStorageFilesUnauthorized

func NewPutFrontendStorageFilesUnauthorized

func NewPutFrontendStorageFilesUnauthorized() *PutFrontendStorageFilesUnauthorized

NewPutFrontendStorageFilesUnauthorized creates PutFrontendStorageFilesUnauthorized with default headers values

func (*PutFrontendStorageFilesUnauthorized) SetPayload

SetPayload sets the payload to the put frontend storage files unauthorized response

func (*PutFrontendStorageFilesUnauthorized) WithPayload

WithPayload adds the payload to the put frontend storage files unauthorized response

func (*PutFrontendStorageFilesUnauthorized) WriteResponse

WriteResponse to the client

Jump to

Keyboard shortcuts

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