Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Service ¶
type Service interface { // GetHosts fetches a batch of hosts from the host manager matching filter. GetHosts(ctx context.Context, task *resmgr.Task, filter *hostsvc.HostFilter) (hosts []*models_v0.Host, err error) // ReserveHost Makes reservation for the host in hostmanager. ReserveHost(ctx context.Context, host []*models_v0.Host, task *resmgr.Task) (err error) // GetCompletedReservation gets the completed reservation // from host manager GetCompletedReservation( ctx context.Context) ([]*hostsvc.CompletedReservation, error) }
Service will manage hosts used to get hosts and reserve hosts.
func NewService ¶
func NewService( hostManager hostsvc.InternalHostServiceYARPCClient, resourceManager resmgrsvc.ResourceManagerServiceYARPCClient, metrics *metrics.Metrics) Service
NewService will create a new host service.
Click to show internal directories.
Click to hide internal directories.