storereflector

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const ResultsHistoryAnnotation = "scheduler-simulator/result-history"

ResultsHistoryAnnotation has the all results including the past ones.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reflector

type Reflector interface {
	AddResultStore(store ResultStore, key string)
	ResisterResultSavingToInformer(client clientset.Interface, stopCh <-chan struct{}) error
}

func New

func New() Reflector

type ResultStore

type ResultStore interface {
	// GetStoredResult get all stored result of a given Pod.
	GetStoredResult(pod *corev1.Pod) map[string]string
	// DeleteData deletes all data corresponding to the pod.
	DeleteData(key corev1.Pod)
}

ResultStore represents the store which is stores data and shared with simulator and scheduler. Fulfilling this interface will allow the stored results to be saved as data in that Pod when the Pod's schedule is complete.

Directories

Path Synopsis
Package mock_storereflector is a generated GoMock package.
Package mock_storereflector is a generated GoMock package.

Jump to

Keyboard shortcuts

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