Categorygithub.com/kaloom/kubernetes-common
modulepackage
0.1.5
Repository: https://github.com/kaloom/kubernetes-common.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

CloseLogFile finalizes logging.
GetNetworkIfname from a networkName return a device name by hashing the networkName and prefixing it with auxNetworkIfnamePrefix.
IsLoggingEnabled return true if loggingLevelEnvironmentVar is set.
LogDebug debug level logging function.
LogError error level logging function.
LogInfo info level logging function.
OpenLogFile initializes logging - if loggingLevelEnvironmentVar is not defined or not enabled the log functions would be a nop - the optioanl params specifies the log file to use and log entries prefix, these can be overwritten via loggingFileEnvironmentVar and loggingPrefixEnvironmentVar env.

# Constants

LoggingLevelDebug for debug level logging.
LoggingLevelError for error level logging.
LoggingLevelInfo for info level logging.
LoggingLevelNone for no logging.

# Structs

LoggingParams define logging parameters, File for the log filename and Prefix for log entries prefix.
NetworkConfig is a struct of the Pod's annotations networks element (a json array of NetworkConfig).