switch_config

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

SwitchConfigOKCode is the HTTP code returned for type SwitchConfigOK

Variables

This section is empty.

Functions

This section is empty.

Types

type SwitchConfig

type SwitchConfig struct {
	Context *middleware.Context
	Handler SwitchConfigHandler
}

SwitchConfig swagger:route POST /switchConfig /switchConfig switchConfig

Get switch running config

Get switch running config

func NewSwitchConfig

func NewSwitchConfig(ctx *middleware.Context, handler SwitchConfigHandler) *SwitchConfig

NewSwitchConfig creates a new http.Handler for the switch config operation

func (*SwitchConfig) ServeHTTP

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

type SwitchConfigDefault

type SwitchConfigDefault struct {

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

SwitchConfigDefault Error

swagger:response switchConfigDefault

func NewSwitchConfigDefault

func NewSwitchConfigDefault(code int) *SwitchConfigDefault

NewSwitchConfigDefault creates SwitchConfigDefault with default headers values

func (*SwitchConfigDefault) SetPayload

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

SetPayload sets the payload to the switch config default response

func (*SwitchConfigDefault) SetStatusCode

func (o *SwitchConfigDefault) SetStatusCode(code int)

SetStatusCode sets the status to the switch config default response

func (*SwitchConfigDefault) WithPayload

func (o *SwitchConfigDefault) WithPayload(payload *models.ErrorResponse) *SwitchConfigDefault

WithPayload adds the payload to the switch config default response

func (*SwitchConfigDefault) WithStatusCode

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

WithStatusCode adds the status to the switch config default response

func (*SwitchConfigDefault) WriteResponse

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

WriteResponse to the client

type SwitchConfigHandler

type SwitchConfigHandler interface {
	Handle(SwitchConfigParams, interface{}) middleware.Responder
}

SwitchConfigHandler interface for that can handle valid switch config params

type SwitchConfigHandlerFunc

type SwitchConfigHandlerFunc func(SwitchConfigParams, interface{}) middleware.Responder

SwitchConfigHandlerFunc turns a function with the right signature into a switch config handler

func (SwitchConfigHandlerFunc) Handle

func (fn SwitchConfigHandlerFunc) Handle(params SwitchConfigParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type SwitchConfigOK

type SwitchConfigOK struct {

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

SwitchConfigOK Successfully returned switch running config

swagger:response switchConfigOK

func NewSwitchConfigOK

func NewSwitchConfigOK() *SwitchConfigOK

NewSwitchConfigOK creates SwitchConfigOK with default headers values

func (*SwitchConfigOK) SetPayload

func (o *SwitchConfigOK) SetPayload(payload *models.SwitchConfigResponse)

SetPayload sets the payload to the switch config o k response

func (*SwitchConfigOK) WithPayload

func (o *SwitchConfigOK) WithPayload(payload *models.SwitchConfigResponse) *SwitchConfigOK

WithPayload adds the payload to the switch config o k response

func (*SwitchConfigOK) WriteResponse

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

WriteResponse to the client

type SwitchConfigParams

type SwitchConfigParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

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

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

swagger:parameters switchConfig

func NewSwitchConfigParams

func NewSwitchConfigParams() SwitchConfigParams

NewSwitchConfigParams creates a new SwitchConfigParams object with the default values initialized.

func (*SwitchConfigParams) BindRequest

func (o *SwitchConfigParams) 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 SwitchConfigURL

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

SwitchConfigURL generates an URL for the switch config operation

func (*SwitchConfigURL) Build

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

Build a url path and query string

func (*SwitchConfigURL) BuildFull

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

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

func (*SwitchConfigURL) Must

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

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

func (*SwitchConfigURL) SetBasePath

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

func (o *SwitchConfigURL) String() string

String returns the string representation of the path with query string

func (*SwitchConfigURL) StringFull

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

StringFull returns the string representation of a complete url

func (*SwitchConfigURL) WithBasePath

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

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