utils

package
v0.0.0-...-b93986b Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFileInode

func GetFileInode(fi os.FileInfo) (uint64, error)

Types

type Device

type Device struct {
	Meta   DeviceMeta
	Entity *pluginapi.Device
}

type DeviceData

type DeviceData struct {
	NumaNodes []int64 `json:"Nodes"`
	Unhealthy bool    `json:"Unhealthy"`
}

type DeviceMeta

type DeviceMeta struct {
	Filename string `json:"Filename"`
}

type SortableDevice

type SortableDevice struct {
	ID      string
	ModTime time.Time
}

type SortableDeviceList

type SortableDeviceList []SortableDevice

func (SortableDeviceList) Len

func (s SortableDeviceList) Len() int

func (SortableDeviceList) Less

func (s SortableDeviceList) Less(i, j int) bool

func (SortableDeviceList) Swap

func (s SortableDeviceList) Swap(i, j int)

Jump to

Keyboard shortcuts

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