Skip to content

Commit 129bf0a

Browse files
authored
Merge pull request #257 from kzys/add-v3
Rename the package to github.com/containerd/cgroups/v3
2 parents cc78c6c + 199ff0b commit 129bf0a

20 files changed

Lines changed: 23 additions & 23 deletions

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ so the resulting slice would be located here on disk:
153153

154154
```go
155155
import (
156-
"github.com/containerd/cgroups/v2/cgroup2"
156+
"github.com/containerd/cgroups/v3/cgroup2"
157157
specs "github.com/opencontainers/runtime-spec/specs-go"
158158
)
159159

cgroup1/blkio.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525
"strconv"
2626
"strings"
2727

28-
v1 "github.com/containerd/cgroups/v2/cgroup1/stats"
28+
v1 "github.com/containerd/cgroups/v3/cgroup1/stats"
2929

3030
specs "github.com/opencontainers/runtime-spec/specs-go"
3131
)

cgroup1/blkio_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"strings"
2222
"testing"
2323

24-
v1 "github.com/containerd/cgroups/v2/cgroup1/stats"
24+
v1 "github.com/containerd/cgroups/v3/cgroup1/stats"
2525
)
2626

2727
const data = `major minor #blocks name

cgroup1/cgroup.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import (
2828
"syscall"
2929
"time"
3030

31-
v1 "github.com/containerd/cgroups/v2/cgroup1/stats"
31+
v1 "github.com/containerd/cgroups/v3/cgroup1/stats"
3232

3333
"github.com/opencontainers/runtime-spec/specs-go"
3434
)

cgroup1/control.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ package cgroup1
1919
import (
2020
"os"
2121

22-
v1 "github.com/containerd/cgroups/v2/cgroup1/stats"
22+
v1 "github.com/containerd/cgroups/v3/cgroup1/stats"
2323
specs "github.com/opencontainers/runtime-spec/specs-go"
2424
)
2525

cgroup1/cpu.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
"path/filepath"
2323
"strconv"
2424

25-
v1 "github.com/containerd/cgroups/v2/cgroup1/stats"
25+
v1 "github.com/containerd/cgroups/v3/cgroup1/stats"
2626
specs "github.com/opencontainers/runtime-spec/specs-go"
2727
)
2828

cgroup1/cpuacct.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
"strconv"
2525
"strings"
2626

27-
v1 "github.com/containerd/cgroups/v2/cgroup1/stats"
27+
v1 "github.com/containerd/cgroups/v3/cgroup1/stats"
2828
)
2929

3030
const nanosecondsInSecond = 1000000000

cgroup1/hugetlb.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
"strconv"
2323
"strings"
2424

25-
v1 "github.com/containerd/cgroups/v2/cgroup1/stats"
25+
v1 "github.com/containerd/cgroups/v3/cgroup1/stats"
2626
specs "github.com/opencontainers/runtime-spec/specs-go"
2727
)
2828

cgroup1/memory.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525
"strconv"
2626
"strings"
2727

28-
v1 "github.com/containerd/cgroups/v2/cgroup1/stats"
28+
v1 "github.com/containerd/cgroups/v3/cgroup1/stats"
2929
specs "github.com/opencontainers/runtime-spec/specs-go"
3030
"golang.org/x/sys/unix"
3131
)

cgroup1/memory_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
"strings"
2424
"testing"
2525

26-
v1 "github.com/containerd/cgroups/v2/cgroup1/stats"
26+
v1 "github.com/containerd/cgroups/v3/cgroup1/stats"
2727
)
2828

2929
const memoryData = `cache 1

0 commit comments

Comments
 (0)