operatingsystem_freebsd.go 502 B

123456789101112131415161718
  1. package operatingsystem
  2. import (
  3. "errors"
  4. )
  5. // GetOperatingSystem gets the name of the current operating system.
  6. func GetOperatingSystem() (string, error) {
  7. // TODO: Implement OS detection
  8. return "", errors.New("Cannot detect OS version")
  9. }
  10. // IsContainerized returns true if we are running inside a container.
  11. // No-op on FreeBSD, always returns false.
  12. func IsContainerized() (bool, error) {
  13. // TODO: Implement jail detection
  14. return false, errors.New("Cannot detect if we are in container")
  15. }