package fs
import "github.com/google/cadvisor/fs"
Index ¶
- Variables
- type Context
- type CrioContext
- type DeviceInfo
- type DiskStats
- type DockerContext
- type Fs
- type FsInfo
- type FsType
- type UsageInfo
Variables ¶
var ( // ErrNoSuchDevice is the error indicating the requested device does not exist. ErrNoSuchDevice = errors.New("cadvisor: no such device") // ErrDeviceNotInPartitionsMap is the error resulting if a device could not be found in the partitions map. ErrDeviceNotInPartitionsMap = errors.New("could not find device in cached partitions map") )
Types ¶
type Context ¶
type Context struct { // docker root directory. Docker DockerContext Crio CrioContext }
type CrioContext ¶
type CrioContext struct { Root string }
type DeviceInfo ¶
type DiskStats ¶
type DiskStats struct { MajorNum uint64 MinorNum uint64 ReadsCompleted uint64 ReadsMerged uint64 SectorsRead uint64 ReadTime uint64 WritesCompleted uint64 WritesMerged uint64 SectorsWritten uint64 WriteTime uint64 IoInProgress uint64 IoTime uint64 WeightedIoTime uint64 Major uint64 Minor uint64 }
type DockerContext ¶
type Fs ¶
type Fs struct { DeviceInfo Type FsType Capacity uint64 Free uint64 Available uint64 Inodes *uint64 InodesFree *uint64 DiskStats DiskStats }
type FsInfo ¶
type FsInfo interface { // Returns capacity and free space, in bytes, of all the ext2, ext3, ext4 filesystems on the host. GetGlobalFsInfo() ([]Fs, error) // Returns capacity and free space, in bytes, of the set of mounts passed. GetFsInfoForPath(mountSet map[string]struct{}) ([]Fs, error) // GetDirUsage returns a usage information for 'dir'. GetDirUsage(dir string) (UsageInfo, error) // GetDeviceInfoByFsUUID returns the information of the device with the // specified filesystem uuid. If no such device exists, this function will // return the ErrNoSuchDevice error. GetDeviceInfoByFsUUID(uuid string) (*DeviceInfo, error) // Returns the block device info of the filesystem on which 'dir' resides. GetDirFsDevice(dir string) (*DeviceInfo, error) // Returns the device name associated with a particular label. GetDeviceForLabel(label string) (string, error) // Returns all labels associated with a particular device name. GetLabelsForDevice(device string) ([]string, error) // Returns the mountpoint associated with a particular device. GetMountpointForDevice(device string) (string, error) }
type FsType ¶
type FsType string
func (FsType) String ¶
type UsageInfo ¶
Source Files ¶
- Version
- v0.47.0
- Published
- Jan 5, 2023
- Platform
- darwin/amd64
- Imports
- 1 packages
- Last checked
- 12 minutes ago –
Tools for package owners.