Documentation ¶
Overview ¶
Package grpc provides the gRPC server for Liqo Controller Manager.
Index ¶
- type Server
- func (s *Server) GetOfferResourcesByClusterID(clusterID string) (map[string]*resource.Quantity, error)
- func (s *Server) NotifyChange(ctx context.Context, req *resourcemonitors.ClusterIdentity) error
- func (s *Server) ReadResources(ctx context.Context, req *resourcemonitors.ClusterIdentity) (*resourcemonitors.PoolResourceList, error)
- func (s *Server) RemoveCluster(ctx context.Context, req *resourcemonitors.ClusterIdentity) (*resourcemonitors.Empty, error)
- func (s *Server) Start(ctx context.Context) error
- func (s *Server) Subscribe(req *resourcemonitors.Empty, ...) error
- func (s *Server) UpdatePeeringOffer(clusterID string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶ added in v0.0.2
type Server struct { Server *grpc.Server resourcemonitors.ResourceReaderServer // contains filtered or unexported fields }
Server is the object that contains all the logical data stractures of the REAR gRPC Server.
func NewGrpcServer ¶
NewGrpcServer creates a new gRPC server.
func (*Server) GetOfferResourcesByClusterID ¶ added in v0.0.2
func (s *Server) GetOfferResourcesByClusterID(clusterID string) (map[string]*resource.Quantity, error)
GetOfferResourcesByClusterID is the method that returns the resources assigned to a specific ClusterID.
func (*Server) NotifyChange ¶ added in v0.0.2
func (s *Server) NotifyChange(ctx context.Context, req *resourcemonitors.ClusterIdentity) error
NotifyChange is the method that notifies a change to the Liqo controller manager.
func (*Server) ReadResources ¶ added in v0.0.2
func (s *Server) ReadResources(ctx context.Context, req *resourcemonitors.ClusterIdentity) (*resourcemonitors.PoolResourceList, error)
ReadResources is the method that returns the resources assigned to a specific ClusterID.
func (*Server) RemoveCluster ¶ added in v0.0.2
func (s *Server) RemoveCluster(ctx context.Context, req *resourcemonitors.ClusterIdentity) (*resourcemonitors.Empty, error)
RemoveCluster is the method that removes a cluster from the gRPC server.
func (*Server) Subscribe ¶ added in v0.0.2
func (s *Server) Subscribe(req *resourcemonitors.Empty, srv resourcemonitors.ResourceReader_SubscribeServer) error
Subscribe is the method that subscribes a the Liqo controller manager to the gRPC server.
func (*Server) UpdatePeeringOffer ¶ added in v0.0.2
UpdatePeeringOffer is the method that updates the peering offer.