conversion

package
v0.90.17 Latest Latest
Warning

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

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

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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