vmwaretest

package
v0.48.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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

func WithSSHKeyPair(f func(privateKey, publicKey string) error) error

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)

Jump to

Keyboard shortcuts

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