Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var R map[Repairer]string
R holds all the detections and repairs we want to perform. Each "plugin" calls register from an init function to be added to this map. No locking is needed, because this is only written to from init functions.
Functions ¶
Types ¶
type Ceph ¶
type Ceph struct{}
func (*Ceph) OfInterest ¶
OfInterest returns the directories where a Ceph filesystem is mounted.
type Repairer ¶
type Repairer interface { // OfInterest returns a string slice with items that are of interest for this repair. Each string can be given // to Detect and Repair. They have no meaning to cnczd. OfInterest() []string // Detect detects that something is wrong by returning a non-nil error in the error slice. Detect(interest string) error // Repair tries to remedy what has been detecting by Detect. A returned error (in the error slice) means it // couldn't fix it. Repair(interest string) error }
Click to show internal directories.
Click to hide internal directories.