Documentation ¶
Index ¶
- func CreateNIC(stack *Stack, id string, subnetVlan uint16) (netlink.Link, error)
- func DeleteNIC(stack *Stack, id string) error
- func GetNIC(stack *Stack, id string) (netlink.Link, error)
- func HasNIC(stack *Stack, id string) (bool, error)
- func Serve(port uint)
- func StartPProf(port int)
- type Server
- func (s *Server) AddNIC(ctx context.Context, req *l2API.NicRequest) (*l2API.Nic, error)
- func (s *Server) AddStack(ctx context.Context, req *l2API.StackRequest) (*l2API.StackResponse, error)
- func (s *Server) DeleteNIC(ctx context.Context, req *l2API.Nic) (*l2API.Empty, error)
- func (s *Server) DeleteStack(ctx context.Context, req *l2API.StackRequest) (*l2API.Empty, error)
- func (s *Server) Gc()
- func (s *Server) GetStack(ctx context.Context, req *l2API.StackRequest) (*l2API.StackResponse, error)
- func (s *Server) HandleMisses(vpcID uint32, miss <-chan transport.ForwardingMiss)
- func (s *Server) NICStatus(ctx context.Context, req *l2API.Nic) (*l2API.NicStatusResponse, error)
- func (s *Server) SDN()
- func (s *Server) StackStatus(ctx context.Context, req *l2API.StackRequest) (*l2API.StackStatusResponse, error)
- func (s *Server) WatchStacks(_ *l2API.Empty, stream l2API.L2Service_WatchStacksServer) error
- type Stack
- type VNic
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Server ¶
type Server struct { l2API.UnimplementedL2ServiceServer // contains filtered or unexported fields }
Server l2 API server
func (*Server) AddStack ¶
func (s *Server) AddStack(ctx context.Context, req *l2API.StackRequest) (*l2API.StackResponse, error)
AddStack creates a new VPC stack
func (*Server) DeleteStack ¶
DeleteStack deletes all devices in the stack
func (*Server) Gc ¶
func (s *Server) Gc()
Gc watches for vpcs which have no nics anymore and closes them off
func (*Server) GetStack ¶
func (s *Server) GetStack(ctx context.Context, req *l2API.StackRequest) (*l2API.StackResponse, error)
GetStack finds and returns an existing VPC stack
func (*Server) HandleMisses ¶
func (s *Server) HandleMisses(vpcID uint32, miss <-chan transport.ForwardingMiss)
HandleMisses monitors for subscription errors
func (*Server) SDN ¶
func (s *Server) SDN()
SDN starts the SDN controller to advertise type-2 and type-3 routes
func (*Server) StackStatus ¶
func (s *Server) StackStatus(ctx context.Context, req *l2API.StackRequest) (*l2API.StackStatusResponse, error)
StackStatus returns just the current status of devices in stack
func (*Server) WatchStacks ¶
WatchStacks monitors for changes in the stacks
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package xdp allows to use XDP sockets from Go.
|
Package xdp allows to use XDP sockets from Go. |
Click to show internal directories.
Click to hide internal directories.