setting

package
v0.0.0-...-f0fce53 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultConfDir    = "conf"
	JobsDir           = "jobs"
	HostsDir          = "hosts"
	PlaybooksRolesDir = "roles"
	PlaybooksAppsDir  = ".apps"

	GenAppYml = "gen_app_yml.py"
	AppsYml   = "Apps.yml"
)

Variables

View Source
var AnsibleSetting = &Ansible{}
View Source
var AppSetting = &App{}
View Source
var EtcdSetting = &Etcd{}
View Source
var GPUTypesSetting map[string][]string
View Source
var PackageSetting = &Package{}
View Source
var ServerSetting = &Server{}

Functions

func GetGPUType

func GetGPUType(model string) string

func Setup

func Setup()

Setup initialize the configuration instance

Types

type Ansible

type Ansible struct {
	Bin          string
	BaseDir      string
	PlaybooksDir string
	TplsDir      string
	LogToStdout  bool
	DryRun       bool
}

type App

type App struct {
	PrefixUrl string
	LogLevel  log.Level
	JwtSecret string
	DataDir   string
}

type Etcd

type Etcd struct {
	Endpoints []string
}

type Package

type Package struct {
	ScanPath string
	PkgPath  string
}

type Server

type Server struct {
	RunMode      string
	HttpPort     int
	ReadTimeout  time.Duration
	WriteTimeout time.Duration
}

Jump to

Keyboard shortcuts

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