shared

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: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HostAZExtractor

type HostAZExtractor struct {
	// Common base for all extractors that provides standard functionality.
	plugins.BaseExtractor[
		struct{},
		shared.HostAZ,
	]
}

func (*HostAZExtractor) Extract

func (e *HostAZExtractor) Extract() ([]plugins.Feature, error)

Extract the traits of a compute host from the database.

func (*HostAZExtractor) GetName

func (*HostAZExtractor) GetName() string

Name of this feature extractor that is used in the yaml config, for logging etc.

func (HostAZExtractor) Triggers

func (HostAZExtractor) Triggers() []string

Get message topics that trigger a re-execution of this extractor.

type HostCapabilitiesExtractor

type HostCapabilitiesExtractor struct {
	// Common base for all extractors that provides standard functionality.
	plugins.BaseExtractor[
		struct{},
		shared.HostCapabilities,
	]
}

Extractor that extracts the traits of a compute host.

func (*HostCapabilitiesExtractor) Extract

func (e *HostCapabilitiesExtractor) Extract() ([]plugins.Feature, error)

Extract the traits of a compute host from the database.

func (*HostCapabilitiesExtractor) GetName

func (*HostCapabilitiesExtractor) GetName() string

Name of this feature extractor that is used in the yaml config, for logging etc.

func (HostCapabilitiesExtractor) Triggers

func (HostCapabilitiesExtractor) Triggers() []string

Get message topics that trigger a re-execution of this extractor.

type HostPinnedProjectsExtractor

type HostPinnedProjectsExtractor struct {
	// Common base for all extractors that provides standard functionality.
	plugins.BaseExtractor[
		struct{},
		shared.HostPinnedProjects,
	]
}

Extractor that extracts the pinned projects of a compute host.

func (*HostPinnedProjectsExtractor) Extract

Extract the pinned projects of a compute host.

func (*HostPinnedProjectsExtractor) GetName

Name of this feature extractor that is used in the yaml config, for logging etc.

func (HostPinnedProjectsExtractor) Triggers

func (HostPinnedProjectsExtractor) Triggers() []string

Get message topics that trigger a re-execution of this extractor.

type HostUtilizationExtractor

type HostUtilizationExtractor struct {
	// Common base for all extractors that provides standard functionality.
	plugins.BaseExtractor[
		struct{},
		shared.HostUtilization,
	]
}

Extractor that extracts the utilization on a compute host.

func (*HostUtilizationExtractor) Extract

func (e *HostUtilizationExtractor) Extract() ([]plugins.Feature, error)

Extract the utilization on a compute host. Depends on the OpenStack hypervisors to be synced.

func (*HostUtilizationExtractor) GetName

func (*HostUtilizationExtractor) GetName() string

Name of this feature extractor that is used in the yaml config, for logging etc.

func (HostUtilizationExtractor) Triggers

func (HostUtilizationExtractor) Triggers() []string

Get message topics that trigger a re-execution of this extractor.

type VMHostResidencyExtractor

type VMHostResidencyExtractor struct {
	// Common base for all extractors that provides standard functionality.
	plugins.BaseExtractor[
		struct{},
		shared.VMHostResidency,
	]
}

Extractor that extracts the time elapsed until the first migration of a virtual machine.

func (*VMHostResidencyExtractor) Extract

func (e *VMHostResidencyExtractor) Extract() ([]plugins.Feature, error)

Extract the time elapsed until the first migration of a virtual machine. Depends on the OpenStack servers and migrations to be synced.

func (*VMHostResidencyExtractor) GetName

func (*VMHostResidencyExtractor) GetName() string

Name of this feature extractor that is used in the yaml config, for logging etc.

func (VMHostResidencyExtractor) Triggers

func (VMHostResidencyExtractor) Triggers() []string

Get message topics that trigger a re-execution of this extractor.

type VMLifeSpanHistogramExtractor

type VMLifeSpanHistogramExtractor struct {
	// Common base for all extractors that provides standard functionality.
	plugins.BaseExtractor[
		struct{},
		shared.VMLifeSpanHistogramBucket,
	]
}

Extractor that extracts the time elapsed until the vm was deleted.

func (*VMLifeSpanHistogramExtractor) Extract

Extract the time elapsed until the first migration of a virtual machine. Depends on the OpenStack servers and migrations to be synced.

func (*VMLifeSpanHistogramExtractor) GetName

Name of this feature extractor that is used in the yaml config, for logging etc.

func (VMLifeSpanHistogramExtractor) Triggers

func (VMLifeSpanHistogramExtractor) Triggers() []string

Get message topics that trigger a re-execution of this extractor.

type VMLifeSpanRaw

type VMLifeSpanRaw struct {
	// Time the vm stayed on the host in seconds.
	Duration int `db:"duration"`
	// Flavor name of the virtual machine.
	FlavorName string `db:"flavor_name"`
}

Jump to

Keyboard shortcuts

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