Documentation
¶
Index ¶
- func GetVirtualGuestsIter(session session.SLSession, options *sl.Options) (resp []datatypes.Virtual_Guest, err error)
- func UpgradeVirtualGuest(sess *session.Session, guest *datatypes.Virtual_Guest, ...) (datatypes.Container_Product_Order_Receipt, error)
- func UpgradeVirtualGuestWithPreset(sess *session.Session, guest *datatypes.Virtual_Guest, presetKeyName string, ...) (datatypes.Container_Product_Order_Receipt, error)
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.