Documentation ¶
Index ¶
- type Config
- type Master
- func (m *Master) Auth(username, password string) bool
- func (m *Master) Close() error
- func (m *Master) InspectSystem() *openedge.Inspect
- func (m *Master) ReportInstance(serviceName, instanceName string, partialStats engine.PartialStats) error
- func (m *Master) StartInstance(service, instance string, dynamicConfig map[string]string) error
- func (m *Master) StopInstance(service, instance string) error
- func (m *Master) UpdateSystem(target string) error
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Mode string `yaml:"mode" json:"mode" default:"docker" validate:"regexp=^(native|docker)$"` Server Server `yaml:"server" json:"server"` Logger logger.LogInfo `yaml:"logger" json:"logger"` Grace time.Duration `yaml:"grace" json:"grace" default:"30s"` }
Config master init config
type Master ¶
type Master struct {
// contains filtered or unexported fields
}
Master master manages all modules and connects with cloud
func (*Master) InspectSystem ¶
InspectSystem inspects info and stats of openedge system
func (*Master) ReportInstance ¶
func (m *Master) ReportInstance(serviceName, instanceName string, partialStats engine.PartialStats) error
ReportInstance reports the stats of the instance of the service
func (*Master) StartInstance ¶
StartInstance starts a service instance
func (*Master) StopInstance ¶
StopInstance stops a service instance
func (*Master) UpdateSystem ¶
UpdateSystem updates system
Source Files ¶
Click to show internal directories.
Click to hide internal directories.