os

package
v0.0.0-...-f7dd865 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: AGPL-3.0 Imports: 7 Imported by: 47

Documentation

Overview

Package os provides access to operating system related configuration.

Index

Constants

This section is empty.

Variables

View Source
var (
	// HostBase returns the base of the machine the current process is
	// running on (overrideable var for testing)
	HostBase func() (corebase.Base, error) = hostBase
)
View Source
var HostOS = hostOS // for monkey patching

Functions

func HostOSTypeName

func HostOSTypeName() (osTypeName string)

HostOSTypeName returns the name of the host OS.

func ReadOSRelease

func ReadOSRelease(f string) (map[string]string, error)

ReadOSRelease parses the information in the os-release file.

See http://www.freedesktop.org/software/systemd/man/os-release.html.

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