middleware

package
v0.11.5 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command(ctx context.Context, c *command.StevedoreCommand, compatibilityReport CompatibilityReporter, log Logger, cons Consoler, debug *bool) *command.StevedoreCommand

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 Consoler

type Consoler interface {
	Info(msg ...interface{})
	Warn(msg ...interface{})
	Error(msg ...interface{})
}

Consoler interface to show messages through console

type Logger

type Logger interface {
	Info(msg ...interface{})
	Warn(msg ...interface{})
	Error(msg ...interface{})
	Debug(msg ...interface{})
	Fatal(msg ...interface{})
	Panic(msg ...interface{})
}

Logger interface to log errors

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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