switch_version

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 SwitchVersionOKCode int = 200

SwitchVersionOKCode is the HTTP code returned for type SwitchVersionOK

Variables

This section is empty.

Functions

This section is empty.

Types

type SwitchVersion

type SwitchVersion struct {
	Context *middleware.Context
	Handler SwitchVersionHandler
}

SwitchVersion swagger:route POST /switchVersion /switchVersion switchVersion

Get switch Firmware Version

Get switch Version

func NewSwitchVersion

func NewSwitchVersion(ctx *middleware.Context, handler SwitchVersionHandler) *SwitchVersion

NewSwitchVersion creates a new http.Handler for the switch version operation

func (*SwitchVersion) ServeHTTP

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

type SwitchVersionDefault

type SwitchVersionDefault struct {

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

SwitchVersionDefault Error

swagger:response switchVersionDefault

func NewSwitchVersionDefault

func NewSwitchVersionDefault(code int) *SwitchVersionDefault

NewSwitchVersionDefault creates SwitchVersionDefault with default headers values

func (*SwitchVersionDefault) SetPayload

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

SetPayload sets the payload to the switch version default response

func (*SwitchVersionDefault) SetStatusCode

func (o *SwitchVersionDefault) SetStatusCode(code int)

SetStatusCode sets the status to the switch version default response

func (*SwitchVersionDefault) WithPayload

WithPayload adds the payload to the switch version default response

func (*SwitchVersionDefault) WithStatusCode

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

WithStatusCode adds the status to the switch version default response

func (*SwitchVersionDefault) WriteResponse

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

WriteResponse to the client

type SwitchVersionHandler

type SwitchVersionHandler interface {
	Handle(SwitchVersionParams, interface{}) middleware.Responder
}

SwitchVersionHandler interface for that can handle valid switch version params

type SwitchVersionHandlerFunc

type SwitchVersionHandlerFunc func(SwitchVersionParams, interface{}) middleware.Responder

SwitchVersionHandlerFunc turns a function with the right signature into a switch version handler

func (SwitchVersionHandlerFunc) Handle

func (fn SwitchVersionHandlerFunc) Handle(params SwitchVersionParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type SwitchVersionOK

type SwitchVersionOK struct {
}

SwitchVersionOK Successfully returned switch firmware version

swagger:response switchVersionOK

func NewSwitchVersionOK

func NewSwitchVersionOK() *SwitchVersionOK

NewSwitchVersionOK creates SwitchVersionOK with default headers values

func (*SwitchVersionOK) WriteResponse

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

WriteResponse to the client

type SwitchVersionParams

type SwitchVersionParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

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

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

swagger:parameters switchVersion

func NewSwitchVersionParams

func NewSwitchVersionParams() SwitchVersionParams

NewSwitchVersionParams creates a new SwitchVersionParams object with the default values initialized.

func (*SwitchVersionParams) BindRequest

func (o *SwitchVersionParams) 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 SwitchVersionURL

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

SwitchVersionURL generates an URL for the switch version operation

func (*SwitchVersionURL) Build

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

Build a url path and query string

func (*SwitchVersionURL) BuildFull

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

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

func (*SwitchVersionURL) Must

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

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

func (*SwitchVersionURL) SetBasePath

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

func (o *SwitchVersionURL) String() string

String returns the string representation of the path with query string

func (*SwitchVersionURL) StringFull

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

StringFull returns the string representation of a complete url

func (*SwitchVersionURL) WithBasePath

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

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