Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HostTableConfCheck ¶
func HostTableConfCheck(conf HostTableConf) error
HostTableConfCheck check HostTableConf config
Types ¶
type Host2HostTag ¶
type HostConf ¶
type HostConf struct { Version string // version of the config DefaultProduct string // default product HostMap Host2HostTag // hostname => host-tag HostTagMap HostTag2Product // host-tag => product }
func HostRuleConfLoad ¶
HostRuleConfLoad loads config of host table from file.
type HostTableConf ¶
type HostTableConf struct { Version *string // version of the config DefaultProduct *string // default product Hosts *HostTagToHost // host-tag => hosts HostTags *ProductToHostTag // product => host-tags }
func (*HostTableConf) LoadAndCheck ¶
func (conf *HostTableConf) LoadAndCheck(filename string) (string, error)
type HostTag2Product ¶
type HostTagList ¶
type HostTagList []string // list of host-tag
type HostTagToHost ¶
type HostTagToHost map[string]*HostnameList // host-tag => hosts
type HostnameList ¶
type HostnameList []string // list of hostname
type ProductToHostTag ¶
type ProductToHostTag map[string]*HostTagList // product => host-tags
Click to show internal directories.
Click to hide internal directories.