Versions in this module Expand all Collapse all v0 v0.60.0 Jun 20, 2026 Changes in this version + const LabelCrioContainers — linux/amd64 + const LabelCrioImages — linux/amd64 + const LabelDockerImages — linux/amd64 + const LabelSystemRoot — linux/amd64 + var ErrDeviceNotInPartitionsMap = errors.New("could not find device in cached partitions map") + var ErrFallbackToVFS = errors.New("fallback to VFS") + var ErrNoSuchDevice = errors.New("cadvisor: no such device") + func RegisterPlugin(name string, plugin FsPlugin) error + type Context struct + Crio CrioContext + Docker DockerContext + Podman PodmanContext + type CrioContext struct + Driver string + ImageStore string + Root string + type DeviceInfo struct + Device string + Major uint + Minor uint + type DiskStats struct + IoInProgress uint64 + IoTime uint64 + Major uint64 + MajorNum uint64 + Minor uint64 + MinorNum uint64 + ReadTime uint64 + ReadsCompleted uint64 + ReadsMerged uint64 + SectorsRead uint64 + SectorsWritten uint64 + WeightedIoTime uint64 + WriteTime uint64 + WritesCompleted uint64 + WritesMerged uint64 + type DockerContext struct + Driver string + DriverStatus map[string]string + Root string + type Fs struct + Available uint64 + Capacity uint64 + DiskStats DiskStats + Free uint64 + Inodes *uint64 + InodesFree *uint64 + Type FsType + type FsCachingPlugin interface + CacheKey func(partition PartitionInfo) string + type FsInfo interface + GetDeviceForLabel func(label string) (string, error) + GetDeviceInfoByFsUUID func(uuid string) (*DeviceInfo, error) + GetDirFsDevice func(dir string) (*DeviceInfo, error) + GetDirUsage func(dir string) (UsageInfo, error) + GetFsInfoForPath func(mountSet map[string]struct{}) ([]Fs, error) + GetGlobalFsInfo func() ([]Fs, error) + GetLabelsForDevice func(device string) ([]string, error) + GetMountpointForDevice func(device string) (string, error) + func NewFsInfo(context Context) (FsInfo, error) + type FsPlugin interface + CanHandle func(fsType string) bool + GetStats func(device string, partition PartitionInfo) (*FsStats, error) + Name func() string + Priority func() int + ProcessMount func(mnt *mount.Info) (bool, *mount.Info, error) + func GetPluginForFsType(fsType string) FsPlugin + type FsStats struct + Available uint64 + Capacity uint64 + Free uint64 + Inodes *uint64 + InodesFree *uint64 + Type FsType + type FsType string + const DeviceMapper + const NFS + const VFS + const ZFS + func (ft FsType) String() string + type PartitionInfo struct + BlockSize uint + FsType string + Major uint + Minor uint + Mountpoint string + type PodmanContext struct + Driver string + DriverStatus map[string]string + Root string + type RealFsInfo struct — linux/amd64 + func (i *RealFsInfo) GetDeviceForLabel(label string) (string, error) + func (i *RealFsInfo) GetDeviceInfoByFsUUID(uuid string) (*DeviceInfo, error) + func (i *RealFsInfo) GetDirFsDevice(dir string) (*DeviceInfo, error) + func (i *RealFsInfo) GetDirUsage(dir string) (UsageInfo, error) + func (i *RealFsInfo) GetFsInfoForPath(mountSet map[string]struct{}) ([]Fs, error) + func (i *RealFsInfo) GetGlobalFsInfo() ([]Fs, error) + func (i *RealFsInfo) GetLabelsForDevice(device string) ([]string, error) + func (i *RealFsInfo) GetMountpointForDevice(dev string) (string, error) + type UsageInfo struct + Bytes uint64 + Inodes uint64 + func GetDirUsage(dir string) (UsageInfo, error)