Documentation ¶
Index ¶
- Constants
- type GetHardware
- type GetHardwareDefault
- func (o *GetHardwareDefault) SetPayload(payload *models.Error)
- func (o *GetHardwareDefault) SetStatusCode(code int)
- func (o *GetHardwareDefault) WithPayload(payload *models.Error) *GetHardwareDefault
- func (o *GetHardwareDefault) WithStatusCode(code int) *GetHardwareDefault
- func (o *GetHardwareDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetHardwareHandler
- type GetHardwareHandlerFunc
- type GetHardwareOK
- type GetHardwareParams
- type GetHardwareURL
- func (o *GetHardwareURL) Build() (*url.URL, error)
- func (o *GetHardwareURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetHardwareURL) Must(u *url.URL, err error) *url.URL
- func (o *GetHardwareURL) SetBasePath(bp string)
- func (o *GetHardwareURL) String() string
- func (o *GetHardwareURL) StringFull(scheme, host string) string
- func (o *GetHardwareURL) WithBasePath(bp string) *GetHardwareURL
Constants ¶
const GetHardwareOKCode int = 200
GetHardwareOKCode is the HTTP code returned for type GetHardwareOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetHardware ¶
type GetHardware struct { Context *middleware.Context Handler GetHardwareHandler }
GetHardware swagger:route GET /hardware Hardware getHardware
Get current configuration settings
func NewGetHardware ¶
func NewGetHardware(ctx *middleware.Context, handler GetHardwareHandler) *GetHardware
NewGetHardware creates a new http.Handler for the get hardware operation
func (*GetHardware) ServeHTTP ¶
func (o *GetHardware) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetHardwareDefault ¶
type GetHardwareDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetHardwareDefault Unexpected error
swagger:response getHardwareDefault
func NewGetHardwareDefault ¶
func NewGetHardwareDefault(code int) *GetHardwareDefault
NewGetHardwareDefault creates GetHardwareDefault with default headers values
func (*GetHardwareDefault) SetPayload ¶
func (o *GetHardwareDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get hardware default response
func (*GetHardwareDefault) SetStatusCode ¶
func (o *GetHardwareDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get hardware default response
func (*GetHardwareDefault) WithPayload ¶
func (o *GetHardwareDefault) WithPayload(payload *models.Error) *GetHardwareDefault
WithPayload adds the payload to the get hardware default response
func (*GetHardwareDefault) WithStatusCode ¶
func (o *GetHardwareDefault) WithStatusCode(code int) *GetHardwareDefault
WithStatusCode adds the status to the get hardware default response
func (*GetHardwareDefault) WriteResponse ¶
func (o *GetHardwareDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetHardwareHandler ¶
type GetHardwareHandler interface {
Handle(GetHardwareParams) middleware.Responder
}
GetHardwareHandler interface for that can handle valid get hardware params
type GetHardwareHandlerFunc ¶
type GetHardwareHandlerFunc func(GetHardwareParams) middleware.Responder
GetHardwareHandlerFunc turns a function with the right signature into a get hardware handler
func (GetHardwareHandlerFunc) Handle ¶
func (fn GetHardwareHandlerFunc) Handle(params GetHardwareParams) middleware.Responder
Handle executing the request and returning a response
type GetHardwareOK ¶
type GetHardwareOK struct { /* In: Body */ Payload *models.HardwareConfig `json:"body,omitempty"` }
GetHardwareOK The config was retrieved successfully
swagger:response getHardwareOK
func NewGetHardwareOK ¶
func NewGetHardwareOK() *GetHardwareOK
NewGetHardwareOK creates GetHardwareOK with default headers values
func (*GetHardwareOK) SetPayload ¶
func (o *GetHardwareOK) SetPayload(payload *models.HardwareConfig)
SetPayload sets the payload to the get hardware o k response
func (*GetHardwareOK) WithPayload ¶
func (o *GetHardwareOK) WithPayload(payload *models.HardwareConfig) *GetHardwareOK
WithPayload adds the payload to the get hardware o k response
func (*GetHardwareOK) WriteResponse ¶
func (o *GetHardwareOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetHardwareParams ¶
GetHardwareParams contains all the bound params for the get hardware operation typically these are obtained from a http.Request
swagger:parameters getHardware
func NewGetHardwareParams ¶
func NewGetHardwareParams() GetHardwareParams
NewGetHardwareParams creates a new GetHardwareParams object with the default values initialized.
func (*GetHardwareParams) BindRequest ¶
func (o *GetHardwareParams) 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
type GetHardwareURL ¶
type GetHardwareURL struct {
// contains filtered or unexported fields
}
GetHardwareURL generates an URL for the get hardware operation
func (*GetHardwareURL) Build ¶
func (o *GetHardwareURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetHardwareURL) BuildFull ¶
func (o *GetHardwareURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetHardwareURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetHardwareURL) SetBasePath ¶
func (o *GetHardwareURL) 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 (*GetHardwareURL) String ¶
func (o *GetHardwareURL) String() string
String returns the string representation of the path with query string
func (*GetHardwareURL) StringFull ¶
func (o *GetHardwareURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetHardwareURL) WithBasePath ¶
func (o *GetHardwareURL) WithBasePath(bp string) *GetHardwareURL
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