config

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package config keeps all config files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	KubeConfigPath string `short:"c" long:"config" env:"KUBIC_KUBERNETES_CONFIG_PATH" description:"kubernetes config file path"`
	ThemePath      string `short:"t" long:"theme" env:"KUBIC_THEME_FILE_PATH" default:"./style.json" description:"theme file path"`
	LogTail        int64  `short:"l" long:"log_tail" env:"KUBIC_LOG_TAIL_LINES" default:"100" description:"log tail lines"`
}

SearchConfig for application. nolint lll // we need all of tags here. If we add CR here we'll catch structtag: *** key:"value" pairs not separated by spaces (govet)

func New

func New() (Config, error)

New creates a new config.

Jump to

Keyboard shortcuts

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