api

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResourceManagerCallback

type ResourceManagerCallback interface {
	RecvUpdateResponse(response *si.UpdateResponse) error
}

RM side needs to implement this API

type SchedulerAPI

type SchedulerAPI interface {
	// Register a new RM, if it is a reconnect from previous RM, cleanup
	// all in-memory data and resync with RM.
	RegisterResourceManager(request *si.RegisterResourceManagerRequest, callback ResourceManagerCallback) (*si.RegisterResourceManagerResponse, error)

	// Update Scheduler status (including node status update, allocation request
	// updates, etc.
	Update(request *si.UpdateRequest) error

	// Notify scheduler to reload configuration and hot-refresh in-memory state based on configuration changes
	ReloadConfiguration(clusterID string) error
}

Jump to

Keyboard shortcuts

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