package operatingsystem
import "github.com/dotcloud/docker/pkg/parsers/operatingsystem"
Index ¶
- func GetOperatingSystem() (string, error)
- func GetOperatingSystemVersion() (string, error)
- func IsContainerized() (bool, error)
- func IsWindowsClient() bool
Functions ¶
func GetOperatingSystem ¶
GetOperatingSystem gets the name of the current operating system.
func GetOperatingSystemVersion ¶
GetOperatingSystemVersion gets the version of the current operating system, as a string.
func IsContainerized ¶
IsContainerized returns true if we are running inside a container. No-op on Windows, always returns false.
func IsWindowsClient ¶
func IsWindowsClient() bool
IsWindowsClient returns true if the SKU is client. It returns false on Windows server.
Source Files ¶
operatingsystem_windows.go windows_os_string.go
- Version
- v26.1.2+incompatible
- Published
- May 8, 2024
- Platform
- windows/amd64
- Imports
- 6 packages
- Last checked
- 1 hour ago –
Tools for package owners.