common

package
v0.0.0-...-e748ce7 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

View Source
const (
	DockerdProcess        = "dockerd"
	ContainerdProcess     = "containerd"
	ContainerdProcessShim = "containerd-shim"
)

Variables

This section is empty.

Functions

func GenRandNumber

func GenRandNumber(boundary int64) (int64, error)

GenRandNumber generates a random positive number less than the boundary value. The return value should be [0, boundary) and error is nil when success. If the error is not nil, the return value is 0.

func GetHostNamespacePath

func GetHostNamespacePath(hostProcPath string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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