config

package
v0.0.0-...-03b00cc Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2019 License: Apache-2.0 Imports: 11 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFlagSet

func GetFlagSet() *flag.FlagSet

func ParseFlag

func ParseFlag()

func PrintUsage

func PrintUsage()

Types

type Config

type Config struct {
	Log     LogConfig
	Mysql   MysqlConfig
	Jenkins JenkinsConfig
	Sonar   SonarConfig
}

func LoadConf

func LoadConf() *Config

type JenkinsConfig

type JenkinsConfig struct {
	Address  string `default:"http://jenkins.kubesphere.com/"`
	User     string `default:"magicsong"`
	Password string `default:"devops"`
	MaxConn  string `default:"20"`
}

type LogConfig

type LogConfig struct {
	Level string `default:"info"` // debug, info, warn, error, fatal
}

type MysqlConfig

type MysqlConfig struct {
	Host     string `default:"kubesphere-db"`
	Port     string `default:"3306"`
	User     string `default:"root"`
	Password string `default:"password"`
	Database string `default:"kubesphere"`
}

func (*MysqlConfig) GetUrl

func (m *MysqlConfig) GetUrl() string

type SonarConfig

type SonarConfig struct {
	Address string `default:""`
	Token   string `default:""`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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