config

package
v0.3.15-upgrade Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ExitLevelMap = map[string]int{
	"info":  types.InfoLevel,
	"INFO":  types.InfoLevel,
	"warn":  types.WarnLevel,
	"WARN":  types.WarnLevel,
	"fatal": types.FatalLevel,
	"FATAL": types.FatalLevel,
}

Functions

func CreateFromCli

func CreateFromCli(c *cli.Context)

func GetIgnoreCheckpointMap

func GetIgnoreCheckpointMap(ignoreRules []string) map[string]struct{}

Types

type Config

type Config struct {
	Debug     bool
	Timeout   time.Duration
	AuthURL   string
	Username  string
	Password  string
	Insecure  bool
	NonSSL    bool
	ImageName string
	FilePath  string
	Output    string
	Format    string
	IgnoreMap map[string]struct{}
	ExitCode  int
	ExitLevel int
}
var Conf Config

Jump to

Keyboard shortcuts

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