option

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: LGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTenantEnvNamePath added in v1.1.0

func GetTenantEnvNamePath() (tenantEnvnamepath string, err error)

Get TenantEnvNamePath

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