Documentation ¶
Index ¶
- Constants
- type Inspect
- type InspectHandler
- type InspectHandlerFunc
- type InspectOK
- type InspectParams
- type InspectURL
- func (o *InspectURL) Build() (*url.URL, error)
- func (o *InspectURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *InspectURL) Must(u *url.URL, err error) *url.URL
- func (o *InspectURL) SetBasePath(bp string)
- func (o *InspectURL) String() string
- func (o *InspectURL) StringFull(scheme, host string) string
- func (o *InspectURL) WithBasePath(bp string) *InspectURL
- type InspectUnauthorized
Constants ¶
const InspectOKCode int = 200
InspectOKCode is the HTTP code returned for type InspectOK
InspectUnauthorizedCode is the HTTP code returned for type InspectUnauthorized
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Inspect ¶
type Inspect struct { Context *middleware.Context Handler InspectHandler }
Inspect swagger:route POST /inspections Inspect inspect
Inspect system values ¶
Requests system information, such as stack dumps or information about capabilities. Requires admin access.
func NewInspect ¶
func NewInspect(ctx *middleware.Context, handler InspectHandler) *Inspect
NewInspect creates a new http.Handler for the inspect operation
type InspectHandler ¶
type InspectHandler interface {
Handle(InspectParams) middleware.Responder
}
InspectHandler interface for that can handle valid inspect params
type InspectHandlerFunc ¶
type InspectHandlerFunc func(InspectParams) middleware.Responder
InspectHandlerFunc turns a function with the right signature into a inspect handler
func (InspectHandlerFunc) Handle ¶
func (fn InspectHandlerFunc) Handle(params InspectParams) middleware.Responder
Handle executing the request and returning a response
type InspectOK ¶
type InspectOK struct { /* In: Body */ Payload *rest_model.InspectResponse `json:"body,omitempty"` }
InspectOK A response to an inspect request
swagger:response inspectOK
func NewInspectOK ¶
func NewInspectOK() *InspectOK
NewInspectOK creates InspectOK with default headers values
func (*InspectOK) SetPayload ¶
func (o *InspectOK) SetPayload(payload *rest_model.InspectResponse)
SetPayload sets the payload to the inspect o k response
func (*InspectOK) WithPayload ¶
func (o *InspectOK) WithPayload(payload *rest_model.InspectResponse) *InspectOK
WithPayload adds the payload to the inspect o k response
func (*InspectOK) WriteResponse ¶
func (o *InspectOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type InspectParams ¶
type InspectParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*An inspect request Required: true In: body */ Request *rest_model.InspectRequest }
InspectParams contains all the bound params for the inspect operation typically these are obtained from a http.Request
swagger:parameters inspect
func NewInspectParams ¶
func NewInspectParams() InspectParams
NewInspectParams creates a new InspectParams object
There are no default values defined in the spec.
func (*InspectParams) BindRequest ¶
func (o *InspectParams) 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 NewInspectParams() beforehand.
type InspectURL ¶
type InspectURL struct {
// contains filtered or unexported fields
}
InspectURL generates an URL for the inspect operation
func (*InspectURL) Build ¶
func (o *InspectURL) Build() (*url.URL, error)
Build a url path and query string
func (*InspectURL) BuildFull ¶
func (o *InspectURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*InspectURL) SetBasePath ¶
func (o *InspectURL) 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 (*InspectURL) String ¶
func (o *InspectURL) String() string
String returns the string representation of the path with query string
func (*InspectURL) StringFull ¶
func (o *InspectURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*InspectURL) WithBasePath ¶
func (o *InspectURL) WithBasePath(bp string) *InspectURL
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 InspectUnauthorized ¶
type InspectUnauthorized struct { rest_model.APIErrorEnvelope `json:"body,omitempty"` }Payload *
InspectUnauthorized The currently supplied session does not have the correct access rights to request this resource
swagger:response inspectUnauthorized
func NewInspectUnauthorized ¶
func NewInspectUnauthorized() *InspectUnauthorized
NewInspectUnauthorized creates InspectUnauthorized with default headers values
func (*InspectUnauthorized) SetPayload ¶
func (o *InspectUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the inspect unauthorized response
func (*InspectUnauthorized) WithPayload ¶
func (o *InspectUnauthorized) WithPayload(payload *rest_model.APIErrorEnvelope) *InspectUnauthorized
WithPayload adds the payload to the inspect unauthorized response
func (*InspectUnauthorized) WriteResponse ¶
func (o *InspectUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client