plugins

package
v0.0.0-...-b959757 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseStep

type BaseStep[Opts any] struct {
	// Options to pass via yaml to this step.
	conf.JsonOpts[Opts]
	// The kubernetes client to use.
	Client client.Client
	// Initialized database connection, if configured through the step spec.
	DB *db.DB
}

Common base for all steps that provides some functionality that would otherwise be duplicated across all steps.

func (*BaseStep[Opts]) Init

func (s *BaseStep[Opts]) Init(ctx context.Context, client client.Client, step v1alpha1.Step) error

Init the step with the database and options.

type Decision

type Decision struct {
	// Get the VM ID for which this decision applies.
	VMID string
	// Get a human-readable reason for this decision.
	Reason string
	// Get the compute host where the vm should be migrated away from.
	Host string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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