Documentation ¶
Index ¶
- Constants
- Variables
- func ParsePlatform(input string) (*v1.Platform, error)
- type LogSink
- func (*LogSink) Enabled(int) bool
- func (l *LogSink) Error(err error, msg string, keysAndValues ...interface{})
- func (l *LogSink) Info(_ int, msg string, keysAndValues ...interface{})
- func (*LogSink) Init(logr.RuntimeInfo)
- func (*LogSink) Print(msg string, err error, keysAndValues ...interface{})
- func (l *LogSink) WithName(string) logr.LogSink
- func (*LogSink) WithValues(...interface{}) logr.LogSink
Constants ¶
const ( // 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 ¶
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(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. |