option

package
v3.6.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 11, 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"`
}

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
}

Kubernets Kubernets

type RegionAPI

type RegionAPI struct {
	URL   string
	Token string
	Type  string
}

RegionAPI RegionAPI

type RegionMysql

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

RegionMysql RegionMysql

Jump to

Keyboard shortcuts

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