Documentation ¶
Index ¶
- func RuntimeRawExtension(t *testing.T, p interface{}) *runtime.RawExtension
- type Log
- func (l *Log) Enabled(level int) bool
- func (l *Log) Error(err error, msg string, keysAndValues ...interface{})
- func (l *Log) Info(level int, msg string, keysAndValues ...interface{})
- func (l *Log) Init(info logr.RuntimeInfo)
- func (l *Log) V(level int) logr.LogSink
- func (l *Log) WithName(name string) logr.LogSink
- func (l *Log) WithValues(keysAndValues ...interface{}) logr.LogSink
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 AzureClusterProviderSpec 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) Error ¶ added in v0.2.1
Error logs an error, with the given message and key/value pairs as context.
func (*Log) Info ¶ added in v0.2.1
Info logs a non-error message with the given key/value pairs as context.
func (*Log) Init ¶ added in v1.2.0
func (l *Log) Init(info logr.RuntimeInfo)
Init initializes the logger from runtime information.
func (*Log) V ¶ added in v0.2.1
V returns a new Logger instance for a specific verbosity level, relative to this Logger.
func (*Log) WithName ¶ added in v0.2.1
WithName returns a new Logger instance with the specified name element added to the Logger's name.
func (*Log) WithValues ¶ added in v0.2.1
WithValues returns a new Logger instance with additional key/value pairs.