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) StartServiceInstance(service, instance string, dynamicConfig map[string]string) error
- func (m *Master) StopServiceInstance(service, instance string) error
- func (m *Master) UpdateSystem(dir string, clean bool) error
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 http.ServerInfo `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 system
func (*Master) StartServiceInstance ¶
func (m *Master) StartServiceInstance(service, instance string, dynamicConfig map[string]string) error
StartServiceInstance starts a service instance
func (*Master) StopServiceInstance ¶
StopServiceInstance stops a service instance
Click to show internal directories.
Click to hide internal directories.