badconfig

package
v1.8.0-alpha.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 23, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

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`

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL