# Functions
AllAddresses returns a list of all network addresses on a node.
No description provided by the author
CheckPathPermissions checks the correct permissions are for a path (file or directory).
FileExists checks if a file exists and is not a directory before we try using it to prevent further errors.
FirstPublicAddress return the first found non-local address that's not part of pod network.
GetAllDirs return a list of dirs in given base path.
Find the path for a given file (similar to `which`).
GetGID returns gid of given groupname and logs a warning if its missing.
GetUID returns uid of given username and logs a warning if its missing.
HomeDir fetches the running user's home directory, regardless of Sudo.
InitDirectory creates a path if it does not exist, and verifies its permissions, if it does.
IsDirectory check the given path exists and is a directory.
IsStringArrayEqual returns true if an array of strings is equal, regardless of order.
MachineID returns protected id for the current machine.
MachineIDFromHostname generates a machine id hash from hostname.
MapMerge merges the input from one map with an existing map, so that we can override entries entry in the existing map.
RandomString generates a random string with given length.
SplitFlags splits arbitrary set of flags into MappedArgs struct.
StringSliceContains check whether the given string slice contains the other string.
Unique returns only the unique items from given input slice.
# Structs
TemplateWriter is a helper to write templated kube manifests.
# Type aliases
MappedArgs defines map like arguments that can be "evaluated" into args=value pairs.