utils

package
v0.0.0-...-ef54517 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

borrowed from tracee

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Errorf

func Errorf(format string, a ...interface{}) error

Errorf returns an error prefixed by the current (caller) function name and formatted with the given arguments.

func GetInode

func GetInode(path string) (uint64, error)

func IsCgroupV2

func IsCgroupV2() (bool, error)

func LogError

func LogError(err error)

func RemoveAllFilesInDir

func RemoveAllFilesInDir(dir string) (removedFiles []string, err error)

func WrapError

func WrapError(e error) error

WrapError returns the given error prefixed by the current (caller) function name.

Types

This section is empty.

Jump to

Keyboard shortcuts

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