Documentation
¶
Overview ¶
Package interfaces contains all the ResourceRequestOperator interfaces representing some of its components.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterResourceInterface ¶
type ClusterResourceInterface interface {
// ReadResources returns all free cluster resources calculated for a given clusterID scaled by a percentage value.
ReadResources(clusterID string) corev1.ResourceList
// RemoveClusterID removes given clusterID from all internal structures and it will be no more valid.
RemoveClusterID(clusterID string)
}
ClusterResourceInterface represents a generic subset of Broadcaster exported methods to be used instead of a direct access to the Broadcaster instance and get/update some cluster resources information.
type UpdaterInterface ¶
type UpdaterInterface interface {
// Start runs an instance of an updater which will be stopped when ctx.Done() is closed.
Start(ctx context.Context, group *sync.WaitGroup)
// Push adds the clusterID to the internal queue to be processed as soon as possible.
Push(clusterID string)
}
UpdaterInterface represents a generic subset of Updater exported methods to be used instead of a direct access to a particular Updater instance.
Click to show internal directories.
Click to hide internal directories.