cloudtest

package
v1.5.5 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RuntimeRawExtension

func RuntimeRawExtension(t *testing.T, p interface{}) *runtime.RawExtension

RuntimeRawExtension takes anything and turns it into a *runtime.RawExtension. This is helpful for creating clusterv1.Cluster/Machine objects that need a specific AWSClusterProviderSpec or Status.

Types

type Log added in v0.2.1

type Log struct{}

Log implements logr.Logger for testing. Do not use if you actually want to test log messages.

func (*Log) Enabled added in v0.2.1

func (l *Log) Enabled(level int) bool

Enabled returns the state of the logger.

func (*Log) Error added in v0.2.1

func (l *Log) Error(err error, msg string, keysAndValues ...interface{})

Error implements Log errors.

func (*Log) Info added in v0.2.1

func (l *Log) Info(level int, msg string, keysAndValues ...interface{})

Info implements info messages for the logger.

func (*Log) Init added in v1.1.0

func (l *Log) Init(info logr.RuntimeInfo)

func (*Log) V added in v0.2.1

func (l *Log) V(level int) logr.LogSink

V returns the Logger's log level.

func (*Log) WithName added in v0.2.1

func (l *Log) WithName(name string) logr.LogSink

WithName returns the logger with a specific name.

func (*Log) WithValues added in v0.2.1

func (l *Log) WithValues(keysAndValues ...interface{}) logr.LogSink

WithValues returns logs with specific values.

Jump to

Keyboard shortcuts

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