option

package
v3.4.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2018 License: LGPL-3.0 Imports: 5 Imported by: 18

Documentation

Index

Constants

View Source
const Version = "0.0.0"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	RegionMysql   *RegionMysql `json:"RegionMysql"`
	Kubernets     *Kubernets   `json:"Kubernets"`
	RegionAPI     *RegionAPI   `json:"RegionAPI"`
	DockerLogPath string       `json:"DockerLogPath"`
}

func GetConfig

func GetConfig() Config

func LoadConfig

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

func LoadConfigByRegion

func LoadConfigByRegion(c Config, ctx *cli.Context) (Config, error)

LoadConfigByRegion 通过regionAPI获取配置

type Kubernets

type Kubernets struct {
	Master string
}

type RegionAPI

type RegionAPI struct {
	URL   string
	Token string
	Type  string
}

type RegionMysql

type RegionMysql struct {
	URL      string `json:"URL"`
	Pass     string `json:"Pass"`
	User     string `json:"User"`
	Database string `json:"Database"`
}

Jump to

Keyboard shortcuts

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