reg/vendor/github.com/docker/docker-ce/components/engine/pkg/platform/platform.go
Jess Frazelle ab6c553e6b
update deps
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2018-03-06 10:41:43 -05:00

24 lines
496 B
Go

package platform // import "github.com/docker/docker/pkg/platform"
import (
"runtime"
"github.com/sirupsen/logrus"
)
var (
// Architecture holds the runtime architecture of the process.
Architecture string
// OSType holds the runtime operating system type (Linux, …) of the process.
OSType string
)
func init() {
var err error
Architecture, err = runtimeArchitecture()
if err != nil {
logrus.Errorf("Could not read system architecture info: %v", err)
}
OSType = runtime.GOOS
}