Documentation ¶ Index ¶ type BaseStep func (s *BaseStep[Opts]) Init(db db.DB, opts conf.RawOpts) error type Decision 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] // Database connection. 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(db db.DB, opts conf.RawOpts) 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 } Source Files ¶ View all Source files base.go Directories ¶ Show internal Expand all Path Synopsis kvm Click to show internal directories. Click to hide internal directories.