Skip to content

Commit

Permalink
Merge pull request #78 from Random-Liu/switch-to-new-containerd-client
Browse files Browse the repository at this point in the history
Switch to new containerd api
  • Loading branch information
Random-Liu committed Jun 16, 2017
2 parents d4f7380 + d643599 commit cc43c86
Show file tree
Hide file tree
Showing 225 changed files with 41,793 additions and 7,227 deletions.
250 changes: 157 additions & 93 deletions Godeps/Godeps.json

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions pkg/metadata/sandbox.go
Expand Up @@ -56,6 +56,8 @@ type SandboxMetadata struct {
CreatedAt int64
// NetNS is the network namespace used by the sandbox.
NetNS string
// Pid is the process id of the sandbox.
Pid uint32
}

// SandboxUpdateFunc is the function used to update SandboxMetadata.
Expand Down
3 changes: 3 additions & 0 deletions pkg/metadata/sandbox_test.go
Expand Up @@ -42,6 +42,7 @@ func TestSandboxStore(t *testing.T) {
},
CreatedAt: time.Now().UnixNano(),
NetNS: "TestNetNS-1",
Pid: 1001,
},
"2": {
ID: "2",
Expand All @@ -56,6 +57,7 @@ func TestSandboxStore(t *testing.T) {
},
CreatedAt: time.Now().UnixNano(),
NetNS: "TestNetNS-2",
Pid: 1002,
},
"3": {
ID: "3",
Expand All @@ -70,6 +72,7 @@ func TestSandboxStore(t *testing.T) {
},
CreatedAt: time.Now().UnixNano(),
NetNS: "TestNetNS-3",
Pid: 1003,
},
}
assert := assertlib.New(t)
Expand Down
2 changes: 1 addition & 1 deletion pkg/os/os.go
Expand Up @@ -21,7 +21,7 @@ import (
"io/ioutil"
"os"

"github.com/tonistiigi/fifo"
"github.com/containerd/fifo"
"golang.org/x/net/context"
"golang.org/x/sys/unix"
)
Expand Down

0 comments on commit cc43c86

Please sign in to comment.