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 ¶
- func OptionValueArrayToString(options []types.BaseOptionValue) string
- func OptionValueFromMap(data map[string]string, escape bool) []types.BaseOptionValue
- func OptionValueMap(src []types.BaseOptionValue) map[string]string
- func OptionValueSource(src []types.BaseOptionValue) extraconfig.DataSource
- func OptionValueUpdatesFromMap(existing []types.BaseOptionValue, new map[string]string) []types.BaseOptionValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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
Types ¶
This section is empty.