Documentation ¶
Index ¶
- func FindEnvVar(envVars []kcorev1.EnvVar, name string) *kcorev1.EnvVar
- func GetRandK8sName(length int) string
- func GetRandString(length int) string
- func NewEventingLogger() (*logger.Logger, error)
- func NewLogger() (*zap.Logger, error)
- func NewNamespace(name string) *kcorev1.Namespace
- func NewSugaredLogger() (*zap.SugaredLogger, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindEnvVar ¶
findEnvVar returns the env variable which has `name == envVar.Name`, or `nil` if there is no such env variable.
func GetRandK8sName ¶
GetRandK8sName returns a valid name for K8s objects.
func GetRandString ¶
GetRandString returns a random string of the given length.
func NewEventingLogger ¶
func NewNamespace ¶
func NewSugaredLogger ¶
func NewSugaredLogger() (*zap.SugaredLogger, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.