interfaces

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

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