Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var File = fmt.Sprintf( "~%s%s%s%s", PathSeparator, configDir, PathSeparator, configName, )
File 默认配置文件
View Source
var PathSeparator = string(os.PathSeparator)
PathSeparator path separator
Functions ¶
func MigrationConfig ¶
MigrationConfig migration config version
Types ¶
type Config ¶
type Config struct { Version string `toml:"version"` MountDir string `toml:"mount_dir"` Image string `toml:"image"` Timeout time.Duration `toml:"timeout"` DockerConfigDefault string `toml:"config_default"` DockerConfig map[string]*DockerConfig `toml:"config"` ReadTimeout time.Duration `toml:"read_timeout"` }
Config 配置
func LoadConfig ¶
LoadConfig load default file(not has init file)
Click to show internal directories.
Click to hide internal directories.