Replace old oci specs import with runtime-specs

Fixes #25804

The upstream repo changed the import paths.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby 2016-08-17 09:38:34 -07:00
Родитель 2ae49a0887
Коммит 041e5a21dc
23 изменённых файлов: 19 добавлений и 19 удалений

Просмотреть файл

@ -25,7 +25,7 @@ import (
"github.com/opencontainers/runc/libcontainer/configs"
"github.com/opencontainers/runc/libcontainer/devices"
"github.com/opencontainers/runc/libcontainer/label"
"github.com/opencontainers/specs/specs-go"
"github.com/opencontainers/runtime-spec/specs-go"
)
func u32Ptr(i int64) *uint32 { u := uint32(i); return &u }

Просмотреть файл

@ -38,7 +38,7 @@ import (
"github.com/golang/protobuf/ptypes"
"github.com/opencontainers/runc/libcontainer/label"
"github.com/opencontainers/runc/libcontainer/user"
"github.com/opencontainers/specs/specs-go"
"github.com/opencontainers/runtime-spec/specs-go"
)
const (

Просмотреть файл

@ -23,7 +23,7 @@ import (
"github.com/opencontainers/runc/libcontainer/apparmor"
"github.com/opencontainers/runc/libcontainer/devices"
"github.com/opencontainers/runc/libcontainer/user"
"github.com/opencontainers/specs/specs-go"
"github.com/opencontainers/runtime-spec/specs-go"
)
func setResources(s *specs.Spec, r containertypes.Resources) error {

Просмотреть файл

@ -6,7 +6,7 @@ import (
"fmt"
"github.com/docker/docker/container"
"github.com/opencontainers/specs/specs-go"
"github.com/opencontainers/runtime-spec/specs-go"
)
var supportsSeccomp = false

Просмотреть файл

@ -8,7 +8,7 @@ import (
"github.com/Sirupsen/logrus"
"github.com/docker/docker/container"
"github.com/docker/docker/profiles/seccomp"
"github.com/opencontainers/specs/specs-go"
"github.com/opencontainers/runtime-spec/specs-go"
)
var supportsSeccomp = true

Просмотреть файл

@ -590,7 +590,7 @@ options for `zfs` start with `zfs` and options for `btrfs` start with `btrfs`.
## Docker runtime execution options
The Docker daemon relies on a
[OCI](https://github.com/opencontainers/specs) compliant runtime
[OCI](https://github.com/opencontainers/runtime-spec) compliant runtime
(invoked via the `containerd` daemon) as its interface to the Linux
kernel `namespaces`, `cgroups`, and `SELinux`.

Просмотреть файл

@ -103,7 +103,7 @@ clone git github.com/docker/go v1.5.1-1-1-gbaf439e
clone git github.com/agl/ed25519 d2b94fd789ea21d12fac1a4443dd3a3f79cda72c
clone git github.com/opencontainers/runc cc29e3dded8e27ba8f65738f40d251c885030a28 # libcontainer
clone git github.com/opencontainers/specs v1.0.0-rc1 # specs
clone git github.com/opencontainers/runtime-spec v1.0.0-rc1 # specs
clone git github.com/seccomp/libseccomp-golang 32f571b70023028bd57d9288c20efbcb237f3ce0
# libcontainer deps (see src/github.com/opencontainers/runc/Godeps/Godeps.json)
clone git github.com/coreos/go-systemd v4

Просмотреть файл

@ -16,7 +16,7 @@ import (
"github.com/docker/docker/pkg/mount"
"github.com/golang/protobuf/ptypes"
"github.com/golang/protobuf/ptypes/timestamp"
specs "github.com/opencontainers/specs/specs-go"
specs "github.com/opencontainers/runtime-spec/specs-go"
"golang.org/x/net/context"
)

Просмотреть файл

@ -12,7 +12,7 @@ import (
"github.com/Sirupsen/logrus"
containerd "github.com/docker/containerd/api/grpc/types"
"github.com/docker/docker/restartmanager"
"github.com/opencontainers/specs/specs-go"
"github.com/opencontainers/runtime-spec/specs-go"
"golang.org/x/net/context"
)

Просмотреть файл

@ -2,7 +2,7 @@ package libcontainerd
import (
containerd "github.com/docker/containerd/api/grpc/types"
"github.com/opencontainers/specs/specs-go"
"github.com/opencontainers/runtime-spec/specs-go"
)
// Spec is the base configuration for the container. It specifies platform

Просмотреть файл

@ -1,7 +1,7 @@
package libcontainerd
import (
"github.com/opencontainers/specs/specs-go"
"github.com/opencontainers/runtime-spec/specs-go"
)
// Spec is the base configuration for the container. It specifies platform

Просмотреть файл

@ -2,7 +2,7 @@ package libcontainerd
import (
containerd "github.com/docker/containerd/api/grpc/types"
"github.com/opencontainers/specs/specs-go"
"github.com/opencontainers/runtime-spec/specs-go"
)
func getRootIDs(s specs.Spec) (int, int, error) {

Просмотреть файл

@ -4,7 +4,7 @@ import (
"os"
"runtime"
"github.com/opencontainers/specs/specs-go"
"github.com/opencontainers/runtime-spec/specs-go"
)
func sPtr(s string) *string { return &s }

Просмотреть файл

@ -1,7 +1,7 @@
package oci
import (
"github.com/opencontainers/specs/specs-go"
"github.com/opencontainers/runtime-spec/specs-go"
)
// DefaultSpec returns default oci spec used by docker.

Просмотреть файл

@ -17,7 +17,7 @@ import (
"github.com/docker/docker/restartmanager"
"github.com/docker/engine-api/types"
"github.com/docker/engine-api/types/container"
"github.com/opencontainers/specs/specs-go"
"github.com/opencontainers/runtime-spec/specs-go"
)
func (pm *Manager) enable(p *plugin, force bool) error {

Просмотреть файл

@ -5,7 +5,7 @@ package plugin
import (
"fmt"
"github.com/opencontainers/specs/specs-go"
"github.com/opencontainers/runtime-spec/specs-go"
)
func (pm *Manager) enable(p *plugin, force bool) error {

Просмотреть файл

@ -7,7 +7,7 @@ import (
"fmt"
"github.com/docker/engine-api/types"
"github.com/opencontainers/specs/specs-go"
"github.com/opencontainers/runtime-spec/specs-go"
)
//go:generate go run -tags 'seccomp' generate.go

Просмотреть файл

@ -6,7 +6,7 @@ import (
"syscall"
"github.com/docker/engine-api/types"
"github.com/opencontainers/specs/specs-go"
"github.com/opencontainers/runtime-spec/specs-go"
libseccomp "github.com/seccomp/libseccomp-golang"
)

Просмотреть файл

@ -4,7 +4,7 @@ package seccomp
import (
"github.com/docker/engine-api/types"
"github.com/opencontainers/specs/specs-go"
"github.com/opencontainers/runtime-spec/specs-go"
)
// DefaultProfile returns a nil pointer on unsupported systems.