Documentation
¶
Overview ¶
Package northbound implements the northbound API of the topo discovery
Index ¶
- type Server
- func (s *Server) AddPod(ctx context.Context, request *api.AddPodRequest) (*api.AddPodResponse, error)
- func (s *Server) AddRack(ctx context.Context, request *api.AddRackRequest) (*api.AddRackResponse, error)
- func (s *Server) AddServerIPU(ctx context.Context, request *api.AddServerIPURequest) (*api.AddServerIPUResponse, error)
- func (s *Server) AddSwitch(ctx context.Context, request *api.AddSwitchRequest) (*api.AddSwitchResponse, error)
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server implements the grpc topology discovery service
func (*Server) AddPod ¶
func (s *Server) AddPod(ctx context.Context, request *api.AddPodRequest) (*api.AddPodResponse, error)
AddPod adds a new POD entity with the requisite aspects
func (*Server) AddRack ¶
func (s *Server) AddRack(ctx context.Context, request *api.AddRackRequest) (*api.AddRackResponse, error)
AddRack adds a new rack entity with the requisite aspects as part of a POD
func (*Server) AddServerIPU ¶
func (s *Server) AddServerIPU(ctx context.Context, request *api.AddServerIPURequest) (*api.AddServerIPUResponse, error)
AddServerIPU adds a new server entity and an associated IPU entity, both with the requisite aspects into a rack
func (*Server) AddSwitch ¶
func (s *Server) AddSwitch(ctx context.Context, request *api.AddSwitchRequest) (*api.AddSwitchResponse, error)
AddSwitch adds a new switch entity with the requisite aspects into a rack
type Service ¶
type Service struct {
northbound.Service
// contains filtered or unexported fields
}
Service implements the topology discovery NB gRPC
func NewService ¶
func NewService(controller *controller.Controller) Service
NewService allocates a Service struct with the given parameters
Click to show internal directories.
Click to hide internal directories.