check_vlan

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

CheckVlanOKCode is the HTTP code returned for type CheckVlanOK

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckVlan

type CheckVlan struct {
	Context *middleware.Context
	Handler CheckVlanHandler
}

CheckVlan swagger:route POST /checkVlan /checkVlan checkVlan

Checks if vlan exists

Check if vlan exists

func NewCheckVlan

func NewCheckVlan(ctx *middleware.Context, handler CheckVlanHandler) *CheckVlan

NewCheckVlan creates a new http.Handler for the check vlan operation

func (*CheckVlan) ServeHTTP

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

type CheckVlanDefault

type CheckVlanDefault struct {

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

CheckVlanDefault Error

swagger:response checkVlanDefault

func NewCheckVlanDefault

func NewCheckVlanDefault(code int) *CheckVlanDefault

NewCheckVlanDefault creates CheckVlanDefault with default headers values

func (*CheckVlanDefault) SetPayload

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

SetPayload sets the payload to the check vlan default response

func (*CheckVlanDefault) SetStatusCode

func (o *CheckVlanDefault) SetStatusCode(code int)

SetStatusCode sets the status to the check vlan default response

func (*CheckVlanDefault) WithPayload

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

WithPayload adds the payload to the check vlan default response

func (*CheckVlanDefault) WithStatusCode

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

WithStatusCode adds the status to the check vlan default response

func (*CheckVlanDefault) WriteResponse

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

WriteResponse to the client

type CheckVlanHandler

type CheckVlanHandler interface {
	Handle(CheckVlanParams, interface{}) middleware.Responder
}

CheckVlanHandler interface for that can handle valid check vlan params

type CheckVlanHandlerFunc

type CheckVlanHandlerFunc func(CheckVlanParams, interface{}) middleware.Responder

CheckVlanHandlerFunc turns a function with the right signature into a check vlan handler

func (CheckVlanHandlerFunc) Handle

func (fn CheckVlanHandlerFunc) Handle(params CheckVlanParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type CheckVlanOK

type CheckVlanOK struct {
}

CheckVlanOK Successfully returned whether a vlan exists or not

swagger:response checkVlanOK

func NewCheckVlanOK

func NewCheckVlanOK() *CheckVlanOK

NewCheckVlanOK creates CheckVlanOK with default headers values

func (*CheckVlanOK) WriteResponse

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

WriteResponse to the client

type CheckVlanParams

type CheckVlanParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

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

CheckVlanParams contains all the bound params for the check vlan operation typically these are obtained from a http.Request

swagger:parameters checkVlan

func NewCheckVlanParams

func NewCheckVlanParams() CheckVlanParams

NewCheckVlanParams creates a new CheckVlanParams object with the default values initialized.

func (*CheckVlanParams) BindRequest

func (o *CheckVlanParams) 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 CheckVlanURL

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

CheckVlanURL generates an URL for the check vlan operation

func (*CheckVlanURL) Build

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

Build a url path and query string

func (*CheckVlanURL) BuildFull

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

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

func (*CheckVlanURL) Must

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

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

func (*CheckVlanURL) SetBasePath

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

func (o *CheckVlanURL) String() string

String returns the string representation of the path with query string

func (*CheckVlanURL) StringFull

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

StringFull returns the string representation of a complete url

func (*CheckVlanURL) WithBasePath

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

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