util

package
v0.0.0-...-28e6f37 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanPath

func CleanPath(path string) string

func GetAnnotations

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

func Int32ToBytes

func Int32ToBytes(n int32) ([]byte, error)

func NewSocketPair

func NewSocketPair(name string) (parent *os.File, child *os.File, err error)

NewSocketPair returns a new unix socket pair

func PrintSubsystemPids

func PrintSubsystemPids(subsystemName, cgroupName, context string, init bool)

func ReadIntFromFile

func ReadIntFromFile(file *os.File) (int, error)

func SyncSignal

func SyncSignal(pid int, signal syscall.Signal) error

func WaitSignal

func WaitSignal(sigs ...os.Signal) syscall.Signal

func WaitUserEnterGo

func WaitUserEnterGo()

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