Documentation ¶
Index ¶
- func Average(n ...int64) int64
- func ConvertToKV(values map[string]string) string
- func FindHostAndCluster(entity *string, vmToHost map[string]*string, morToParent map[string]*string, ...) (*string, *string, error)
- func Int32MaptoString(value []int32, separator string, noarray bool) string
- func Int64MaptoString(value []int64, separator string, noarray bool) string
- func IntMaptoString(value []int, separator string, noarray bool) string
- func Join(values map[int]string, separator string) string
- func MapObjInt32(property string, sourceVal *types.AnyType, dest map[string]*int32, ...) error
- func MapObjRef(property string, sourceVal *types.AnyType, dest map[string]*string, ...) error
- func MapObjRefs(property string, sourceVal *types.AnyType, ...) error
- func Max(n ...int64) int64
- func Min(n ...int64) int64
- func MustAtoi(value string) int
- func MustWriteString(buffer *bytes.Buffer, s string)
- func Reverse(array []string)
- func StringMaptoString(value []string, separator string, noarray bool) string
- func Sum(n ...int64) int64
- func ValToString(value interface{}, separator string, noarray bool) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToKV ¶
ConvertToKV converts a map[string]string to a csv with k=v pairs
func FindHostAndCluster ¶
func FindHostAndCluster(entity *string, vmToHost map[string]*string, morToParent map[string]*string, morToName map[string]*string) (*string, *string, error)
FindHostAndCluster Find cluster for managed entity
func Int32MaptoString ¶
Int32MaptoString converts a int32 map to csv or get the first value
func Int64MaptoString ¶
Int64MaptoString converts a int64 map to csv or get the first value
func IntMaptoString ¶
IntMaptoString converts a int map to csv or get the first value
func MapObjInt32 ¶
func MapObjInt32(property string, sourceVal *types.AnyType, dest map[string]*int32, index string) error
MapObjInt32 fills in an int32 into a map to another object reference
func MapObjRef ¶
func MapObjRef(property string, sourceVal *types.AnyType, dest map[string]*string, index string) error
MapObjRef fills in object reference into a map to another object reference
func MapObjRefs ¶
func MapObjRefs(property string, sourceVal *types.AnyType, dest map[string]*[]types.ManagedObjectReference, index string) error
MapObjRefs fills in object references into a map to another object reference
func MustWriteString ¶
MustWriteString writes to a buffer and panics on error
func StringMaptoString ¶
StringMaptoString converts a string map to csv or get the first value
func ValToString ¶
ValToString : try to convert interface to string. Separated by separator if slice
Types ¶
This section is empty.