Documentation ¶
Index ¶
- Variables
- func FetchBaremetalDiskConfigsByJSON(obj jsonutils.JSONObject) ([]*compute.BaremetalDiskConfig, error)
- func FetchDeployConfigsByJSON(obj jsonutils.JSONObject) ([]*compute.DeployConfig, error)
- func FetchDiskConfigsByJSON(obj jsonutils.JSONObject) ([]*compute.DiskConfig, error)
- func FetchDiskCreateInputByJSON(data jsonutils.JSONObject) (*compute.DiskCreateInput, error)
- func FetchIsolatedDeviceConfigsByJSON(obj jsonutils.JSONObject) ([]*compute.IsolatedDeviceConfig, error)
- func FetchNetworkConfigsByJSON(obj jsonutils.JSONObject) ([]*compute.NetworkConfig, error)
- func FetchSchedtagConfigsByJSON(obj jsonutils.JSONObject) ([]*compute.SchedtagConfig, error)
- func FetchScheduleInputByJSON(obj jsonutils.JSONObject) (*scheduler.ScheduleInput, error)
- func FetchServerConfigsByJSON(obj jsonutils.JSONObject) (*compute.ServerConfigs, error)
- func FetchServerCreateInputByJSON(obj jsonutils.JSONObject) (*compute.ServerCreateInput, error)
- func ParseBaremetalDiskConfig(desc string) (*compute.BaremetalDiskConfig, error)
- func ParseBaremetalRootDiskMatcher(line string) (*compute.BaremetalRootDiskMatcher, error)
- func ParseDiskConfig(diskStr string, idx int) (*compute.DiskConfig, error)
- func ParseIsolatedDevice(desc string, idx int) (*compute.IsolatedDeviceConfig, error)
- func ParseNetworkConfig(desc string, idx int) (*compute.NetworkConfig, error)
- func ParseNetworkConfigByJSON(desc jsonutils.JSONObject, idx int) (*compute.NetworkConfig, error)
- func ParseNetworkConfigPortMappings(descs []string) (map[int]compute.GuestPortMappings, error)
- func ParseRange(rangeStr string) (ret []int64, err error)
- func ParseResourceSchedtagConfig(desc string) (int, *compute.SchedtagConfig, error)
- func ParseSchedtagConfig(desc string) (*compute.SchedtagConfig, error)
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 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.
Click to show internal directories.
Click to hide internal directories.