circuit

package
v0.22.44 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const DeleteCircuitBadRequestCode int = 400

DeleteCircuitBadRequestCode is the HTTP code returned for type DeleteCircuitBadRequest

View Source
const DeleteCircuitConflictCode int = 409

DeleteCircuitConflictCode is the HTTP code returned for type DeleteCircuitConflict

View Source
const DeleteCircuitOKCode int = 200

DeleteCircuitOKCode is the HTTP code returned for type DeleteCircuitOK

View Source
const DeleteCircuitUnauthorizedCode int = 401

DeleteCircuitUnauthorizedCode is the HTTP code returned for type DeleteCircuitUnauthorized

View Source
const DetailCircuitNotFoundCode int = 404

DetailCircuitNotFoundCode is the HTTP code returned for type DetailCircuitNotFound

View Source
const DetailCircuitOKCode int = 200

DetailCircuitOKCode is the HTTP code returned for type DetailCircuitOK

View Source
const DetailCircuitUnauthorizedCode int = 401

DetailCircuitUnauthorizedCode is the HTTP code returned for type DetailCircuitUnauthorized

View Source
const ListCircuitsOKCode int = 200

ListCircuitsOKCode is the HTTP code returned for type ListCircuitsOK

View Source
const ListCircuitsUnauthorizedCode int = 401

ListCircuitsUnauthorizedCode is the HTTP code returned for type ListCircuitsUnauthorized

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteCircuit

type DeleteCircuit struct {
	Context *middleware.Context
	Handler DeleteCircuitHandler
}
DeleteCircuit swagger:route DELETE /circuits/{id} Circuit deleteCircuit

Delete a circuit

Delete a circuit by id. Requires admin access.

func NewDeleteCircuit

func NewDeleteCircuit(ctx *middleware.Context, handler DeleteCircuitHandler) *DeleteCircuit

NewDeleteCircuit creates a new http.Handler for the delete circuit operation

func (*DeleteCircuit) ServeHTTP

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

type DeleteCircuitBadRequest

type DeleteCircuitBadRequest struct {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

DeleteCircuitBadRequest The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information

swagger:response deleteCircuitBadRequest

func NewDeleteCircuitBadRequest

func NewDeleteCircuitBadRequest() *DeleteCircuitBadRequest

NewDeleteCircuitBadRequest creates DeleteCircuitBadRequest with default headers values

func (*DeleteCircuitBadRequest) SetPayload

func (o *DeleteCircuitBadRequest) SetPayload(payload *rest_model.APIErrorEnvelope)

SetPayload sets the payload to the delete circuit bad request response

func (*DeleteCircuitBadRequest) WithPayload

WithPayload adds the payload to the delete circuit bad request response

func (*DeleteCircuitBadRequest) WriteResponse

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

WriteResponse to the client

type DeleteCircuitConflict

type DeleteCircuitConflict struct {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

DeleteCircuitConflict The resource requested to be removed/altered cannot be as it is referenced by another object.

swagger:response deleteCircuitConflict

func NewDeleteCircuitConflict

func NewDeleteCircuitConflict() *DeleteCircuitConflict

NewDeleteCircuitConflict creates DeleteCircuitConflict with default headers values

func (*DeleteCircuitConflict) SetPayload

func (o *DeleteCircuitConflict) SetPayload(payload *rest_model.APIErrorEnvelope)

SetPayload sets the payload to the delete circuit conflict response

func (*DeleteCircuitConflict) WithPayload

WithPayload adds the payload to the delete circuit conflict response

func (*DeleteCircuitConflict) WriteResponse

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

WriteResponse to the client

type DeleteCircuitHandler

type DeleteCircuitHandler interface {
	Handle(DeleteCircuitParams) middleware.Responder
}

DeleteCircuitHandler interface for that can handle valid delete circuit params

type DeleteCircuitHandlerFunc

type DeleteCircuitHandlerFunc func(DeleteCircuitParams) middleware.Responder

DeleteCircuitHandlerFunc turns a function with the right signature into a delete circuit handler

func (DeleteCircuitHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteCircuitOK

type DeleteCircuitOK struct {

	/*
	  In: Body
	*/
	Payload *rest_model.Empty `json:"body,omitempty"`
}

DeleteCircuitOK The delete request was successful and the resource has been removed

swagger:response deleteCircuitOK

func NewDeleteCircuitOK

func NewDeleteCircuitOK() *DeleteCircuitOK

NewDeleteCircuitOK creates DeleteCircuitOK with default headers values

func (*DeleteCircuitOK) SetPayload

func (o *DeleteCircuitOK) SetPayload(payload *rest_model.Empty)

SetPayload sets the payload to the delete circuit o k response

func (*DeleteCircuitOK) WithPayload

func (o *DeleteCircuitOK) WithPayload(payload *rest_model.Empty) *DeleteCircuitOK

WithPayload adds the payload to the delete circuit o k response

func (*DeleteCircuitOK) WriteResponse

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

WriteResponse to the client

type DeleteCircuitParams

type DeleteCircuitParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*The id of the requested resource
	  Required: true
	  In: path
	*/
	ID string
	/*A circuit delete object
	  In: body
	*/
	Options *rest_model.CircuitDelete
}

DeleteCircuitParams contains all the bound params for the delete circuit operation typically these are obtained from a http.Request

swagger:parameters deleteCircuit

func NewDeleteCircuitParams

func NewDeleteCircuitParams() DeleteCircuitParams

NewDeleteCircuitParams creates a new DeleteCircuitParams object

There are no default values defined in the spec.

func (*DeleteCircuitParams) BindRequest

func (o *DeleteCircuitParams) 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.

To ensure default values, the struct must have been initialized with NewDeleteCircuitParams() beforehand.

type DeleteCircuitURL

type DeleteCircuitURL struct {
	ID string
	// contains filtered or unexported fields
}

DeleteCircuitURL generates an URL for the delete circuit operation

func (*DeleteCircuitURL) Build

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

Build a url path and query string

func (*DeleteCircuitURL) BuildFull

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

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

func (*DeleteCircuitURL) Must

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

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

func (*DeleteCircuitURL) SetBasePath

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

func (o *DeleteCircuitURL) String() string

String returns the string representation of the path with query string

func (*DeleteCircuitURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DeleteCircuitURL) WithBasePath

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

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

type DeleteCircuitUnauthorized

type DeleteCircuitUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

DeleteCircuitUnauthorized The currently supplied session does not have the correct access rights to request this resource

swagger:response deleteCircuitUnauthorized

func NewDeleteCircuitUnauthorized

func NewDeleteCircuitUnauthorized() *DeleteCircuitUnauthorized

NewDeleteCircuitUnauthorized creates DeleteCircuitUnauthorized with default headers values

func (*DeleteCircuitUnauthorized) SetPayload

func (o *DeleteCircuitUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope)

SetPayload sets the payload to the delete circuit unauthorized response

func (*DeleteCircuitUnauthorized) WithPayload

WithPayload adds the payload to the delete circuit unauthorized response

func (*DeleteCircuitUnauthorized) WriteResponse

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

WriteResponse to the client

type DetailCircuit

type DetailCircuit struct {
	Context *middleware.Context
	Handler DetailCircuitHandler
}
DetailCircuit swagger:route GET /circuits/{id} Circuit detailCircuit

Retrieves a single circuit

Retrieves a single circuit by id. Requires admin access.

func NewDetailCircuit

func NewDetailCircuit(ctx *middleware.Context, handler DetailCircuitHandler) *DetailCircuit

NewDetailCircuit creates a new http.Handler for the detail circuit operation

func (*DetailCircuit) ServeHTTP

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

type DetailCircuitHandler

type DetailCircuitHandler interface {
	Handle(DetailCircuitParams) middleware.Responder
}

DetailCircuitHandler interface for that can handle valid detail circuit params

type DetailCircuitHandlerFunc

type DetailCircuitHandlerFunc func(DetailCircuitParams) middleware.Responder

DetailCircuitHandlerFunc turns a function with the right signature into a detail circuit handler

func (DetailCircuitHandlerFunc) Handle

Handle executing the request and returning a response

type DetailCircuitNotFound

type DetailCircuitNotFound struct {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

DetailCircuitNotFound The requested resource does not exist

swagger:response detailCircuitNotFound

func NewDetailCircuitNotFound

func NewDetailCircuitNotFound() *DetailCircuitNotFound

NewDetailCircuitNotFound creates DetailCircuitNotFound with default headers values

func (*DetailCircuitNotFound) SetPayload

func (o *DetailCircuitNotFound) SetPayload(payload *rest_model.APIErrorEnvelope)

SetPayload sets the payload to the detail circuit not found response

func (*DetailCircuitNotFound) WithPayload

WithPayload adds the payload to the detail circuit not found response

func (*DetailCircuitNotFound) WriteResponse

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

WriteResponse to the client

type DetailCircuitOK

type DetailCircuitOK struct {

	/*
	  In: Body
	*/
	Payload *rest_model.DetailCircuitEnvelope `json:"body,omitempty"`
}

DetailCircuitOK A single circuit

swagger:response detailCircuitOK

func NewDetailCircuitOK

func NewDetailCircuitOK() *DetailCircuitOK

NewDetailCircuitOK creates DetailCircuitOK with default headers values

func (*DetailCircuitOK) SetPayload

func (o *DetailCircuitOK) SetPayload(payload *rest_model.DetailCircuitEnvelope)

SetPayload sets the payload to the detail circuit o k response

func (*DetailCircuitOK) WithPayload

WithPayload adds the payload to the detail circuit o k response

func (*DetailCircuitOK) WriteResponse

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

WriteResponse to the client

type DetailCircuitParams

type DetailCircuitParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*The id of the requested resource
	  Required: true
	  In: path
	*/
	ID string
}

DetailCircuitParams contains all the bound params for the detail circuit operation typically these are obtained from a http.Request

swagger:parameters detailCircuit

func NewDetailCircuitParams

func NewDetailCircuitParams() DetailCircuitParams

NewDetailCircuitParams creates a new DetailCircuitParams object

There are no default values defined in the spec.

func (*DetailCircuitParams) BindRequest

func (o *DetailCircuitParams) 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.

To ensure default values, the struct must have been initialized with NewDetailCircuitParams() beforehand.

type DetailCircuitURL

type DetailCircuitURL struct {
	ID string
	// contains filtered or unexported fields
}

DetailCircuitURL generates an URL for the detail circuit operation

func (*DetailCircuitURL) Build

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

Build a url path and query string

func (*DetailCircuitURL) BuildFull

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

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

func (*DetailCircuitURL) Must

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

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

func (*DetailCircuitURL) SetBasePath

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

func (o *DetailCircuitURL) String() string

String returns the string representation of the path with query string

func (*DetailCircuitURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DetailCircuitURL) WithBasePath

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

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

type DetailCircuitUnauthorized

type DetailCircuitUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

DetailCircuitUnauthorized The currently supplied session does not have the correct access rights to request this resource

swagger:response detailCircuitUnauthorized

func NewDetailCircuitUnauthorized

func NewDetailCircuitUnauthorized() *DetailCircuitUnauthorized

NewDetailCircuitUnauthorized creates DetailCircuitUnauthorized with default headers values

func (*DetailCircuitUnauthorized) SetPayload

func (o *DetailCircuitUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope)

SetPayload sets the payload to the detail circuit unauthorized response

func (*DetailCircuitUnauthorized) WithPayload

WithPayload adds the payload to the detail circuit unauthorized response

func (*DetailCircuitUnauthorized) WriteResponse

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

WriteResponse to the client

type ListCircuits

type ListCircuits struct {
	Context *middleware.Context
	Handler ListCircuitsHandler
}
ListCircuits swagger:route GET /circuits Circuit listCircuits

List circuits

Retrieves a list of circuit resources; does not supports filtering, sorting, or pagination. Requires admin access.

func NewListCircuits

func NewListCircuits(ctx *middleware.Context, handler ListCircuitsHandler) *ListCircuits

NewListCircuits creates a new http.Handler for the list circuits operation

func (*ListCircuits) ServeHTTP

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

type ListCircuitsHandler

type ListCircuitsHandler interface {
	Handle(ListCircuitsParams) middleware.Responder
}

ListCircuitsHandler interface for that can handle valid list circuits params

type ListCircuitsHandlerFunc

type ListCircuitsHandlerFunc func(ListCircuitsParams) middleware.Responder

ListCircuitsHandlerFunc turns a function with the right signature into a list circuits handler

func (ListCircuitsHandlerFunc) Handle

Handle executing the request and returning a response

type ListCircuitsOK

type ListCircuitsOK struct {

	/*
	  In: Body
	*/
	Payload *rest_model.ListCircuitsEnvelope `json:"body,omitempty"`
}

ListCircuitsOK A list of circuits

swagger:response listCircuitsOK

func NewListCircuitsOK

func NewListCircuitsOK() *ListCircuitsOK

NewListCircuitsOK creates ListCircuitsOK with default headers values

func (*ListCircuitsOK) SetPayload

func (o *ListCircuitsOK) SetPayload(payload *rest_model.ListCircuitsEnvelope)

SetPayload sets the payload to the list circuits o k response

func (*ListCircuitsOK) WithPayload

WithPayload adds the payload to the list circuits o k response

func (*ListCircuitsOK) WriteResponse

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

WriteResponse to the client

type ListCircuitsParams

type ListCircuitsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`
}

ListCircuitsParams contains all the bound params for the list circuits operation typically these are obtained from a http.Request

swagger:parameters listCircuits

func NewListCircuitsParams

func NewListCircuitsParams() ListCircuitsParams

NewListCircuitsParams creates a new ListCircuitsParams object

There are no default values defined in the spec.

func (*ListCircuitsParams) BindRequest

func (o *ListCircuitsParams) 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.

To ensure default values, the struct must have been initialized with NewListCircuitsParams() beforehand.

type ListCircuitsURL

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

ListCircuitsURL generates an URL for the list circuits operation

func (*ListCircuitsURL) Build

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

Build a url path and query string

func (*ListCircuitsURL) BuildFull

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

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

func (*ListCircuitsURL) Must

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

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

func (*ListCircuitsURL) SetBasePath

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

func (o *ListCircuitsURL) String() string

String returns the string representation of the path with query string

func (*ListCircuitsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*ListCircuitsURL) WithBasePath

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

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

type ListCircuitsUnauthorized

type ListCircuitsUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

ListCircuitsUnauthorized The currently supplied session does not have the correct access rights to request this resource

swagger:response listCircuitsUnauthorized

func NewListCircuitsUnauthorized

func NewListCircuitsUnauthorized() *ListCircuitsUnauthorized

NewListCircuitsUnauthorized creates ListCircuitsUnauthorized with default headers values

func (*ListCircuitsUnauthorized) SetPayload

func (o *ListCircuitsUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope)

SetPayload sets the payload to the list circuits unauthorized response

func (*ListCircuitsUnauthorized) WithPayload

WithPayload adds the payload to the list circuits unauthorized response

func (*ListCircuitsUnauthorized) WriteResponse

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

WriteResponse to the client

Jump to

Keyboard shortcuts

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