Documentation ¶
Index ¶
- type APIServer
- func (s *APIServer) CreateSRPolicy(ctx context.Context, input *pb.CreateSRPolicyInput) (*pb.RequestStatus, error)
- func (s *APIServer) CreateSRPolicyWithoutLinkState(ctx context.Context, input *pb.CreateSRPolicyInput) (*pb.RequestStatus, error)
- func (c *APIServer) DeleteSession(ctx context.Context, input *pb.Session) (*pb.RequestStatus, error)
- func (s *APIServer) GetSRPolicyList(context.Context, *empty.Empty) (*pb.SRPolicyList, error)
- func (s *APIServer) GetSessionList(context.Context, *empty.Empty) (*pb.SessionList, error)
- func (s *APIServer) GetTed(context.Context, *empty.Empty) (*pb.Ted, error)
- func (s *APIServer) Serve(address string, port string) error
- type PceOptions
- type Server
- type ServerError
- type Session
- func (ss *Session) DeleteSRPolicy(plspID uint32)
- func (ss *Session) Established()
- func (ss *Session) Open() error
- func (ss *Session) ReceiveOpen() error
- func (ss *Session) ReceivePcepMessage() error
- func (ss *Session) RegisterSRPolicy(srPolicy table.SRPolicy)
- func (ss *Session) SearchSRPolicyPlspID(color uint32, endpoint netip.Addr) (uint32, bool)
- func (ss *Session) SendClose(reason uint8) error
- func (ss *Session) SendKeepalive() error
- func (ss *Session) SendOpen() error
- func (ss *Session) SendPCInitiate(srPolicy table.SRPolicy) error
- func (ss *Session) SendPCUpdate(srPolicy table.SRPolicy) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIServer ¶ added in v1.1.0
type APIServer struct { pb.UnimplementedPceServiceServer // contains filtered or unexported fields }
func NewAPIServer ¶ added in v1.1.0
func (*APIServer) CreateSRPolicy ¶ added in v1.2.0
func (s *APIServer) CreateSRPolicy(ctx context.Context, input *pb.CreateSRPolicyInput) (*pb.RequestStatus, error)
func (*APIServer) CreateSRPolicyWithoutLinkState ¶ added in v1.2.0
func (s *APIServer) CreateSRPolicyWithoutLinkState(ctx context.Context, input *pb.CreateSRPolicyInput) (*pb.RequestStatus, error)
func (*APIServer) DeleteSession ¶ added in v1.2.1
func (*APIServer) GetSRPolicyList ¶ added in v1.2.0
func (*APIServer) GetSessionList ¶ added in v1.2.1
type PceOptions ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) SRPolicies ¶ added in v1.2.0
SRPolicies returns a map of registered SR Policy with key sessionAddr
func (*Server) SearchSession ¶ added in v1.2.0
type ServerError ¶ added in v1.1.0
func NewPce ¶
func NewPce(o *PceOptions, logger *zap.Logger, tedElemsChan chan []table.TedElem) ServerError
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
func (*Session) DeleteSRPolicy ¶ added in v1.2.0
func (*Session) Established ¶
func (ss *Session) Established()
func (*Session) ReceiveOpen ¶ added in v1.1.0
func (*Session) ReceivePcepMessage ¶
func (*Session) RegisterSRPolicy ¶ added in v1.2.0
func (*Session) SearchSRPolicyPlspID ¶ added in v1.2.1
SearchSRPolicyPlspID returns the PLSP-ID of a registered SR Policy, along with a boolean value indicating if it was found.
func (*Session) SendKeepalive ¶
Click to show internal directories.
Click to hide internal directories.