test

package
v0.0.0-...-a7b4c27 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindEnvVar

func FindEnvVar(envVars []kcorev1.EnvVar, name string) *kcorev1.EnvVar

findEnvVar returns the env variable which has `name == envVar.Name`, or `nil` if there is no such env variable.

func GetRandK8sName

func GetRandK8sName(length int) string

GetRandK8sName returns a valid name for K8s objects.

func GetRandString

func GetRandString(length int) string

GetRandString returns a random string of the given length.

func NewEventingLogger

func NewEventingLogger() (*logger.Logger, error)

func NewLogger

func NewLogger() (*zap.Logger, error)

func NewNamespace

func NewNamespace(name string) *kcorev1.Namespace

func NewSugaredLogger

func NewSugaredLogger() (*zap.SugaredLogger, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL