util

package
v1.6.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindProcessByName added in v1.5.3

func FindProcessByName(name string) (*os.Process, error)

FindProcessByName finds a process by name and returns the process

func NewLogger

func NewLogger() logrus.FieldLogger

Types

type DeviceNumber added in v1.4.4

type DeviceNumber uint64

DeviceNumber represents a combined major:minor device number.

func GetDeviceNumber added in v1.4.4

func GetDeviceNumber(path string) (DeviceNumber, error)

GetDeviceNumber returns the device number of the device node at the given path. If there is a symlink at the path, it is dereferenced.

Jump to

Keyboard shortcuts

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