File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ import (
34
34
35
35
type fsUsageProvider struct {
36
36
ctx context.Context
37
- containerId string
37
+ containerID string
38
38
client ContainerdClient
39
39
}
40
40
@@ -168,7 +168,7 @@ func newContainerdContainerHandler(
168
168
handler .fsHandler = common .NewFsHandler (common .DefaultPeriod , & fsUsageProvider {
169
169
ctx : ctx ,
170
170
client : client ,
171
- containerId : id ,
171
+ containerID : id ,
172
172
})
173
173
}
174
174
@@ -308,7 +308,7 @@ func (h *containerdContainerHandler) GetContainerIPAddress() string {
308
308
}
309
309
310
310
func (f * fsUsageProvider ) Usage () (* common.FsUsage , error ) {
311
- stats , err := f .client .ContainerStats (f .ctx , f .containerId )
311
+ stats , err := f .client .ContainerStats (f .ctx , f .containerID )
312
312
if err != nil {
313
313
return nil , err
314
314
}
@@ -320,5 +320,5 @@ func (f *fsUsageProvider) Usage() (*common.FsUsage, error) {
320
320
}
321
321
322
322
func (f * fsUsageProvider ) Targets () []string {
323
- return []string {f .containerId }
323
+ return []string {f .containerID }
324
324
}
You can’t perform that action at this time.
0 commit comments