Documentation ¶
Index ¶
- Constants
- type GetBgpPeers
- type GetBgpPeersDisabled
- type GetBgpPeersHandler
- type GetBgpPeersHandlerFunc
- type GetBgpPeersInternalServerError
- type GetBgpPeersOK
- type GetBgpPeersParams
- type GetBgpRoutePolicies
- type GetBgpRoutePoliciesDisabled
- type GetBgpRoutePoliciesHandler
- type GetBgpRoutePoliciesHandlerFunc
- type GetBgpRoutePoliciesInternalServerError
- func (o *GetBgpRoutePoliciesInternalServerError) SetPayload(payload models.Error)
- func (o *GetBgpRoutePoliciesInternalServerError) WithPayload(payload models.Error) *GetBgpRoutePoliciesInternalServerError
- func (o *GetBgpRoutePoliciesInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetBgpRoutePoliciesOK
- type GetBgpRoutePoliciesParams
- type GetBgpRoutes
- type GetBgpRoutesDisabled
- type GetBgpRoutesHandler
- type GetBgpRoutesHandlerFunc
- type GetBgpRoutesInternalServerError
- type GetBgpRoutesOK
- type GetBgpRoutesParams
Constants ¶
const GetBgpPeersDisabledCode int = 501
GetBgpPeersDisabledCode is the HTTP code returned for type GetBgpPeersDisabled
const GetBgpPeersInternalServerErrorCode int = 500
GetBgpPeersInternalServerErrorCode is the HTTP code returned for type GetBgpPeersInternalServerError
const GetBgpPeersOKCode int = 200
GetBgpPeersOKCode is the HTTP code returned for type GetBgpPeersOK
const GetBgpRoutePoliciesDisabledCode int = 501
GetBgpRoutePoliciesDisabledCode is the HTTP code returned for type GetBgpRoutePoliciesDisabled
const GetBgpRoutePoliciesInternalServerErrorCode int = 500
GetBgpRoutePoliciesInternalServerErrorCode is the HTTP code returned for type GetBgpRoutePoliciesInternalServerError
const GetBgpRoutePoliciesOKCode int = 200
GetBgpRoutePoliciesOKCode is the HTTP code returned for type GetBgpRoutePoliciesOK
const GetBgpRoutesDisabledCode int = 501
GetBgpRoutesDisabledCode is the HTTP code returned for type GetBgpRoutesDisabled
const GetBgpRoutesInternalServerErrorCode int = 500
GetBgpRoutesInternalServerErrorCode is the HTTP code returned for type GetBgpRoutesInternalServerError
const GetBgpRoutesOKCode int = 200
GetBgpRoutesOKCode is the HTTP code returned for type GetBgpRoutesOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetBgpPeers ¶
type GetBgpPeers struct { Context *middleware.Context Handler GetBgpPeersHandler }
GetBgpPeers swagger:route GET /bgp/peers bgp getBgpPeers
Lists operational state of BGP peers ¶
Retrieves current operational state of BGP peers created by Cilium BGP virtual router. This includes session state, uptime, information per address family, etc.
func NewGetBgpPeers ¶
func NewGetBgpPeers(ctx *middleware.Context, handler GetBgpPeersHandler) *GetBgpPeers
NewGetBgpPeers creates a new http.Handler for the get bgp peers operation
func (*GetBgpPeers) ServeHTTP ¶
func (o *GetBgpPeers) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetBgpPeersDisabled ¶
GetBgpPeersDisabled BGP Control Plane disabled
swagger:response getBgpPeersDisabled
func NewGetBgpPeersDisabled ¶
func NewGetBgpPeersDisabled() *GetBgpPeersDisabled
NewGetBgpPeersDisabled creates GetBgpPeersDisabled with default headers values
func (*GetBgpPeersDisabled) SetPayload ¶
func (o *GetBgpPeersDisabled) SetPayload(payload models.Error)
SetPayload sets the payload to the get bgp peers disabled response
func (*GetBgpPeersDisabled) WithPayload ¶
func (o *GetBgpPeersDisabled) WithPayload(payload models.Error) *GetBgpPeersDisabled
WithPayload adds the payload to the get bgp peers disabled response
func (*GetBgpPeersDisabled) WriteResponse ¶
func (o *GetBgpPeersDisabled) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetBgpPeersHandler ¶
type GetBgpPeersHandler interface {
Handle(GetBgpPeersParams) middleware.Responder
}
GetBgpPeersHandler interface for that can handle valid get bgp peers params
type GetBgpPeersHandlerFunc ¶
type GetBgpPeersHandlerFunc func(GetBgpPeersParams) middleware.Responder
GetBgpPeersHandlerFunc turns a function with the right signature into a get bgp peers handler
func (GetBgpPeersHandlerFunc) Handle ¶
func (fn GetBgpPeersHandlerFunc) Handle(params GetBgpPeersParams) middleware.Responder
Handle executing the request and returning a response
type GetBgpPeersInternalServerError ¶
type GetBgpPeersInternalServerError struct { /* In: Body */ Payload models.Error `json:"body,omitempty"` }
GetBgpPeersInternalServerError Internal Server Error
swagger:response getBgpPeersInternalServerError
func NewGetBgpPeersInternalServerError ¶
func NewGetBgpPeersInternalServerError() *GetBgpPeersInternalServerError
NewGetBgpPeersInternalServerError creates GetBgpPeersInternalServerError with default headers values
func (*GetBgpPeersInternalServerError) SetPayload ¶
func (o *GetBgpPeersInternalServerError) SetPayload(payload models.Error)
SetPayload sets the payload to the get bgp peers internal server error response
func (*GetBgpPeersInternalServerError) WithPayload ¶
func (o *GetBgpPeersInternalServerError) WithPayload(payload models.Error) *GetBgpPeersInternalServerError
WithPayload adds the payload to the get bgp peers internal server error response
func (*GetBgpPeersInternalServerError) WriteResponse ¶
func (o *GetBgpPeersInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetBgpPeersOK ¶
GetBgpPeersOK Success
swagger:response getBgpPeersOK
func NewGetBgpPeersOK ¶
func NewGetBgpPeersOK() *GetBgpPeersOK
NewGetBgpPeersOK creates GetBgpPeersOK with default headers values
func (*GetBgpPeersOK) SetPayload ¶
func (o *GetBgpPeersOK) SetPayload(payload []*models.BgpPeer)
SetPayload sets the payload to the get bgp peers o k response
func (*GetBgpPeersOK) WithPayload ¶
func (o *GetBgpPeersOK) WithPayload(payload []*models.BgpPeer) *GetBgpPeersOK
WithPayload adds the payload to the get bgp peers o k response
func (*GetBgpPeersOK) WriteResponse ¶
func (o *GetBgpPeersOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetBgpPeersParams ¶
GetBgpPeersParams contains all the bound params for the get bgp peers operation typically these are obtained from a http.Request
swagger:parameters GetBgpPeers
func NewGetBgpPeersParams ¶
func NewGetBgpPeersParams() GetBgpPeersParams
NewGetBgpPeersParams creates a new GetBgpPeersParams object
There are no default values defined in the spec.
func (*GetBgpPeersParams) BindRequest ¶
func (o *GetBgpPeersParams) 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 NewGetBgpPeersParams() beforehand.
type GetBgpRoutePolicies ¶ added in v1.15.0
type GetBgpRoutePolicies struct { Context *middleware.Context Handler GetBgpRoutePoliciesHandler }
GetBgpRoutePolicies swagger:route GET /bgp/route-policies bgp getBgpRoutePolicies
Lists BGP route policies configured in BGP Control Plane.
Retrieves route policies from BGP Control Plane.
func NewGetBgpRoutePolicies ¶ added in v1.15.0
func NewGetBgpRoutePolicies(ctx *middleware.Context, handler GetBgpRoutePoliciesHandler) *GetBgpRoutePolicies
NewGetBgpRoutePolicies creates a new http.Handler for the get bgp route policies operation
func (*GetBgpRoutePolicies) ServeHTTP ¶ added in v1.15.0
func (o *GetBgpRoutePolicies) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetBgpRoutePoliciesDisabled ¶ added in v1.15.0
type GetBgpRoutePoliciesDisabled struct { /* In: Body */ Payload models.Error `json:"body,omitempty"` }
GetBgpRoutePoliciesDisabled BGP Control Plane disabled
swagger:response getBgpRoutePoliciesDisabled
func NewGetBgpRoutePoliciesDisabled ¶ added in v1.15.0
func NewGetBgpRoutePoliciesDisabled() *GetBgpRoutePoliciesDisabled
NewGetBgpRoutePoliciesDisabled creates GetBgpRoutePoliciesDisabled with default headers values
func (*GetBgpRoutePoliciesDisabled) SetPayload ¶ added in v1.15.0
func (o *GetBgpRoutePoliciesDisabled) SetPayload(payload models.Error)
SetPayload sets the payload to the get bgp route policies disabled response
func (*GetBgpRoutePoliciesDisabled) WithPayload ¶ added in v1.15.0
func (o *GetBgpRoutePoliciesDisabled) WithPayload(payload models.Error) *GetBgpRoutePoliciesDisabled
WithPayload adds the payload to the get bgp route policies disabled response
func (*GetBgpRoutePoliciesDisabled) WriteResponse ¶ added in v1.15.0
func (o *GetBgpRoutePoliciesDisabled) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetBgpRoutePoliciesHandler ¶ added in v1.15.0
type GetBgpRoutePoliciesHandler interface {
Handle(GetBgpRoutePoliciesParams) middleware.Responder
}
GetBgpRoutePoliciesHandler interface for that can handle valid get bgp route policies params
type GetBgpRoutePoliciesHandlerFunc ¶ added in v1.15.0
type GetBgpRoutePoliciesHandlerFunc func(GetBgpRoutePoliciesParams) middleware.Responder
GetBgpRoutePoliciesHandlerFunc turns a function with the right signature into a get bgp route policies handler
func (GetBgpRoutePoliciesHandlerFunc) Handle ¶ added in v1.15.0
func (fn GetBgpRoutePoliciesHandlerFunc) Handle(params GetBgpRoutePoliciesParams) middleware.Responder
Handle executing the request and returning a response
type GetBgpRoutePoliciesInternalServerError ¶ added in v1.15.0
type GetBgpRoutePoliciesInternalServerError struct { /* In: Body */ Payload models.Error `json:"body,omitempty"` }
GetBgpRoutePoliciesInternalServerError Internal Server Error
swagger:response getBgpRoutePoliciesInternalServerError
func NewGetBgpRoutePoliciesInternalServerError ¶ added in v1.15.0
func NewGetBgpRoutePoliciesInternalServerError() *GetBgpRoutePoliciesInternalServerError
NewGetBgpRoutePoliciesInternalServerError creates GetBgpRoutePoliciesInternalServerError with default headers values
func (*GetBgpRoutePoliciesInternalServerError) SetPayload ¶ added in v1.15.0
func (o *GetBgpRoutePoliciesInternalServerError) SetPayload(payload models.Error)
SetPayload sets the payload to the get bgp route policies internal server error response
func (*GetBgpRoutePoliciesInternalServerError) WithPayload ¶ added in v1.15.0
func (o *GetBgpRoutePoliciesInternalServerError) WithPayload(payload models.Error) *GetBgpRoutePoliciesInternalServerError
WithPayload adds the payload to the get bgp route policies internal server error response
func (*GetBgpRoutePoliciesInternalServerError) WriteResponse ¶ added in v1.15.0
func (o *GetBgpRoutePoliciesInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetBgpRoutePoliciesOK ¶ added in v1.15.0
type GetBgpRoutePoliciesOK struct { /* In: Body */ Payload []*models.BgpRoutePolicy `json:"body,omitempty"` }
GetBgpRoutePoliciesOK Success
swagger:response getBgpRoutePoliciesOK
func NewGetBgpRoutePoliciesOK ¶ added in v1.15.0
func NewGetBgpRoutePoliciesOK() *GetBgpRoutePoliciesOK
NewGetBgpRoutePoliciesOK creates GetBgpRoutePoliciesOK with default headers values
func (*GetBgpRoutePoliciesOK) SetPayload ¶ added in v1.15.0
func (o *GetBgpRoutePoliciesOK) SetPayload(payload []*models.BgpRoutePolicy)
SetPayload sets the payload to the get bgp route policies o k response
func (*GetBgpRoutePoliciesOK) WithPayload ¶ added in v1.15.0
func (o *GetBgpRoutePoliciesOK) WithPayload(payload []*models.BgpRoutePolicy) *GetBgpRoutePoliciesOK
WithPayload adds the payload to the get bgp route policies o k response
func (*GetBgpRoutePoliciesOK) WriteResponse ¶ added in v1.15.0
func (o *GetBgpRoutePoliciesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetBgpRoutePoliciesParams ¶ added in v1.15.0
type GetBgpRoutePoliciesParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Autonomous System Number (ASN) identifying a BGP virtual router instance. If not specified, all virtual router instances are selected. In: query */ RouterAsn *int64 }
GetBgpRoutePoliciesParams contains all the bound params for the get bgp route policies operation typically these are obtained from a http.Request
swagger:parameters GetBgpRoutePolicies
func NewGetBgpRoutePoliciesParams ¶ added in v1.15.0
func NewGetBgpRoutePoliciesParams() GetBgpRoutePoliciesParams
NewGetBgpRoutePoliciesParams creates a new GetBgpRoutePoliciesParams object
There are no default values defined in the spec.
func (*GetBgpRoutePoliciesParams) BindRequest ¶ added in v1.15.0
func (o *GetBgpRoutePoliciesParams) 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 NewGetBgpRoutePoliciesParams() beforehand.
type GetBgpRoutes ¶
type GetBgpRoutes struct { Context *middleware.Context Handler GetBgpRoutesHandler }
GetBgpRoutes swagger:route GET /bgp/routes bgp getBgpRoutes
Lists BGP routes from BGP Control Plane RIB.
Retrieves routes from BGP Control Plane RIB filtered by parameters you specify
func NewGetBgpRoutes ¶
func NewGetBgpRoutes(ctx *middleware.Context, handler GetBgpRoutesHandler) *GetBgpRoutes
NewGetBgpRoutes creates a new http.Handler for the get bgp routes operation
func (*GetBgpRoutes) ServeHTTP ¶
func (o *GetBgpRoutes) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetBgpRoutesDisabled ¶
GetBgpRoutesDisabled BGP Control Plane disabled
swagger:response getBgpRoutesDisabled
func NewGetBgpRoutesDisabled ¶
func NewGetBgpRoutesDisabled() *GetBgpRoutesDisabled
NewGetBgpRoutesDisabled creates GetBgpRoutesDisabled with default headers values
func (*GetBgpRoutesDisabled) SetPayload ¶
func (o *GetBgpRoutesDisabled) SetPayload(payload models.Error)
SetPayload sets the payload to the get bgp routes disabled response
func (*GetBgpRoutesDisabled) WithPayload ¶
func (o *GetBgpRoutesDisabled) WithPayload(payload models.Error) *GetBgpRoutesDisabled
WithPayload adds the payload to the get bgp routes disabled response
func (*GetBgpRoutesDisabled) WriteResponse ¶
func (o *GetBgpRoutesDisabled) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetBgpRoutesHandler ¶
type GetBgpRoutesHandler interface {
Handle(GetBgpRoutesParams) middleware.Responder
}
GetBgpRoutesHandler interface for that can handle valid get bgp routes params
type GetBgpRoutesHandlerFunc ¶
type GetBgpRoutesHandlerFunc func(GetBgpRoutesParams) middleware.Responder
GetBgpRoutesHandlerFunc turns a function with the right signature into a get bgp routes handler
func (GetBgpRoutesHandlerFunc) Handle ¶
func (fn GetBgpRoutesHandlerFunc) Handle(params GetBgpRoutesParams) middleware.Responder
Handle executing the request and returning a response
type GetBgpRoutesInternalServerError ¶
type GetBgpRoutesInternalServerError struct { /* In: Body */ Payload models.Error `json:"body,omitempty"` }
GetBgpRoutesInternalServerError Internal Server Error
swagger:response getBgpRoutesInternalServerError
func NewGetBgpRoutesInternalServerError ¶
func NewGetBgpRoutesInternalServerError() *GetBgpRoutesInternalServerError
NewGetBgpRoutesInternalServerError creates GetBgpRoutesInternalServerError with default headers values
func (*GetBgpRoutesInternalServerError) SetPayload ¶
func (o *GetBgpRoutesInternalServerError) SetPayload(payload models.Error)
SetPayload sets the payload to the get bgp routes internal server error response
func (*GetBgpRoutesInternalServerError) WithPayload ¶
func (o *GetBgpRoutesInternalServerError) WithPayload(payload models.Error) *GetBgpRoutesInternalServerError
WithPayload adds the payload to the get bgp routes internal server error response
func (*GetBgpRoutesInternalServerError) WriteResponse ¶
func (o *GetBgpRoutesInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetBgpRoutesOK ¶
GetBgpRoutesOK Success
swagger:response getBgpRoutesOK
func NewGetBgpRoutesOK ¶
func NewGetBgpRoutesOK() *GetBgpRoutesOK
NewGetBgpRoutesOK creates GetBgpRoutesOK with default headers values
func (*GetBgpRoutesOK) SetPayload ¶
func (o *GetBgpRoutesOK) SetPayload(payload []*models.BgpRoute)
SetPayload sets the payload to the get bgp routes o k response
func (*GetBgpRoutesOK) WithPayload ¶
func (o *GetBgpRoutesOK) WithPayload(payload []*models.BgpRoute) *GetBgpRoutesOK
WithPayload adds the payload to the get bgp routes o k response
func (*GetBgpRoutesOK) WriteResponse ¶
func (o *GetBgpRoutesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetBgpRoutesParams ¶
type GetBgpRoutesParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Address Family Indicator (AFI) of a BGP route Required: true In: query */ Afi string /*IP address specifying a BGP neighbor. Has to be specified only when table type is adj-rib-in or adj-rib-out. In: query */ Neighbor *string /*Autonomous System Number (ASN) identifying a BGP virtual router instance. If not specified, all virtual router instances are selected. In: query */ RouterAsn *int64 /*Subsequent Address Family Indicator (SAFI) of a BGP route Required: true In: query */ Safi string /*BGP Routing Information Base (RIB) table type Required: true In: query */ TableType string }
GetBgpRoutesParams contains all the bound params for the get bgp routes operation typically these are obtained from a http.Request
swagger:parameters GetBgpRoutes
func NewGetBgpRoutesParams ¶
func NewGetBgpRoutesParams() GetBgpRoutesParams
NewGetBgpRoutesParams creates a new GetBgpRoutesParams object
There are no default values defined in the spec.
func (*GetBgpRoutesParams) BindRequest ¶
func (o *GetBgpRoutesParams) 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 NewGetBgpRoutesParams() beforehand.