Documentation ¶
Index ¶
- Constants
- type RetrieveFile
- type RetrieveFileFound
- type RetrieveFileHandler
- type RetrieveFileHandlerFunc
- type RetrieveFileParams
- type RetrieveFileURL
- func (o *RetrieveFileURL) Build() (*url.URL, error)
- func (o *RetrieveFileURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *RetrieveFileURL) Must(u *url.URL, err error) *url.URL
- func (o *RetrieveFileURL) SetBasePath(bp string)
- func (o *RetrieveFileURL) String() string
- func (o *RetrieveFileURL) StringFull(scheme, host string) string
- func (o *RetrieveFileURL) WithBasePath(bp string) *RetrieveFileURL
Constants ¶
const RetrieveFileFoundCode int = 302
RetrieveFileFoundCode is the HTTP code returned for type RetrieveFileFound
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RetrieveFile ¶
type RetrieveFile struct { Context *middleware.Context Handler RetrieveFileHandler }
RetrieveFile swagger:route GET /apps/{app_guid}/instances/{instance_index}/files/{file_path} files retrieveFile
Retrieve File ¶
curl --insecure -i %s/v2/apps/{app_guid}/instances/{instance_index}/files/{file_path} -X GET -H 'Authorization: %s'
func NewRetrieveFile ¶
func NewRetrieveFile(ctx *middleware.Context, handler RetrieveFileHandler) *RetrieveFile
NewRetrieveFile creates a new http.Handler for the retrieve file operation
func (*RetrieveFile) ServeHTTP ¶
func (o *RetrieveFile) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type RetrieveFileFound ¶
type RetrieveFileFound struct { }
RetrieveFileFound successful response
swagger:response retrieveFileFound
func NewRetrieveFileFound ¶
func NewRetrieveFileFound() *RetrieveFileFound
NewRetrieveFileFound creates RetrieveFileFound with default headers values
func (*RetrieveFileFound) WriteResponse ¶
func (o *RetrieveFileFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RetrieveFileHandler ¶
type RetrieveFileHandler interface {
Handle(RetrieveFileParams) middleware.Responder
}
RetrieveFileHandler interface for that can handle valid retrieve file params
type RetrieveFileHandlerFunc ¶
type RetrieveFileHandlerFunc func(RetrieveFileParams) middleware.Responder
RetrieveFileHandlerFunc turns a function with the right signature into a retrieve file handler
func (RetrieveFileHandlerFunc) Handle ¶
func (fn RetrieveFileHandlerFunc) Handle(params RetrieveFileParams) middleware.Responder
Handle executing the request and returning a response
type RetrieveFileParams ¶
type RetrieveFileParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The app_guid parameter is used as a part of the request URL: '/v2/apps/:app_guid/instances/:instance_index/files/:file_path' Required: true In: path */ AppGUID string /*The file_path parameter is used as a part of the request URL: '/v2/apps/:app_guid/instances/:instance_index/files/:file_path' Required: true In: path */ FilePath string /*The instance_index parameter is used as a part of the request URL: '/v2/apps/:app_guid/instances/:instance_index/files/:file_path' Required: true In: path */ InstanceIndex int64 }
RetrieveFileParams contains all the bound params for the retrieve file operation typically these are obtained from a http.Request
swagger:parameters retrieveFile
func NewRetrieveFileParams ¶
func NewRetrieveFileParams() RetrieveFileParams
NewRetrieveFileParams creates a new RetrieveFileParams object no default values defined in spec.
func (*RetrieveFileParams) BindRequest ¶
func (o *RetrieveFileParams) 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 NewRetrieveFileParams() beforehand.
type RetrieveFileURL ¶
type RetrieveFileURL struct { AppGUID string FilePath string InstanceIndex int64 // contains filtered or unexported fields }
RetrieveFileURL generates an URL for the retrieve file operation
func (*RetrieveFileURL) Build ¶
func (o *RetrieveFileURL) Build() (*url.URL, error)
Build a url path and query string
func (*RetrieveFileURL) BuildFull ¶
func (o *RetrieveFileURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*RetrieveFileURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*RetrieveFileURL) SetBasePath ¶
func (o *RetrieveFileURL) 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 (*RetrieveFileURL) String ¶
func (o *RetrieveFileURL) String() string
String returns the string representation of the path with query string
func (*RetrieveFileURL) StringFull ¶
func (o *RetrieveFileURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*RetrieveFileURL) WithBasePath ¶
func (o *RetrieveFileURL) WithBasePath(bp string) *RetrieveFileURL
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