File tree Expand file tree Collapse file tree 15 files changed +19
-24
lines changed
cmd/internal/container/mesos Expand file tree Collapse file tree 15 files changed +19
-24
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ type mesosFactory struct {
46
46
machineInfoFactory info.MachineInfoFactory
47
47
48
48
// Information about the cgroup subsystems.
49
- cgroupSubsystems libcontainer. CgroupSubsystems
49
+ cgroupSubsystems map [ string ] string
50
50
51
51
// Information about mounted filesystems.
52
52
fsInfo fs.FsInfo
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ type mesosContainerHandler struct {
52
52
53
53
func newMesosContainerHandler (
54
54
name string ,
55
- cgroupSubsystems containerlibcontainer. CgroupSubsystems ,
55
+ cgroupSubsystems map [ string ] string ,
56
56
machineInfoFactory info.MachineInfoFactory ,
57
57
fsInfo fs.FsInfo ,
58
58
includedMetrics container.MetricSet ,
Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ import (
22
22
"github.com/stretchr/testify/assert"
23
23
24
24
"github.com/google/cadvisor/container"
25
- containerlibcontainer "github.com/google/cadvisor/container/libcontainer"
26
25
"github.com/google/cadvisor/fs"
27
26
info "github.com/google/cadvisor/info/v1"
28
27
)
@@ -42,7 +41,7 @@ func TestContainerReference(t *testing.T) {
42
41
name string
43
42
machineInfoFactory info.MachineInfoFactory
44
43
fsInfo fs.FsInfo
45
- cgroupSubsystems containerlibcontainer. CgroupSubsystems
44
+ cgroupSubsystems map [ string ] string
46
45
inHostNamespace bool
47
46
metadataEnvAllowList []string
48
47
includedMetrics container.MetricSet
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ type containerdFactory struct {
48
48
client ContainerdClient
49
49
version string
50
50
// Information about the mounted cgroup subsystems.
51
- cgroupSubsystems libcontainer. CgroupSubsystems
51
+ cgroupSubsystems map [ string ] string
52
52
// Information about mounted filesystems.
53
53
fsInfo fs.FsInfo
54
54
includedMetrics container.MetricSet
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ func newContainerdContainerHandler(
59
59
name string ,
60
60
machineInfoFactory info.MachineInfoFactory ,
61
61
fsInfo fs.FsInfo ,
62
- cgroupSubsystems containerlibcontainer. CgroupSubsystems ,
62
+ cgroupSubsystems map [ string ] string ,
63
63
inHostNamespace bool ,
64
64
metadataEnvAllowList []string ,
65
65
includedMetrics container.MetricSet ,
Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ import (
24
24
"github.com/stretchr/testify/assert"
25
25
26
26
"github.com/google/cadvisor/container"
27
- containerlibcontainer "github.com/google/cadvisor/container/libcontainer"
28
27
"github.com/google/cadvisor/fs"
29
28
info "github.com/google/cadvisor/info/v1"
30
29
)
@@ -50,7 +49,7 @@ func TestHandler(t *testing.T) {
50
49
name string
51
50
machineInfoFactory info.MachineInfoFactory
52
51
fsInfo fs.FsInfo
53
- cgroupSubsystems containerlibcontainer. CgroupSubsystems
52
+ cgroupSubsystems map [ string ] string
54
53
inHostNamespace bool
55
54
metadataEnvAllowList []string
56
55
includedMetrics container.MetricSet
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ type crioFactory struct {
50
50
storageDir string
51
51
52
52
// Information about the mounted cgroup subsystems.
53
- cgroupSubsystems libcontainer. CgroupSubsystems
53
+ cgroupSubsystems map [ string ] string
54
54
55
55
// Information about mounted filesystems.
56
56
fsInfo fs.FsInfo
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ func newCrioContainerHandler(
84
84
fsInfo fs.FsInfo ,
85
85
storageDriver storageDriver ,
86
86
storageDir string ,
87
- cgroupSubsystems containerlibcontainer. CgroupSubsystems ,
87
+ cgroupSubsystems map [ string ] string ,
88
88
inHostNamespace bool ,
89
89
metadataEnvAllowList []string ,
90
90
includedMetrics container.MetricSet ,
Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ import (
21
21
"github.com/stretchr/testify/assert"
22
22
23
23
"github.com/google/cadvisor/container"
24
- containerlibcontainer "github.com/google/cadvisor/container/libcontainer"
25
24
"github.com/google/cadvisor/fs"
26
25
info "github.com/google/cadvisor/info/v1"
27
26
)
@@ -35,7 +34,7 @@ func TestHandler(t *testing.T) {
35
34
fsInfo fs.FsInfo
36
35
storageDriver storageDriver
37
36
storageDir string
38
- cgroupSubsystems containerlibcontainer. CgroupSubsystems
37
+ cgroupSubsystems map [ string ] string
39
38
inHostNamespace bool
40
39
metadataEnvAllowList []string
41
40
includedMetrics container.MetricSet
Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ type dockerFactory struct {
116
116
client * docker.Client
117
117
118
118
// Information about the mounted cgroup subsystems.
119
- cgroupSubsystems libcontainer. CgroupSubsystems
119
+ cgroupSubsystems map [ string ] string
120
120
121
121
// Information about mounted filesystems.
122
122
fsInfo fs.FsInfo
You can’t perform that action at this time.
0 commit comments