2016-03-18 21:53:27 +03:00
|
|
|
package oci
|
|
|
|
|
|
|
|
import (
|
|
|
|
"runtime"
|
|
|
|
|
2016-09-27 20:26:59 +03:00
|
|
|
"github.com/opencontainers/runtime-spec/specs-go"
|
2016-03-18 21:53:27 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
// DefaultSpec returns default spec used by docker.
|
2016-09-27 20:26:59 +03:00
|
|
|
func DefaultSpec() specs.Spec {
|
|
|
|
return specs.Spec{
|
|
|
|
Version: specs.Version,
|
|
|
|
Platform: specs.Platform{
|
2016-03-18 21:53:27 +03:00
|
|
|
OS: runtime.GOOS,
|
|
|
|
Arch: runtime.GOARCH,
|
|
|
|
},
|
2016-09-27 20:26:59 +03:00
|
|
|
Windows: &specs.Windows{},
|
2016-03-18 21:53:27 +03:00
|
|
|
}
|
|
|
|
}
|