Documentation
¶
Index ¶
- Variables
- func CreateTopoClient(cc *grpc.ClientConn) topoapi.TopoClient
- func NewService(store store.Store) northbound.Service
- type Server
- func (s *Server) Create(ctx context.Context, req *topoapi.CreateRequest) (*topoapi.CreateResponse, error)
- func (s *Server) Delete(ctx context.Context, req *topoapi.DeleteRequest) (*topoapi.DeleteResponse, error)
- func (s *Server) Get(ctx context.Context, req *topoapi.GetRequest) (*topoapi.GetResponse, error)
- func (s *Server) List(ctx context.Context, req *topoapi.ListRequest) (*topoapi.ListResponse, error)
- func (s *Server) Stream(server topoapi.Topo_WatchServer, ch chan topoapi.Event) error
- func (s *Server) Update(ctx context.Context, req *topoapi.UpdateRequest) (*topoapi.UpdateResponse, error)
- func (s *Server) ValidateObject(ctx context.Context, object *topoapi.Object) error
- func (s *Server) Watch(req *topoapi.WatchRequest, server topoapi.Topo_WatchServer) error
- type Service
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
func (s *Server) Create(ctx context.Context, req *topoapi.CreateRequest) (*topoapi.CreateResponse, error)
Create creates a new topology object
func (*Server) Delete ¶ added in v0.6.11
func (s *Server) Delete(ctx context.Context, req *topoapi.DeleteRequest) (*topoapi.DeleteResponse, error)
Delete removes the specified topology object
func (*Server) Get ¶ added in v0.6.11
func (s *Server) Get(ctx context.Context, req *topoapi.GetRequest) (*topoapi.GetResponse, error)
Get retrieves the specified topology object
func (*Server) List ¶
func (s *Server) List(ctx context.Context, req *topoapi.ListRequest) (*topoapi.ListResponse, error)
List returns list of all objects
func (*Server) Update ¶ added in v0.6.20
func (s *Server) Update(ctx context.Context, req *topoapi.UpdateRequest) (*topoapi.UpdateResponse, error)
Update creates an existing topology object
func (*Server) ValidateObject ¶ added in v0.6.11
ValidateObject validates the given object
func (*Server) Watch ¶
func (s *Server) Watch(req *topoapi.WatchRequest, server topoapi.Topo_WatchServer) error
Watch streams topology changes
Click to show internal directories.
Click to hide internal directories.