Documentation
¶
Index ¶
- Constants
- Variables
- type GetFrontendStorageFiles
- type GetFrontendStorageFilesBadRequest
- func (o *GetFrontendStorageFilesBadRequest) SetPayload(payload *models.ErrorResponse)
- func (o *GetFrontendStorageFilesBadRequest) WithPayload(payload *models.ErrorResponse) *GetFrontendStorageFilesBadRequest
- func (o *GetFrontendStorageFilesBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetFrontendStorageFilesHandler
- type GetFrontendStorageFilesHandlerFunc
- type GetFrontendStorageFilesInternalServerError
- func (o *GetFrontendStorageFilesInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *GetFrontendStorageFilesInternalServerError) WithPayload(payload *models.ErrorResponse) *GetFrontendStorageFilesInternalServerError
- func (o *GetFrontendStorageFilesInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetFrontendStorageFilesNotFound
- func (o *GetFrontendStorageFilesNotFound) SetPayload(payload *models.ErrorResponse)
- func (o *GetFrontendStorageFilesNotFound) WithPayload(payload *models.ErrorResponse) *GetFrontendStorageFilesNotFound
- func (o *GetFrontendStorageFilesNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetFrontendStorageFilesOK
- type GetFrontendStorageFilesParams
- type GetFrontendStorageFilesURL
- func (o *GetFrontendStorageFilesURL) Build() (*url.URL, error)
- func (o *GetFrontendStorageFilesURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetFrontendStorageFilesURL) Must(u *url.URL, err error) *url.URL
- func (o *GetFrontendStorageFilesURL) SetBasePath(bp string)
- func (o *GetFrontendStorageFilesURL) String() string
- func (o *GetFrontendStorageFilesURL) StringFull(scheme, host string) string
- func (o *GetFrontendStorageFilesURL) WithBasePath(bp string) *GetFrontendStorageFilesURL
- type GetFrontendStorageFilesUnauthorized
- func (o *GetFrontendStorageFilesUnauthorized) SetPayload(payload *models.ErrorResponse)
- func (o *GetFrontendStorageFilesUnauthorized) WithPayload(payload *models.ErrorResponse) *GetFrontendStorageFilesUnauthorized
- func (o *GetFrontendStorageFilesUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PostFrontendStorageFiles
- type PostFrontendStorageFilesBadRequest
- func (o *PostFrontendStorageFilesBadRequest) SetPayload(payload *models.ErrorResponse)
- func (o *PostFrontendStorageFilesBadRequest) WithPayload(payload *models.ErrorResponse) *PostFrontendStorageFilesBadRequest
- func (o *PostFrontendStorageFilesBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PostFrontendStorageFilesHandler
- type PostFrontendStorageFilesHandlerFunc
- type PostFrontendStorageFilesInternalServerError
- func (o *PostFrontendStorageFilesInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *PostFrontendStorageFilesInternalServerError) WithPayload(payload *models.ErrorResponse) *PostFrontendStorageFilesInternalServerError
- func (o *PostFrontendStorageFilesInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PostFrontendStorageFilesNotFound
- func (o *PostFrontendStorageFilesNotFound) SetPayload(payload *models.ErrorResponse)
- func (o *PostFrontendStorageFilesNotFound) WithPayload(payload *models.ErrorResponse) *PostFrontendStorageFilesNotFound
- func (o *PostFrontendStorageFilesNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PostFrontendStorageFilesOK
- type PostFrontendStorageFilesParams
- type PostFrontendStorageFilesURL
- func (o *PostFrontendStorageFilesURL) Build() (*url.URL, error)
- func (o *PostFrontendStorageFilesURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PostFrontendStorageFilesURL) Must(u *url.URL, err error) *url.URL
- func (o *PostFrontendStorageFilesURL) SetBasePath(bp string)
- func (o *PostFrontendStorageFilesURL) String() string
- func (o *PostFrontendStorageFilesURL) StringFull(scheme, host string) string
- func (o *PostFrontendStorageFilesURL) WithBasePath(bp string) *PostFrontendStorageFilesURL
- type PostFrontendStorageFilesUnauthorized
- func (o *PostFrontendStorageFilesUnauthorized) SetPayload(payload *models.ErrorResponse)
- func (o *PostFrontendStorageFilesUnauthorized) WithPayload(payload *models.ErrorResponse) *PostFrontendStorageFilesUnauthorized
- func (o *PostFrontendStorageFilesUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PutFrontendStorageFiles
- type PutFrontendStorageFilesBadRequest
- func (o *PutFrontendStorageFilesBadRequest) SetPayload(payload *models.ErrorResponse)
- func (o *PutFrontendStorageFilesBadRequest) WithPayload(payload *models.ErrorResponse) *PutFrontendStorageFilesBadRequest
- func (o *PutFrontendStorageFilesBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PutFrontendStorageFilesHandler
- type PutFrontendStorageFilesHandlerFunc
- type PutFrontendStorageFilesInternalServerError
- func (o *PutFrontendStorageFilesInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *PutFrontendStorageFilesInternalServerError) WithPayload(payload *models.ErrorResponse) *PutFrontendStorageFilesInternalServerError
- func (o *PutFrontendStorageFilesInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PutFrontendStorageFilesNotFound
- func (o *PutFrontendStorageFilesNotFound) SetPayload(payload *models.ErrorResponse)
- func (o *PutFrontendStorageFilesNotFound) WithPayload(payload *models.ErrorResponse) *PutFrontendStorageFilesNotFound
- func (o *PutFrontendStorageFilesNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PutFrontendStorageFilesOK
- type PutFrontendStorageFilesParams
- type PutFrontendStorageFilesURL
- func (o *PutFrontendStorageFilesURL) Build() (*url.URL, error)
- func (o *PutFrontendStorageFilesURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PutFrontendStorageFilesURL) Must(u *url.URL, err error) *url.URL
- func (o *PutFrontendStorageFilesURL) SetBasePath(bp string)
- func (o *PutFrontendStorageFilesURL) String() string
- func (o *PutFrontendStorageFilesURL) StringFull(scheme, host string) string
- func (o *PutFrontendStorageFilesURL) WithBasePath(bp string) *PutFrontendStorageFilesURL
- type PutFrontendStorageFilesUnauthorized
- func (o *PutFrontendStorageFilesUnauthorized) SetPayload(payload *models.ErrorResponse)
- func (o *PutFrontendStorageFilesUnauthorized) WithPayload(payload *models.ErrorResponse) *PutFrontendStorageFilesUnauthorized
- func (o *PutFrontendStorageFilesUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
Constants ¶
const GetFrontendStorageFilesBadRequestCode int = 400
GetFrontendStorageFilesBadRequestCode is the HTTP code returned for type GetFrontendStorageFilesBadRequest
const GetFrontendStorageFilesInternalServerErrorCode int = 500
GetFrontendStorageFilesInternalServerErrorCode is the HTTP code returned for type GetFrontendStorageFilesInternalServerError
const GetFrontendStorageFilesNotFoundCode int = 404
GetFrontendStorageFilesNotFoundCode is the HTTP code returned for type GetFrontendStorageFilesNotFound
const GetFrontendStorageFilesOKCode int = 200
GetFrontendStorageFilesOKCode is the HTTP code returned for type GetFrontendStorageFilesOK
GetFrontendStorageFilesUnauthorizedCode is the HTTP code returned for type GetFrontendStorageFilesUnauthorized
const PostFrontendStorageFilesBadRequestCode int = 400
PostFrontendStorageFilesBadRequestCode is the HTTP code returned for type PostFrontendStorageFilesBadRequest
const PostFrontendStorageFilesInternalServerErrorCode int = 500
PostFrontendStorageFilesInternalServerErrorCode is the HTTP code returned for type PostFrontendStorageFilesInternalServerError
const PostFrontendStorageFilesNotFoundCode int = 404
PostFrontendStorageFilesNotFoundCode is the HTTP code returned for type PostFrontendStorageFilesNotFound
const PostFrontendStorageFilesOKCode int = 200
PostFrontendStorageFilesOKCode is the HTTP code returned for type PostFrontendStorageFilesOK
PostFrontendStorageFilesUnauthorizedCode is the HTTP code returned for type PostFrontendStorageFilesUnauthorized
const PutFrontendStorageFilesBadRequestCode int = 400
PutFrontendStorageFilesBadRequestCode is the HTTP code returned for type PutFrontendStorageFilesBadRequest
const PutFrontendStorageFilesInternalServerErrorCode int = 500
PutFrontendStorageFilesInternalServerErrorCode is the HTTP code returned for type PutFrontendStorageFilesInternalServerError
const PutFrontendStorageFilesNotFoundCode int = 404
PutFrontendStorageFilesNotFoundCode is the HTTP code returned for type PutFrontendStorageFilesNotFound
const PutFrontendStorageFilesOKCode int = 200
PutFrontendStorageFilesOKCode is the HTTP code returned for type PutFrontendStorageFilesOK
PutFrontendStorageFilesUnauthorizedCode is the HTTP code returned for type PutFrontendStorageFilesUnauthorized
Variables ¶
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.
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 ¶
func (o *GetFrontendStorageFiles) ServeHTTP(rw http.ResponseWriter, r *http.Request)
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 ¶
func (o *GetFrontendStorageFilesBadRequest) WithPayload(payload *models.ErrorResponse) *GetFrontendStorageFilesBadRequest
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 ¶
func (fn GetFrontendStorageFilesHandlerFunc) Handle(params GetFrontendStorageFilesParams, principal *models.Principal) middleware.Responder
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 ¶
func (o *GetFrontendStorageFilesInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the get frontend storage files internal server error response
func (*GetFrontendStorageFilesInternalServerError) WithPayload ¶
func (o *GetFrontendStorageFilesInternalServerError) WithPayload(payload *models.ErrorResponse) *GetFrontendStorageFilesInternalServerError
WithPayload adds the payload to the get frontend storage files internal server error response
func (*GetFrontendStorageFilesInternalServerError) WriteResponse ¶
func (o *GetFrontendStorageFilesInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
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 ¶
func (o *GetFrontendStorageFilesNotFound) WithPayload(payload *models.ErrorResponse) *GetFrontendStorageFilesNotFound
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 ¶
func (o *GetFrontendStorageFilesOK) WithPayload(payload []*models.PublicFile) *GetFrontendStorageFilesOK
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 ¶
func (o *GetFrontendStorageFilesParams) 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 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 ¶
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 ¶
func (o *GetFrontendStorageFilesURL) WithBasePath(bp string) *GetFrontendStorageFilesURL
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 { models.ErrorResponse `json:"body,omitempty"` }Payload *
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 ¶
func (o *GetFrontendStorageFilesUnauthorized) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the get frontend storage files unauthorized response
func (*GetFrontendStorageFilesUnauthorized) WithPayload ¶
func (o *GetFrontendStorageFilesUnauthorized) WithPayload(payload *models.ErrorResponse) *GetFrontendStorageFilesUnauthorized
WithPayload adds the payload to the get frontend storage files unauthorized response
func (*GetFrontendStorageFilesUnauthorized) WriteResponse ¶
func (o *GetFrontendStorageFilesUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
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 ¶
func (o *PostFrontendStorageFiles) ServeHTTP(rw http.ResponseWriter, r *http.Request)
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 ¶
func (o *PostFrontendStorageFilesBadRequest) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the post frontend storage files bad request response
func (*PostFrontendStorageFilesBadRequest) WithPayload ¶
func (o *PostFrontendStorageFilesBadRequest) WithPayload(payload *models.ErrorResponse) *PostFrontendStorageFilesBadRequest
WithPayload adds the payload to the post frontend storage files bad request response
func (*PostFrontendStorageFilesBadRequest) WriteResponse ¶
func (o *PostFrontendStorageFilesBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
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 ¶
func (fn PostFrontendStorageFilesHandlerFunc) Handle(params PostFrontendStorageFilesParams, principal *models.Principal) middleware.Responder
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 ¶
func (o *PostFrontendStorageFilesInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the post frontend storage files internal server error response
func (*PostFrontendStorageFilesInternalServerError) WithPayload ¶
func (o *PostFrontendStorageFilesInternalServerError) WithPayload(payload *models.ErrorResponse) *PostFrontendStorageFilesInternalServerError
WithPayload adds the payload to the post frontend storage files internal server error response
func (*PostFrontendStorageFilesInternalServerError) WriteResponse ¶
func (o *PostFrontendStorageFilesInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
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 ¶
func (o *PostFrontendStorageFilesNotFound) WithPayload(payload *models.ErrorResponse) *PostFrontendStorageFilesNotFound
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 ¶
func (o *PostFrontendStorageFilesOK) WithPayload(payload *models.PublicFile) *PostFrontendStorageFilesOK
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 ¶
func (o *PostFrontendStorageFilesParams) 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 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 ¶
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 ¶
func (o *PostFrontendStorageFilesURL) WithBasePath(bp string) *PostFrontendStorageFilesURL
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 { models.ErrorResponse `json:"body,omitempty"` }Payload *
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 ¶
func (o *PostFrontendStorageFilesUnauthorized) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the post frontend storage files unauthorized response
func (*PostFrontendStorageFilesUnauthorized) WithPayload ¶
func (o *PostFrontendStorageFilesUnauthorized) WithPayload(payload *models.ErrorResponse) *PostFrontendStorageFilesUnauthorized
WithPayload adds the payload to the post frontend storage files unauthorized response
func (*PostFrontendStorageFilesUnauthorized) WriteResponse ¶
func (o *PostFrontendStorageFilesUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
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 ¶
func (o *PutFrontendStorageFiles) ServeHTTP(rw http.ResponseWriter, r *http.Request)
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 ¶
func (o *PutFrontendStorageFilesBadRequest) WithPayload(payload *models.ErrorResponse) *PutFrontendStorageFilesBadRequest
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 ¶
func (fn PutFrontendStorageFilesHandlerFunc) Handle(params PutFrontendStorageFilesParams, principal *models.Principal) middleware.Responder
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 ¶
func (o *PutFrontendStorageFilesInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the put frontend storage files internal server error response
func (*PutFrontendStorageFilesInternalServerError) WithPayload ¶
func (o *PutFrontendStorageFilesInternalServerError) WithPayload(payload *models.ErrorResponse) *PutFrontendStorageFilesInternalServerError
WithPayload adds the payload to the put frontend storage files internal server error response
func (*PutFrontendStorageFilesInternalServerError) WriteResponse ¶
func (o *PutFrontendStorageFilesInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
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 ¶
func (o *PutFrontendStorageFilesNotFound) WithPayload(payload *models.ErrorResponse) *PutFrontendStorageFilesNotFound
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 ¶
func (o *PutFrontendStorageFilesOK) WithPayload(payload *models.PublicFile) *PutFrontendStorageFilesOK
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 ¶
func (o *PutFrontendStorageFilesParams) 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 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 ¶
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 ¶
func (o *PutFrontendStorageFilesURL) WithBasePath(bp string) *PutFrontendStorageFilesURL
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 { models.ErrorResponse `json:"body,omitempty"` }Payload *
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 ¶
func (o *PutFrontendStorageFilesUnauthorized) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the put frontend storage files unauthorized response
func (*PutFrontendStorageFilesUnauthorized) WithPayload ¶
func (o *PutFrontendStorageFilesUnauthorized) WithPayload(payload *models.ErrorResponse) *PutFrontendStorageFilesUnauthorized
WithPayload adds the payload to the put frontend storage files unauthorized response
func (*PutFrontendStorageFilesUnauthorized) WriteResponse ¶
func (o *PutFrontendStorageFilesUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
Source Files
¶
- get_frontend_storage_files.go
- get_frontend_storage_files_parameters.go
- get_frontend_storage_files_responses.go
- get_frontend_storage_files_urlbuilder.go
- post_frontend_storage_files.go
- post_frontend_storage_files_parameters.go
- post_frontend_storage_files_responses.go
- post_frontend_storage_files_urlbuilder.go
- put_frontend_storage_files.go
- put_frontend_storage_files_parameters.go
- put_frontend_storage_files_responses.go
- put_frontend_storage_files_urlbuilder.go