Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Deployment ¶
type Deployment struct { DockerUser string `yaml:"user"` DockerPassword string `yaml:"password"` Type string `yaml:"type"` SSHConfig []SSHConfig `yaml:"ssh_config"` Deploy Deploy `yaml:"deploy"` }
func NewConfig ¶
func NewConfig() Deployment
func ParseConfig ¶
func ParseConfig() (config Deployment, err error)
ParseConfig 解析部署配置文件优先:命令行参数 > 环境变量 > 当前目录配文件
Click to show internal directories.
Click to hide internal directories.