Documentation ¶
Overview ¶
replication-manager - Replication Manager Monitoring and CLI for MariaDB and MySQL Copyright 2017 Signal 18 SARL Authors: Guillaume Lefranc <guillaume@signal18.io>
Stephane Varoqui <svaroqui@gmail.com>
This source code is licensed under the GNU General Public License, version 3.
Index ¶
- type Action
- type Addr
- type Collector
- func (collector *Collector) Bootstrap(path string) error
- func (collector *Collector) CreateAppCode(code string) (int, error)
- func (collector *Collector) CreateMRMGroup() (int, error)
- func (collector *Collector) CreateMRMUser(user string, password string) (int, error)
- func (collector *Collector) CreateService(service string, app string) (string, error)
- func (collector *Collector) CreateTag(tag string) (string, error)
- func (collector *Collector) CreateTemplate(name string, template string) (int, error)
- func (collector *Collector) DeleteService(serviceid string) (string, error)
- func (collector *Collector) DeteteServiceTags(idSrv string) error
- func (collector *Collector) GetAction(actionid string) *Action
- func (collector *Collector) GetActionStatus(actionid string) string
- func (collector *Collector) GetGroupIdFromName(group string) (string, error)
- func (collector *Collector) GetGroups() ([]Group, error)
- func (collector *Collector) GetNodes() []Host
- func (collector *Collector) GetRuleset(RulesetName string) ([]Ruleset, error)
- func (collector *Collector) GetRulesetVariable(RulesetId int, VariableName string) ([]RulesetVariable, error)
- func (collector *Collector) GetServiceFromName(name string) (Service, error)
- func (collector *Collector) GetServiceStatus(name string) (int, error)
- func (collector *Collector) GetServiceTags(idSrv string) ([]Tag, error)
- func (collector *Collector) GetServices() ([]Service, error)
- func (collector *Collector) GetTagIdFromTags(tags []Tag, name string) (string, error)
- func (collector *Collector) GetTags() ([]Tag, error)
- func (collector *Collector) ImportCompliance(path string) (string, error)
- func (collector *Collector) ImportForms(path string) (string, error)
- func (collector *Collector) PostSafe(filename string) (string, error)
- func (collector *Collector) ProvisionTemplate(id int, nodeid string, name string) (int, error)
- func (collector *Collector) PublishSafe(safeUUID string, group string) error
- func (collector *Collector) SetAppCodePublication(appid int, groupid int) (string, error)
- func (collector *Collector) SetAppCodeResponsible(appid int, groupid int) (string, error)
- func (collector *Collector) SetGroupUser(groupid int, userid int) (string, error)
- func (collector *Collector) SetPrimaryGroup(groupid int, userid int) (string, error)
- func (collector *Collector) SetRulesetVariableValue(RulesetName string, VariableName string, Content string) (string, error)
- func (collector *Collector) SetServiceTag(tag_id string, service_id string) (string, error)
- func (collector *Collector) StartService(nodeid string, serviceid string) (string, error)
- func (collector *Collector) StopService(nodeid string, serviceid string) (string, error)
- func (collector *Collector) UnprovisionService(nodeid string, serviceid string) (int, error)
- type Group
- type Host
- type HostList
- type Ruleset
- type RulesetVariable
- type Service
- type Tag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector struct { Host string Port string User string Pass string RplMgrUser string RplMgrPassword string RplMgrCodeApp string ProvAgents string ProvMem string ProvIops string ProvTags string ProvDisk string ProvPwd string ProvNetMask string ProvNetGateway string ProvNetIface string ProvMicroSrv string ProvFSType string ProvFSPool string ProvFSMode string ProvFSPath string ProvDockerImg string ProvProxAgents string ProvProxDisk string ProvProxNetMask string ProvProxNetGateway string ProvProxNetIface string ProvProxMicroSrv string ProvProxFSType string ProvProxFSPool string ProvProxFSMode string ProvProxFSPath string ProvProxDockerMaxscaleImg string ProvProxDockerHaproxyImg string ProvProxDockerProxysqlImg string ProvProxDockerShardproxyImg string ProvProxTags string ProvCores string Verbose int }
func (*Collector) CreateAppCode ¶
func (*Collector) CreateMRMGroup ¶
func (*Collector) CreateMRMUser ¶
func (*Collector) CreateService ¶
func (*Collector) CreateTemplate ¶
CreateTemplate post a template to the collector
func (*Collector) DeleteService ¶
func (*Collector) DeteteServiceTags ¶
func (*Collector) GetActionStatus ¶
cycle W -> R -> T
func (*Collector) GetGroupIdFromName ¶
func (*Collector) GetRuleset ¶
func (*Collector) GetRulesetVariable ¶
func (collector *Collector) GetRulesetVariable(RulesetId int, VariableName string) ([]RulesetVariable, error)
func (*Collector) GetServiceFromName ¶
func (*Collector) GetServiceStatus ¶
GetServiceStatus 0 not provision, 1 prov and up , 2 prov & not up
func (*Collector) GetServiceTags ¶
func (*Collector) GetServices ¶
func (*Collector) GetTagIdFromTags ¶
func (*Collector) ImportCompliance ¶
func (*Collector) ImportForms ¶
Dead code
func (*Collector) ProvisionTemplate ¶
func (*Collector) PublishSafe ¶
func (*Collector) SetAppCodePublication ¶
func (*Collector) SetAppCodeResponsible ¶
func (*Collector) SetGroupUser ¶
func (*Collector) SetPrimaryGroup ¶
func (*Collector) SetRulesetVariableValue ¶
func (*Collector) SetServiceTag ¶
func (*Collector) StartService ¶
func (*Collector) StopService ¶
type RulesetVariable ¶
type RulesetVariable struct {
Id int `json:"id"`
}
Click to show internal directories.
Click to hide internal directories.