startups

package
v0.0.0-...-8a55389 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

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`

Jump to

Keyboard shortcuts

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