Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Spec Spec `yaml:"spec" json:"spec"`
Gosible Gosible `yaml:"gosible" json:"gosible"`
}
func (*Config) ReadInConfig ¶
type HostCfg ¶
type HostCfg struct {
Name string `yaml:"name,omitempty" json:"name,omitempty" valid:"required"`
Address string `yaml:"address,omitempty" json:"address,omitempty" valid:"required"`
InternalAddress string `yaml:"internalAddress,omitempty" json:"internalAddress,omitempty"`
Port int `yaml:"port,omitempty" json:"port,omitempty" default:"22"`
User string `yaml:"user,omitempty" json:"user,omitempty" valid:"required"`
Password string `yaml:"password,omitempty" json:"password,omitempty" valid:"required"`
PrivateKey string `yaml:"privateKey,omitempty" json:"privateKey,omitempty"`
PrivateKeyPath string `yaml:"privateKeyPath,omitempty" json:"privateKeyPath,omitempty"`
Arch string `yaml:"arch,omitempty" json:"arch,omitempty" default:"amd64"`
Labels map[string]string `yaml:"labels,omitempty" json:"labels,omitempty"`
ID string `yaml:"id,omitempty" json:"id,omitempty"`
Index int `json:"-"`
IsEtcd bool `json:"-"`
IsMaster bool `json:"-"`
IsWorker bool `json:"-"`
EtcdExist bool `json:"-"`
EtcdName string `json:"-"`
}
Click to show internal directories.
Click to hide internal directories.