# Functions
CheckPathExists checks if a path exists or not.
ConvertKeyValueStringToMap converts String Slice of Parameters to a Map[String]string Each value of the slice is expected to be in the key=value format Values that do not conform to this "spec", will be ignored.
ConvertLabelsToSelector converts the given labels to selector.
ExtractComponentType returns only component type part from passed component type(default unqualified, fully qualified, versioned, etc...and their combinations) for use as component name Possible types of parameters: 1.
FetchResourceQuantity takes passed min, max and requested resource quantities and returns min and max resource requests.
GenerateRandomString generates a random string of lower case characters of the given size.
Converts file path on windows to /C:/path/to/file to work in URL.
GetAbsGlobExps converts the relative glob expressions into absolute glob expressions returns the absolute glob expressions.
GetAbsPath returns absolute path from passed file path resolving even ~ to user home dir and any other such symbols that are only shell expanded can also be handled here.
GetContainerPortsFromStrings generates ContainerPort values from the array of string port values ports is the array containing the string port values.
GetDNS1123Name Converts passed string into DNS-1123 string.
GetHostWithPort parses provided url and returns string formated as host:port even if port was not specifically specified in the origin url.
GetIgnoreRulesFromDirectory reads the .odoignore file, if present, and reads the rules from it if the .odoignore file is not found, then .gitignore is searched for the rules if both are not found, return empty array directory is the name of the directory to look into for either of the files rules is the array of rules (in string form).
GetRandomName returns a randomly generated name which can be used for naming odo and/or openshift entities prefix: Desired prefix part of the name prefixMaxLen: Desired maximum length of prefix part of random name; if -1 is passed, no limit on length will be enforced existList: List to verify that the returned name does not already exist retries: number of retries to try generating a unique name Returns: 1.
GetSortedKeys retrieves the alphabetically-sorted keys of the specified map.
returns a slice containing the split string, using ',' as a separator.
IsGlobExpMatch compiles strToMatch against each of the passed globExps Parameters: strToMatch : a string for matching against the rules globExps : a list of glob patterns to match strToMatch with Returns: true if there is any match else false the error (if any).
Hyphenate applicationName and componentName.
OpenBrowser opens the URL within the users default browser.
ParseComponentImageName returns 1.
Reads file path form URL file:///C:/path/to/file to C:\path\to\file.
SliceDifference returns the values of s2 that do not exist in s1.
TruncateString truncates passed string to given length Note: if -1 is passed, the original string is returned.
# Constants
No description provided by the author
# Structs
ResourceRequirementInfo holds resource quantity before transformation into its appropriate form in container spec.