config

package
v0.0.0-...-4551d9b Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: CC0-1.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// MainConfig represents the loaded config
	MainConfig *viper.Viper
)

Functions

func GetBLUE

func GetBLUE() string

func GetEmail

func GetEmail() string

func GetGitLabUser

func GetGitLabUser(host, token string) string

func GetGreen

func GetGreen() string

func GetGrey

func GetGrey() string

func GetHolidays

func GetHolidays() []time.Time

func GetRed

func GetRed() string

func GetSubscribedLabels

func GetSubscribedLabels() []string

func GetToken

func GetToken(tokenType string) string

func GetWhite

func GetWhite() string

func GetYellow

func GetYellow() string

func LoadMainConfig

func LoadMainConfig() (GitLabhost string, GitLabuser string, GitLabtoken string, Jiratoken string, JiraURL string)

LoadMainConfig loads the ~/.config/rhstatus/rhstatus.toml file

func New

func New(confpath string, r io.Reader) error

New prompts the user for the default config values to use with rhstatus, and save them to the provided confpath (default: ~/.config/rhstatus.toml)

func UserConfigError

func UserConfigError()

UserConfigError returns a default error message about authentication

Types

This section is empty.

Jump to

Keyboard shortcuts

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