testutils

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCertificate added in v0.9.2

func CreateCertificate(basePath, filename string) string

func CreateToken added in v0.9.2

func CreateToken(basePath, filename string) string

func RandomString

func RandomString(length int) string

func RandomStringWithCharset

func RandomStringWithCharset(length int, charset string) string

Types

type TestLogger

type TestLogger struct{}

TestLogger is a logr.Logger that only prints the main msg.

func (TestLogger) Enabled

func (TestLogger) Enabled() bool

func (TestLogger) Error

func (log TestLogger) Error(err error, msg string, args ...interface{})

func (TestLogger) Info

func (TestLogger) Info(msg string, args ...interface{})

func (TestLogger) V

func (log TestLogger) V(level int) logr.InfoLogger

func (TestLogger) WithName

func (log TestLogger) WithName(_ string) logr.Logger

func (TestLogger) WithValues

func (log TestLogger) WithValues(_ ...interface{}) logr.Logger

Jump to

Keyboard shortcuts

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