cli

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

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

View Source
var DefaultFile = filepath.Join(os.TempDir(), "profile.yaml")

DefaultFile defines the default input and output location for profiles.

Functions

func ParsePlatform added in v0.8.1

func ParsePlatform(input string) (*v1.Platform, error)

ParsePlatform parses an OCI image spec platform from the provided string.

Types

type LogSink

type LogSink struct{}

func (*LogSink) Enabled

func (*LogSink) Enabled(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(_ 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(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(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(...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.
mergerfakes
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