types

package
v0.5.1-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchScheduler

type BatchScheduler interface {
	// Name gets the name of the scheduler
	Name() string
	// Schedule reconciles batch scheduling
	Schedule(options SchedulerOptions, desired *model.DesiredClusterState) error
}

BatchScheduler is the general batch scheduler interface.

type SchedulerOptions

type SchedulerOptions struct {
	ClusterName       string
	ClusterNamespace  string
	Queue             string
	PriorityClassName string
	OwnerReferences   []metav1.OwnerReference
}

Jump to

Keyboard shortcuts

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