Documentation
¶
Index ¶
- Constants
- Variables
- func PutDispersionObjects(hClient client.ProxyClient, container string, policy string) bool
- func RunDaemon(GetDaemon func(conf.Config, *flag.FlagSet) (Daemon, error), ...)
- func ShutdownStdio()
- type BirdCatcher
- type Daemon
- type DispersionMonitor
- type LowLevelLogger
- type ReconData
- type ReportData
- type ReportDevice
Constants ¶
View Source
const ONE_DAY = 86400
Variables ¶
View Source
var Account = ".dispersion"
View Source
var DbName = "birdcatcher.db"
View Source
var ReportName = "unmounted_report.json"
Functions ¶
func PutDispersionObjects ¶
func PutDispersionObjects(hClient client.ProxyClient, container string, policy string) bool
func ShutdownStdio ¶
func ShutdownStdio()
Types ¶
type BirdCatcher ¶
type BirdCatcher struct {
// contains filtered or unexported fields
}
func (*BirdCatcher) LogDebug ¶
func (r *BirdCatcher) LogDebug(format string, args ...interface{})
func (*BirdCatcher) LogError ¶
func (r *BirdCatcher) LogError(format string, args ...interface{})
func (*BirdCatcher) LogInfo ¶
func (r *BirdCatcher) LogInfo(format string, args ...interface{})
func (*BirdCatcher) Run ¶
func (bc *BirdCatcher) Run()
func (*BirdCatcher) RunForever ¶
func (bc *BirdCatcher) RunForever()
type Daemon ¶
type Daemon interface { Run() RunForever() LogError(format string, args ...interface{}) }
func GetBirdCatcher ¶
type DispersionMonitor ¶
type DispersionMonitor struct {
// contains filtered or unexported fields
}
func (*DispersionMonitor) LogDebug ¶
func (dm *DispersionMonitor) LogDebug(format string, args ...interface{})
func (*DispersionMonitor) LogError ¶
func (dm *DispersionMonitor) LogError(format string, args ...interface{})
func (*DispersionMonitor) LogInfo ¶
func (dm *DispersionMonitor) LogInfo(format string, args ...interface{})
func (*DispersionMonitor) Run ¶
func (dm *DispersionMonitor) Run()
func (*DispersionMonitor) RunForever ¶
func (dm *DispersionMonitor) RunForever()
type LowLevelLogger ¶
func SetupLogger ¶
func SetupLogger(conf conf.Config, flags *flag.FlagSet, section, prefix string) (LowLevelLogger, error)
SetupLogger pulls configuration information from the config and flags to create a UDP syslog logger. If -d was not specified, it also logs to the console.
type ReportData ¶
type ReportData struct { TotalDevices int TotalWeight float64 LastSuccessfulRun time.Time UnmountedDevices []ReportDevice LastRingZeroes []ReportDevice }
Click to show internal directories.
Click to hide internal directories.