Skip to content

Commit 5650e1c

Browse files
author
Kazuyoshi Kato
committed
Move v2/ to cgroup2/
Signed-off-by: Kazuyoshi Kato <katokazu@amazon.com>
1 parent ba195cf commit 5650e1c

30 files changed

Lines changed: 268 additions & 267 deletions

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ cgutil:
2323
proto:
2424
protobuild --quiet ${PACKAGES}
2525
# Keep them Go-idiomatic and backward-compatible with the gogo/protobuf era.
26-
go-fix-acronym -w -a '(Cpu|Tcp|Rss)' $(shell find stats/v1/ v2/stats/ -name '*.pb.go')
26+
go-fix-acronym -w -a '(Cpu|Tcp|Rss)' $(shell find stats/v1/ cgroup2/stats/ -name '*.pb.go')

Protobuild.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ ignore_files = [
2121
"google/protobuf/descriptor.proto",
2222
]
2323
[[descriptors]]
24-
prefix = "github.com/containerd/cgroups/v2/stats"
25-
target = "v2/stats/metrics.pb.txt"
24+
prefix = "github.com/containerd/cgroups/cgroup2/stats"
25+
target = "cgroup2/stats/metrics.pb.txt"
2626
ignore_files = [
2727
"google/protobuf/descriptor.proto",
2828
]

v2/cpu.go renamed to cgroup2/cpu.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
limitations under the License.
1515
*/
1616

17-
package v2
17+
package cgroup2
1818

1919
import (
2020
"math"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
limitations under the License.
1515
*/
1616

17-
package v2
17+
package cgroup2
1818

1919
import (
2020
"fmt"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
// This particular Go implementation based on runc version
2525
// https://github.com/opencontainers/runc/blob/master/libcontainer/cgroups/ebpf/devicefilter/devicefilter.go
2626

27-
package v2
27+
package cgroup2
2828

2929
import (
3030
"errors"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
limitations under the License.
1515
*/
1616

17-
package v2
17+
package cgroup2
1818

1919
import (
2020
"strings"

v2/ebpf.go renamed to cgroup2/ebpf.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
limitations under the License.
1515
*/
1616

17-
package v2
17+
package cgroup2
1818

1919
import (
2020
"fmt"

v2/errors.go renamed to cgroup2/errors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
limitations under the License.
1515
*/
1616

17-
package v2
17+
package cgroup2
1818

1919
import (
2020
"errors"

v2/hugetlb.go renamed to cgroup2/hugetlb.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
limitations under the License.
1515
*/
1616

17-
package v2
17+
package cgroup2
1818

1919
import "strings"
2020

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
limitations under the License.
1515
*/
1616

17-
package v2
17+
package cgroup2
1818

1919
import (
2020
"fmt"

0 commit comments

Comments
 (0)