testsupport

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Resources embed.FS

Functions

func NewConfig

func NewConfig(host, apiPath string) *rest.Config

func NewFakeAPIServer

func NewFakeAPIServer(logger logr.Logger, filenames ...string) (*httptest.Server, error)

func NewForbiddenError

func NewForbiddenError(msg string) error

func NewInternalServerError

func NewInternalServerError(msg string) error

func NewNotFoundError

func NewNotFoundError(msg string) error

Types

type TestLogger

type TestLogger struct {
	// contains filtered or unexported fields
}

func NewLogger

func NewLogger() *TestLogger

func (*TestLogger) Debugf

func (l *TestLogger) Debugf(msg string, args ...interface{})

func (*TestLogger) Errorf

func (l *TestLogger) Errorf(msg string, args ...interface{})

func (*TestLogger) Infof

func (l *TestLogger) Infof(msg string, args ...interface{})

func (*TestLogger) Output

func (l *TestLogger) Output() string

Jump to

Keyboard shortcuts

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