Documentation ¶
Index ¶
- type BgpServer
- func (s *BgpServer) AddBmp(ctx context.Context, r *api.AddBmpRequest) error
- func (s *BgpServer) AddDefinedSet(ctx context.Context, r *api.AddDefinedSetRequest) error
- func (s *BgpServer) AddDynamicNeighbor(ctx context.Context, r *api.AddDynamicNeighborRequest) error
- func (s *BgpServer) AddPath(ctx context.Context, r *api.AddPathRequest) (*api.AddPathResponse, error)
- func (s *BgpServer) AddPeer(ctx context.Context, r *api.AddPeerRequest) error
- func (s *BgpServer) AddPeerGroup(ctx context.Context, r *api.AddPeerGroupRequest) error
- func (s *BgpServer) AddPolicy(ctx context.Context, r *api.AddPolicyRequest) error
- func (s *BgpServer) AddPolicyAssignment(ctx context.Context, r *api.AddPolicyAssignmentRequest) error
- func (s *BgpServer) AddRpki(ctx context.Context, r *api.AddRpkiRequest) error
- func (s *BgpServer) AddStatement(ctx context.Context, r *api.AddStatementRequest) error
- func (s *BgpServer) AddVrf(ctx context.Context, r *api.AddVrfRequest) error
- func (s *BgpServer) DeleteBmp(ctx context.Context, r *api.DeleteBmpRequest) error
- func (s *BgpServer) DeleteDefinedSet(ctx context.Context, r *api.DeleteDefinedSetRequest) error
- func (s *BgpServer) DeletePath(ctx context.Context, r *api.DeletePathRequest) error
- func (s *BgpServer) DeletePeer(ctx context.Context, r *api.DeletePeerRequest) error
- func (s *BgpServer) DeletePeerGroup(ctx context.Context, r *api.DeletePeerGroupRequest) error
- func (s *BgpServer) DeletePolicy(ctx context.Context, r *api.DeletePolicyRequest) error
- func (s *BgpServer) DeletePolicyAssignment(ctx context.Context, r *api.DeletePolicyAssignmentRequest) error
- func (s *BgpServer) DeleteRpki(ctx context.Context, r *api.DeleteRpkiRequest) error
- func (s *BgpServer) DeleteStatement(ctx context.Context, r *api.DeleteStatementRequest) error
- func (s *BgpServer) DeleteVrf(ctx context.Context, r *api.DeleteVrfRequest) error
- func (s *BgpServer) DisableMrt(ctx context.Context, r *api.DisableMrtRequest) error
- func (s *BgpServer) DisableNeighbor(ctx context.Context, r *api.DisablePeerRequest) error
- func (s *BgpServer) DisableRpki(ctx context.Context, r *api.DisableRpkiRequest) error
- func (s *BgpServer) EnableMrt(ctx context.Context, r *api.EnableMrtRequest) error
- func (s *BgpServer) EnableNeighbor(ctx context.Context, r *api.EnablePeerRequest) error
- func (s *BgpServer) EnableRpki(ctx context.Context, r *api.EnableRpkiRequest) error
- func (s *BgpServer) EnableZebra(ctx context.Context, r *api.EnableZebraRequest) error
- func (s *BgpServer) GetBgp(ctx context.Context, r *api.GetBgpRequest) (*api.GetBgpResponse, error)
- func (s *BgpServer) GetTable(ctx context.Context, r *api.GetTableRequest) (*api.GetTableResponse, error)
- func (s *BgpServer) ListDefinedSet(ctx context.Context, r *api.ListDefinedSetRequest) (sets []*api.DefinedSet, err error)
- func (s *BgpServer) ListPath(ctx context.Context, r *api.ListPathRequest) ([]*api.Destination, error)
- func (s *BgpServer) ListPeer(ctx context.Context, r *api.ListPeerRequest) ([]*api.Peer, error)
- func (s *BgpServer) ListPolicy(ctx context.Context, r *api.ListPolicyRequest) ([]*api.Policy, error)
- func (s *BgpServer) ListPolicyAssignment(ctx context.Context, r *api.ListPolicyAssignmentRequest) ([]*api.PolicyAssignment, error)
- func (s *BgpServer) ListRpki(ctx context.Context, r *api.ListRpkiRequest) (l []*api.Rpki, err error)
- func (s *BgpServer) ListRpkiTable(ctx context.Context, r *api.ListRpkiTableRequest) (l []*api.Roa, err error)
- func (s *BgpServer) ListStatement(ctx context.Context, r *api.ListStatementRequest) ([]*api.Statement, error)
- func (s *BgpServer) ListVrf(ctx context.Context, _ *api.ListVrfRequest) (l []*api.Vrf)
- func (server *BgpServer) Listeners(addr string) []*net.TCPListener
- func (s *BgpServer) ResetPeer(ctx context.Context, r *api.ResetPeerRequest) error
- func (s *BgpServer) ResetRpki(ctx context.Context, r *api.ResetRpkiRequest) error
- func (server *BgpServer) Serve()
- func (s *BgpServer) SetPolicies(ctx context.Context, r *api.SetPoliciesRequest) error
- func (s *BgpServer) SetPolicyAssignment(ctx context.Context, r *api.SetPolicyAssignmentRequest) error
- func (s *BgpServer) ShutdownPeer(ctx context.Context, r *api.ShutdownPeerRequest) error
- func (s *BgpServer) StartBgp(ctx context.Context, r *api.StartBgpRequest) error
- func (s *BgpServer) StopBgp(ctx context.Context, r *api.StopBgpRequest) error
- func (s *BgpServer) UpdateNeighbor(ctx context.Context, r *api.UpdatePeerRequest) (rsp *api.UpdatePeerResponse, err error)
- func (s *BgpServer) UpdatePeerGroup(ctx context.Context, r *api.UpdatePeerGroupRequest) (rsp *api.UpdatePeerGroupResponse, err error)
- func (s *BgpServer) Watch(opts ...WatchOption) (w *Watcher)
- type Server
- func (s *Server) AddBmp(ctx context.Context, r *api.AddBmpRequest) (*empty.Empty, error)
- func (s *Server) AddDefinedSet(ctx context.Context, r *api.AddDefinedSetRequest) (*empty.Empty, error)
- func (s *Server) AddDynamicNeighbor(ctx context.Context, r *api.AddDynamicNeighborRequest) (*empty.Empty, error)
- func (s *Server) AddPath(ctx context.Context, r *api.AddPathRequest) (*api.AddPathResponse, error)
- func (s *Server) AddPathStream(stream api.GobgpApi_AddPathStreamServer) error
- func (s *Server) AddPeer(ctx context.Context, r *api.AddPeerRequest) (*empty.Empty, error)
- func (s *Server) AddPeerGroup(ctx context.Context, r *api.AddPeerGroupRequest) (*empty.Empty, error)
- func (s *Server) AddPolicy(ctx context.Context, r *api.AddPolicyRequest) (*empty.Empty, error)
- func (s *Server) AddPolicyAssignment(ctx context.Context, r *api.AddPolicyAssignmentRequest) (*empty.Empty, error)
- func (s *Server) AddRpki(ctx context.Context, r *api.AddRpkiRequest) (*empty.Empty, error)
- func (s *Server) AddStatement(ctx context.Context, r *api.AddStatementRequest) (*empty.Empty, error)
- func (s *Server) AddVrf(ctx context.Context, r *api.AddVrfRequest) (*empty.Empty, error)
- func (s *Server) DeleteBmp(ctx context.Context, r *api.DeleteBmpRequest) (*empty.Empty, error)
- func (s *Server) DeleteDefinedSet(ctx context.Context, r *api.DeleteDefinedSetRequest) (*empty.Empty, error)
- func (s *Server) DeletePath(ctx context.Context, r *api.DeletePathRequest) (*empty.Empty, error)
- func (s *Server) DeletePeer(ctx context.Context, r *api.DeletePeerRequest) (*empty.Empty, error)
- func (s *Server) DeletePeerGroup(ctx context.Context, r *api.DeletePeerGroupRequest) (*empty.Empty, error)
- func (s *Server) DeletePolicy(ctx context.Context, r *api.DeletePolicyRequest) (*empty.Empty, error)
- func (s *Server) DeletePolicyAssignment(ctx context.Context, r *api.DeletePolicyAssignmentRequest) (*empty.Empty, error)
- func (s *Server) DeleteRpki(ctx context.Context, r *api.DeleteRpkiRequest) (*empty.Empty, error)
- func (s *Server) DeleteStatement(ctx context.Context, r *api.DeleteStatementRequest) (*empty.Empty, error)
- func (s *Server) DeleteVrf(ctx context.Context, r *api.DeleteVrfRequest) (*empty.Empty, error)
- func (s *Server) DisableMrt(ctx context.Context, r *api.DisableMrtRequest) (*empty.Empty, error)
- func (s *Server) DisablePeer(ctx context.Context, r *api.DisablePeerRequest) (*empty.Empty, error)
- func (s *Server) DisableRpki(ctx context.Context, r *api.DisableRpkiRequest) (*empty.Empty, error)
- func (s *Server) EnableMrt(ctx context.Context, r *api.EnableMrtRequest) (*empty.Empty, error)
- func (s *Server) EnablePeer(ctx context.Context, r *api.EnablePeerRequest) (*empty.Empty, error)
- func (s *Server) EnableRpki(ctx context.Context, r *api.EnableRpkiRequest) (*empty.Empty, error)
- func (s *Server) EnableZebra(ctx context.Context, r *api.EnableZebraRequest) (*empty.Empty, error)
- func (s *Server) GetBgp(ctx context.Context, r *api.GetBgpRequest) (*api.GetBgpResponse, error)
- func (s *Server) GetTable(ctx context.Context, r *api.GetTableRequest) (*api.GetTableResponse, error)
- func (s *Server) ListDefinedSet(r *api.ListDefinedSetRequest, stream api.GobgpApi_ListDefinedSetServer) error
- func (s *Server) ListPath(r *api.ListPathRequest, stream api.GobgpApi_ListPathServer) error
- func (s *Server) ListPeer(r *api.ListPeerRequest, stream api.GobgpApi_ListPeerServer) error
- func (s *Server) ListPolicy(r *api.ListPolicyRequest, stream api.GobgpApi_ListPolicyServer) error
- func (s *Server) ListPolicyAssignment(r *api.ListPolicyAssignmentRequest, ...) error
- func (s *Server) ListRpki(r *api.ListRpkiRequest, stream api.GobgpApi_ListRpkiServer) error
- func (s *Server) ListRpkiTable(r *api.ListRpkiTableRequest, stream api.GobgpApi_ListRpkiTableServer) error
- func (s *Server) ListStatement(r *api.ListStatementRequest, stream api.GobgpApi_ListStatementServer) error
- func (s *Server) ListVrf(r *api.ListVrfRequest, stream api.GobgpApi_ListVrfServer) error
- func (s *Server) MonitorPeer(arg *api.MonitorPeerRequest, stream api.GobgpApi_MonitorPeerServer) error
- func (s *Server) MonitorTable(arg *api.MonitorTableRequest, stream api.GobgpApi_MonitorTableServer) error
- func (s *Server) ResetPeer(ctx context.Context, r *api.ResetPeerRequest) (*empty.Empty, error)
- func (s *Server) ResetRpki(ctx context.Context, r *api.ResetRpkiRequest) (*empty.Empty, error)
- func (s *Server) Serve() error
- func (s *Server) SetPolicies(ctx context.Context, r *api.SetPoliciesRequest) (*empty.Empty, error)
- func (s *Server) SetPolicyAssignment(ctx context.Context, r *api.SetPolicyAssignmentRequest) (*empty.Empty, error)
- func (s *Server) ShutdownPeer(ctx context.Context, r *api.ShutdownPeerRequest) (*empty.Empty, error)
- func (s *Server) StartBgp(ctx context.Context, r *api.StartBgpRequest) (*empty.Empty, error)
- func (s *Server) StopBgp(ctx context.Context, r *api.StopBgpRequest) (*empty.Empty, error)
- func (s *Server) UpdatePeer(ctx context.Context, r *api.UpdatePeerRequest) (*api.UpdatePeerResponse, error)
- func (s *Server) UpdatePeerGroup(ctx context.Context, r *api.UpdatePeerGroupRequest) (*api.UpdatePeerGroupResponse, error)
- type WatchEvent
- type WatchEventAdjIn
- type WatchEventBestPath
- type WatchEventMessage
- type WatchEventPeerState
- type WatchEventTable
- type WatchEventType
- type WatchEventUpdate
- type WatchOption
- type Watcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BgpServer ¶
type BgpServer struct {
// contains filtered or unexported fields
}
func NewBgpServer ¶
func NewBgpServer() *BgpServer
func (*BgpServer) AddDefinedSet ¶
func (*BgpServer) AddDynamicNeighbor ¶
func (*BgpServer) AddPath ¶
func (s *BgpServer) AddPath(ctx context.Context, r *api.AddPathRequest) (*api.AddPathResponse, error)
func (*BgpServer) AddPeerGroup ¶
func (*BgpServer) AddPolicyAssignment ¶
func (*BgpServer) AddStatement ¶
func (*BgpServer) DeleteDefinedSet ¶
func (*BgpServer) DeletePath ¶
func (*BgpServer) DeletePeer ¶
func (*BgpServer) DeletePeerGroup ¶
func (*BgpServer) DeletePolicy ¶
func (*BgpServer) DeletePolicyAssignment ¶
func (*BgpServer) DeleteRpki ¶
func (*BgpServer) DeleteStatement ¶
func (*BgpServer) DisableMrt ¶
func (*BgpServer) DisableNeighbor ¶
func (*BgpServer) DisableRpki ¶
func (*BgpServer) EnableNeighbor ¶
func (*BgpServer) EnableRpki ¶
func (*BgpServer) EnableZebra ¶
func (*BgpServer) GetBgp ¶
func (s *BgpServer) GetBgp(ctx context.Context, r *api.GetBgpRequest) (*api.GetBgpResponse, error)
func (*BgpServer) GetTable ¶
func (s *BgpServer) GetTable(ctx context.Context, r *api.GetTableRequest) (*api.GetTableResponse, error)
func (*BgpServer) ListDefinedSet ¶
func (s *BgpServer) ListDefinedSet(ctx context.Context, r *api.ListDefinedSetRequest) (sets []*api.DefinedSet, err error)
func (*BgpServer) ListPath ¶
func (s *BgpServer) ListPath(ctx context.Context, r *api.ListPathRequest) ([]*api.Destination, error)
func (*BgpServer) ListPolicy ¶
func (*BgpServer) ListPolicyAssignment ¶
func (s *BgpServer) ListPolicyAssignment(ctx context.Context, r *api.ListPolicyAssignmentRequest) ([]*api.PolicyAssignment, error)
func (*BgpServer) ListRpkiTable ¶
func (*BgpServer) ListStatement ¶
func (*BgpServer) SetPolicies ¶
func (*BgpServer) SetPolicyAssignment ¶
func (*BgpServer) ShutdownPeer ¶
func (*BgpServer) UpdateNeighbor ¶
func (s *BgpServer) UpdateNeighbor(ctx context.Context, r *api.UpdatePeerRequest) (rsp *api.UpdatePeerResponse, err error)
func (*BgpServer) UpdatePeerGroup ¶
func (s *BgpServer) UpdatePeerGroup(ctx context.Context, r *api.UpdatePeerGroupRequest) (rsp *api.UpdatePeerGroupResponse, err error)
func (*BgpServer) Watch ¶
func (s *BgpServer) Watch(opts ...WatchOption) (w *Watcher)
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewGrpcServer ¶
func (*Server) AddDefinedSet ¶
func (*Server) AddDynamicNeighbor ¶
func (*Server) AddPath ¶
func (s *Server) AddPath(ctx context.Context, r *api.AddPathRequest) (*api.AddPathResponse, error)
func (*Server) AddPathStream ¶
func (s *Server) AddPathStream(stream api.GobgpApi_AddPathStreamServer) error
func (*Server) AddPeerGroup ¶
func (*Server) AddPolicyAssignment ¶
func (*Server) AddStatement ¶
func (*Server) DeleteDefinedSet ¶
func (*Server) DeletePath ¶
func (*Server) DeletePeer ¶
func (*Server) DeletePeerGroup ¶
func (*Server) DeletePolicy ¶
func (*Server) DeletePolicyAssignment ¶
func (*Server) DeleteRpki ¶
func (*Server) DeleteStatement ¶
func (*Server) DisableMrt ¶
func (*Server) DisablePeer ¶
func (*Server) DisableRpki ¶
func (*Server) EnablePeer ¶
func (*Server) EnableRpki ¶
func (*Server) EnableZebra ¶
func (*Server) GetBgp ¶
func (s *Server) GetBgp(ctx context.Context, r *api.GetBgpRequest) (*api.GetBgpResponse, error)
func (*Server) GetTable ¶
func (s *Server) GetTable(ctx context.Context, r *api.GetTableRequest) (*api.GetTableResponse, error)
func (*Server) ListDefinedSet ¶
func (s *Server) ListDefinedSet(r *api.ListDefinedSetRequest, stream api.GobgpApi_ListDefinedSetServer) error
func (*Server) ListPath ¶
func (s *Server) ListPath(r *api.ListPathRequest, stream api.GobgpApi_ListPathServer) error
func (*Server) ListPeer ¶
func (s *Server) ListPeer(r *api.ListPeerRequest, stream api.GobgpApi_ListPeerServer) error
func (*Server) ListPolicy ¶
func (s *Server) ListPolicy(r *api.ListPolicyRequest, stream api.GobgpApi_ListPolicyServer) error
func (*Server) ListPolicyAssignment ¶
func (s *Server) ListPolicyAssignment(r *api.ListPolicyAssignmentRequest, stream api.GobgpApi_ListPolicyAssignmentServer) error
func (*Server) ListRpki ¶
func (s *Server) ListRpki(r *api.ListRpkiRequest, stream api.GobgpApi_ListRpkiServer) error
func (*Server) ListRpkiTable ¶
func (s *Server) ListRpkiTable(r *api.ListRpkiTableRequest, stream api.GobgpApi_ListRpkiTableServer) error
func (*Server) ListStatement ¶
func (s *Server) ListStatement(r *api.ListStatementRequest, stream api.GobgpApi_ListStatementServer) error
func (*Server) ListVrf ¶
func (s *Server) ListVrf(r *api.ListVrfRequest, stream api.GobgpApi_ListVrfServer) error
func (*Server) MonitorPeer ¶
func (s *Server) MonitorPeer(arg *api.MonitorPeerRequest, stream api.GobgpApi_MonitorPeerServer) error
func (*Server) MonitorTable ¶
func (s *Server) MonitorTable(arg *api.MonitorTableRequest, stream api.GobgpApi_MonitorTableServer) error
func (*Server) SetPolicies ¶
func (*Server) SetPolicyAssignment ¶
func (*Server) ShutdownPeer ¶
func (*Server) UpdatePeer ¶
func (s *Server) UpdatePeer(ctx context.Context, r *api.UpdatePeerRequest) (*api.UpdatePeerResponse, error)
func (*Server) UpdatePeerGroup ¶
func (s *Server) UpdatePeerGroup(ctx context.Context, r *api.UpdatePeerGroupRequest) (*api.UpdatePeerGroupResponse, error)
type WatchEvent ¶
type WatchEvent interface { }
type WatchEventAdjIn ¶
type WatchEventBestPath ¶
type WatchEventMessage ¶
type WatchEventPeerState ¶
type WatchEventPeerState struct { PeerAS uint32 LocalAS uint32 PeerAddress net.IP LocalAddress net.IP PeerPort uint16 LocalPort uint16 PeerID net.IP SentOpen *bgp.BGPMessage RecvOpen *bgp.BGPMessage State bgp.FSMState StateReason *fsmStateReason AdminState adminState Timestamp time.Time PeerInterface string }
type WatchEventTable ¶
type WatchEventType ¶
type WatchEventType string
const ( WATCH_EVENT_TYPE_BEST_PATH WatchEventType = "bestpath" WATCH_EVENT_TYPE_PRE_UPDATE WatchEventType = "preupdate" WATCH_EVENT_TYPE_POST_UPDATE WatchEventType = "postupdate" WATCH_EVENT_TYPE_PEER_STATE WatchEventType = "peerstate" WATCH_EVENT_TYPE_TABLE WatchEventType = "table" WATCH_EVENT_TYPE_RECV_MSG WatchEventType = "receivedmessage" )
type WatchEventUpdate ¶
type WatchOption ¶
type WatchOption func(*watchOptions)
func WatchBestPath ¶
func WatchBestPath(current bool) WatchOption
func WatchMessage ¶
func WatchMessage(isSent bool) WatchOption
func WatchPeerState ¶
func WatchPeerState(current bool) WatchOption
func WatchPostUpdate ¶
func WatchPostUpdate(current bool) WatchOption
func WatchTableName ¶
func WatchTableName(name string) WatchOption
func WatchUpdate ¶
func WatchUpdate(current bool) WatchOption
Click to show internal directories.
Click to hide internal directories.