Documentation ¶
Index ¶
- Constants
- func GetMatchingFlavorID(service compute.FlavorService, flavor *compute.Flavor) (string, error)
- func GetMatchingImageID(service compute.ImageService, image *compute.Image) (string, error)
- func ImportPublicKeyWrapper(key *compute.PublicKey, f func(string, string) (string, error)) (*compute.PublicKey, error)
- func KeypairServiceCreateWrapper(service compute.Service, keypair compute.KeypairService, ...) (*compute.Instance, error)
- func MatchFlavor(target *compute.Flavor, options []*compute.Flavor) string
Constants ¶
View Source
const DEFAULT_PUBLIC_KEY_LABEL = "cloug"
Variables ¶
This section is empty.
Functions ¶
func GetMatchingFlavorID ¶
func GetMatchingImageID ¶
func ImportPublicKeyWrapper ¶
func KeypairServiceCreateWrapper ¶
func KeypairServiceCreateWrapper(service compute.Service, keypair compute.KeypairService, instance *compute.Instance) (*compute.Instance, error)
Wraps VM creation with a raw SSH key for KeypairServices. Calls ImportPublicKey, then CreateInstance, and finally RemovePublicKey.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.