utils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Annotations

func Annotations(labels []string) (bundle string, userAnnotations map[string]string)

func CheckKernelVersion

func CheckKernelVersion(minVersion string) error

func FifoFile

func FifoFile(path string) string

func GetParams

func GetParams(args []string, key string) string

func MustOpenPipeFile

func MustOpenPipeFile(filename string) *os.File

func OpenPipeFile

func OpenPipeFile(filename string) (*os.File, error)

func ParseSize

func ParseSize(s, unit string) (int, error)

func PipePath

func PipePath(path string) string

func SearchArrays

func SearchArrays(arr []string, key string) (string, bool)

func StateFile

func StateFile(path string) string

func WriteJSON

func WriteJSON(w io.Writer, v interface{}) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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