stevedore

package
v0.11.4 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand(ctx context.Context, fs afero.Fs, compatibilityStore CompatibilityStorer, compatibilityReport CompatibilityReporter, console Consoler, log Logger, config *configuration.Configuration) *command.StevedoreCommand

NewCommand return an stevedore

Types

type CompatibilityReporter

type CompatibilityReporter interface {
	Report()
}

CompatibilityReporter is the interface to report compatibilities

type CompatibilityStorer

type CompatibilityStorer interface {
	AddDeprecated(deprecated ...string)
	AddRemoved(removed ...string)
	AddChanged(changed ...string)
}

CompatibilityStorer is the interface for the compatibility checker

type ConsoleReader

type ConsoleReader interface {
	Read() string
	ReadPassword(prompt string) (string, error)
}

type ConsoleWriter

type ConsoleWriter interface {
	Write(data []byte) (int, error)
	Info(msg ...interface{})
	Warn(msg ...interface{})
	Error(msg ...interface{})
	Debug(msg ...interface{})
}

type Consoler

type Consoler interface {
	ConsoleWriter
	ConsoleReader
}

Consoler interface to show messages through console

type Logger

type Logger interface {
	ReloadWithWriter(w io.Writer)
	Sync() error
	Info(msg ...interface{})
	Warn(msg ...interface{})
	Error(msg ...interface{})
	Debug(msg ...interface{})
	Fatal(msg ...interface{})
	Panic(msg ...interface{})
}

Logger interface to log errors

Jump to

Keyboard shortcuts

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