Documentation ¶
Index ¶
- Constants
- func DeleteImage(creds *AuthOptions, directoryName string) error
- func ImportImage(creds *AuthOptions, imagePath, imageName string) error
- func WithBootedImage(creds *AuthOptions, imagePath, imageName, publicKey string, ...) (retErr error)
- func WithSSHKeyPair(f func(privateKey, publicKey string) error) error
- type AuthOptions
Constants ¶
View Source
const WaitTimeout = 6000 // in seconds
Variables ¶
This section is empty.
Functions ¶
func DeleteImage ¶
func DeleteImage(creds *AuthOptions, directoryName string) error
func ImportImage ¶
func ImportImage(creds *AuthOptions, imagePath, imageName string) error
func WithBootedImage ¶
func WithBootedImage(creds *AuthOptions, imagePath, imageName, publicKey string, f func(address string) error) (retErr error)
func WithSSHKeyPair ¶
hard-coded SSH keys b/c we're having troubles uploading publicKey to the VM, see https://github.com/vmware/govmomi/issues/2054
Types ¶
type AuthOptions ¶
type AuthOptions struct { Host string Username string Password string Datacenter string Cluster string Network string Datastore string Folder string }
func AuthOptionsFromEnv ¶
func AuthOptionsFromEnv() (*AuthOptions, error)
Click to show internal directories.
Click to hide internal directories.