infoutil

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const UnameO = "GNU/Linux"

Variables

View Source
var (
	ErrUnableToRetrieveHostname = errors.New("unable to retrieve hostname")
	ErrContainerdFailure        = errors.New("unable to communicate with containerd")
)

Functions

func BlockIOWeight

func BlockIOWeight(cgroupManager cgroups.Manager) bool

BlockIOWeight return whether Block IO weight is supported or not

func ClientVersion

func ClientVersion() dockercompat.ClientVersion

func DistroName

func DistroName() string

func GetSnapshotterNames

func GetSnapshotterNames(ctx context.Context, client *containerd.Client) ([]string, error)

func Info

func Info(ctx context.Context, client *containerd.Client, snapshotter string, cgroupManager cgroups.Manager) (*dockercompat.Info, error)

func NativeDaemonInfo

func NativeDaemonInfo(ctx context.Context, client *containerd.Client) (*native.DaemonInfo, error)

func ServerSemVer

func ServerSemVer(ctx context.Context, client *containerd.Client) (*semver.Version, error)

func ServerVersion

func ServerVersion(ctx context.Context, client *containerd.Client) (*dockercompat.ServerVersion, error)

func UnameM

func UnameM() string

UnameM returns `uname -m`

func UnameR

func UnameR() string

UnameR returns `uname -r`

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