kubernetesk8s.io/kubernetes/pkg/kubelet/kubeletconfig/badconfig Index | Files

package badconfig

import "k8s.io/kubernetes/pkg/kubelet/kubeletconfig/badconfig"

Index

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`

Source Files

badconfig.go fstracker.go

Version
v1.8.0-alpha.3
Published
Aug 23, 2017
Platform
linux/amd64
Imports
7 packages
Last checked
5 minutes ago

Tools for package owners.