Documentation ¶
Index ¶
- Constants
- type GetInfo
- type GetInfoHandler
- type GetInfoHandlerFunc
- type GetInfoOK
- type GetInfoParams
- type GetInfoURL
- func (o *GetInfoURL) Build() (*url.URL, error)
- func (o *GetInfoURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetInfoURL) Must(u *url.URL, err error) *url.URL
- func (o *GetInfoURL) SetBasePath(bp string)
- func (o *GetInfoURL) String() string
- func (o *GetInfoURL) StringFull(scheme, host string) string
- func (o *GetInfoURL) WithBasePath(bp string) *GetInfoURL
Constants ¶
const GetInfoOKCode int = 200
GetInfoOKCode is the HTTP code returned for type GetInfoOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetInfo ¶
type GetInfo struct { Context *middleware.Context Handler GetInfoHandler }
GetInfo swagger:route GET /info info getInfo
Get Info ¶
curl --insecure -i %s/v2/info -X GET -H 'Authorization: %s'
func NewGetInfo ¶
func NewGetInfo(ctx *middleware.Context, handler GetInfoHandler) *GetInfo
NewGetInfo creates a new http.Handler for the get info operation
type GetInfoHandler ¶
type GetInfoHandler interface {
Handle(GetInfoParams) middleware.Responder
}
GetInfoHandler interface for that can handle valid get info params
type GetInfoHandlerFunc ¶
type GetInfoHandlerFunc func(GetInfoParams) middleware.Responder
GetInfoHandlerFunc turns a function with the right signature into a get info handler
func (GetInfoHandlerFunc) Handle ¶
func (fn GetInfoHandlerFunc) Handle(params GetInfoParams) middleware.Responder
Handle executing the request and returning a response
type GetInfoOK ¶
type GetInfoOK struct { /* In: Body */ Payload *models.GetInfoResponse `json:"body,omitempty"` }
GetInfoOK successful response
swagger:response getInfoOK
func NewGetInfoOK ¶
func NewGetInfoOK() *GetInfoOK
NewGetInfoOK creates GetInfoOK with default headers values
func (*GetInfoOK) SetPayload ¶
func (o *GetInfoOK) SetPayload(payload *models.GetInfoResponse)
SetPayload sets the payload to the get info o k response
func (*GetInfoOK) WithPayload ¶
func (o *GetInfoOK) WithPayload(payload *models.GetInfoResponse) *GetInfoOK
WithPayload adds the payload to the get info o k response
func (*GetInfoOK) WriteResponse ¶
func (o *GetInfoOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetInfoParams ¶
GetInfoParams contains all the bound params for the get info operation typically these are obtained from a http.Request
swagger:parameters getInfo
func NewGetInfoParams ¶
func NewGetInfoParams() GetInfoParams
NewGetInfoParams creates a new GetInfoParams object no default values defined in spec.
func (*GetInfoParams) BindRequest ¶
func (o *GetInfoParams) 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 NewGetInfoParams() beforehand.
type GetInfoURL ¶
type GetInfoURL struct {
// contains filtered or unexported fields
}
GetInfoURL generates an URL for the get info operation
func (*GetInfoURL) Build ¶
func (o *GetInfoURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetInfoURL) BuildFull ¶
func (o *GetInfoURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetInfoURL) SetBasePath ¶
func (o *GetInfoURL) 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 (*GetInfoURL) String ¶
func (o *GetInfoURL) String() string
String returns the string representation of the path with query string
func (*GetInfoURL) StringFull ¶
func (o *GetInfoURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetInfoURL) WithBasePath ¶
func (o *GetInfoURL) WithBasePath(bp string) *GetInfoURL
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