Documentation ¶
Index ¶
Constants ¶
View Source
const ( ConfigFile = "conf/jupiter.json" TryTime = 3 ERROR_PARAM = "parameter error" ERROR_CONVERT = "Convert error" Interval = 60 Time4Wait = 3 //unit s DateForm = "2006-01-02T15:04Z" //时间格式 )
Variables ¶
This section is empty.
Functions ¶
func FileExists ¶
Types ¶
type CloudAccount ¶
type Configuration ¶
type Configuration struct { Password string OpIp string OpPort string OpUserName string OpPassWord string BufferSize int Ansible *Ansible KeyDir string CloudAccounts []*CloudAccount }
var (
Config *Configuration
)
func GetConfig ¶
func GetConfig() (*Configuration, error)
Click to show internal directories.
Click to hide internal directories.