mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
26c03d561a
Signed-off-by: Alexey Guskov <lexag@mail.ru>
18 lines
502 B
Go
18 lines
502 B
Go
package operatingsystem
|
|
|
|
import (
|
|
"errors"
|
|
)
|
|
|
|
// GetOperatingSystem gets the name of the current operating system.
|
|
func GetOperatingSystem() (string, error) {
|
|
// TODO: Implement OS detection
|
|
return "", errors.New("Cannot detect OS version")
|
|
}
|
|
|
|
// IsContainerized returns true if we are running inside a container.
|
|
// No-op on FreeBSD, always returns false.
|
|
func IsContainerized() (bool, error) {
|
|
// TODO: Implement jail detection
|
|
return false, errors.New("Cannot detect if we are in container")
|
|
}
|