option

package
v5.1.6-release+incompa... Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2019 License: LGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTenantNamePath

func GetTenantNamePath() (tenantnamepath string, err error)

Get TenantNamePath

Types

type Config

type Config struct {
	RegionMysql   RegionMysql    `yaml:"region_db"`
	Kubernets     Kubernets      `yaml:"kube"`
	RegionAPI     region.APIConf `yaml:"region_api"`
	DockerLogPath string         `yaml:"docker_log_path"`
}

Config Config

func GetConfig

func GetConfig() Config

GetConfig GetConfig

func LoadConfig

func LoadConfig(ctx *cli.Context) (Config, error)

LoadConfig 加载配置

type Kubernets

type Kubernets struct {
	Master string `yaml:"master"`
}

Kubernets Kubernets

type RegionMysql

type RegionMysql struct {
	URL      string `yaml:"url"`
	Pass     string `yaml:"pass"`
	User     string `yaml:"user"`
	Database string `yaml:"database"`
}

RegionMysql RegionMysql

Jump to

Keyboard shortcuts

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