Documentation ¶
Index ¶
- Variables
- func CombineByteArraysForJSON(elements [][]byte, elementName []string) ([]byte, error)
- func DirectoryExists(directory string) bool
- func EnsureDirectory(directory string) error
- func GetCoherenceMainClass(_ string) string
- func GetError(message string, err error) error
- func GetErrors(errorList []error) error
- func GetJSONPathResults(jsonData []byte, jsonPath string) (string, error)
- func GetSliceIndex(theSlice []string, value string) int
- func GetStartupDelayInMillis(startupDelay string) (int64, error)
- func GetStorageMap(storage config.StorageDetails) map[int]bool
- func GetUniqueValues(input []string) []string
- func IsDistributedCache(serviceType string) bool
- func IsStorageEnabled(nodeID int, storageMap map[int]bool) bool
- func IsValidInt(value string) bool
- func ProcessJSONPath(jsonData interface{}, jsonPathQuery string) ([]byte, error)
- func SanitizeSnapshotName(snapshotName string) string
- func SliceContains(theSlice []string, value string) bool
- func ValidatePort(port int32) error
- func ValidateStartClass(startClass string) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func CombineByteArraysForJSON ¶
CombineByteArraysForJSON combines byte arrays for json output
func DirectoryExists ¶
DirectoryExists returns a bool indicating if a directory exists.
func EnsureDirectory ¶
EnsureDirectory ensures a directory exists and if not then will create it.
func GetCoherenceMainClass ¶
GetCoherenceMainClass returns the default startup class for the specified Coherence version. In the future this may be automatically determined but default to coherenceMain.
func GetErrors ¶
GetErrors return an error containing either the single error or an error indicating there are multiple errors in the log.
func GetJSONPathResults ¶
GetJSONPathResults returns jsonapth results.
func GetSliceIndex ¶
GetSliceIndex returns the index of the matching slice value.
func GetStartupDelayInMillis ¶
GetStartupDelayInMillis returns the startup delay in millis converted from the following suffixes: ms = millis - eg. 10ms s = seconds ed 5s no suffix is millis.
func GetStorageMap ¶
func GetStorageMap(storage config.StorageDetails) map[int]bool
GetStorageMap returns a map by node Id indicating if the node is storage enabled.
func GetUniqueValues ¶
GetUniqueValues returns the slice of unique values.
func IsDistributedCache ¶
IsDistributedCache returns true if the service type is distributed.
func IsStorageEnabled ¶
IsStorageEnabled returns true or false.
func IsValidInt ¶
IsValidInt returns true or false indicating if a string int is a valid integer.
func ProcessJSONPath ¶
ProcessJSONPath parses json path expression on Json and returns the json.
func SanitizeSnapshotName ¶
SanitizeSnapshotName sanitizes a snapshot name by replacing any unwanted characters with '-'.
func SliceContains ¶
SliceContains returns true of the slice contains the value.
func ValidatePort ¶
ValidatePort validates that a port is valid.
func ValidateStartClass ¶
ValidateStartClass validates that the server start class is and empty string, and therefore use the default, or a valid option.
Types ¶
This section is empty.