vmomi

package
v1.5.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package vmomi is in a separate package to avoid the transitive inclusion of govmomi as a fundamental dependency of the main extraconfig

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EscapeNil added in v1.4.1

func EscapeNil(input string) string

func OptionValueArrayToString

func OptionValueArrayToString(options []types.BaseOptionValue) string

OptionValueArrayToString translates the options array in to a Go formatted structure dump

func OptionValueFromMap

func OptionValueFromMap(data map[string]string, escape bool) []types.BaseOptionValue

OptionValueFromMap is a convenience method to convert a map into a BaseOptionValue array escapeNil - if true a nil string is replaced with "<nil>". Allows us to distinguish between deletion and nil as a value

func OptionValueMap

func OptionValueMap(src []types.BaseOptionValue) map[string]string

OptionValueMap returns a map from array of OptionValues

func OptionValueSource

func OptionValueSource(src []types.BaseOptionValue) extraconfig.DataSource

OptionValueSource is a convenience method to generate a MapSource source from and array of OptionValue's

func OptionValueUpdatesFromMap

func OptionValueUpdatesFromMap(existing []types.BaseOptionValue, new map[string]string) []types.BaseOptionValue

OptionValueUpdatesFromMap generates an optionValue array for those entries in the map that do not already exist, are changed from the reference array, or a removed A removed entry will have a nil string for the value NOTE: DOES NOT CURRENTLY SUPPORT DELETION OF KEYS - KEYS MISSING FROM NEW MAP ARE IGNORED

func UnescapeNil added in v1.4.1

func UnescapeNil(input string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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