topo

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TopoClientFactory = func(cc *grpc.ClientConn) topoapi.TopoClient {
	return topoapi.NewTopoClient(cc)
}

TopoClientFactory : Default TopoClient creation.

Functions

func CreateTopoClient

func CreateTopoClient(cc *grpc.ClientConn) topoapi.TopoClient

CreateTopoClient creates and returns a new topo entity client

func NewService

func NewService(store store.Store) northbound.Service

NewService returns a new topo Service

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server implements the gRPC service for administrative facilities.

func (*Server) Create added in v0.6.20

Create creates a new topology object

func (*Server) Delete added in v0.6.11

Delete removes the specified topology object

func (*Server) Get added in v0.6.11

Get retrieves the specified topology object

func (*Server) List

List returns list of all objects

func (*Server) Stream

func (s *Server) Stream(server topoapi.Topo_WatchServer, ch chan topoapi.Event) error

Stream is the ongoing stream for WatchTerminations request

func (*Server) Update added in v0.6.20

Update creates an existing topology object

func (*Server) ValidateObject added in v0.6.11

func (s *Server) ValidateObject(ctx context.Context, object *topoapi.Object) error

ValidateObject validates the given object

func (*Server) Watch

func (s *Server) Watch(req *topoapi.WatchRequest, server topoapi.Topo_WatchServer) error

Watch streams topology changes

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service is a Service implementation for administration.

func (Service) Register

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

Register registers the Service with the gRPC server.

Jump to

Keyboard shortcuts

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