Added controllers, services, and lots of various optimizations and fixes
This commit is contained in:
@@ -14,6 +14,9 @@ func (self *NodeInfoEntry) String() string {
|
||||
if self.profile != "" {
|
||||
return self.profile
|
||||
}
|
||||
if self.controller != "" {
|
||||
return self.controller
|
||||
}
|
||||
if self.def != "" {
|
||||
return self.def
|
||||
}
|
||||
@@ -30,6 +33,9 @@ func (self *NodeInfoEntry) Source() string {
|
||||
if self.profile != "" {
|
||||
return "profile"
|
||||
}
|
||||
if self.controller != "" {
|
||||
return "controller"
|
||||
}
|
||||
if self.def != "" {
|
||||
return "default"
|
||||
}
|
||||
@@ -46,6 +52,9 @@ func (self *NodeInfoEntry) Get() string {
|
||||
if self.profile != "" {
|
||||
return self.profile
|
||||
}
|
||||
if self.controller != "" {
|
||||
return self.controller
|
||||
}
|
||||
if self.def != "" {
|
||||
return self.def
|
||||
}
|
||||
@@ -81,6 +90,13 @@ func (self *NodeInfoEntry) SetProfile(value string) {
|
||||
self.profile = value
|
||||
}
|
||||
|
||||
func (self *NodeInfoEntry) SetController(value string) {
|
||||
if value == "" {
|
||||
return
|
||||
}
|
||||
self.controller = value
|
||||
}
|
||||
|
||||
func (self *NodeInfoEntry) Set(value string) {
|
||||
if value == "" {
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user