Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var LogfSetLogger = logf.SetLogger
LogfSetLogger is an alias for logf.SetLogger for testing purposes. logf.SetLogger discards all calls after the first invocation and there is no way of telling from the outside whether it was called at all. Without a func alias, we cannot verify that Options.Complete correctly initialized the global controller-runtime logger.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct { genericiooptions.IOStreams // Log is the global logger. Log logr.Logger // LogLevel is the log level (one of [info,debug,error]). LogLevel string // LogFormat is the log format (one of [json,text]). LogFormat string }
Options contains persistent options for all commands.
Click to show internal directories.
Click to hide internal directories.