nova

package
v0.0.0-...-8f6c52d Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2025 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TopicFinished = "cortex/scheduler/nova/pipeline/finished"
)

Variables

This section is empty.

Functions

func NewNovaPipelineConsumer

func NewNovaPipelineConsumer() *novaPipelineConsumer

func NewPipeline

Create a new Nova scheduler pipeline.

Types

type NovaStep

type NovaStep = scheduling.Step[api.PipelineRequest]

type StepScoper

type StepScoper struct {
	// The wrapped step to scope.
	Step scheduling.Step[api.PipelineRequest]
	// The scope for this step.
	Scope conf.NovaSchedulerStepScope
	// The database to use for querying host capabilities.
	DB db.DB
}

func (*StepScoper) GetAlias

func (s *StepScoper) GetAlias() string

Get the alias of the wrapped step.

func (*StepScoper) GetName

func (s *StepScoper) GetName() string

Get the name of the wrapped step.

func (*StepScoper) Init

func (s *StepScoper) Init(alias string, db db.DB, opts libconf.RawOpts) error

Initialize the wrapped step with the database and options.

func (*StepScoper) Run

func (s *StepScoper) Run(traceLog *slog.Logger, request api.PipelineRequest) (*scheduling.StepResult, error)

Run the step and sRun(traceLog *slog.Logger, request api.ExternalSchedulerRequest) (*scheduling.StepResult, error)

Directories

Path Synopsis
api
plugins
kvm

Jump to

Keyboard shortcuts

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