Documentation ¶
Index ¶
- Constants
- Variables
- type LogSink
- func (*LogSink) Enabled(level int) bool
- func (l *LogSink) Error(err error, msg string, keysAndValues ...interface{})
- func (l *LogSink) Info(level int, msg string, keysAndValues ...interface{})
- func (*LogSink) Init(info logr.RuntimeInfo)
- func (*LogSink) Print(msg string, err error, keysAndValues ...interface{})
- func (l *LogSink) WithName(name string) logr.LogSink
- func (*LogSink) WithValues(keysAndValues ...interface{}) logr.LogSink
Constants ¶
const ( // FlagProfile is the flag for defining the input file location. FlagProfile string = "profile" // FlagOutputFile is the flag for defining the output file location. FlagOutputFile string = "output-file" // FlagUsername is the flag for defining the username for registry // authentication. FlagUsername string = "username" // EnvKeyPassword is the environment variable key for defining the password // for registry authentication. EnvKeyPassword string = "PASSWORD" )
Variables ¶
var DefaultFile = filepath.Join(os.TempDir(), "profile.yaml")
DefaultFile defines the default input and output location for profiles.
Functions ¶
This section is empty.
Types ¶
type LogSink ¶
type LogSink struct{}
func (*LogSink) Enabled ¶
Enabled tests whether this LogSink is enabled at the specified V-level. For example, commandline flags might be used to set the logging verbosity and disable some info logs.
func (*LogSink) Error ¶
Error logs an error, with the given message and key/value pairs as context. See Logger.Error for more details.
func (*LogSink) Info ¶
Info logs a non-error message with the given key/value pairs as context. The level argument is provided for optional logging. This method will only be called when Enabled(level) is true. See Logger.Info for more details.
func (*LogSink) Init ¶
func (*LogSink) Init(info logr.RuntimeInfo)
Init receives optional information about the logr library for LogSink implementations that need it.
func (*LogSink) WithName ¶
WithName returns a new LogSink with the specified name appended. See Logger.WithName for more details.
func (*LogSink) WithValues ¶
WithValues returns a new LogSink with additional key/value pairs. See Logger.WithValues for more details.
Directories ¶
Path | Synopsis |
---|---|
commandfakes
Code generated by counterfeiter.
|
Code generated by counterfeiter. |
pullerfakes
Code generated by counterfeiter.
|
Code generated by counterfeiter. |
pusherfakes
Code generated by counterfeiter.
|
Code generated by counterfeiter. |
recorderfakes
Code generated by counterfeiter.
|
Code generated by counterfeiter. |
runnerfakes
Code generated by counterfeiter.
|
Code generated by counterfeiter. |