# Functions
AllFieldsEmpty checks to see if all fields in a given struct are zero values.
BoolNilFalse returns false for a nil bool pointer.
BoolPolicy converts a bool into a VMware BoolPolicy value.
BoolPtr makes a *bool out of the value passed in through v.
BoolStringPtrState is a state normalization function for stringified 3-state bool pointers.
ByteToGiB returns n/1024^3, *rounded up*.
ByteToMB returns n/1000000.
DeRef returns the value pointed to by the interface if the interface is a pointer and is not nil, otherwise returns nil, or the direct value if it's not a pointer.
GetBool reads a ResourceData and returns a *bool.
GetBoolPolicy reads a ResourceData and returns an appropriate BoolPolicy for the state of the definition.
GetBoolPolicyReverse acts like GetBoolPolicy, but the value is inverted.
GetBoolPtr reads a ResourceData and returns an appropriate *bool for the state of the definition.
GetBoolStringPtr reads a ResourceData *string* field.
GetInt64Ptr reads a ResourceData and returns an appropriate *int64 for the state of the definition.
GetInt64PtrEmptyZero reads a ResourceData and returns an appropriate *int64 for the state of the definition.
GetLongPolicy reads a ResourceData and returns an appropriate LongPolicy for the state of the definition.
GetStringPolicy reads a ResourceData and returns an appropriate StringPolicy for the state of the definition.
GiBToByte returns n*1024^3.
Int32Ptr makes an *int32 out of the value passed in through v.
Int64Ptr makes an *int64 out of the value passed in through v.
LogCond takes a boolean (which can be passed in as a bool or as a conditional), and returns either the first value if true, and the second if false.
LongPolicy converts a supported number into a VMware LongPolicy value.
MergeSchema merges the map[string]*schema.Schema from src into dst.
NormalizeValue converts a value to something that is suitable to be set in a ResourceData and can be useful in situations where there is not access to normal helper/schema functionality, but you still need saved fields to behave in the same way.
ResourceIDString prints a friendly string for a resource, supplied by name.
SetBatch takes a map of values and sets the appropriate top-level attributes for each item.
SetBoolPolicy sets a ResourceData field depending on if a BoolPolicy exists or not.
SetBoolPolicyReverse acts like SetBoolPolicy, but the value is inverted.
SetBoolPtr sets a ResourceData field depending on if a *bool exists or not.
SetBoolStringPtr sets a stringified ResoruceData bool field.
SetInt64Ptr sets a ResourceData field depending on if an *int64 exists or not.
SetLongPolicy sets a ResourceData field depending on if a LongPolicy exists or not.
SetStringPolicy sets a ResourceData field depending on if a StringPolicy exists or not.
SliceInterfacesToManagedObjectReferences converts an interface slice into a slice of ManagedObjectReferences with the type of t.
SliceInterfacesToStrings converts an interface slice to a string slice.
SliceStringsToInterfaces converts a string slice to an interface slice.
SliceStringsToManagedObjectReferences converts a string slice into a slice of ManagedObjectReferences with the type of t.
StringPolicy converts a string into a VMware StringPolicy value.
ValidateBoolStringPtr validates that the input value can be parsed by ParseBool.
ValuesAvailable takes a subresource path and a list of keys and checks that the value for each key is available at CustomizeDiff time.
# Interfaces
ResourceIDStringer is a small interface that can be used to supply ResourceData and ResourceDiff to functions that need to print the ID of a resource, namely used by logging.
# Type aliases
MoRefSorter is a sorting wrapper for a slice of MangedObjectReference.