Documentation ¶
Index ¶
- Constants
- type UpdateSwitch
- type UpdateSwitchCreated
- type UpdateSwitchDefault
- func (o *UpdateSwitchDefault) SetPayload(payload *models.ErrorResponse)
- func (o *UpdateSwitchDefault) SetStatusCode(code int)
- func (o *UpdateSwitchDefault) WithPayload(payload *models.ErrorResponse) *UpdateSwitchDefault
- func (o *UpdateSwitchDefault) WithStatusCode(code int) *UpdateSwitchDefault
- func (o *UpdateSwitchDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateSwitchHandler
- type UpdateSwitchHandlerFunc
- type UpdateSwitchParams
- type UpdateSwitchURL
- func (o *UpdateSwitchURL) Build() (*url.URL, error)
- func (o *UpdateSwitchURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *UpdateSwitchURL) Must(u *url.URL, err error) *url.URL
- func (o *UpdateSwitchURL) SetBasePath(bp string)
- func (o *UpdateSwitchURL) String() string
- func (o *UpdateSwitchURL) StringFull(scheme, host string) string
- func (o *UpdateSwitchURL) WithBasePath(bp string) *UpdateSwitchURL
Constants ¶
const UpdateSwitchCreatedCode int = 201
UpdateSwitchCreatedCode is the HTTP code returned for type UpdateSwitchCreated
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UpdateSwitch ¶
type UpdateSwitch struct { Context *middleware.Context Handler UpdateSwitchHandler }
UpdateSwitch swagger:route POST /updateSwitch /updateSwitch updateSwitch
Update switch firmware ¶
Update switch firmware based on specified switch type and firmware image
func NewUpdateSwitch ¶
func NewUpdateSwitch(ctx *middleware.Context, handler UpdateSwitchHandler) *UpdateSwitch
NewUpdateSwitch creates a new http.Handler for the update switch operation
func (*UpdateSwitch) ServeHTTP ¶
func (o *UpdateSwitch) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type UpdateSwitchCreated ¶
UpdateSwitchCreated Successfully issued update switch firmware
swagger:response updateSwitchCreated
func NewUpdateSwitchCreated ¶
func NewUpdateSwitchCreated() *UpdateSwitchCreated
NewUpdateSwitchCreated creates UpdateSwitchCreated with default headers values
func (*UpdateSwitchCreated) SetPayload ¶
func (o *UpdateSwitchCreated) SetPayload(payload *models.Status)
SetPayload sets the payload to the update switch created response
func (*UpdateSwitchCreated) WithPayload ¶
func (o *UpdateSwitchCreated) WithPayload(payload *models.Status) *UpdateSwitchCreated
WithPayload adds the payload to the update switch created response
func (*UpdateSwitchCreated) WriteResponse ¶
func (o *UpdateSwitchCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateSwitchDefault ¶
type UpdateSwitchDefault struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` // contains filtered or unexported fields }
UpdateSwitchDefault Error
swagger:response updateSwitchDefault
func NewUpdateSwitchDefault ¶
func NewUpdateSwitchDefault(code int) *UpdateSwitchDefault
NewUpdateSwitchDefault creates UpdateSwitchDefault with default headers values
func (*UpdateSwitchDefault) SetPayload ¶
func (o *UpdateSwitchDefault) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the update switch default response
func (*UpdateSwitchDefault) SetStatusCode ¶
func (o *UpdateSwitchDefault) SetStatusCode(code int)
SetStatusCode sets the status to the update switch default response
func (*UpdateSwitchDefault) WithPayload ¶
func (o *UpdateSwitchDefault) WithPayload(payload *models.ErrorResponse) *UpdateSwitchDefault
WithPayload adds the payload to the update switch default response
func (*UpdateSwitchDefault) WithStatusCode ¶
func (o *UpdateSwitchDefault) WithStatusCode(code int) *UpdateSwitchDefault
WithStatusCode adds the status to the update switch default response
func (*UpdateSwitchDefault) WriteResponse ¶
func (o *UpdateSwitchDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateSwitchHandler ¶
type UpdateSwitchHandler interface {
Handle(UpdateSwitchParams, interface{}) middleware.Responder
}
UpdateSwitchHandler interface for that can handle valid update switch params
type UpdateSwitchHandlerFunc ¶
type UpdateSwitchHandlerFunc func(UpdateSwitchParams, interface{}) middleware.Responder
UpdateSwitchHandlerFunc turns a function with the right signature into a update switch handler
func (UpdateSwitchHandlerFunc) Handle ¶
func (fn UpdateSwitchHandlerFunc) Handle(params UpdateSwitchParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type UpdateSwitchParams ¶
type UpdateSwitchParams struct { // HTTP Request Object HTTPRequest *http.Request /* In: body */ Body *models.UpdateSwitch }
UpdateSwitchParams contains all the bound params for the update switch operation typically these are obtained from a http.Request
swagger:parameters updateSwitch
func NewUpdateSwitchParams ¶
func NewUpdateSwitchParams() UpdateSwitchParams
NewUpdateSwitchParams creates a new UpdateSwitchParams object with the default values initialized.
func (*UpdateSwitchParams) BindRequest ¶
func (o *UpdateSwitchParams) 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 UpdateSwitchURL ¶
type UpdateSwitchURL struct {
// contains filtered or unexported fields
}
UpdateSwitchURL generates an URL for the update switch operation
func (*UpdateSwitchURL) Build ¶
func (o *UpdateSwitchURL) Build() (*url.URL, error)
Build a url path and query string
func (*UpdateSwitchURL) BuildFull ¶
func (o *UpdateSwitchURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*UpdateSwitchURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*UpdateSwitchURL) SetBasePath ¶
func (o *UpdateSwitchURL) 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 (*UpdateSwitchURL) String ¶
func (o *UpdateSwitchURL) String() string
String returns the string representation of the path with query string
func (*UpdateSwitchURL) StringFull ¶
func (o *UpdateSwitchURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*UpdateSwitchURL) WithBasePath ¶
func (o *UpdateSwitchURL) WithBasePath(bp string) *UpdateSwitchURL
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