Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tracker ¶
type Tracker interface {
// Initialize sets up the storage layer
Initialize() error
// RecordStartup records the current time as a Kubelet startup
RecordStartup() error
// StartupsSince returns the number of Kubelet startus recorded since `t`
StartupsSince(t time.Time) (int32, error)
}
Tracker tracks Kubelet startups in a storage layer
func NewFsTracker ¶
func NewFsTracker(fs utilfs.Filesystem, trackingDir string) Tracker
NewFsTracker returns a Tracker that will store information in the `trackingDir`
Click to show internal directories.
Click to hide internal directories.