switch_firmware

package
v0.0.0-...-e56e09a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2017 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

View Source
const SwitchFirmwareOKCode int = 200

SwitchFirmwareOKCode is the HTTP code returned for type SwitchFirmwareOK

Variables

This section is empty.

Functions

This section is empty.

Types

type SwitchFirmware

type SwitchFirmware struct {
	Context *middleware.Context
	Handler SwitchFirmwareHandler
}

SwitchFirmware swagger:route POST /switchFirmware /switchFirmware switchFirmware

Get switch Firmware Version

Get switch Firmware Version

func NewSwitchFirmware

func NewSwitchFirmware(ctx *middleware.Context, handler SwitchFirmwareHandler) *SwitchFirmware

NewSwitchFirmware creates a new http.Handler for the switch firmware operation

func (*SwitchFirmware) ServeHTTP

func (o *SwitchFirmware) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type SwitchFirmwareDefault

type SwitchFirmwareDefault struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
	// contains filtered or unexported fields
}

SwitchFirmwareDefault Error

swagger:response switchFirmwareDefault

func NewSwitchFirmwareDefault

func NewSwitchFirmwareDefault(code int) *SwitchFirmwareDefault

NewSwitchFirmwareDefault creates SwitchFirmwareDefault with default headers values

func (*SwitchFirmwareDefault) SetPayload

func (o *SwitchFirmwareDefault) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the switch firmware default response

func (*SwitchFirmwareDefault) SetStatusCode

func (o *SwitchFirmwareDefault) SetStatusCode(code int)

SetStatusCode sets the status to the switch firmware default response

func (*SwitchFirmwareDefault) WithPayload

WithPayload adds the payload to the switch firmware default response

func (*SwitchFirmwareDefault) WithStatusCode

func (o *SwitchFirmwareDefault) WithStatusCode(code int) *SwitchFirmwareDefault

WithStatusCode adds the status to the switch firmware default response

func (*SwitchFirmwareDefault) WriteResponse

func (o *SwitchFirmwareDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type SwitchFirmwareHandler

type SwitchFirmwareHandler interface {
	Handle(SwitchFirmwareParams, interface{}) middleware.Responder
}

SwitchFirmwareHandler interface for that can handle valid switch firmware params

type SwitchFirmwareHandlerFunc

type SwitchFirmwareHandlerFunc func(SwitchFirmwareParams, interface{}) middleware.Responder

SwitchFirmwareHandlerFunc turns a function with the right signature into a switch firmware handler

func (SwitchFirmwareHandlerFunc) Handle

func (fn SwitchFirmwareHandlerFunc) Handle(params SwitchFirmwareParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type SwitchFirmwareOK

type SwitchFirmwareOK struct {

	/*
	  In: Body
	*/
	Payload *models.SwitchVersionResponse `json:"body,omitempty"`
}

SwitchFirmwareOK Successfully returned switch firmware version

swagger:response switchFirmwareOK

func NewSwitchFirmwareOK

func NewSwitchFirmwareOK() *SwitchFirmwareOK

NewSwitchFirmwareOK creates SwitchFirmwareOK with default headers values

func (*SwitchFirmwareOK) SetPayload

func (o *SwitchFirmwareOK) SetPayload(payload *models.SwitchVersionResponse)

SetPayload sets the payload to the switch firmware o k response

func (*SwitchFirmwareOK) WithPayload

WithPayload adds the payload to the switch firmware o k response

func (*SwitchFirmwareOK) WriteResponse

func (o *SwitchFirmwareOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type SwitchFirmwareParams

type SwitchFirmwareParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*
	  In: body
	*/
	Body *models.Switch
}

SwitchFirmwareParams contains all the bound params for the switch firmware operation typically these are obtained from a http.Request

swagger:parameters switchFirmware

func NewSwitchFirmwareParams

func NewSwitchFirmwareParams() SwitchFirmwareParams

NewSwitchFirmwareParams creates a new SwitchFirmwareParams object with the default values initialized.

func (*SwitchFirmwareParams) BindRequest

func (o *SwitchFirmwareParams) 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 SwitchFirmwareURL

type SwitchFirmwareURL struct {
	// contains filtered or unexported fields
}

SwitchFirmwareURL generates an URL for the switch firmware operation

func (*SwitchFirmwareURL) Build

func (o *SwitchFirmwareURL) Build() (*url.URL, error)

Build a url path and query string

func (*SwitchFirmwareURL) BuildFull

func (o *SwitchFirmwareURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*SwitchFirmwareURL) Must

func (o *SwitchFirmwareURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*SwitchFirmwareURL) SetBasePath

func (o *SwitchFirmwareURL) 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 (*SwitchFirmwareURL) String

func (o *SwitchFirmwareURL) String() string

String returns the string representation of the path with query string

func (*SwitchFirmwareURL) StringFull

func (o *SwitchFirmwareURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*SwitchFirmwareURL) WithBasePath

func (o *SwitchFirmwareURL) WithBasePath(bp string) *SwitchFirmwareURL

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL