os

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: BSD-2-Clause, Apache-2.0 Imports: 5 Imported by: 0

README

OS

Extracted from the Moby Project and used under the Apache License, Version 2.0.

Documentation

Overview

package os provides helper function to get the operating system name for different platforms.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOperatingSystem

func GetOperatingSystem() (string, error)

GetOperatingSystem gets the name of the current operating system.

func GetOperatingSystemVersion

func GetOperatingSystemVersion() (string, error)

GetOperatingSystemVersion gets the version of the current operating system, as a string.

func IsContainerized

func IsContainerized() (bool, error)

IsContainerized returns true if we are running inside a container.

Types

This section is empty.

Jump to

Keyboard shortcuts

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