lib

package
v0.0.0-...-e55260f Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootfsPath string
Cli Parameters. Check main.go

var ProcPath string

View Source
var StatfsTimeout time.Duration

Functions

func GetVolumeByName

func GetVolumeByName(fsList []Filesystem) map[string]Volume

Filter filesystems to extract the ones which are pod's volume. We assume the pattern of the mount point is: /var/lib/kubelet/pods//volumes//[/mount]

Types

type Filesystem

type Filesystem struct {
	Device     string
	MountPoint string
	FsType     string
	Options    string
	Ro         bool
}

func ListFileSystems

func ListFileSystems() ([]Filesystem, error)

type Stats

type Stats struct {
	Size      uint64
	Free      uint64
	Avail     uint64
	Files     uint64
	FilesFree uint64
	Error     error
}

type Volume

type Volume struct {
	FileSystem Filesystem
	PodId      string
	Type       string
	Name       string
	Stats      Stats
}

func (*Volume) AdjustAnnotationsOn

func (this *Volume) AdjustAnnotationsOn(pv v1.PersistentVolume) (dirty bool)

func (*Volume) GetStats

func (this *Volume) GetStats()

Jump to

Keyboard shortcuts

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