cloudtest

package
v2.5.2 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package cloudtest provides utilities for testing.

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

type Log struct{}

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

func (*Log) Enabled

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

Enabled returns the state of the logger.

func (*Log) Error

func (l *Log) Error(_ error, _ string, _ ...interface{})

Error implements Log errors.

func (*Log) Info

func (l *Log) Info(_ int, _ string, _ ...interface{})

Info implements info messages for the logger.

func (*Log) Init

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

Init initializes the logger.

func (*Log) V

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

V returns the Logger's log level.

func (*Log) WithName

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

WithName returns the logger with a specific name.

func (*Log) WithValues

func (l *Log) WithValues(_ ...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