Documentation ¶
Index ¶
- Constants
- Variables
- func NewAdmin(serverconf conf.Config, flags *flag.FlagSet, cnf srv.ConfigLoader) (ipPort *srv.IpPort, server srv.Server, logger srv.LowLevelLogger, err error)
- func NewDriveWatch(logger srv.LowLevelLogger, metricsScope tally.Scope, serverconf conf.Config, ...) *driveWatch
- func Nodes(flags *flag.FlagSet, cnf srv.ConfigLoader)
- func ObjectInfo(flags *flag.FlagSet, cnf srv.ConfigLoader)
- func PrintDevs(devs []*ring.RingBuilderDevice)
- func ReconClient(flags *flag.FlagSet, cnf srv.ConfigLoader) bool
- func RingBuildCmd(flags *flag.FlagSet)
- type AutoAdmin
- func (server *AutoAdmin) Background(flags *flag.FlagSet) chan struct{}
- func (server *AutoAdmin) Finalize()
- func (server *AutoAdmin) GetHandler(config conf.Config, metricsPrefix string) http.Handler
- func (server *AutoAdmin) HealthcheckHandler(writer http.ResponseWriter, request *http.Request)
- func (server *AutoAdmin) LogRequest(next http.Handler) http.Handler
- func (a *AutoAdmin) Run()
- func (a *AutoAdmin) RunForever()
- func (server *AutoAdmin) Type() string
- type ReportData
- type ReportDevice
Constants ¶
View Source
const AdminAccount = ".admin"
Variables ¶
View Source
var DB_NAME = "andrewd.db"
View Source
var RING_LOCK_DIR = "ringUpdateLock"
Functions ¶
func NewDriveWatch ¶
func NewDriveWatch(logger srv.LowLevelLogger, metricsScope tally.Scope, serverconf conf.Config, cnf srv.ConfigLoader, certFile, keyFile string) *driveWatch
func ObjectInfo ¶
func ObjectInfo(flags *flag.FlagSet, cnf srv.ConfigLoader)
func PrintDevs ¶
func PrintDevs(devs []*ring.RingBuilderDevice)
func ReconClient ¶
func ReconClient(flags *flag.FlagSet, cnf srv.ConfigLoader) bool
func RingBuildCmd ¶
Types ¶
type AutoAdmin ¶
type AutoAdmin struct {
// contains filtered or unexported fields
}
func (*AutoAdmin) Background ¶
func (*AutoAdmin) GetHandler ¶
func (*AutoAdmin) HealthcheckHandler ¶
func (server *AutoAdmin) HealthcheckHandler(writer http.ResponseWriter, request *http.Request)
func (*AutoAdmin) RunForever ¶
func (a *AutoAdmin) RunForever()
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.