conversion

package
v1.14.16-dcf8320c8c4e Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// GeneratedFailureDomainName is a placeholder name when one wasn't provided.
	GeneratedFailureDomainName string = "generated-failure-domain"
	// GeneratedFailureDomainRegion is a placeholder region when one wasn't provided.
	GeneratedFailureDomainRegion string = "generated-region"
	// GeneratedFailureDomainZone is a placeholder zone when one wasn't provided.
	GeneratedFailureDomainZone string = "generated-zone"
)

Variables

This section is empty.

Functions

func ConvertInstallConfig

func ConvertInstallConfig(config *types.InstallConfig) error

ConvertInstallConfig modifies a given platform spec for the new requirements.

func GetFinder added in v0.90.0

func GetFinder(server, username, password string) (*find.Finder, error)

GetFinder connects to vCenter via SOAP and returns the Finder object if the SOAP connection is successful. If the connection fails it returns nil. Errors are mostly ignored to support AI and agent installers.

func SetObjectPath added in v0.90.0

func SetObjectPath(finder *find.Finder, pathType, objectPath, datacenter string) (string, error)

SetObjectPath based on the pathType will either determine the path for the type via a simple join of the datacenter, pathType and objectPath if finder is nil or via a connection to vCenter find of all child objects under the datacenter and pathType. pathType must only be "host", "vm", or "datastore".

Types

This section is empty.

Jump to

Keyboard shortcuts

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