rainbond: github.com/goodrain/rainbond/cmd/grctl/option Index | Files

package option

import "github.com/goodrain/rainbond/cmd/grctl/option"

Index

Package Files

conf.go

func GetTenantNamePath Uses

func GetTenantNamePath() (tenantnamepath string, err error)

Get TenantNamePath

type Config Uses

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 Uses

func GetConfig() Config

GetConfig GetConfig

func LoadConfig Uses

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

LoadConfig 加载配置

type Kubernets Uses

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

Kubernets Kubernets

type RegionMysql Uses

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

RegionMysql RegionMysql

Package option imports 8 packages (graph) and is imported by 1 packages. Updated 2019-02-15. Refresh now. Tools for package owners.