# Functions
Adds a full array to tabby.
Adds a full map to tabby.
CommaStringToStringMap returns a string map composed of the k=v comma separated values in the string.
Eprintf prints the errors to the output buffer Stderr.
FixCommaBasedStringSliceInput fixes params by combining successive values such that they are recovered due to strings split on a comma during CLI parsing.
No description provided by the author
GetAclFromString takes values like group1:r or group2:w and breaks them returning the group name and the access type.
GetAclMapFromString takes a comma separated string of acl names and their types, and returns a map of the names to their access types.
GetFormattedOutput returns the formatted output.
Generate random string with the given prefix, by appending random numbers.
InKubectlPluginMode returns true if running as a plugin to kubectl.
IsErrorNotFound returns if the given error is due to not found.
No description provided by the author
IsFileExists returns true if the file exists else false.
ListContains returns true when string s is found in the list.
ListContains returns true when string s is found in the list.
ListsHaveMatch returns the string and true if any one string is found in both lists.
ListMatchGlob returns true if the string matches any of the rules.
MatchGlob determines if the rules apply to string s rule can be: '*' - match all '*xxx' - ends with xxx 'xxx*' - starts with xxx '*xxx*' - contains xxx.
No description provided by the author
NewTabby is used to return a tabbing object set to the value of Stdout in the util package.
Printf is just like fmt.Printf except that it send the output to Stdout.
Print the formatted output to stdout In case of any error, just return the error.
PrintJson prints the object to json to Stdout.
PrintPxErrorMessagef prints the Portworx error message to Stderr.
PrintYaml prints the object to yaml to Stdout.
PxError extracts and returns the message found in the gRPC error status.
PxErrorMessage returns an error composed of the gRPC error status message and the message provided.
PxErrorMessagef is like PxErrorMessage, but also adds formatted string support.
RectifyErrorMessage changes cryptic messages.
SdkStatusToPrettyString returns a human readable version of the Sdk Status.
No description provided by the author
StringMapToCommaString returns a comma separated k=v as a single string.
ToJson returns the json representation of obj.
ToYaml returns the yaml representation of obj.
ValidateEndpoint will valid whether given endpoint is a valid.
WaitFor() waits until f() returns false or err != nil f() returns <wait as bool, or err>.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
Stderr points to the output buffer to send errors to the screen.
Stdout points to the output buffer to send screen output.
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
FormatOutput is the interface used to ensure proper formatting.