northbound

package
v1.1.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package northbound implements the northbound API of the topo discovery

Index

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

func (Service) Register

func (s Service) Register(r *grpc.Server)

Register registers the server with grpc

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL