File tree 19 files changed +376
-375
lines changed
19 files changed +376
-375
lines changed Original file line number Diff line number Diff line change @@ -23,4 +23,4 @@ cgutil:
23
23
proto :
24
24
protobuild --quiet ${PACKAGES}
25
25
# 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 / cgroup2/stats/ -name '* .pb.go')
26
+ go-fix-acronym -w -a ' (Cpu|Tcp|Rss)' $(shell find cgroup1/stats / cgroup2/stats/ -name '* .pb.go')
Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ generators = ["go"]
15
15
16
16
# Aggregrate the API descriptors to lock down API changes.
17
17
[[descriptors ]]
18
- prefix = " github.com/containerd/cgroups/stats/v1 "
19
- target = " stats/v1 /metrics.pb.txt"
18
+ prefix = " github.com/containerd/cgroups/cgroup1/stats "
19
+ target = " cgroup1/stats /metrics.pb.txt"
20
20
ignore_files = [
21
21
" google/protobuf/descriptor.proto" ,
22
22
]
Original file line number Diff line number Diff line change @@ -25,7 +25,8 @@ import (
25
25
"strconv"
26
26
"strings"
27
27
28
- v1 "github.com/containerd/cgroups/v2/stats/v1"
28
+ v1 "github.com/containerd/cgroups/v2/cgroup1/stats"
29
+
29
30
specs "github.com/opencontainers/runtime-spec/specs-go"
30
31
)
31
32
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ import (
21
21
"strings"
22
22
"testing"
23
23
24
- v1 "github.com/containerd/cgroups/v2/stats/v1 "
24
+ v1 "github.com/containerd/cgroups/v2/cgroup1/stats "
25
25
)
26
26
27
27
const data = `major minor #blocks name
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ import (
28
28
"syscall"
29
29
"time"
30
30
31
- v1 "github.com/containerd/cgroups/v2/stats/v1 "
31
+ v1 "github.com/containerd/cgroups/v2/cgroup1/stats "
32
32
33
33
"github.com/opencontainers/runtime-spec/specs-go"
34
34
)
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ package cgroup1
19
19
import (
20
20
"os"
21
21
22
- v1 "github.com/containerd/cgroups/v2/stats/v1 "
22
+ v1 "github.com/containerd/cgroups/v2/cgroup1/stats "
23
23
specs "github.com/opencontainers/runtime-spec/specs-go"
24
24
)
25
25
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ import (
22
22
"path/filepath"
23
23
"strconv"
24
24
25
- v1 "github.com/containerd/cgroups/v2/stats/v1 "
25
+ v1 "github.com/containerd/cgroups/v2/cgroup1/stats "
26
26
specs "github.com/opencontainers/runtime-spec/specs-go"
27
27
)
28
28
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ import (
24
24
"strconv"
25
25
"strings"
26
26
27
- v1 "github.com/containerd/cgroups/v2/stats/v1 "
27
+ v1 "github.com/containerd/cgroups/v2/cgroup1/stats "
28
28
)
29
29
30
30
const nanosecondsInSecond = 1000000000
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ import (
22
22
"strconv"
23
23
"strings"
24
24
25
- v1 "github.com/containerd/cgroups/v2/stats/v1 "
25
+ v1 "github.com/containerd/cgroups/v2/cgroup1/stats "
26
26
specs "github.com/opencontainers/runtime-spec/specs-go"
27
27
)
28
28
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ import (
25
25
"strconv"
26
26
"strings"
27
27
28
- v1 "github.com/containerd/cgroups/v2/stats/v1 "
28
+ v1 "github.com/containerd/cgroups/v2/cgroup1/stats "
29
29
specs "github.com/opencontainers/runtime-spec/specs-go"
30
30
"golang.org/x/sys/unix"
31
31
)
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ import (
23
23
"strings"
24
24
"testing"
25
25
26
- v1 "github.com/containerd/cgroups/v2/stats/v1 "
26
+ v1 "github.com/containerd/cgroups/v2/cgroup1/stats "
27
27
)
28
28
29
29
const memoryData = `cache 1
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ import (
22
22
"strconv"
23
23
"strings"
24
24
25
- v1 "github.com/containerd/cgroups/v2/stats/v1 "
25
+ v1 "github.com/containerd/cgroups/v2/cgroup1/stats "
26
26
specs "github.com/opencontainers/runtime-spec/specs-go"
27
27
)
28
28
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ import (
23
23
"strconv"
24
24
"testing"
25
25
26
- v1 "github.com/containerd/cgroups/v2/stats/v1 "
26
+ v1 "github.com/containerd/cgroups/v2/cgroup1/stats "
27
27
"github.com/opencontainers/runtime-spec/specs-go"
28
28
)
29
29
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ import (
23
23
"strconv"
24
24
"strings"
25
25
26
- v1 "github.com/containerd/cgroups/v2/stats/v1 "
26
+ v1 "github.com/containerd/cgroups/v2/cgroup1/stats "
27
27
specs "github.com/opencontainers/runtime-spec/specs-go"
28
28
)
29
29
Original file line number Diff line number Diff line change 14
14
limitations under the License.
15
15
*/
16
16
17
- package v1
17
+ package stats
You can’t perform that action at this time.
0 commit comments