virtual

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: Apache-2.0 Imports: 8 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetVirtualGuestsIter added in v1.1.4

func GetVirtualGuestsIter(session session.SLSession, options *sl.Options) (resp []datatypes.Virtual_Guest, err error)

Use go-routines to iterate through all virtual guest results. optoins should be any Mask or Filter you need, and a Limit if the default is too large. Any error in the subsequent API calls will be logged, but largely ignored

func UpgradeVirtualGuest

func UpgradeVirtualGuest(
	sess *session.Session,
	guest *datatypes.Virtual_Guest,
	options map[string]float64,
	when ...time.Time,
) (datatypes.Container_Product_Order_Receipt, error)

Upgrade a virtual guest to a specified set of features (e.g. cpu, ram). When the upgrade takes place can also be specified (`when`), but this is optional. The time set will be 'now' if left as nil. The features to upgrade are specified as the options used in GetProductPrices().

func UpgradeVirtualGuestWithPreset

func UpgradeVirtualGuestWithPreset(
	sess *session.Session,
	guest *datatypes.Virtual_Guest,
	presetKeyName string,
	options map[string]float64,
	when ...time.Time,
) (datatypes.Container_Product_Order_Receipt, error)

Upgrade a virtual guest with preset to a specified set of features (e.g. flavor,disks). When the upgrade takes place can also be specified (`when`), but this is optional. The time set will be 'now' if left as nil. The features to upgrade are specified as the options used in GetProductPrices().

Types

This section is empty.

Jump to

Keyboard shortcuts

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