Documentation ¶
Index ¶
Constants ¶
const GetBgpPeersOKCode int = 200
GetBgpPeersOKCode is the HTTP code returned for type GetBgpPeersOK
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 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 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.