make docker compile on freebsd
Signed-off-by: Alexey Guskov <lexag@mail.ru>
This commit is contained in:
parent
0dc55c7057
commit
4e30080c64
8 changed files with 79 additions and 4 deletions
18
parsers/operatingsystem/operatingsystem_freebsd.go
Normal file
18
parsers/operatingsystem/operatingsystem_freebsd.go
Normal file
|
@ -0,0 +1,18 @@
|
|||
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")
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue