Versions in this module Expand all Collapse all v1 v1.4.239 Jul 16, 2015 v1.4.219 Jul 10, 2015 v1.4.204 Jul 8, 2015 v1.4.196 Jul 6, 2015 v1.4.191 Jul 3, 2015 Changes in this version + var SeededAgents chan *Agent = make(chan *Agent) + func AbortSeed(seedId int64) error + func FailStaleSeeds() error + func ForgetLongUnseenAgents() error + func ReadOutdatedAgentsHosts() ([]string, error) + func Seed(targetHostname string, sourceHostname string) (int64, error) + func SubmitAgent(hostname string, port int, token string) (string, error) + func SubmitSeedEntry(targetHostname string, sourceHostname string) (int64, error) + func UpdateAgentInfo(hostname string, agent Agent) error + func UpdateAgentLastChecked(hostname string) error + type Agent struct + AvailableLocalSnapshots []string + AvailableSnapshots []string + Hostname string + LastSubmitted string + LogicalVolumes []LogicalVolume + MountPoint Mount + MySQLDatadirDiskFree int64 + MySQLDiskUsage int64 + MySQLErrorLogTail []string + MySQLPort int64 + MySQLRunning bool + Port int + Token string + func AbortSeedCommand(hostname string, seedId int64) (Agent, error) + func CreateSnapshot(hostname string) (Agent, error) + func GetAgent(hostname string) (Agent, error) + func MountLV(hostname string, lv string) (Agent, error) + func MySQLStart(hostname string) (Agent, error) + func MySQLStop(hostname string) (Agent, error) + func PostCopy(hostname string) (Agent, error) + func ReadAgents() ([]Agent, error) + func ReceiveMySQLSeedData(hostname string, seedId int64) (Agent, error) + func RemoveLV(hostname string, lv string) (Agent, error) + func SendMySQLSeedData(hostname string, targetHostname string, seedId int64) (Agent, error) + func Unmount(hostname string) (Agent, error) + type LogicalVolume struct + GroupName string + IsSnapshot bool + Name string + Path string + SnapshotPercent float64 + type Mount struct + Device string + DiskUsage int64 + FileSystem string + IsMounted bool + LVPath string + MySQLDataPath string + MySQLDiskUsage int64 + Path string + type SeedOperation struct + EndTimestamp string + IsComplete bool + IsSuccessful bool + SeedId int64 + SourceHostname string + StartTimestamp string + TargetHostname string + func AgentSeedDetails(seedId int64) ([]SeedOperation, error) + func ReadActiveSeedsForHost(hostname string) ([]SeedOperation, error) + func ReadRecentCompletedSeedsForHost(hostname string) ([]SeedOperation, error) + func ReadRecentSeeds() ([]SeedOperation, error) + type SeedOperationState struct + Action string + ErrorMessage string + SeedId int64 + SeedStateId int64 + StateTimestamp string + func ReadSeedStates(seedId int64) ([]SeedOperationState, error)