Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry struct {
Time string `json:"time"`
Reason string `json:"reason"`
}
Entry describes when a configuration was marked bad and why
type Tracker ¶
type Tracker interface {
// Initialize sets up the storage layer
Initialize() error
// MarkBad marks `uid` as a bad config and records `reason` as the reason for marking it bad
MarkBad(uid, reason string) error
// Entry returns the Entry for `uid` if it exists in the tracker, otherise nil
Entry(uid string) (*Entry, error)
}
Tracker tracks "bad" configurations in a storage layer
func NewFsTracker ¶
func NewFsTracker(fs utilfs.Filesystem, trackingDir string) Tracker
NewFsTracker returns a new Tracker that will store information in the `trackingDir`
Click to show internal directories.
Click to hide internal directories.