grpc

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package grpc provides the gRPC server for Liqo Controller Manager.

Index

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

func NewGrpcServer(cl client.Client) *Server

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

ReadResources is the method that returns the resources assigned to a specific ClusterID.

func (*Server) RemoveCluster added in v0.0.2

RemoveCluster is the method that removes a cluster from the gRPC server.

func (*Server) Start added in v0.0.2

func (s *Server) Start(ctx context.Context) error

Start starts the gRPC server.

func (*Server) Subscribe added in v0.0.2

Subscribe is the method that subscribes a the Liqo controller manager to the gRPC server.

func (*Server) UpdatePeeringOffer added in v0.0.2

func (s *Server) UpdatePeeringOffer(clusterID string)

UpdatePeeringOffer is the method that updates the peering offer.

Jump to

Keyboard shortcuts

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