predictor

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Name is the name of the plugin used in the plugin registry and configurations.
	Name = names.Predictor

	// DefaultTimeout is the default timeout for a predictor request.
	DefaultTimeout = time.Second * 20
)

Variables

This section is empty.

Functions

func New

New initializes a new plugin and returns it.

Types

type Predictor

type Predictor struct {
	// contains filtered or unexported fields
}

Predictor is a plugin than checks if a subscription need resources

func (*Predictor) Name

func (pl *Predictor) Name() string

Name returns name of the plugin. It is used in logs, etc.

func (*Predictor) Predict

Predict invoked by scheduler predictor plugin

Jump to

Keyboard shortcuts

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