Documentation ¶
Overview ¶
Provides Filesystem Stats
Index ¶
- Constants
- Variables
- type Context
- type CrioContext
- type DeviceInfo
- type DiskStats
- type DockerContext
- type Fs
- type FsInfo
- type FsType
- type RealFsInfo
- 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
Constants ¶
View Source
const ( LabelSystemRoot = "root" LabelDockerImages = "docker-images" LabelCrioImages = "crio-images" DriverStatusPoolName = "Pool Name" DriverStatusDataLoopFile = "Data loop file" )
Variables ¶
View Source
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") )
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct { // docker root directory. Docker DockerContext Crio CrioContext }
type CrioContext ¶ added in v0.27.1
type CrioContext struct {
Root string
}
type DeviceInfo ¶
type DockerContext ¶ added in v0.23.0
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 RealFsInfo ¶
type RealFsInfo struct {
// contains filtered or unexported fields
}
func (*RealFsInfo) GetDeviceForLabel ¶
func (i *RealFsInfo) GetDeviceForLabel(label string) (string, error)
func (*RealFsInfo) GetDeviceInfoByFsUUID ¶ added in v0.27.0
func (i *RealFsInfo) GetDeviceInfoByFsUUID(uuid string) (*DeviceInfo, error)
func (*RealFsInfo) GetDirFsDevice ¶
func (i *RealFsInfo) GetDirFsDevice(dir string) (*DeviceInfo, error)
func (*RealFsInfo) GetDirUsage ¶
func (i *RealFsInfo) GetDirUsage(dir string) (UsageInfo, error)
func (*RealFsInfo) GetFsInfoForPath ¶
func (i *RealFsInfo) GetFsInfoForPath(mountSet map[string]struct{}) ([]Fs, error)
func (*RealFsInfo) GetGlobalFsInfo ¶
func (i *RealFsInfo) GetGlobalFsInfo() ([]Fs, error)
func (*RealFsInfo) GetLabelsForDevice ¶
func (i *RealFsInfo) GetLabelsForDevice(device string) ([]string, error)
func (*RealFsInfo) GetMountpointForDevice ¶
func (i *RealFsInfo) GetMountpointForDevice(dev string) (string, error)
Click to show internal directories.
Click to hide internal directories.