Versions in this module Expand all Collapse all v1 v1.0.0 Oct 13, 2021 Changes in this version + const CoreSiteFile + const HdfsSiteFILE + const YarnEnvFile + const YarnSiteFile + func GetAllConfig(fileName string) (map[string]string, error) + func GetCapacity() (global.NMCapacity, error) + func GetConfDataFromFile(xmlfile string, key string) string + func GetConfig(fileName string, keys []string) (map[string]string, error) + func GetNodeManagerAddress(cacheAddress bool) string + func GetNodeManagerWebAddress(cacheAddress bool) string + func GetResourceManagerAddress(cacheAddress bool) string + func GetXMLFullPath(filename string) string + func SetAddDelConfig(fileName string, properties map[string]string, add, del bool) error + func SetAddDelMultipleConfDataToFile(xmlfile string, properties map[string]string, add, del bool) error + func SetCapacity(capacity global.NMCapacity) error + func SetConfig(fileName string, properties map[string]string) error + func SetMultipleConfDataToFile(xmlfile string, properties map[string]string) error + type ConfData struct + Properties []PropertyData + XMLName xml.Name + func LoadConfDataFromFile(filename string) (*ConfData, error) + func LoadConfDataFromStream(s io.Reader) (*ConfData, error) + func (conf *ConfData) Get(key string) string + func (conf *ConfData) SaveToStream(w io.Writer) error + func (conf *ConfData) Set(key string, value string) + func (conf *ConfData) SetAdd(key string, value string) + type PropertyData struct + Description string + Name string + Value string + XMLName xml.Name