conf

package
v0.0.0-...-127562d Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Code

type Code struct {
	Message  string `yaml:"message"`
	Severity Level  `yaml:"severity"`
}

type Codes

type Codes map[ID]*Code

func InitCodes

func InitCodes() (*Codes, error)

type Config

type Config struct {
	HawkEye `yaml:"hawkeye"`
	Flags   *Flags
	Level   string
}

Config tracks HawkEye configuration options.

func NewConfig

func NewConfig(flags *Flags) (*Config, error)

Init configuration.

type Flags

type Flags struct {
	KubeConfig    *string
	LintLevel     *string
	LogLevel      *string
	LogOutPut     *string
	Output        *string
	OutputFormat  *string
	Namespace     *string
	AllNamespaces *bool
	Configuration *string
	CleanScreen   *bool
}

Flags represents hectl flags.

func NewFlags

func NewFlags() *Flags

NewFlags returns new configuration flags.

type HawkEye

type HawkEye struct {
	ETCD etcd.Config `yaml:"etcd"`
}

HawkEye tracks HawkEye configuration options.

func NewHawkEye

func NewHawkEye() HawkEye

type ID

type ID int

type Level

type Level int

Level check level.

const (
	// OkLevel no linting issues.
	OkLevel Level = iota
	// InfoLevel FIY linting issues.
	InfoLevel
	// WarnLevel a warning issue.
	WarnLevel
	// ErrorLevel a serious issue.
	ErrorLevel
)

func ConvertLevel

func ConvertLevel(level string) Level

ConvertLevel convert a string to a issue level.

Jump to

Keyboard shortcuts

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