mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 20:17:41 +00:00
Run gofmt
This commit is contained in:
parent
0d907e015b
commit
db8e47a965
@ -20,8 +20,8 @@ package dockershim
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"path/filepath"
|
|
||||||
"os"
|
"os"
|
||||||
|
"path/filepath"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"k8s.io/klog"
|
"k8s.io/klog"
|
||||||
@ -44,7 +44,7 @@ func (ds *dockerService) ImageFsInfo(_ context.Context, r *runtimeapi.ImageFsInf
|
|||||||
|
|
||||||
return &runtimeapi.ImageFsInfoResponse{
|
return &runtimeapi.ImageFsInfoResponse{
|
||||||
ImageFilesystems: []*runtimeapi.FilesystemUsage{
|
ImageFilesystems: []*runtimeapi.FilesystemUsage{
|
||||||
&runtimeapi.FilesystemUsage{
|
{
|
||||||
Timestamp: time.Now().Unix(),
|
Timestamp: time.Now().Unix(),
|
||||||
FsId: &runtimeapi.FilesystemIdentifier{
|
FsId: &runtimeapi.FilesystemIdentifier{
|
||||||
Mountpoint: info.DockerRootDir,
|
Mountpoint: info.DockerRootDir,
|
||||||
|
@ -95,7 +95,7 @@ func (ds *dockerService) getContainerStats(containerID string) (*runtimeapi.Cont
|
|||||||
Annotations: status.Annotations,
|
Annotations: status.Annotations,
|
||||||
},
|
},
|
||||||
Cpu: &runtimeapi.CpuUsage{
|
Cpu: &runtimeapi.CpuUsage{
|
||||||
Timestamp: timestamp,
|
Timestamp: timestamp,
|
||||||
UsageCoreNanoSeconds: &runtimeapi.UInt64Value{Value: dockerStats.CPUStats.CPUUsage.TotalUsage},
|
UsageCoreNanoSeconds: &runtimeapi.UInt64Value{Value: dockerStats.CPUStats.CPUUsage.TotalUsage},
|
||||||
},
|
},
|
||||||
Memory: &runtimeapi.MemoryUsage{
|
Memory: &runtimeapi.MemoryUsage{
|
||||||
|
Loading…
Reference in New Issue
Block a user