Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoSuchDevice = errors.New("cadvisor: no such device")
ErrNoSuchDevice is the error indicating the requested device does not exist.
Functions ¶
This section is empty.
Types ¶
type Context ¶ added in v0.34.0
type Context struct { // docker root directory. Docker DockerContext RktPath string Crio CrioContext }
type CrioContext ¶ added in v0.34.0
type CrioContext struct {
Root string
}
type DeviceInfo ¶
type DockerContext ¶ added in v0.34.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) }
Click to show internal directories.
Click to hide internal directories.