flavors

package
v0.29.3-dev Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Commands = cli.Command{
	Name:        "gpu",
	Usage:       "Manage GPU resources",
	Description: "Parent command for GPU-related operations",
	Category:    "gpu",
	Subcommands: []*cli.Command{
		BaremetalCommands(),
		VirtualCommands(),
	},
}

Commands returns the list of GPU flavor commands

Functions

func BaremetalCommands

func BaremetalCommands() *cli.Command

BaremetalCommands returns commands for managing baremetal GPU flavors

func VirtualCommands

func VirtualCommands() *cli.Command

VirtualCommands returns commands for managing virtual GPU flavors

Types

type BMFlavorOutput

type BMFlavorOutput struct {
	Name                string                      `json:"name"`
	Architecture        *string                     `json:"architecture"`
	Disabled            bool                        `json:"disabled"`
	Capacity            int                         `json:"capacity"`
	HardwareDescription map[string]interface{}      `json:"hardware_description"`
	HardwareProperties  *flavors.HardwareProperties `json:"hardware_properties"`
	SupportedFeatures   *flavors.SupportedFeatures  `json:"supported_features"`
	Price               *flavors.Price              `json:"price,omitempty"`
}

BMFlavorOutput represents the output structure for baremetal flavors

type VMFlavorOutput

type VMFlavorOutput struct {
	Name                string                      `json:"name"`
	Architecture        *string                     `json:"architecture"`
	Disabled            bool                        `json:"disabled"`
	Capacity            int                         `json:"capacity"`
	HardwareDescription map[string]interface{}      `json:"hardware_description"`
	HardwareProperties  *flavors.HardwareProperties `json:"hardware_properties"`
	SupportedFeatures   *flavors.SupportedFeatures  `json:"supported_features"`
	Price               *flavors.Price              `json:"price,omitempty"`
}

VMFlavorOutput represents the output structure for virtual flavors

Jump to

Keyboard shortcuts

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