cmdline

package
v0.0.0-...-6410feb Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorEmptyDesc = errors.Errorf("Empty description")
)

Functions

func FetchBaremetalDiskConfigsByJSON

func FetchBaremetalDiskConfigsByJSON(obj jsonutils.JSONObject) ([]*compute.BaremetalDiskConfig, error)

func FetchDeployConfigsByJSON

func FetchDeployConfigsByJSON(obj jsonutils.JSONObject) ([]*compute.DeployConfig, error)

func FetchDiskConfigsByJSON

func FetchDiskConfigsByJSON(obj jsonutils.JSONObject) ([]*compute.DiskConfig, error)

func FetchDiskCreateInputByJSON

func FetchDiskCreateInputByJSON(data jsonutils.JSONObject) (*compute.DiskCreateInput, error)

func FetchIsolatedDeviceConfigsByJSON

func FetchIsolatedDeviceConfigsByJSON(obj jsonutils.JSONObject) ([]*compute.IsolatedDeviceConfig, error)

func FetchNetworkConfigsByJSON

func FetchNetworkConfigsByJSON(obj jsonutils.JSONObject) ([]*compute.NetworkConfig, error)

func FetchSchedtagConfigsByJSON

func FetchSchedtagConfigsByJSON(obj jsonutils.JSONObject) ([]*compute.SchedtagConfig, error)

func FetchScheduleInputByJSON

func FetchScheduleInputByJSON(obj jsonutils.JSONObject) (*scheduler.ScheduleInput, error)

func FetchServerConfigsByJSON

func FetchServerConfigsByJSON(obj jsonutils.JSONObject) (*compute.ServerConfigs, error)

func FetchServerCreateInputByJSON

func FetchServerCreateInputByJSON(obj jsonutils.JSONObject) (*compute.ServerCreateInput, error)

func ParseBaremetalDiskConfig

func ParseBaremetalDiskConfig(desc string) (*compute.BaremetalDiskConfig, error)

func ParseBaremetalRootDiskMatcher

func ParseBaremetalRootDiskMatcher(line string) (*compute.BaremetalRootDiskMatcher, error)

func ParseDiskConfig

func ParseDiskConfig(diskStr string, idx int) (*compute.DiskConfig, error)

func ParseIsolatedDevice

func ParseIsolatedDevice(desc string, idx int) (*compute.IsolatedDeviceConfig, error)

func ParseNetworkConfig

func ParseNetworkConfig(desc string, idx int) (*compute.NetworkConfig, error)

func ParseNetworkConfigByJSON

func ParseNetworkConfigByJSON(desc jsonutils.JSONObject, idx int) (*compute.NetworkConfig, error)

func ParseNetworkConfigPortMappings

func ParseNetworkConfigPortMappings(descs []string) (map[int]compute.GuestPortMappings, error)

func ParseRange

func ParseRange(rangeStr string) (ret []int64, err error)

func ParseResourceSchedtagConfig

func ParseResourceSchedtagConfig(desc string) (int, *compute.SchedtagConfig, error)

ParseResourceSchedtagConfig desc format: <idx>:<schedtagName>:<strategy>

func ParseSchedtagConfig

func ParseSchedtagConfig(desc string) (*compute.SchedtagConfig, error)

ParseSchedtagConfig desc format: <schedtagName>:<strategy>:<resource_type>

Types

This section is empty.

Jump to

Keyboard shortcuts

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