cli

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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

func (*LogSink) Enabled(level int) bool

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

func (l *LogSink) Error(err error, msg string, keysAndValues ...interface{})

Error logs an error, with the given message and key/value pairs as context. See Logger.Error for more details.

func (*LogSink) Info

func (l *LogSink) Info(level int, msg string, keysAndValues ...interface{})

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) Print

func (*LogSink) Print(msg string, err error, keysAndValues ...interface{})

func (*LogSink) WithName

func (l *LogSink) WithName(name string) logr.LogSink

WithName returns a new LogSink with the specified name appended. See Logger.WithName for more details.

func (*LogSink) WithValues

func (*LogSink) WithValues(keysAndValues ...interface{}) logr.LogSink

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL