option

package
v5.2.0-beta1+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2020 License: LGPL-3.0 Imports: 8 Imported by: 18

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 {
	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 {
	KubeConf string `yaml:"kube-conf"`
}

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