From 4db1116a361c17fb4fcf79b628c8ce3fbcce9c99 Mon Sep 17 00:00:00 2001 From: c00416947 Date: Tue, 24 Apr 2018 17:25:29 +0800 Subject: [PATCH] grpc :[RPC]Add the StatsContainer api for `events cli` Add `StatsContainer` API to display container events Fixes: #221 Signed-off-by: c00416947 --- grpc.go | 28 + grpc_test.go | 28 + mockcontainer.go | 3 +- mockcontainer_test.go | 8 +- protocols/grpc/agent.pb.go | 5447 ++++++++++++++++++++++------ protocols/grpc/agent.proto | 82 + protocols/mockserver/mockserver.go | 10 + 7 files changed, 4530 insertions(+), 1076 deletions(-) diff --git a/grpc.go b/grpc.go index 0011cfc36d..efe259ebca 100644 --- a/grpc.go +++ b/grpc.go @@ -718,6 +718,34 @@ func (a *agentGRPC) ListProcesses(ctx context.Context, req *pb.ListProcessesRequ return resp, nil } +func (a *agentGRPC) StatsContainer(ctx context.Context, req *pb.StatsContainerRequest) (*pb.StatsContainerResponse, error) { + c, err := a.sandbox.getContainer(req.ContainerId) + if err != nil { + return nil, err + } + + stats, err := c.container.Stats() + if err != nil { + return nil, err + } + + data, err := json.Marshal(stats.CgroupStats) + if err != nil { + return nil, err + } + + var cgroupStats pb.CgroupStats + err = json.Unmarshal(data, &cgroupStats) + if err != nil { + return nil, err + } + resp := &pb.StatsContainerResponse{ + CgroupStats: &cgroupStats, + } + + return resp, nil +} + func (a *agentGRPC) RemoveContainer(ctx context.Context, req *pb.RemoveContainerRequest) (*gpb.Empty, error) { ctr, err := a.sandbox.getContainer(req.ContainerId) if err != nil { diff --git a/grpc_test.go b/grpc_test.go index ed9821d1ad..ceaaae8d7a 100644 --- a/grpc_test.go +++ b/grpc_test.go @@ -226,3 +226,31 @@ func TestListProcesses(t *testing.T) { assert.NotNil(r) assert.NotEmpty(r.ProcessList) } + +func TestStatsContainer(t *testing.T) { + containerID := "1" + assert := assert.New(t) + req := &pb.StatsContainerRequest{ + ContainerId: containerID, + } + + a := &agentGRPC{ + sandbox: &sandbox{ + containers: make(map[string]*container), + }, + } + + //getcontainer should failed + r, err := a.StatsContainer(context.TODO(), req) + assert.Error(err) + + a.sandbox.containers[containerID] = &container{ + container: &mockContainer{ + id: containerID, + }, + } + + r, err = a.StatsContainer(context.TODO(), req) + assert.NoError(err) + assert.NotNil(r) +} diff --git a/mockcontainer.go b/mockcontainer.go index ef10776aac..3121a06ced 100644 --- a/mockcontainer.go +++ b/mockcontainer.go @@ -16,6 +16,7 @@ import ( type mockContainer struct { id string status libcontainer.Status + stats libcontainer.Stats processes []int } @@ -40,7 +41,7 @@ func (m *mockContainer) Processes() ([]int, error) { } func (m *mockContainer) Stats() (*libcontainer.Stats, error) { - return nil, nil + return &m.stats, nil } func (m *mockContainer) Set(config configs.Config) error { diff --git a/mockcontainer_test.go b/mockcontainer_test.go index 2843a79327..f1cd21e356 100644 --- a/mockcontainer_test.go +++ b/mockcontainer_test.go @@ -7,6 +7,7 @@ package main import ( + "github.com/opencontainers/runc/libcontainer/cgroups" "syscall" "testing" @@ -58,10 +59,13 @@ func TestMockContainerProcesses(t *testing.T) { func TestMockContainerStats(t *testing.T) { assert := assert.New(t) - m := &mockContainer{} + expectedStats := &libcontainer.Stats{ + CgroupStats: &cgroups.Stats{}, + } + m := &mockContainer{stats: *expectedStats} st, err := m.Stats() assert.NoError(err) - assert.Nil(st) + assert.Equal(expectedStats, st) } func TestMockContainerSet(t *testing.T) { diff --git a/protocols/grpc/agent.pb.go b/protocols/grpc/agent.pb.go index d70011c1a2..4f3dd88984 100644 --- a/protocols/grpc/agent.pb.go +++ b/protocols/grpc/agent.pb.go @@ -19,6 +19,18 @@ WaitProcessResponse ListProcessesRequest ListProcessesResponse + StatsContainerRequest + CpuUsage + ThrottlingData + CpuStats + PidsStats + MemoryData + MemoryStats + BlkioStatsEntry + BlkioStats + HugetlbStats + CgroupStats + StatsContainerResponse WriteStreamRequest WriteStreamResponse ReadStreamRequest @@ -384,6 +396,446 @@ func (m *ListProcessesResponse) GetProcessList() []byte { return nil } +type StatsContainerRequest struct { + ContainerId string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` +} + +func (m *StatsContainerRequest) Reset() { *m = StatsContainerRequest{} } +func (m *StatsContainerRequest) String() string { return proto.CompactTextString(m) } +func (*StatsContainerRequest) ProtoMessage() {} +func (*StatsContainerRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{9} } + +func (m *StatsContainerRequest) GetContainerId() string { + if m != nil { + return m.ContainerId + } + return "" +} + +type CpuUsage struct { + TotalUsage uint64 `protobuf:"varint,1,opt,name=total_usage,json=totalUsage,proto3" json:"total_usage,omitempty"` + PercpuUsage []uint64 `protobuf:"varint,2,rep,packed,name=percpu_usage,json=percpuUsage" json:"percpu_usage,omitempty"` + UsageInKernelmode uint64 `protobuf:"varint,3,opt,name=usage_in_kernelmode,json=usageInKernelmode,proto3" json:"usage_in_kernelmode,omitempty"` + UsageInUsermode uint64 `protobuf:"varint,4,opt,name=usage_in_usermode,json=usageInUsermode,proto3" json:"usage_in_usermode,omitempty"` +} + +func (m *CpuUsage) Reset() { *m = CpuUsage{} } +func (m *CpuUsage) String() string { return proto.CompactTextString(m) } +func (*CpuUsage) ProtoMessage() {} +func (*CpuUsage) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{10} } + +func (m *CpuUsage) GetTotalUsage() uint64 { + if m != nil { + return m.TotalUsage + } + return 0 +} + +func (m *CpuUsage) GetPercpuUsage() []uint64 { + if m != nil { + return m.PercpuUsage + } + return nil +} + +func (m *CpuUsage) GetUsageInKernelmode() uint64 { + if m != nil { + return m.UsageInKernelmode + } + return 0 +} + +func (m *CpuUsage) GetUsageInUsermode() uint64 { + if m != nil { + return m.UsageInUsermode + } + return 0 +} + +type ThrottlingData struct { + Periods uint64 `protobuf:"varint,1,opt,name=periods,proto3" json:"periods,omitempty"` + ThrottledPeriods uint64 `protobuf:"varint,2,opt,name=throttled_periods,json=throttledPeriods,proto3" json:"throttled_periods,omitempty"` + ThrottledTime uint64 `protobuf:"varint,3,opt,name=throttled_time,json=throttledTime,proto3" json:"throttled_time,omitempty"` +} + +func (m *ThrottlingData) Reset() { *m = ThrottlingData{} } +func (m *ThrottlingData) String() string { return proto.CompactTextString(m) } +func (*ThrottlingData) ProtoMessage() {} +func (*ThrottlingData) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{11} } + +func (m *ThrottlingData) GetPeriods() uint64 { + if m != nil { + return m.Periods + } + return 0 +} + +func (m *ThrottlingData) GetThrottledPeriods() uint64 { + if m != nil { + return m.ThrottledPeriods + } + return 0 +} + +func (m *ThrottlingData) GetThrottledTime() uint64 { + if m != nil { + return m.ThrottledTime + } + return 0 +} + +type CpuStats struct { + CpuUsage *CpuUsage `protobuf:"bytes,1,opt,name=cpu_usage,json=cpuUsage" json:"cpu_usage,omitempty"` + ThrottlingData *ThrottlingData `protobuf:"bytes,2,opt,name=throttling_data,json=throttlingData" json:"throttling_data,omitempty"` +} + +func (m *CpuStats) Reset() { *m = CpuStats{} } +func (m *CpuStats) String() string { return proto.CompactTextString(m) } +func (*CpuStats) ProtoMessage() {} +func (*CpuStats) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{12} } + +func (m *CpuStats) GetCpuUsage() *CpuUsage { + if m != nil { + return m.CpuUsage + } + return nil +} + +func (m *CpuStats) GetThrottlingData() *ThrottlingData { + if m != nil { + return m.ThrottlingData + } + return nil +} + +type PidsStats struct { + Current uint64 `protobuf:"varint,1,opt,name=current,proto3" json:"current,omitempty"` + Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` +} + +func (m *PidsStats) Reset() { *m = PidsStats{} } +func (m *PidsStats) String() string { return proto.CompactTextString(m) } +func (*PidsStats) ProtoMessage() {} +func (*PidsStats) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{13} } + +func (m *PidsStats) GetCurrent() uint64 { + if m != nil { + return m.Current + } + return 0 +} + +func (m *PidsStats) GetLimit() uint64 { + if m != nil { + return m.Limit + } + return 0 +} + +type MemoryData struct { + Usage uint64 `protobuf:"varint,1,opt,name=usage,proto3" json:"usage,omitempty"` + MaxUsage uint64 `protobuf:"varint,2,opt,name=max_usage,json=maxUsage,proto3" json:"max_usage,omitempty"` + Failcnt uint64 `protobuf:"varint,3,opt,name=failcnt,proto3" json:"failcnt,omitempty"` + Limit uint64 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"` +} + +func (m *MemoryData) Reset() { *m = MemoryData{} } +func (m *MemoryData) String() string { return proto.CompactTextString(m) } +func (*MemoryData) ProtoMessage() {} +func (*MemoryData) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{14} } + +func (m *MemoryData) GetUsage() uint64 { + if m != nil { + return m.Usage + } + return 0 +} + +func (m *MemoryData) GetMaxUsage() uint64 { + if m != nil { + return m.MaxUsage + } + return 0 +} + +func (m *MemoryData) GetFailcnt() uint64 { + if m != nil { + return m.Failcnt + } + return 0 +} + +func (m *MemoryData) GetLimit() uint64 { + if m != nil { + return m.Limit + } + return 0 +} + +type MemoryStats struct { + Cache uint64 `protobuf:"varint,1,opt,name=cache,proto3" json:"cache,omitempty"` + Usage *MemoryData `protobuf:"bytes,2,opt,name=usage" json:"usage,omitempty"` + SwapUsage *MemoryData `protobuf:"bytes,3,opt,name=swap_usage,json=swapUsage" json:"swap_usage,omitempty"` + KernelUsage *MemoryData `protobuf:"bytes,4,opt,name=kernel_usage,json=kernelUsage" json:"kernel_usage,omitempty"` + UseHierarchy bool `protobuf:"varint,5,opt,name=use_hierarchy,json=useHierarchy,proto3" json:"use_hierarchy,omitempty"` + Stats map[string]uint64 `protobuf:"bytes,6,rep,name=stats" json:"stats,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` +} + +func (m *MemoryStats) Reset() { *m = MemoryStats{} } +func (m *MemoryStats) String() string { return proto.CompactTextString(m) } +func (*MemoryStats) ProtoMessage() {} +func (*MemoryStats) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{15} } + +func (m *MemoryStats) GetCache() uint64 { + if m != nil { + return m.Cache + } + return 0 +} + +func (m *MemoryStats) GetUsage() *MemoryData { + if m != nil { + return m.Usage + } + return nil +} + +func (m *MemoryStats) GetSwapUsage() *MemoryData { + if m != nil { + return m.SwapUsage + } + return nil +} + +func (m *MemoryStats) GetKernelUsage() *MemoryData { + if m != nil { + return m.KernelUsage + } + return nil +} + +func (m *MemoryStats) GetUseHierarchy() bool { + if m != nil { + return m.UseHierarchy + } + return false +} + +func (m *MemoryStats) GetStats() map[string]uint64 { + if m != nil { + return m.Stats + } + return nil +} + +type BlkioStatsEntry struct { + Major uint64 `protobuf:"varint,1,opt,name=major,proto3" json:"major,omitempty"` + Minor uint64 `protobuf:"varint,2,opt,name=minor,proto3" json:"minor,omitempty"` + Op string `protobuf:"bytes,3,opt,name=op,proto3" json:"op,omitempty"` + Value uint64 `protobuf:"varint,4,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *BlkioStatsEntry) Reset() { *m = BlkioStatsEntry{} } +func (m *BlkioStatsEntry) String() string { return proto.CompactTextString(m) } +func (*BlkioStatsEntry) ProtoMessage() {} +func (*BlkioStatsEntry) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{16} } + +func (m *BlkioStatsEntry) GetMajor() uint64 { + if m != nil { + return m.Major + } + return 0 +} + +func (m *BlkioStatsEntry) GetMinor() uint64 { + if m != nil { + return m.Minor + } + return 0 +} + +func (m *BlkioStatsEntry) GetOp() string { + if m != nil { + return m.Op + } + return "" +} + +func (m *BlkioStatsEntry) GetValue() uint64 { + if m != nil { + return m.Value + } + return 0 +} + +type BlkioStats struct { + IoServiceBytesRecursive []*BlkioStatsEntry `protobuf:"bytes,1,rep,name=io_service_bytes_recursive,json=ioServiceBytesRecursive" json:"io_service_bytes_recursive,omitempty"` + IoServicedRecursive []*BlkioStatsEntry `protobuf:"bytes,2,rep,name=io_serviced_recursive,json=ioServicedRecursive" json:"io_serviced_recursive,omitempty"` + IoQueuedRecursive []*BlkioStatsEntry `protobuf:"bytes,3,rep,name=io_queued_recursive,json=ioQueuedRecursive" json:"io_queued_recursive,omitempty"` + IoServiceTimeRecursive []*BlkioStatsEntry `protobuf:"bytes,4,rep,name=io_service_time_recursive,json=ioServiceTimeRecursive" json:"io_service_time_recursive,omitempty"` + IoWaitTimeRecursive []*BlkioStatsEntry `protobuf:"bytes,5,rep,name=io_wait_time_recursive,json=ioWaitTimeRecursive" json:"io_wait_time_recursive,omitempty"` + IoMergedRecursive []*BlkioStatsEntry `protobuf:"bytes,6,rep,name=io_merged_recursive,json=ioMergedRecursive" json:"io_merged_recursive,omitempty"` + IoTimeRecursive []*BlkioStatsEntry `protobuf:"bytes,7,rep,name=io_time_recursive,json=ioTimeRecursive" json:"io_time_recursive,omitempty"` + SectorsRecursive []*BlkioStatsEntry `protobuf:"bytes,8,rep,name=sectors_recursive,json=sectorsRecursive" json:"sectors_recursive,omitempty"` +} + +func (m *BlkioStats) Reset() { *m = BlkioStats{} } +func (m *BlkioStats) String() string { return proto.CompactTextString(m) } +func (*BlkioStats) ProtoMessage() {} +func (*BlkioStats) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{17} } + +func (m *BlkioStats) GetIoServiceBytesRecursive() []*BlkioStatsEntry { + if m != nil { + return m.IoServiceBytesRecursive + } + return nil +} + +func (m *BlkioStats) GetIoServicedRecursive() []*BlkioStatsEntry { + if m != nil { + return m.IoServicedRecursive + } + return nil +} + +func (m *BlkioStats) GetIoQueuedRecursive() []*BlkioStatsEntry { + if m != nil { + return m.IoQueuedRecursive + } + return nil +} + +func (m *BlkioStats) GetIoServiceTimeRecursive() []*BlkioStatsEntry { + if m != nil { + return m.IoServiceTimeRecursive + } + return nil +} + +func (m *BlkioStats) GetIoWaitTimeRecursive() []*BlkioStatsEntry { + if m != nil { + return m.IoWaitTimeRecursive + } + return nil +} + +func (m *BlkioStats) GetIoMergedRecursive() []*BlkioStatsEntry { + if m != nil { + return m.IoMergedRecursive + } + return nil +} + +func (m *BlkioStats) GetIoTimeRecursive() []*BlkioStatsEntry { + if m != nil { + return m.IoTimeRecursive + } + return nil +} + +func (m *BlkioStats) GetSectorsRecursive() []*BlkioStatsEntry { + if m != nil { + return m.SectorsRecursive + } + return nil +} + +type HugetlbStats struct { + Usage uint64 `protobuf:"varint,1,opt,name=usage,proto3" json:"usage,omitempty"` + MaxUsage uint64 `protobuf:"varint,2,opt,name=max_usage,json=maxUsage,proto3" json:"max_usage,omitempty"` + Failcnt uint64 `protobuf:"varint,3,opt,name=failcnt,proto3" json:"failcnt,omitempty"` +} + +func (m *HugetlbStats) Reset() { *m = HugetlbStats{} } +func (m *HugetlbStats) String() string { return proto.CompactTextString(m) } +func (*HugetlbStats) ProtoMessage() {} +func (*HugetlbStats) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{18} } + +func (m *HugetlbStats) GetUsage() uint64 { + if m != nil { + return m.Usage + } + return 0 +} + +func (m *HugetlbStats) GetMaxUsage() uint64 { + if m != nil { + return m.MaxUsage + } + return 0 +} + +func (m *HugetlbStats) GetFailcnt() uint64 { + if m != nil { + return m.Failcnt + } + return 0 +} + +type CgroupStats struct { + CpuStats *CpuStats `protobuf:"bytes,1,opt,name=cpu_stats,json=cpuStats" json:"cpu_stats,omitempty"` + MemoryStats *MemoryStats `protobuf:"bytes,2,opt,name=memory_stats,json=memoryStats" json:"memory_stats,omitempty"` + PidsStats *PidsStats `protobuf:"bytes,3,opt,name=pids_stats,json=pidsStats" json:"pids_stats,omitempty"` + BlkioStats *BlkioStats `protobuf:"bytes,4,opt,name=blkio_stats,json=blkioStats" json:"blkio_stats,omitempty"` + HugetlbStats map[string]*HugetlbStats `protobuf:"bytes,5,rep,name=hugetlb_stats,json=hugetlbStats" json:"hugetlb_stats,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value"` +} + +func (m *CgroupStats) Reset() { *m = CgroupStats{} } +func (m *CgroupStats) String() string { return proto.CompactTextString(m) } +func (*CgroupStats) ProtoMessage() {} +func (*CgroupStats) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{19} } + +func (m *CgroupStats) GetCpuStats() *CpuStats { + if m != nil { + return m.CpuStats + } + return nil +} + +func (m *CgroupStats) GetMemoryStats() *MemoryStats { + if m != nil { + return m.MemoryStats + } + return nil +} + +func (m *CgroupStats) GetPidsStats() *PidsStats { + if m != nil { + return m.PidsStats + } + return nil +} + +func (m *CgroupStats) GetBlkioStats() *BlkioStats { + if m != nil { + return m.BlkioStats + } + return nil +} + +func (m *CgroupStats) GetHugetlbStats() map[string]*HugetlbStats { + if m != nil { + return m.HugetlbStats + } + return nil +} + +type StatsContainerResponse struct { + CgroupStats *CgroupStats `protobuf:"bytes,1,opt,name=cgroup_stats,json=cgroupStats" json:"cgroup_stats,omitempty"` +} + +func (m *StatsContainerResponse) Reset() { *m = StatsContainerResponse{} } +func (m *StatsContainerResponse) String() string { return proto.CompactTextString(m) } +func (*StatsContainerResponse) ProtoMessage() {} +func (*StatsContainerResponse) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{20} } + +func (m *StatsContainerResponse) GetCgroupStats() *CgroupStats { + if m != nil { + return m.CgroupStats + } + return nil +} + type WriteStreamRequest struct { ContainerId string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` ExecId string `protobuf:"bytes,2,opt,name=exec_id,json=execId,proto3" json:"exec_id,omitempty"` @@ -393,7 +845,7 @@ type WriteStreamRequest struct { func (m *WriteStreamRequest) Reset() { *m = WriteStreamRequest{} } func (m *WriteStreamRequest) String() string { return proto.CompactTextString(m) } func (*WriteStreamRequest) ProtoMessage() {} -func (*WriteStreamRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{9} } +func (*WriteStreamRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{21} } func (m *WriteStreamRequest) GetContainerId() string { if m != nil { @@ -423,7 +875,7 @@ type WriteStreamResponse struct { func (m *WriteStreamResponse) Reset() { *m = WriteStreamResponse{} } func (m *WriteStreamResponse) String() string { return proto.CompactTextString(m) } func (*WriteStreamResponse) ProtoMessage() {} -func (*WriteStreamResponse) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{10} } +func (*WriteStreamResponse) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{22} } func (m *WriteStreamResponse) GetLen() uint32 { if m != nil { @@ -441,7 +893,7 @@ type ReadStreamRequest struct { func (m *ReadStreamRequest) Reset() { *m = ReadStreamRequest{} } func (m *ReadStreamRequest) String() string { return proto.CompactTextString(m) } func (*ReadStreamRequest) ProtoMessage() {} -func (*ReadStreamRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{11} } +func (*ReadStreamRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{23} } func (m *ReadStreamRequest) GetContainerId() string { if m != nil { @@ -471,7 +923,7 @@ type ReadStreamResponse struct { func (m *ReadStreamResponse) Reset() { *m = ReadStreamResponse{} } func (m *ReadStreamResponse) String() string { return proto.CompactTextString(m) } func (*ReadStreamResponse) ProtoMessage() {} -func (*ReadStreamResponse) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{12} } +func (*ReadStreamResponse) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{24} } func (m *ReadStreamResponse) GetData() []byte { if m != nil { @@ -488,7 +940,7 @@ type CloseStdinRequest struct { func (m *CloseStdinRequest) Reset() { *m = CloseStdinRequest{} } func (m *CloseStdinRequest) String() string { return proto.CompactTextString(m) } func (*CloseStdinRequest) ProtoMessage() {} -func (*CloseStdinRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{13} } +func (*CloseStdinRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{25} } func (m *CloseStdinRequest) GetContainerId() string { if m != nil { @@ -514,7 +966,7 @@ type TtyWinResizeRequest struct { func (m *TtyWinResizeRequest) Reset() { *m = TtyWinResizeRequest{} } func (m *TtyWinResizeRequest) String() string { return proto.CompactTextString(m) } func (*TtyWinResizeRequest) ProtoMessage() {} -func (*TtyWinResizeRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{14} } +func (*TtyWinResizeRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{26} } func (m *TtyWinResizeRequest) GetContainerId() string { if m != nil { @@ -554,7 +1006,7 @@ type CreateSandboxRequest struct { func (m *CreateSandboxRequest) Reset() { *m = CreateSandboxRequest{} } func (m *CreateSandboxRequest) String() string { return proto.CompactTextString(m) } func (*CreateSandboxRequest) ProtoMessage() {} -func (*CreateSandboxRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{15} } +func (*CreateSandboxRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{27} } func (m *CreateSandboxRequest) GetHostname() string { if m != nil { @@ -590,7 +1042,7 @@ type DestroySandboxRequest struct { func (m *DestroySandboxRequest) Reset() { *m = DestroySandboxRequest{} } func (m *DestroySandboxRequest) String() string { return proto.CompactTextString(m) } func (*DestroySandboxRequest) ProtoMessage() {} -func (*DestroySandboxRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{16} } +func (*DestroySandboxRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{28} } type IPAddress struct { Family IPFamily `protobuf:"varint,1,opt,name=family,proto3,enum=grpc.IPFamily" json:"family,omitempty"` @@ -601,7 +1053,7 @@ type IPAddress struct { func (m *IPAddress) Reset() { *m = IPAddress{} } func (m *IPAddress) String() string { return proto.CompactTextString(m) } func (*IPAddress) ProtoMessage() {} -func (*IPAddress) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{17} } +func (*IPAddress) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{29} } func (m *IPAddress) GetFamily() IPFamily { if m != nil { @@ -635,7 +1087,7 @@ type Interface struct { func (m *Interface) Reset() { *m = Interface{} } func (m *Interface) String() string { return proto.CompactTextString(m) } func (*Interface) ProtoMessage() {} -func (*Interface) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{18} } +func (*Interface) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{30} } func (m *Interface) GetDevice() string { if m != nil { @@ -683,7 +1135,7 @@ type Route struct { func (m *Route) Reset() { *m = Route{} } func (m *Route) String() string { return proto.CompactTextString(m) } func (*Route) ProtoMessage() {} -func (*Route) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{19} } +func (*Route) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{31} } func (m *Route) GetDest() string { if m != nil { @@ -727,7 +1179,7 @@ type Routes struct { func (m *Routes) Reset() { *m = Routes{} } func (m *Routes) String() string { return proto.CompactTextString(m) } func (*Routes) ProtoMessage() {} -func (*Routes) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{20} } +func (*Routes) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{32} } func (m *Routes) GetRoutes() []*Route { if m != nil { @@ -743,7 +1195,7 @@ type UpdateInterfaceRequest struct { func (m *UpdateInterfaceRequest) Reset() { *m = UpdateInterfaceRequest{} } func (m *UpdateInterfaceRequest) String() string { return proto.CompactTextString(m) } func (*UpdateInterfaceRequest) ProtoMessage() {} -func (*UpdateInterfaceRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{21} } +func (*UpdateInterfaceRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{33} } func (m *UpdateInterfaceRequest) GetInterface() *Interface { if m != nil { @@ -759,7 +1211,7 @@ type AddInterfaceRequest struct { func (m *AddInterfaceRequest) Reset() { *m = AddInterfaceRequest{} } func (m *AddInterfaceRequest) String() string { return proto.CompactTextString(m) } func (*AddInterfaceRequest) ProtoMessage() {} -func (*AddInterfaceRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{22} } +func (*AddInterfaceRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{34} } func (m *AddInterfaceRequest) GetInterface() *Interface { if m != nil { @@ -775,7 +1227,7 @@ type RemoveInterfaceRequest struct { func (m *RemoveInterfaceRequest) Reset() { *m = RemoveInterfaceRequest{} } func (m *RemoveInterfaceRequest) String() string { return proto.CompactTextString(m) } func (*RemoveInterfaceRequest) ProtoMessage() {} -func (*RemoveInterfaceRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{23} } +func (*RemoveInterfaceRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{35} } func (m *RemoveInterfaceRequest) GetInterface() *Interface { if m != nil { @@ -791,7 +1243,7 @@ type UpdateRoutesRequest struct { func (m *UpdateRoutesRequest) Reset() { *m = UpdateRoutesRequest{} } func (m *UpdateRoutesRequest) String() string { return proto.CompactTextString(m) } func (*UpdateRoutesRequest) ProtoMessage() {} -func (*UpdateRoutesRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{24} } +func (*UpdateRoutesRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{36} } func (m *UpdateRoutesRequest) GetRoutes() *Routes { if m != nil { @@ -812,7 +1264,7 @@ type OnlineCPUMemRequest struct { func (m *OnlineCPUMemRequest) Reset() { *m = OnlineCPUMemRequest{} } func (m *OnlineCPUMemRequest) String() string { return proto.CompactTextString(m) } func (*OnlineCPUMemRequest) ProtoMessage() {} -func (*OnlineCPUMemRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{25} } +func (*OnlineCPUMemRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{37} } func (m *OnlineCPUMemRequest) GetWait() bool { if m != nil { @@ -861,7 +1313,7 @@ type Storage struct { func (m *Storage) Reset() { *m = Storage{} } func (m *Storage) String() string { return proto.CompactTextString(m) } func (*Storage) ProtoMessage() {} -func (*Storage) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{26} } +func (*Storage) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{38} } func (m *Storage) GetDriver() string { if m != nil { @@ -944,7 +1396,7 @@ type Device struct { func (m *Device) Reset() { *m = Device{} } func (m *Device) String() string { return proto.CompactTextString(m) } func (*Device) ProtoMessage() {} -func (*Device) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{27} } +func (*Device) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{39} } func (m *Device) GetId() string { if m != nil { @@ -990,7 +1442,7 @@ type StringUser struct { func (m *StringUser) Reset() { *m = StringUser{} } func (m *StringUser) String() string { return proto.CompactTextString(m) } func (*StringUser) ProtoMessage() {} -func (*StringUser) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{28} } +func (*StringUser) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{40} } func (m *StringUser) GetUid() string { if m != nil { @@ -1023,6 +1475,18 @@ func init() { proto.RegisterType((*WaitProcessResponse)(nil), "grpc.WaitProcessResponse") proto.RegisterType((*ListProcessesRequest)(nil), "grpc.ListProcessesRequest") proto.RegisterType((*ListProcessesResponse)(nil), "grpc.ListProcessesResponse") + proto.RegisterType((*StatsContainerRequest)(nil), "grpc.StatsContainerRequest") + proto.RegisterType((*CpuUsage)(nil), "grpc.CpuUsage") + proto.RegisterType((*ThrottlingData)(nil), "grpc.ThrottlingData") + proto.RegisterType((*CpuStats)(nil), "grpc.CpuStats") + proto.RegisterType((*PidsStats)(nil), "grpc.PidsStats") + proto.RegisterType((*MemoryData)(nil), "grpc.MemoryData") + proto.RegisterType((*MemoryStats)(nil), "grpc.MemoryStats") + proto.RegisterType((*BlkioStatsEntry)(nil), "grpc.BlkioStatsEntry") + proto.RegisterType((*BlkioStats)(nil), "grpc.BlkioStats") + proto.RegisterType((*HugetlbStats)(nil), "grpc.HugetlbStats") + proto.RegisterType((*CgroupStats)(nil), "grpc.CgroupStats") + proto.RegisterType((*StatsContainerResponse)(nil), "grpc.StatsContainerResponse") proto.RegisterType((*WriteStreamRequest)(nil), "grpc.WriteStreamRequest") proto.RegisterType((*WriteStreamResponse)(nil), "grpc.WriteStreamResponse") proto.RegisterType((*ReadStreamRequest)(nil), "grpc.ReadStreamRequest") @@ -1071,6 +1535,7 @@ type AgentServiceClient interface { SignalProcess(ctx context.Context, in *SignalProcessRequest, opts ...grpc1.CallOption) (*google_protobuf2.Empty, error) WaitProcess(ctx context.Context, in *WaitProcessRequest, opts ...grpc1.CallOption) (*WaitProcessResponse, error) ListProcesses(ctx context.Context, in *ListProcessesRequest, opts ...grpc1.CallOption) (*ListProcessesResponse, error) + StatsContainer(ctx context.Context, in *StatsContainerRequest, opts ...grpc1.CallOption) (*StatsContainerResponse, error) // stdio WriteStdin(ctx context.Context, in *WriteStreamRequest, opts ...grpc1.CallOption) (*WriteStreamResponse, error) ReadStdout(ctx context.Context, in *ReadStreamRequest, opts ...grpc1.CallOption) (*ReadStreamResponse, error) @@ -1159,9 +1624,18 @@ func (c *agentServiceClient) ListProcesses(ctx context.Context, in *ListProcesse return out, nil } -func (c *agentServiceClient) WriteStdin(ctx context.Context, in *WriteStreamRequest, opts ...grpc1.CallOption) (*WriteStreamResponse, error) { - out := new(WriteStreamResponse) - err := grpc1.Invoke(ctx, "/grpc.AgentService/WriteStdin", in, out, c.cc, opts...) +func (c *agentServiceClient) StatsContainer(ctx context.Context, in *StatsContainerRequest, opts ...grpc1.CallOption) (*StatsContainerResponse, error) { + out := new(StatsContainerResponse) + err := grpc1.Invoke(ctx, "/grpc.AgentService/StatsContainer", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *agentServiceClient) WriteStdin(ctx context.Context, in *WriteStreamRequest, opts ...grpc1.CallOption) (*WriteStreamResponse, error) { + out := new(WriteStreamResponse) + err := grpc1.Invoke(ctx, "/grpc.AgentService/WriteStdin", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1284,6 +1758,7 @@ type AgentServiceServer interface { SignalProcess(context.Context, *SignalProcessRequest) (*google_protobuf2.Empty, error) WaitProcess(context.Context, *WaitProcessRequest) (*WaitProcessResponse, error) ListProcesses(context.Context, *ListProcessesRequest) (*ListProcessesResponse, error) + StatsContainer(context.Context, *StatsContainerRequest) (*StatsContainerResponse, error) // stdio WriteStdin(context.Context, *WriteStreamRequest) (*WriteStreamResponse, error) ReadStdout(context.Context, *ReadStreamRequest) (*ReadStreamResponse, error) @@ -1431,6 +1906,24 @@ func _AgentService_ListProcesses_Handler(srv interface{}, ctx context.Context, d return interceptor(ctx, in, info, handler) } +func _AgentService_StatsContainer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc1.UnaryServerInterceptor) (interface{}, error) { + in := new(StatsContainerRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AgentServiceServer).StatsContainer(ctx, in) + } + info := &grpc1.UnaryServerInfo{ + Server: srv, + FullMethod: "/grpc.AgentService/StatsContainer", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AgentServiceServer).StatsContainer(ctx, req.(*StatsContainerRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _AgentService_WriteStdin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc1.UnaryServerInterceptor) (interface{}, error) { in := new(WriteStreamRequest) if err := dec(in); err != nil { @@ -1679,6 +2172,10 @@ var _AgentService_serviceDesc = grpc1.ServiceDesc{ MethodName: "ListProcesses", Handler: _AgentService_ListProcesses_Handler, }, + { + MethodName: "StatsContainer", + Handler: _AgentService_StatsContainer_Handler, + }, { MethodName: "WriteStdin", Handler: _AgentService_WriteStdin_Handler, @@ -2066,7 +2563,7 @@ func (m *ListProcessesResponse) MarshalTo(dAtA []byte) (int, error) { return i, nil } -func (m *WriteStreamRequest) Marshal() (dAtA []byte, err error) { +func (m *StatsContainerRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) @@ -2076,7 +2573,7 @@ func (m *WriteStreamRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *WriteStreamRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *StatsContainerRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int @@ -2087,22 +2584,10 @@ func (m *WriteStreamRequest) MarshalTo(dAtA []byte) (int, error) { i = encodeVarintAgent(dAtA, i, uint64(len(m.ContainerId))) i += copy(dAtA[i:], m.ContainerId) } - if len(m.ExecId) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.ExecId))) - i += copy(dAtA[i:], m.ExecId) - } - if len(m.Data) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.Data))) - i += copy(dAtA[i:], m.Data) - } return i, nil } -func (m *WriteStreamResponse) Marshal() (dAtA []byte, err error) { +func (m *CpuUsage) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) @@ -2112,20 +2597,47 @@ func (m *WriteStreamResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *WriteStreamResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *CpuUsage) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - if m.Len != 0 { + if m.TotalUsage != 0 { dAtA[i] = 0x8 i++ - i = encodeVarintAgent(dAtA, i, uint64(m.Len)) + i = encodeVarintAgent(dAtA, i, uint64(m.TotalUsage)) + } + if len(m.PercpuUsage) > 0 { + dAtA6 := make([]byte, len(m.PercpuUsage)*10) + var j5 int + for _, num := range m.PercpuUsage { + for num >= 1<<7 { + dAtA6[j5] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j5++ + } + dAtA6[j5] = uint8(num) + j5++ + } + dAtA[i] = 0x12 + i++ + i = encodeVarintAgent(dAtA, i, uint64(j5)) + i += copy(dAtA[i:], dAtA6[:j5]) + } + if m.UsageInKernelmode != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintAgent(dAtA, i, uint64(m.UsageInKernelmode)) + } + if m.UsageInUsermode != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintAgent(dAtA, i, uint64(m.UsageInUsermode)) } return i, nil } -func (m *ReadStreamRequest) Marshal() (dAtA []byte, err error) { +func (m *ThrottlingData) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) @@ -2135,32 +2647,30 @@ func (m *ReadStreamRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *ReadStreamRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *ThrottlingData) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - if len(m.ContainerId) > 0 { - dAtA[i] = 0xa + if m.Periods != 0 { + dAtA[i] = 0x8 i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.ContainerId))) - i += copy(dAtA[i:], m.ContainerId) + i = encodeVarintAgent(dAtA, i, uint64(m.Periods)) } - if len(m.ExecId) > 0 { - dAtA[i] = 0x12 + if m.ThrottledPeriods != 0 { + dAtA[i] = 0x10 i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.ExecId))) - i += copy(dAtA[i:], m.ExecId) + i = encodeVarintAgent(dAtA, i, uint64(m.ThrottledPeriods)) } - if m.Len != 0 { + if m.ThrottledTime != 0 { dAtA[i] = 0x18 i++ - i = encodeVarintAgent(dAtA, i, uint64(m.Len)) + i = encodeVarintAgent(dAtA, i, uint64(m.ThrottledTime)) } return i, nil } -func (m *ReadStreamResponse) Marshal() (dAtA []byte, err error) { +func (m *CpuStats) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) @@ -2170,21 +2680,35 @@ func (m *ReadStreamResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *ReadStreamResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *CpuStats) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - if len(m.Data) > 0 { + if m.CpuUsage != nil { dAtA[i] = 0xa i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.Data))) - i += copy(dAtA[i:], m.Data) + i = encodeVarintAgent(dAtA, i, uint64(m.CpuUsage.Size())) + n7, err := m.CpuUsage.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n7 + } + if m.ThrottlingData != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintAgent(dAtA, i, uint64(m.ThrottlingData.Size())) + n8, err := m.ThrottlingData.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n8 } return i, nil } -func (m *CloseStdinRequest) Marshal() (dAtA []byte, err error) { +func (m *PidsStats) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) @@ -2194,27 +2718,25 @@ func (m *CloseStdinRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *CloseStdinRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *PidsStats) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - if len(m.ContainerId) > 0 { - dAtA[i] = 0xa + if m.Current != 0 { + dAtA[i] = 0x8 i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.ContainerId))) - i += copy(dAtA[i:], m.ContainerId) + i = encodeVarintAgent(dAtA, i, uint64(m.Current)) } - if len(m.ExecId) > 0 { - dAtA[i] = 0x12 + if m.Limit != 0 { + dAtA[i] = 0x10 i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.ExecId))) - i += copy(dAtA[i:], m.ExecId) + i = encodeVarintAgent(dAtA, i, uint64(m.Limit)) } return i, nil } -func (m *TtyWinResizeRequest) Marshal() (dAtA []byte, err error) { +func (m *MemoryData) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) @@ -2224,37 +2746,35 @@ func (m *TtyWinResizeRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *TtyWinResizeRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *MemoryData) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - if len(m.ContainerId) > 0 { - dAtA[i] = 0xa + if m.Usage != 0 { + dAtA[i] = 0x8 i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.ContainerId))) - i += copy(dAtA[i:], m.ContainerId) + i = encodeVarintAgent(dAtA, i, uint64(m.Usage)) } - if len(m.ExecId) > 0 { - dAtA[i] = 0x12 + if m.MaxUsage != 0 { + dAtA[i] = 0x10 i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.ExecId))) - i += copy(dAtA[i:], m.ExecId) + i = encodeVarintAgent(dAtA, i, uint64(m.MaxUsage)) } - if m.Row != 0 { + if m.Failcnt != 0 { dAtA[i] = 0x18 i++ - i = encodeVarintAgent(dAtA, i, uint64(m.Row)) + i = encodeVarintAgent(dAtA, i, uint64(m.Failcnt)) } - if m.Column != 0 { + if m.Limit != 0 { dAtA[i] = 0x20 i++ - i = encodeVarintAgent(dAtA, i, uint64(m.Column)) + i = encodeVarintAgent(dAtA, i, uint64(m.Limit)) } return i, nil } -func (m *CreateSandboxRequest) Marshal() (dAtA []byte, err error) { +func (m *MemoryStats) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) @@ -2264,76 +2784,76 @@ func (m *CreateSandboxRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *CreateSandboxRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *MemoryStats) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - if len(m.Hostname) > 0 { - dAtA[i] = 0xa + if m.Cache != 0 { + dAtA[i] = 0x8 i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.Hostname))) - i += copy(dAtA[i:], m.Hostname) + i = encodeVarintAgent(dAtA, i, uint64(m.Cache)) } - if len(m.Dns) > 0 { - for _, s := range m.Dns { - dAtA[i] = 0x12 - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) + if m.Usage != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintAgent(dAtA, i, uint64(m.Usage.Size())) + n9, err := m.Usage.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n9 } - if len(m.Storages) > 0 { - for _, msg := range m.Storages { - dAtA[i] = 0x1a - i++ - i = encodeVarintAgent(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n + if m.SwapUsage != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintAgent(dAtA, i, uint64(m.SwapUsage.Size())) + n10, err := m.SwapUsage.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n10 } - if m.SandboxPidns { - dAtA[i] = 0x20 + if m.KernelUsage != nil { + dAtA[i] = 0x22 i++ - if m.SandboxPidns { + i = encodeVarintAgent(dAtA, i, uint64(m.KernelUsage.Size())) + n11, err := m.KernelUsage.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n11 + } + if m.UseHierarchy { + dAtA[i] = 0x28 + i++ + if m.UseHierarchy { dAtA[i] = 1 } else { dAtA[i] = 0 } i++ } - return i, nil -} - -func (m *DestroySandboxRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err + if len(m.Stats) > 0 { + for k, _ := range m.Stats { + dAtA[i] = 0x32 + i++ + v := m.Stats[k] + mapSize := 1 + len(k) + sovAgent(uint64(len(k))) + 1 + sovAgent(uint64(v)) + i = encodeVarintAgent(dAtA, i, uint64(mapSize)) + dAtA[i] = 0xa + i++ + i = encodeVarintAgent(dAtA, i, uint64(len(k))) + i += copy(dAtA[i:], k) + dAtA[i] = 0x10 + i++ + i = encodeVarintAgent(dAtA, i, uint64(v)) + } } - return dAtA[:n], nil -} - -func (m *DestroySandboxRequest) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l return i, nil } -func (m *IPAddress) Marshal() (dAtA []byte, err error) { +func (m *BlkioStatsEntry) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) @@ -2343,32 +2863,36 @@ func (m *IPAddress) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *IPAddress) MarshalTo(dAtA []byte) (int, error) { +func (m *BlkioStatsEntry) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - if m.Family != 0 { + if m.Major != 0 { dAtA[i] = 0x8 i++ - i = encodeVarintAgent(dAtA, i, uint64(m.Family)) + i = encodeVarintAgent(dAtA, i, uint64(m.Major)) } - if len(m.Address) > 0 { - dAtA[i] = 0x12 + if m.Minor != 0 { + dAtA[i] = 0x10 i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.Address))) - i += copy(dAtA[i:], m.Address) + i = encodeVarintAgent(dAtA, i, uint64(m.Minor)) } - if len(m.Mask) > 0 { + if len(m.Op) > 0 { dAtA[i] = 0x1a i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.Mask))) - i += copy(dAtA[i:], m.Mask) + i = encodeVarintAgent(dAtA, i, uint64(len(m.Op))) + i += copy(dAtA[i:], m.Op) + } + if m.Value != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintAgent(dAtA, i, uint64(m.Value)) } return i, nil } -func (m *Interface) Marshal() (dAtA []byte, err error) { +func (m *BlkioStats) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) @@ -2378,25 +2902,37 @@ func (m *Interface) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Interface) MarshalTo(dAtA []byte) (int, error) { +func (m *BlkioStats) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - if len(m.Device) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.Device))) - i += copy(dAtA[i:], m.Device) + if len(m.IoServiceBytesRecursive) > 0 { + for _, msg := range m.IoServiceBytesRecursive { + dAtA[i] = 0xa + i++ + i = encodeVarintAgent(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } } - if len(m.Name) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) + if len(m.IoServicedRecursive) > 0 { + for _, msg := range m.IoServicedRecursive { + dAtA[i] = 0x12 + i++ + i = encodeVarintAgent(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } } - if len(m.IPAddresses) > 0 { - for _, msg := range m.IPAddresses { + if len(m.IoQueuedRecursive) > 0 { + for _, msg := range m.IoQueuedRecursive { dAtA[i] = 0x1a i++ i = encodeVarintAgent(dAtA, i, uint64(msg.Size())) @@ -2407,21 +2943,70 @@ func (m *Interface) MarshalTo(dAtA []byte) (int, error) { i += n } } - if m.Mtu != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintAgent(dAtA, i, uint64(m.Mtu)) + if len(m.IoServiceTimeRecursive) > 0 { + for _, msg := range m.IoServiceTimeRecursive { + dAtA[i] = 0x22 + i++ + i = encodeVarintAgent(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } } - if len(m.HwAddr) > 0 { - dAtA[i] = 0x2a - i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.HwAddr))) - i += copy(dAtA[i:], m.HwAddr) + if len(m.IoWaitTimeRecursive) > 0 { + for _, msg := range m.IoWaitTimeRecursive { + dAtA[i] = 0x2a + i++ + i = encodeVarintAgent(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } } - return i, nil + if len(m.IoMergedRecursive) > 0 { + for _, msg := range m.IoMergedRecursive { + dAtA[i] = 0x32 + i++ + i = encodeVarintAgent(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if len(m.IoTimeRecursive) > 0 { + for _, msg := range m.IoTimeRecursive { + dAtA[i] = 0x3a + i++ + i = encodeVarintAgent(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if len(m.SectorsRecursive) > 0 { + for _, msg := range m.SectorsRecursive { + dAtA[i] = 0x42 + i++ + i = encodeVarintAgent(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil } -func (m *Route) Marshal() (dAtA []byte, err error) { +func (m *HugetlbStats) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) @@ -2431,44 +3016,30 @@ func (m *Route) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Route) MarshalTo(dAtA []byte) (int, error) { +func (m *HugetlbStats) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - if len(m.Dest) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.Dest))) - i += copy(dAtA[i:], m.Dest) - } - if len(m.Gateway) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.Gateway))) - i += copy(dAtA[i:], m.Gateway) - } - if len(m.Device) > 0 { - dAtA[i] = 0x1a + if m.Usage != 0 { + dAtA[i] = 0x8 i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.Device))) - i += copy(dAtA[i:], m.Device) + i = encodeVarintAgent(dAtA, i, uint64(m.Usage)) } - if len(m.Source) > 0 { - dAtA[i] = 0x22 + if m.MaxUsage != 0 { + dAtA[i] = 0x10 i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.Source))) - i += copy(dAtA[i:], m.Source) + i = encodeVarintAgent(dAtA, i, uint64(m.MaxUsage)) } - if m.Scope != 0 { - dAtA[i] = 0x28 + if m.Failcnt != 0 { + dAtA[i] = 0x18 i++ - i = encodeVarintAgent(dAtA, i, uint64(m.Scope)) + i = encodeVarintAgent(dAtA, i, uint64(m.Failcnt)) } return i, nil } -func (m *Routes) Marshal() (dAtA []byte, err error) { +func (m *CgroupStats) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) @@ -2478,27 +3049,83 @@ func (m *Routes) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Routes) MarshalTo(dAtA []byte) (int, error) { +func (m *CgroupStats) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - if len(m.Routes) > 0 { - for _, msg := range m.Routes { + if m.CpuStats != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintAgent(dAtA, i, uint64(m.CpuStats.Size())) + n12, err := m.CpuStats.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n12 + } + if m.MemoryStats != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintAgent(dAtA, i, uint64(m.MemoryStats.Size())) + n13, err := m.MemoryStats.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n13 + } + if m.PidsStats != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintAgent(dAtA, i, uint64(m.PidsStats.Size())) + n14, err := m.PidsStats.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n14 + } + if m.BlkioStats != nil { + dAtA[i] = 0x22 + i++ + i = encodeVarintAgent(dAtA, i, uint64(m.BlkioStats.Size())) + n15, err := m.BlkioStats.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n15 + } + if len(m.HugetlbStats) > 0 { + for k, _ := range m.HugetlbStats { + dAtA[i] = 0x2a + i++ + v := m.HugetlbStats[k] + msgSize := 0 + if v != nil { + msgSize = v.Size() + msgSize += 1 + sovAgent(uint64(msgSize)) + } + mapSize := 1 + len(k) + sovAgent(uint64(len(k))) + msgSize + i = encodeVarintAgent(dAtA, i, uint64(mapSize)) dAtA[i] = 0xa i++ - i = encodeVarintAgent(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + i = encodeVarintAgent(dAtA, i, uint64(len(k))) + i += copy(dAtA[i:], k) + if v != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintAgent(dAtA, i, uint64(v.Size())) + n16, err := v.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n16 } - i += n } } return i, nil } -func (m *UpdateInterfaceRequest) Marshal() (dAtA []byte, err error) { +func (m *StatsContainerResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) @@ -2508,25 +3135,25 @@ func (m *UpdateInterfaceRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *UpdateInterfaceRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *StatsContainerResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - if m.Interface != nil { + if m.CgroupStats != nil { dAtA[i] = 0xa i++ - i = encodeVarintAgent(dAtA, i, uint64(m.Interface.Size())) - n5, err := m.Interface.MarshalTo(dAtA[i:]) + i = encodeVarintAgent(dAtA, i, uint64(m.CgroupStats.Size())) + n17, err := m.CgroupStats.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n5 + i += n17 } return i, nil } -func (m *AddInterfaceRequest) Marshal() (dAtA []byte, err error) { +func (m *WriteStreamRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) @@ -2536,25 +3163,33 @@ func (m *AddInterfaceRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *AddInterfaceRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *WriteStreamRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - if m.Interface != nil { + if len(m.ContainerId) > 0 { dAtA[i] = 0xa i++ - i = encodeVarintAgent(dAtA, i, uint64(m.Interface.Size())) - n6, err := m.Interface.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n6 + i = encodeVarintAgent(dAtA, i, uint64(len(m.ContainerId))) + i += copy(dAtA[i:], m.ContainerId) + } + if len(m.ExecId) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintAgent(dAtA, i, uint64(len(m.ExecId))) + i += copy(dAtA[i:], m.ExecId) + } + if len(m.Data) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintAgent(dAtA, i, uint64(len(m.Data))) + i += copy(dAtA[i:], m.Data) } return i, nil } -func (m *RemoveInterfaceRequest) Marshal() (dAtA []byte, err error) { +func (m *WriteStreamResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) @@ -2564,25 +3199,20 @@ func (m *RemoveInterfaceRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RemoveInterfaceRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *WriteStreamResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - if m.Interface != nil { - dAtA[i] = 0xa + if m.Len != 0 { + dAtA[i] = 0x8 i++ - i = encodeVarintAgent(dAtA, i, uint64(m.Interface.Size())) - n7, err := m.Interface.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n7 + i = encodeVarintAgent(dAtA, i, uint64(m.Len)) } return i, nil } -func (m *UpdateRoutesRequest) Marshal() (dAtA []byte, err error) { +func (m *ReadStreamRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) @@ -2592,25 +3222,32 @@ func (m *UpdateRoutesRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *UpdateRoutesRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *ReadStreamRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - if m.Routes != nil { + if len(m.ContainerId) > 0 { dAtA[i] = 0xa i++ - i = encodeVarintAgent(dAtA, i, uint64(m.Routes.Size())) - n8, err := m.Routes.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n8 + i = encodeVarintAgent(dAtA, i, uint64(len(m.ContainerId))) + i += copy(dAtA[i:], m.ContainerId) + } + if len(m.ExecId) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintAgent(dAtA, i, uint64(len(m.ExecId))) + i += copy(dAtA[i:], m.ExecId) + } + if m.Len != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintAgent(dAtA, i, uint64(m.Len)) } return i, nil } -func (m *OnlineCPUMemRequest) Marshal() (dAtA []byte, err error) { +func (m *ReadStreamResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) @@ -2620,30 +3257,21 @@ func (m *OnlineCPUMemRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *OnlineCPUMemRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *ReadStreamResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - if m.Wait { - dAtA[i] = 0x8 - i++ - if m.Wait { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - } - if m.NbCpus != 0 { - dAtA[i] = 0x10 + if len(m.Data) > 0 { + dAtA[i] = 0xa i++ - i = encodeVarintAgent(dAtA, i, uint64(m.NbCpus)) + i = encodeVarintAgent(dAtA, i, uint64(len(m.Data))) + i += copy(dAtA[i:], m.Data) } return i, nil } -func (m *Storage) Marshal() (dAtA []byte, err error) { +func (m *CloseStdinRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) @@ -2653,69 +3281,27 @@ func (m *Storage) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Storage) MarshalTo(dAtA []byte) (int, error) { +func (m *CloseStdinRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - if len(m.Driver) > 0 { + if len(m.ContainerId) > 0 { dAtA[i] = 0xa i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.Driver))) - i += copy(dAtA[i:], m.Driver) - } - if len(m.DriverOptions) > 0 { - for _, s := range m.DriverOptions { - dAtA[i] = 0x12 - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - if len(m.Source) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.Source))) - i += copy(dAtA[i:], m.Source) - } - if len(m.Fstype) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.Fstype))) - i += copy(dAtA[i:], m.Fstype) - } - if len(m.Options) > 0 { - for _, s := range m.Options { - dAtA[i] = 0x2a - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } + i = encodeVarintAgent(dAtA, i, uint64(len(m.ContainerId))) + i += copy(dAtA[i:], m.ContainerId) } - if len(m.MountPoint) > 0 { - dAtA[i] = 0x32 + if len(m.ExecId) > 0 { + dAtA[i] = 0x12 i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.MountPoint))) - i += copy(dAtA[i:], m.MountPoint) + i = encodeVarintAgent(dAtA, i, uint64(len(m.ExecId))) + i += copy(dAtA[i:], m.ExecId) } return i, nil } -func (m *Device) Marshal() (dAtA []byte, err error) { +func (m *TtyWinResizeRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) @@ -2725,54 +3311,37 @@ func (m *Device) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Device) MarshalTo(dAtA []byte) (int, error) { +func (m *TtyWinResizeRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - if len(m.Id) > 0 { + if len(m.ContainerId) > 0 { dAtA[i] = 0xa i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.Id))) - i += copy(dAtA[i:], m.Id) + i = encodeVarintAgent(dAtA, i, uint64(len(m.ContainerId))) + i += copy(dAtA[i:], m.ContainerId) } - if len(m.Type) > 0 { + if len(m.ExecId) > 0 { dAtA[i] = 0x12 i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.Type))) - i += copy(dAtA[i:], m.Type) + i = encodeVarintAgent(dAtA, i, uint64(len(m.ExecId))) + i += copy(dAtA[i:], m.ExecId) } - if len(m.VmPath) > 0 { - dAtA[i] = 0x1a + if m.Row != 0 { + dAtA[i] = 0x18 i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.VmPath))) - i += copy(dAtA[i:], m.VmPath) + i = encodeVarintAgent(dAtA, i, uint64(m.Row)) } - if len(m.ContainerPath) > 0 { - dAtA[i] = 0x22 + if m.Column != 0 { + dAtA[i] = 0x20 i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.ContainerPath))) - i += copy(dAtA[i:], m.ContainerPath) - } - if len(m.Options) > 0 { - for _, s := range m.Options { - dAtA[i] = 0x2a - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } + i = encodeVarintAgent(dAtA, i, uint64(m.Column)) } return i, nil } -func (m *StringUser) Marshal() (dAtA []byte, err error) { +func (m *CreateSandboxRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) @@ -2782,26 +3351,20 @@ func (m *StringUser) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *StringUser) MarshalTo(dAtA []byte) (int, error) { +func (m *CreateSandboxRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - if len(m.Uid) > 0 { + if len(m.Hostname) > 0 { dAtA[i] = 0xa i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.Uid))) - i += copy(dAtA[i:], m.Uid) - } - if len(m.Gid) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.Gid))) - i += copy(dAtA[i:], m.Gid) + i = encodeVarintAgent(dAtA, i, uint64(len(m.Hostname))) + i += copy(dAtA[i:], m.Hostname) } - if len(m.AdditionalGids) > 0 { - for _, s := range m.AdditionalGids { - dAtA[i] = 0x1a + if len(m.Dns) > 0 { + for _, s := range m.Dns { + dAtA[i] = 0x12 i++ l = len(s) for l >= 1<<7 { @@ -2814,515 +3377,2963 @@ func (m *StringUser) MarshalTo(dAtA []byte) (int, error) { i += copy(dAtA[i:], s) } } - return i, nil -} - -func encodeVarintAgent(dAtA []byte, offset int, v uint64) int { - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return offset + 1 -} -func (m *CreateContainerRequest) Size() (n int) { - var l int - _ = l - l = len(m.ContainerId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.ExecId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.StringUser != nil { - l = m.StringUser.Size() - n += 1 + l + sovAgent(uint64(l)) - } - if len(m.Devices) > 0 { - for _, e := range m.Devices { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } - } if len(m.Storages) > 0 { - for _, e := range m.Storages { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) + for _, msg := range m.Storages { + dAtA[i] = 0x1a + i++ + i = encodeVarintAgent(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } } - if m.OCI != nil { - l = m.OCI.Size() - n += 1 + l + sovAgent(uint64(l)) + if m.SandboxPidns { + dAtA[i] = 0x20 + i++ + if m.SandboxPidns { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ } - return n + return i, nil } -func (m *StartContainerRequest) Size() (n int) { - var l int - _ = l - l = len(m.ContainerId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +func (m *DestroySandboxRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *RemoveContainerRequest) Size() (n int) { +func (m *DestroySandboxRequest) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i var l int _ = l - l = len(m.ContainerId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.Timeout != 0 { - n += 1 + sovAgent(uint64(m.Timeout)) + return i, nil +} + +func (m *IPAddress) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *ExecProcessRequest) Size() (n int) { +func (m *IPAddress) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i var l int _ = l - l = len(m.ContainerId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + if m.Family != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintAgent(dAtA, i, uint64(m.Family)) } - l = len(m.ExecId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + if len(m.Address) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintAgent(dAtA, i, uint64(len(m.Address))) + i += copy(dAtA[i:], m.Address) } - if m.StringUser != nil { - l = m.StringUser.Size() - n += 1 + l + sovAgent(uint64(l)) + if len(m.Mask) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintAgent(dAtA, i, uint64(len(m.Mask))) + i += copy(dAtA[i:], m.Mask) } - if m.Process != nil { - l = m.Process.Size() - n += 1 + l + sovAgent(uint64(l)) + return i, nil +} + +func (m *Interface) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *SignalProcessRequest) Size() (n int) { +func (m *Interface) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i var l int _ = l - l = len(m.ContainerId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + if len(m.Device) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintAgent(dAtA, i, uint64(len(m.Device))) + i += copy(dAtA[i:], m.Device) } - l = len(m.ExecId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + if len(m.Name) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintAgent(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) } - if m.Signal != 0 { - n += 1 + sovAgent(uint64(m.Signal)) + if len(m.IPAddresses) > 0 { + for _, msg := range m.IPAddresses { + dAtA[i] = 0x1a + i++ + i = encodeVarintAgent(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } } - return n + if m.Mtu != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintAgent(dAtA, i, uint64(m.Mtu)) + } + if len(m.HwAddr) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintAgent(dAtA, i, uint64(len(m.HwAddr))) + i += copy(dAtA[i:], m.HwAddr) + } + return i, nil } -func (m *WaitProcessRequest) Size() (n int) { - var l int - _ = l - l = len(m.ContainerId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.ExecId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +func (m *Route) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *WaitProcessResponse) Size() (n int) { +func (m *Route) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i var l int _ = l - if m.Status != 0 { - n += 1 + sovAgent(uint64(m.Status)) + if len(m.Dest) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintAgent(dAtA, i, uint64(len(m.Dest))) + i += copy(dAtA[i:], m.Dest) } - return n -} - -func (m *ListProcessesRequest) Size() (n int) { - var l int - _ = l - l = len(m.ContainerId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + if len(m.Gateway) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintAgent(dAtA, i, uint64(len(m.Gateway))) + i += copy(dAtA[i:], m.Gateway) } - l = len(m.Format) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + if len(m.Device) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintAgent(dAtA, i, uint64(len(m.Device))) + i += copy(dAtA[i:], m.Device) } - if len(m.Args) > 0 { - for _, s := range m.Args { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) - } + if len(m.Source) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintAgent(dAtA, i, uint64(len(m.Source))) + i += copy(dAtA[i:], m.Source) } - return n + if m.Scope != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintAgent(dAtA, i, uint64(m.Scope)) + } + return i, nil } -func (m *ListProcessesResponse) Size() (n int) { - var l int - _ = l - l = len(m.ProcessList) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +func (m *Routes) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *WriteStreamRequest) Size() (n int) { +func (m *Routes) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i var l int _ = l - l = len(m.ContainerId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.ExecId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Data) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + if len(m.Routes) > 0 { + for _, msg := range m.Routes { + dAtA[i] = 0xa + i++ + i = encodeVarintAgent(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } } - return n + return i, nil } -func (m *WriteStreamResponse) Size() (n int) { - var l int - _ = l - if m.Len != 0 { - n += 1 + sovAgent(uint64(m.Len)) +func (m *UpdateInterfaceRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *ReadStreamRequest) Size() (n int) { +func (m *UpdateInterfaceRequest) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i var l int _ = l - l = len(m.ContainerId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.ExecId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.Len != 0 { - n += 1 + sovAgent(uint64(m.Len)) + if m.Interface != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintAgent(dAtA, i, uint64(m.Interface.Size())) + n18, err := m.Interface.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n18 } - return n + return i, nil } -func (m *ReadStreamResponse) Size() (n int) { - var l int - _ = l - l = len(m.Data) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +func (m *AddInterfaceRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *CloseStdinRequest) Size() (n int) { +func (m *AddInterfaceRequest) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i var l int _ = l - l = len(m.ContainerId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + if m.Interface != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintAgent(dAtA, i, uint64(m.Interface.Size())) + n19, err := m.Interface.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n19 } - l = len(m.ExecId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + return i, nil +} + +func (m *RemoveInterfaceRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *TtyWinResizeRequest) Size() (n int) { +func (m *RemoveInterfaceRequest) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i var l int _ = l - l = len(m.ContainerId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.ExecId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.Row != 0 { - n += 1 + sovAgent(uint64(m.Row)) + if m.Interface != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintAgent(dAtA, i, uint64(m.Interface.Size())) + n20, err := m.Interface.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n20 } - if m.Column != 0 { - n += 1 + sovAgent(uint64(m.Column)) + return i, nil +} + +func (m *UpdateRoutesRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *CreateSandboxRequest) Size() (n int) { +func (m *UpdateRoutesRequest) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i var l int _ = l - l = len(m.Hostname) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if len(m.Dns) > 0 { - for _, s := range m.Dns { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) - } - } - if len(m.Storages) > 0 { - for _, e := range m.Storages { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) + if m.Routes != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintAgent(dAtA, i, uint64(m.Routes.Size())) + n21, err := m.Routes.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n21 } - if m.SandboxPidns { - n += 2 - } - return n + return i, nil } -func (m *DestroySandboxRequest) Size() (n int) { - var l int - _ = l - return n +func (m *OnlineCPUMemRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil } -func (m *IPAddress) Size() (n int) { +func (m *OnlineCPUMemRequest) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i var l int _ = l - if m.Family != 0 { - n += 1 + sovAgent(uint64(m.Family)) + if m.Wait { + dAtA[i] = 0x8 + i++ + if m.Wait { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ } - l = len(m.Address) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + if m.NbCpus != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintAgent(dAtA, i, uint64(m.NbCpus)) } - l = len(m.Mask) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + return i, nil +} + +func (m *Storage) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *Interface) Size() (n int) { +func (m *Storage) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i var l int _ = l - l = len(m.Device) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + if len(m.Driver) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintAgent(dAtA, i, uint64(len(m.Driver))) + i += copy(dAtA[i:], m.Driver) } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + if len(m.DriverOptions) > 0 { + for _, s := range m.DriverOptions { + dAtA[i] = 0x12 + i++ + l = len(s) + for l >= 1<<7 { + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + dAtA[i] = uint8(l) + i++ + i += copy(dAtA[i:], s) + } } - if len(m.IPAddresses) > 0 { - for _, e := range m.IPAddresses { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) + if len(m.Source) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintAgent(dAtA, i, uint64(len(m.Source))) + i += copy(dAtA[i:], m.Source) + } + if len(m.Fstype) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintAgent(dAtA, i, uint64(len(m.Fstype))) + i += copy(dAtA[i:], m.Fstype) + } + if len(m.Options) > 0 { + for _, s := range m.Options { + dAtA[i] = 0x2a + i++ + l = len(s) + for l >= 1<<7 { + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + dAtA[i] = uint8(l) + i++ + i += copy(dAtA[i:], s) } } - if m.Mtu != 0 { - n += 1 + sovAgent(uint64(m.Mtu)) + if len(m.MountPoint) > 0 { + dAtA[i] = 0x32 + i++ + i = encodeVarintAgent(dAtA, i, uint64(len(m.MountPoint))) + i += copy(dAtA[i:], m.MountPoint) } - l = len(m.HwAddr) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + return i, nil +} + +func (m *Device) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *Route) Size() (n int) { +func (m *Device) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i var l int _ = l - l = len(m.Dest) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + if len(m.Id) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintAgent(dAtA, i, uint64(len(m.Id))) + i += copy(dAtA[i:], m.Id) } - l = len(m.Gateway) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + if len(m.Type) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintAgent(dAtA, i, uint64(len(m.Type))) + i += copy(dAtA[i:], m.Type) } - l = len(m.Device) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + if len(m.VmPath) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintAgent(dAtA, i, uint64(len(m.VmPath))) + i += copy(dAtA[i:], m.VmPath) } - l = len(m.Source) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + if len(m.ContainerPath) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintAgent(dAtA, i, uint64(len(m.ContainerPath))) + i += copy(dAtA[i:], m.ContainerPath) } - if m.Scope != 0 { - n += 1 + sovAgent(uint64(m.Scope)) + if len(m.Options) > 0 { + for _, s := range m.Options { + dAtA[i] = 0x2a + i++ + l = len(s) + for l >= 1<<7 { + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + dAtA[i] = uint8(l) + i++ + i += copy(dAtA[i:], s) + } } - return n + return i, nil } -func (m *Routes) Size() (n int) { +func (m *StringUser) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *StringUser) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i var l int _ = l - if len(m.Routes) > 0 { - for _, e := range m.Routes { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) + if len(m.Uid) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintAgent(dAtA, i, uint64(len(m.Uid))) + i += copy(dAtA[i:], m.Uid) + } + if len(m.Gid) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintAgent(dAtA, i, uint64(len(m.Gid))) + i += copy(dAtA[i:], m.Gid) + } + if len(m.AdditionalGids) > 0 { + for _, s := range m.AdditionalGids { + dAtA[i] = 0x1a + i++ + l = len(s) + for l >= 1<<7 { + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + dAtA[i] = uint8(l) + i++ + i += copy(dAtA[i:], s) } } - return n + return i, nil } -func (m *UpdateInterfaceRequest) Size() (n int) { +func encodeVarintAgent(dAtA []byte, offset int, v uint64) int { + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return offset + 1 +} +func (m *CreateContainerRequest) Size() (n int) { var l int _ = l - if m.Interface != nil { - l = m.Interface.Size() + l = len(m.ContainerId) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + l = len(m.ExecId) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + if m.StringUser != nil { + l = m.StringUser.Size() + n += 1 + l + sovAgent(uint64(l)) + } + if len(m.Devices) > 0 { + for _, e := range m.Devices { + l = e.Size() + n += 1 + l + sovAgent(uint64(l)) + } + } + if len(m.Storages) > 0 { + for _, e := range m.Storages { + l = e.Size() + n += 1 + l + sovAgent(uint64(l)) + } + } + if m.OCI != nil { + l = m.OCI.Size() n += 1 + l + sovAgent(uint64(l)) } return n } -func (m *AddInterfaceRequest) Size() (n int) { +func (m *StartContainerRequest) Size() (n int) { var l int _ = l - if m.Interface != nil { - l = m.Interface.Size() + l = len(m.ContainerId) + if l > 0 { n += 1 + l + sovAgent(uint64(l)) } return n } -func (m *RemoveInterfaceRequest) Size() (n int) { +func (m *RemoveContainerRequest) Size() (n int) { var l int _ = l - if m.Interface != nil { - l = m.Interface.Size() + l = len(m.ContainerId) + if l > 0 { n += 1 + l + sovAgent(uint64(l)) } + if m.Timeout != 0 { + n += 1 + sovAgent(uint64(m.Timeout)) + } return n } -func (m *UpdateRoutesRequest) Size() (n int) { +func (m *ExecProcessRequest) Size() (n int) { var l int _ = l - if m.Routes != nil { - l = m.Routes.Size() + l = len(m.ContainerId) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + l = len(m.ExecId) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + if m.StringUser != nil { + l = m.StringUser.Size() + n += 1 + l + sovAgent(uint64(l)) + } + if m.Process != nil { + l = m.Process.Size() n += 1 + l + sovAgent(uint64(l)) } return n } -func (m *OnlineCPUMemRequest) Size() (n int) { +func (m *SignalProcessRequest) Size() (n int) { var l int _ = l - if m.Wait { - n += 2 + l = len(m.ContainerId) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) } - if m.NbCpus != 0 { - n += 1 + sovAgent(uint64(m.NbCpus)) + l = len(m.ExecId) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + if m.Signal != 0 { + n += 1 + sovAgent(uint64(m.Signal)) } return n } -func (m *Storage) Size() (n int) { +func (m *WaitProcessRequest) Size() (n int) { var l int _ = l - l = len(m.Driver) + l = len(m.ContainerId) if l > 0 { n += 1 + l + sovAgent(uint64(l)) } - if len(m.DriverOptions) > 0 { - for _, s := range m.DriverOptions { + l = len(m.ExecId) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + return n +} + +func (m *WaitProcessResponse) Size() (n int) { + var l int + _ = l + if m.Status != 0 { + n += 1 + sovAgent(uint64(m.Status)) + } + return n +} + +func (m *ListProcessesRequest) Size() (n int) { + var l int + _ = l + l = len(m.ContainerId) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + l = len(m.Format) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + if len(m.Args) > 0 { + for _, s := range m.Args { l = len(s) n += 1 + l + sovAgent(uint64(l)) } } - l = len(m.Source) + return n +} + +func (m *ListProcessesResponse) Size() (n int) { + var l int + _ = l + l = len(m.ProcessList) if l > 0 { n += 1 + l + sovAgent(uint64(l)) } - l = len(m.Fstype) + return n +} + +func (m *StatsContainerRequest) Size() (n int) { + var l int + _ = l + l = len(m.ContainerId) if l > 0 { n += 1 + l + sovAgent(uint64(l)) } - if len(m.Options) > 0 { - for _, s := range m.Options { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) + return n +} + +func (m *CpuUsage) Size() (n int) { + var l int + _ = l + if m.TotalUsage != 0 { + n += 1 + sovAgent(uint64(m.TotalUsage)) + } + if len(m.PercpuUsage) > 0 { + l = 0 + for _, e := range m.PercpuUsage { + l += sovAgent(uint64(e)) } + n += 1 + sovAgent(uint64(l)) + l } - l = len(m.MountPoint) + if m.UsageInKernelmode != 0 { + n += 1 + sovAgent(uint64(m.UsageInKernelmode)) + } + if m.UsageInUsermode != 0 { + n += 1 + sovAgent(uint64(m.UsageInUsermode)) + } + return n +} + +func (m *ThrottlingData) Size() (n int) { + var l int + _ = l + if m.Periods != 0 { + n += 1 + sovAgent(uint64(m.Periods)) + } + if m.ThrottledPeriods != 0 { + n += 1 + sovAgent(uint64(m.ThrottledPeriods)) + } + if m.ThrottledTime != 0 { + n += 1 + sovAgent(uint64(m.ThrottledTime)) + } + return n +} + +func (m *CpuStats) Size() (n int) { + var l int + _ = l + if m.CpuUsage != nil { + l = m.CpuUsage.Size() + n += 1 + l + sovAgent(uint64(l)) + } + if m.ThrottlingData != nil { + l = m.ThrottlingData.Size() + n += 1 + l + sovAgent(uint64(l)) + } + return n +} + +func (m *PidsStats) Size() (n int) { + var l int + _ = l + if m.Current != 0 { + n += 1 + sovAgent(uint64(m.Current)) + } + if m.Limit != 0 { + n += 1 + sovAgent(uint64(m.Limit)) + } + return n +} + +func (m *MemoryData) Size() (n int) { + var l int + _ = l + if m.Usage != 0 { + n += 1 + sovAgent(uint64(m.Usage)) + } + if m.MaxUsage != 0 { + n += 1 + sovAgent(uint64(m.MaxUsage)) + } + if m.Failcnt != 0 { + n += 1 + sovAgent(uint64(m.Failcnt)) + } + if m.Limit != 0 { + n += 1 + sovAgent(uint64(m.Limit)) + } + return n +} + +func (m *MemoryStats) Size() (n int) { + var l int + _ = l + if m.Cache != 0 { + n += 1 + sovAgent(uint64(m.Cache)) + } + if m.Usage != nil { + l = m.Usage.Size() + n += 1 + l + sovAgent(uint64(l)) + } + if m.SwapUsage != nil { + l = m.SwapUsage.Size() + n += 1 + l + sovAgent(uint64(l)) + } + if m.KernelUsage != nil { + l = m.KernelUsage.Size() + n += 1 + l + sovAgent(uint64(l)) + } + if m.UseHierarchy { + n += 2 + } + if len(m.Stats) > 0 { + for k, v := range m.Stats { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sovAgent(uint64(len(k))) + 1 + sovAgent(uint64(v)) + n += mapEntrySize + 1 + sovAgent(uint64(mapEntrySize)) + } + } + return n +} + +func (m *BlkioStatsEntry) Size() (n int) { + var l int + _ = l + if m.Major != 0 { + n += 1 + sovAgent(uint64(m.Major)) + } + if m.Minor != 0 { + n += 1 + sovAgent(uint64(m.Minor)) + } + l = len(m.Op) if l > 0 { n += 1 + l + sovAgent(uint64(l)) } + if m.Value != 0 { + n += 1 + sovAgent(uint64(m.Value)) + } return n } -func (m *Device) Size() (n int) { +func (m *BlkioStats) Size() (n int) { var l int _ = l - l = len(m.Id) + if len(m.IoServiceBytesRecursive) > 0 { + for _, e := range m.IoServiceBytesRecursive { + l = e.Size() + n += 1 + l + sovAgent(uint64(l)) + } + } + if len(m.IoServicedRecursive) > 0 { + for _, e := range m.IoServicedRecursive { + l = e.Size() + n += 1 + l + sovAgent(uint64(l)) + } + } + if len(m.IoQueuedRecursive) > 0 { + for _, e := range m.IoQueuedRecursive { + l = e.Size() + n += 1 + l + sovAgent(uint64(l)) + } + } + if len(m.IoServiceTimeRecursive) > 0 { + for _, e := range m.IoServiceTimeRecursive { + l = e.Size() + n += 1 + l + sovAgent(uint64(l)) + } + } + if len(m.IoWaitTimeRecursive) > 0 { + for _, e := range m.IoWaitTimeRecursive { + l = e.Size() + n += 1 + l + sovAgent(uint64(l)) + } + } + if len(m.IoMergedRecursive) > 0 { + for _, e := range m.IoMergedRecursive { + l = e.Size() + n += 1 + l + sovAgent(uint64(l)) + } + } + if len(m.IoTimeRecursive) > 0 { + for _, e := range m.IoTimeRecursive { + l = e.Size() + n += 1 + l + sovAgent(uint64(l)) + } + } + if len(m.SectorsRecursive) > 0 { + for _, e := range m.SectorsRecursive { + l = e.Size() + n += 1 + l + sovAgent(uint64(l)) + } + } + return n +} + +func (m *HugetlbStats) Size() (n int) { + var l int + _ = l + if m.Usage != 0 { + n += 1 + sovAgent(uint64(m.Usage)) + } + if m.MaxUsage != 0 { + n += 1 + sovAgent(uint64(m.MaxUsage)) + } + if m.Failcnt != 0 { + n += 1 + sovAgent(uint64(m.Failcnt)) + } + return n +} + +func (m *CgroupStats) Size() (n int) { + var l int + _ = l + if m.CpuStats != nil { + l = m.CpuStats.Size() + n += 1 + l + sovAgent(uint64(l)) + } + if m.MemoryStats != nil { + l = m.MemoryStats.Size() + n += 1 + l + sovAgent(uint64(l)) + } + if m.PidsStats != nil { + l = m.PidsStats.Size() + n += 1 + l + sovAgent(uint64(l)) + } + if m.BlkioStats != nil { + l = m.BlkioStats.Size() + n += 1 + l + sovAgent(uint64(l)) + } + if len(m.HugetlbStats) > 0 { + for k, v := range m.HugetlbStats { + _ = k + _ = v + l = 0 + if v != nil { + l = v.Size() + l += 1 + sovAgent(uint64(l)) + } + mapEntrySize := 1 + len(k) + sovAgent(uint64(len(k))) + l + n += mapEntrySize + 1 + sovAgent(uint64(mapEntrySize)) + } + } + return n +} + +func (m *StatsContainerResponse) Size() (n int) { + var l int + _ = l + if m.CgroupStats != nil { + l = m.CgroupStats.Size() + n += 1 + l + sovAgent(uint64(l)) + } + return n +} + +func (m *WriteStreamRequest) Size() (n int) { + var l int + _ = l + l = len(m.ContainerId) if l > 0 { n += 1 + l + sovAgent(uint64(l)) } - l = len(m.Type) + l = len(m.ExecId) if l > 0 { n += 1 + l + sovAgent(uint64(l)) } - l = len(m.VmPath) + l = len(m.Data) if l > 0 { n += 1 + l + sovAgent(uint64(l)) } - l = len(m.ContainerPath) + return n +} + +func (m *WriteStreamResponse) Size() (n int) { + var l int + _ = l + if m.Len != 0 { + n += 1 + sovAgent(uint64(m.Len)) + } + return n +} + +func (m *ReadStreamRequest) Size() (n int) { + var l int + _ = l + l = len(m.ContainerId) if l > 0 { n += 1 + l + sovAgent(uint64(l)) } - if len(m.Options) > 0 { - for _, s := range m.Options { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) + l = len(m.ExecId) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + if m.Len != 0 { + n += 1 + sovAgent(uint64(m.Len)) + } + return n +} + +func (m *ReadStreamResponse) Size() (n int) { + var l int + _ = l + l = len(m.Data) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + return n +} + +func (m *CloseStdinRequest) Size() (n int) { + var l int + _ = l + l = len(m.ContainerId) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + l = len(m.ExecId) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + return n +} + +func (m *TtyWinResizeRequest) Size() (n int) { + var l int + _ = l + l = len(m.ContainerId) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + l = len(m.ExecId) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + if m.Row != 0 { + n += 1 + sovAgent(uint64(m.Row)) + } + if m.Column != 0 { + n += 1 + sovAgent(uint64(m.Column)) + } + return n +} + +func (m *CreateSandboxRequest) Size() (n int) { + var l int + _ = l + l = len(m.Hostname) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + if len(m.Dns) > 0 { + for _, s := range m.Dns { + l = len(s) + n += 1 + l + sovAgent(uint64(l)) + } + } + if len(m.Storages) > 0 { + for _, e := range m.Storages { + l = e.Size() + n += 1 + l + sovAgent(uint64(l)) + } + } + if m.SandboxPidns { + n += 2 + } + return n +} + +func (m *DestroySandboxRequest) Size() (n int) { + var l int + _ = l + return n +} + +func (m *IPAddress) Size() (n int) { + var l int + _ = l + if m.Family != 0 { + n += 1 + sovAgent(uint64(m.Family)) + } + l = len(m.Address) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + l = len(m.Mask) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + return n +} + +func (m *Interface) Size() (n int) { + var l int + _ = l + l = len(m.Device) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + if len(m.IPAddresses) > 0 { + for _, e := range m.IPAddresses { + l = e.Size() + n += 1 + l + sovAgent(uint64(l)) + } + } + if m.Mtu != 0 { + n += 1 + sovAgent(uint64(m.Mtu)) + } + l = len(m.HwAddr) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + return n +} + +func (m *Route) Size() (n int) { + var l int + _ = l + l = len(m.Dest) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + l = len(m.Gateway) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + l = len(m.Device) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + l = len(m.Source) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + if m.Scope != 0 { + n += 1 + sovAgent(uint64(m.Scope)) + } + return n +} + +func (m *Routes) Size() (n int) { + var l int + _ = l + if len(m.Routes) > 0 { + for _, e := range m.Routes { + l = e.Size() + n += 1 + l + sovAgent(uint64(l)) + } + } + return n +} + +func (m *UpdateInterfaceRequest) Size() (n int) { + var l int + _ = l + if m.Interface != nil { + l = m.Interface.Size() + n += 1 + l + sovAgent(uint64(l)) + } + return n +} + +func (m *AddInterfaceRequest) Size() (n int) { + var l int + _ = l + if m.Interface != nil { + l = m.Interface.Size() + n += 1 + l + sovAgent(uint64(l)) + } + return n +} + +func (m *RemoveInterfaceRequest) Size() (n int) { + var l int + _ = l + if m.Interface != nil { + l = m.Interface.Size() + n += 1 + l + sovAgent(uint64(l)) + } + return n +} + +func (m *UpdateRoutesRequest) Size() (n int) { + var l int + _ = l + if m.Routes != nil { + l = m.Routes.Size() + n += 1 + l + sovAgent(uint64(l)) + } + return n +} + +func (m *OnlineCPUMemRequest) Size() (n int) { + var l int + _ = l + if m.Wait { + n += 2 + } + if m.NbCpus != 0 { + n += 1 + sovAgent(uint64(m.NbCpus)) + } + return n +} + +func (m *Storage) Size() (n int) { + var l int + _ = l + l = len(m.Driver) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + if len(m.DriverOptions) > 0 { + for _, s := range m.DriverOptions { + l = len(s) + n += 1 + l + sovAgent(uint64(l)) + } + } + l = len(m.Source) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + l = len(m.Fstype) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + if len(m.Options) > 0 { + for _, s := range m.Options { + l = len(s) + n += 1 + l + sovAgent(uint64(l)) + } + } + l = len(m.MountPoint) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + return n +} + +func (m *Device) Size() (n int) { + var l int + _ = l + l = len(m.Id) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + l = len(m.Type) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + l = len(m.VmPath) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + l = len(m.ContainerPath) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + if len(m.Options) > 0 { + for _, s := range m.Options { + l = len(s) + n += 1 + l + sovAgent(uint64(l)) + } + } + return n +} + +func (m *StringUser) Size() (n int) { + var l int + _ = l + l = len(m.Uid) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + l = len(m.Gid) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + if len(m.AdditionalGids) > 0 { + for _, s := range m.AdditionalGids { + l = len(s) + n += 1 + l + sovAgent(uint64(l)) + } + } + return n +} + +func sovAgent(x uint64) (n int) { + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n +} +func sozAgent(x uint64) (n int) { + return sovAgent(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *CreateContainerRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CreateContainerRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreateContainerRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContainerId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExecId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ExecId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StringUser", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.StringUser == nil { + m.StringUser = &StringUser{} + } + if err := m.StringUser.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Devices", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Devices = append(m.Devices, &Device{}) + if err := m.Devices[len(m.Devices)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Storages", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Storages = append(m.Storages, &Storage{}) + if err := m.Storages[len(m.Storages)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OCI", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.OCI == nil { + m.OCI = &Spec{} + } + if err := m.OCI.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAgent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StartContainerRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: StartContainerRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StartContainerRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContainerId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAgent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RemoveContainerRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RemoveContainerRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RemoveContainerRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContainerId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Timeout", wireType) + } + m.Timeout = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Timeout |= (uint32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipAgent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ExecProcessRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ExecProcessRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ExecProcessRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContainerId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExecId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ExecId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StringUser", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.StringUser == nil { + m.StringUser = &StringUser{} + } + if err := m.StringUser.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Process", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Process == nil { + m.Process = &Process{} + } + if err := m.Process.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAgent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SignalProcessRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SignalProcessRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SignalProcessRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContainerId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExecId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ExecId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Signal", wireType) + } + m.Signal = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Signal |= (uint32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipAgent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *WaitProcessRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: WaitProcessRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: WaitProcessRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContainerId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExecId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ExecId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAgent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *WaitProcessResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: WaitProcessResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: WaitProcessResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + m.Status = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Status |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipAgent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ListProcessesRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ListProcessesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListProcessesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContainerId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Format", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Format = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Args", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Args = append(m.Args, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAgent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ListProcessesResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ListProcessesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListProcessesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProcessList", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + byteLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ProcessList = append(m.ProcessList[:0], dAtA[iNdEx:postIndex]...) + if m.ProcessList == nil { + m.ProcessList = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAgent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StatsContainerRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: StatsContainerRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StatsContainerRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContainerId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAgent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CpuUsage) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CpuUsage: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CpuUsage: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalUsage", wireType) + } + m.TotalUsage = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TotalUsage |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType == 0 { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.PercpuUsage = append(m.PercpuUsage, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + packedLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + for iNdEx < postIndex { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.PercpuUsage = append(m.PercpuUsage, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field PercpuUsage", wireType) + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UsageInKernelmode", wireType) + } + m.UsageInKernelmode = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.UsageInKernelmode |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UsageInUsermode", wireType) + } + m.UsageInUsermode = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.UsageInUsermode |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipAgent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ThrottlingData) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ThrottlingData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ThrottlingData: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Periods", wireType) + } + m.Periods = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Periods |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ThrottledPeriods", wireType) + } + m.ThrottledPeriods = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ThrottledPeriods |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ThrottledTime", wireType) + } + m.ThrottledTime = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ThrottledTime |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipAgent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CpuStats) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CpuStats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CpuStats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CpuUsage", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CpuUsage == nil { + m.CpuUsage = &CpuUsage{} + } + if err := m.CpuUsage.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ThrottlingData", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ThrottlingData == nil { + m.ThrottlingData = &ThrottlingData{} + } + if err := m.ThrottlingData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAgent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy } } - return n -} -func (m *StringUser) Size() (n int) { - var l int - _ = l - l = len(m.Uid) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Gid) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + if iNdEx > l { + return io.ErrUnexpectedEOF } - if len(m.AdditionalGids) > 0 { - for _, s := range m.AdditionalGids { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) + return nil +} +func (m *PidsStats) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: PidsStats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PidsStats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Current", wireType) + } + m.Current = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Current |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) + } + m.Limit = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Limit |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipAgent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy } } - return n -} -func sovAgent(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } + if iNdEx > l { + return io.ErrUnexpectedEOF } - return n -} -func sozAgent(x uint64) (n int) { - return sovAgent(uint64((x << 1) ^ uint64((int64(x) >> 63)))) + return nil } -func (m *CreateContainerRequest) Unmarshal(dAtA []byte) error { +func (m *MemoryData) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3345,17 +6356,17 @@ func (m *CreateContainerRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: CreateContainerRequest: wiretype end group for non-group") + return fmt.Errorf("proto: MemoryData: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: CreateContainerRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MemoryData: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Usage", wireType) } - var stringLen uint64 + m.Usage = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowAgent @@ -3365,26 +6376,142 @@ func (m *CreateContainerRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + m.Usage |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxUsage", wireType) + } + m.MaxUsage = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxUsage |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Failcnt", wireType) + } + m.Failcnt = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Failcnt |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) + } + m.Limit = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Limit |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipAgent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { return ErrInvalidLengthAgent } - postIndex := iNdEx + intStringLen - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.ContainerId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MemoryStats) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MemoryStats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MemoryStats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Cache", wireType) + } + m.Cache = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Cache |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExecId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Usage", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowAgent @@ -3394,24 +6521,28 @@ func (m *CreateContainerRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthAgent } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex > l { return io.ErrUnexpectedEOF } - m.ExecId = string(dAtA[iNdEx:postIndex]) + if m.Usage == nil { + m.Usage = &MemoryData{} + } + if err := m.Usage.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StringUser", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SwapUsage", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -3435,16 +6566,16 @@ func (m *CreateContainerRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.StringUser == nil { - m.StringUser = &StringUser{} + if m.SwapUsage == nil { + m.SwapUsage = &MemoryData{} } - if err := m.StringUser.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.SwapUsage.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Devices", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field KernelUsage", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -3468,16 +6599,18 @@ func (m *CreateContainerRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Devices = append(m.Devices, &Device{}) - if err := m.Devices[len(m.Devices)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if m.KernelUsage == nil { + m.KernelUsage = &MemoryData{} + } + if err := m.KernelUsage.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Storages", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UseHierarchy", wireType) } - var msglen int + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowAgent @@ -3487,26 +6620,15 @@ func (m *CreateContainerRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Storages = append(m.Storages, &Storage{}) - if err := m.Storages[len(m.Storages)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex + m.UseHierarchy = bool(v != 0) case 6: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OCI", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Stats", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -3530,12 +6652,86 @@ func (m *CreateContainerRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.OCI == nil { - m.OCI = &Spec{} + if m.Stats == nil { + m.Stats = make(map[string]uint64) } - if err := m.OCI.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + var mapkey string + var mapvalue uint64 + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return ErrInvalidLengthAgent + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapvalue |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + } else { + iNdEx = entryPreIndex + skippy, err := skipAgent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } } + m.Stats[mapkey] = mapvalue iNdEx = postIndex default: iNdEx = preIndex @@ -3558,7 +6754,7 @@ func (m *CreateContainerRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *StartContainerRequest) Unmarshal(dAtA []byte) error { +func (m *BlkioStatsEntry) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3581,17 +6777,17 @@ func (m *StartContainerRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: StartContainerRequest: wiretype end group for non-group") + return fmt.Errorf("proto: BlkioStatsEntry: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: StartContainerRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: BlkioStatsEntry: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Major", wireType) } - var stringLen uint64 + m.Major = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowAgent @@ -3601,74 +6797,33 @@ func (m *StartContainerRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + m.Major |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContainerId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RemoveContainerRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Minor", wireType) } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break + m.Minor = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Minor |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RemoveContainerRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RemoveContainerRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Op", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -3693,13 +6848,13 @@ func (m *RemoveContainerRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ContainerId = string(dAtA[iNdEx:postIndex]) + m.Op = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: + case 4: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Timeout", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) } - m.Timeout = 0 + m.Value = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowAgent @@ -3709,7 +6864,7 @@ func (m *RemoveContainerRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Timeout |= (uint32(b) & 0x7F) << shift + m.Value |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3735,7 +6890,7 @@ func (m *RemoveContainerRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *ExecProcessRequest) Unmarshal(dAtA []byte) error { +func (m *BlkioStats) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3758,17 +6913,17 @@ func (m *ExecProcessRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ExecProcessRequest: wiretype end group for non-group") + return fmt.Errorf("proto: BlkioStats: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ExecProcessRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: BlkioStats: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field IoServiceBytesRecursive", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowAgent @@ -3778,26 +6933,28 @@ func (m *ExecProcessRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthAgent } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex > l { return io.ErrUnexpectedEOF } - m.ContainerId = string(dAtA[iNdEx:postIndex]) + m.IoServiceBytesRecursive = append(m.IoServiceBytesRecursive, &BlkioStatsEntry{}) + if err := m.IoServiceBytesRecursive[len(m.IoServiceBytesRecursive)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExecId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field IoServicedRecursive", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowAgent @@ -3807,24 +6964,26 @@ func (m *ExecProcessRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthAgent } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex > l { return io.ErrUnexpectedEOF } - m.ExecId = string(dAtA[iNdEx:postIndex]) + m.IoServicedRecursive = append(m.IoServicedRecursive, &BlkioStatsEntry{}) + if err := m.IoServicedRecursive[len(m.IoServicedRecursive)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StringUser", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field IoQueuedRecursive", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -3848,16 +7007,14 @@ func (m *ExecProcessRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.StringUser == nil { - m.StringUser = &StringUser{} - } - if err := m.StringUser.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.IoQueuedRecursive = append(m.IoQueuedRecursive, &BlkioStatsEntry{}) + if err := m.IoQueuedRecursive[len(m.IoQueuedRecursive)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Process", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field IoServiceTimeRecursive", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -3881,68 +7038,47 @@ func (m *ExecProcessRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Process == nil { - m.Process = &Process{} - } - if err := m.Process.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.IoServiceTimeRecursive = append(m.IoServiceTimeRecursive, &BlkioStatsEntry{}) + if err := m.IoServiceTimeRecursive[len(m.IoServiceTimeRecursive)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IoWaitTimeRecursive", wireType) } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SignalProcessRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent + if msglen < 0 { + return ErrInvalidLengthAgent } - if iNdEx >= l { + postIndex := iNdEx + msglen + if postIndex > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break + m.IoWaitTimeRecursive = append(m.IoWaitTimeRecursive, &BlkioStatsEntry{}) + if err := m.IoWaitTimeRecursive[len(m.IoWaitTimeRecursive)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SignalProcessRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SignalProcessRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + iNdEx = postIndex + case 6: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field IoMergedRecursive", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowAgent @@ -3952,26 +7088,28 @@ func (m *SignalProcessRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthAgent } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex > l { return io.ErrUnexpectedEOF } - m.ContainerId = string(dAtA[iNdEx:postIndex]) + m.IoMergedRecursive = append(m.IoMergedRecursive, &BlkioStatsEntry{}) + if err := m.IoMergedRecursive[len(m.IoMergedRecursive)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex - case 2: + case 7: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExecId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field IoTimeRecursive", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowAgent @@ -3981,26 +7119,28 @@ func (m *SignalProcessRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthAgent } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex > l { return io.ErrUnexpectedEOF } - m.ExecId = string(dAtA[iNdEx:postIndex]) + m.IoTimeRecursive = append(m.IoTimeRecursive, &BlkioStatsEntry{}) + if err := m.IoTimeRecursive[len(m.IoTimeRecursive)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Signal", wireType) + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SectorsRecursive", wireType) } - m.Signal = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowAgent @@ -4010,11 +7150,23 @@ func (m *SignalProcessRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Signal |= (uint32(b) & 0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } + if msglen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SectorsRecursive = append(m.SectorsRecursive, &BlkioStatsEntry{}) + if err := m.SectorsRecursive[len(m.SectorsRecursive)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipAgent(dAtA[iNdEx:]) @@ -4036,7 +7188,7 @@ func (m *SignalProcessRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *WaitProcessRequest) Unmarshal(dAtA []byte) error { +func (m *HugetlbStats) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4059,17 +7211,17 @@ func (m *WaitProcessRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: WaitProcessRequest: wiretype end group for non-group") + return fmt.Errorf("proto: HugetlbStats: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: WaitProcessRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: HugetlbStats: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Usage", wireType) } - var stringLen uint64 + m.Usage = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowAgent @@ -4079,26 +7231,16 @@ func (m *WaitProcessRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + m.Usage |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContainerId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExecId", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxUsage", wireType) } - var stringLen uint64 + m.MaxUsage = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowAgent @@ -4108,21 +7250,30 @@ func (m *WaitProcessRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + m.MaxUsage |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthAgent + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Failcnt", wireType) } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF + m.Failcnt = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Failcnt |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } } - m.ExecId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipAgent(dAtA[iNdEx:]) @@ -4144,7 +7295,7 @@ func (m *WaitProcessRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *WaitProcessResponse) Unmarshal(dAtA []byte) error { +func (m *CgroupStats) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4167,17 +7318,17 @@ func (m *WaitProcessResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: WaitProcessResponse: wiretype end group for non-group") + return fmt.Errorf("proto: CgroupStats: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: WaitProcessResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: CgroupStats: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CpuStats", wireType) } - m.Status = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowAgent @@ -4187,66 +7338,63 @@ func (m *WaitProcessResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Status |= (int32(b) & 0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } - default: - iNdEx = preIndex - skippy, err := skipAgent(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { + if msglen < 0 { return ErrInvalidLengthAgent } - if (iNdEx + skippy) > l { + postIndex := iNdEx + msglen + if postIndex > l { return io.ErrUnexpectedEOF } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ListProcessesRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent + if m.CpuStats == nil { + m.CpuStats = &CpuStats{} } - if iNdEx >= l { + if err := m.CpuStats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MemoryStats", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + msglen + if postIndex > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break + if m.MemoryStats == nil { + m.MemoryStats = &MemoryStats{} } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ListProcessesRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ListProcessesRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + if err := m.MemoryStats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PidsStats", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowAgent @@ -4256,26 +7404,30 @@ func (m *ListProcessesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthAgent } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex > l { return io.ErrUnexpectedEOF } - m.ContainerId = string(dAtA[iNdEx:postIndex]) + if m.PidsStats == nil { + m.PidsStats = &PidsStats{} + } + if err := m.PidsStats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex - case 2: + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Format", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field BlkioStats", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowAgent @@ -4285,26 +7437,30 @@ func (m *ListProcessesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthAgent } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex > l { return io.ErrUnexpectedEOF } - m.Format = string(dAtA[iNdEx:postIndex]) + if m.BlkioStats == nil { + m.BlkioStats = &BlkioStats{} + } + if err := m.BlkioStats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex - case 3: + case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Args", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field HugetlbStats", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowAgent @@ -4314,20 +7470,114 @@ func (m *ListProcessesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthAgent } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex > l { return io.ErrUnexpectedEOF } - m.Args = append(m.Args, string(dAtA[iNdEx:postIndex])) + if m.HugetlbStats == nil { + m.HugetlbStats = make(map[string]*HugetlbStats) + } + var mapkey string + var mapvalue *HugetlbStats + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return ErrInvalidLengthAgent + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapmsglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return ErrInvalidLengthAgent + } + postmsgIndex := iNdEx + mapmsglen + if mapmsglen < 0 { + return ErrInvalidLengthAgent + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue = &HugetlbStats{} + if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + } else { + iNdEx = entryPreIndex + skippy, err := skipAgent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.HugetlbStats[mapkey] = mapvalue iNdEx = postIndex default: iNdEx = preIndex @@ -4350,7 +7600,7 @@ func (m *ListProcessesRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *ListProcessesResponse) Unmarshal(dAtA []byte) error { +func (m *StatsContainerResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4373,17 +7623,17 @@ func (m *ListProcessesResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ListProcessesResponse: wiretype end group for non-group") + return fmt.Errorf("proto: StatsContainerResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ListProcessesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: StatsContainerResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ProcessList", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field CgroupStats", wireType) } - var byteLen int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowAgent @@ -4393,21 +7643,23 @@ func (m *ListProcessesResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { + if msglen < 0 { return ErrInvalidLengthAgent } - postIndex := iNdEx + byteLen + postIndex := iNdEx + msglen if postIndex > l { return io.ErrUnexpectedEOF } - m.ProcessList = append(m.ProcessList[:0], dAtA[iNdEx:postIndex]...) - if m.ProcessList == nil { - m.ProcessList = []byte{} + if m.CgroupStats == nil { + m.CgroupStats = &CgroupStats{} + } + if err := m.CgroupStats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } iNdEx = postIndex default: @@ -6975,91 +10227,140 @@ var ( func init() { proto.RegisterFile("agent.proto", fileDescriptorAgent) } var fileDescriptorAgent = []byte{ - // 1367 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x56, 0x5f, 0x6f, 0x1b, 0xc5, - 0x16, 0xbf, 0x1b, 0x3b, 0x4e, 0x7c, 0x6c, 0x27, 0xe9, 0x24, 0x4d, 0xf6, 0xba, 0x55, 0x6f, 0xba, - 0xf7, 0xde, 0x36, 0x20, 0x35, 0x15, 0x01, 0x81, 0x54, 0x84, 0x4a, 0xea, 0x96, 0x10, 0x09, 0x14, - 0x6b, 0x4c, 0x54, 0xde, 0xac, 0xc9, 0xee, 0xc4, 0x59, 0xf0, 0xee, 0x2c, 0x33, 0xb3, 0x49, 0x43, - 0xdf, 0x79, 0xe0, 0x99, 0x8f, 0xc1, 0x1b, 0x5f, 0x82, 0x47, 0x3e, 0x02, 0xea, 0xa7, 0xe0, 0x11, - 0xcd, 0xbf, 0xb5, 0xd7, 0x59, 0x17, 0xd1, 0x46, 0xe2, 0x69, 0xe7, 0x9c, 0x33, 0x7b, 0xce, 0x6f, - 0xce, 0x9c, 0x39, 0xe7, 0x07, 0x2d, 0x32, 0xa2, 0xa9, 0xdc, 0xcd, 0x38, 0x93, 0x0c, 0xd5, 0x47, - 0x3c, 0x0b, 0xbb, 0x4d, 0x16, 0xc6, 0x46, 0xd1, 0xbd, 0x35, 0x62, 0x6c, 0x34, 0xa6, 0x0f, 0xb5, - 0x74, 0x92, 0x9f, 0x3e, 0xa4, 0x49, 0x26, 0x2f, 0x8d, 0x31, 0xf8, 0xc3, 0x83, 0xcd, 0x1e, 0xa7, - 0x44, 0xd2, 0x1e, 0x4b, 0x25, 0x89, 0x53, 0xca, 0x31, 0xfd, 0x2e, 0xa7, 0x42, 0xa2, 0xbb, 0xd0,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31, 0x88, 0x47, 0x29, 0x19, 0x5f, 0x23, 0xde, 0x4d, 0x68, 0x08, 0xed, - 0x53, 0x43, 0xed, 0x60, 0x2b, 0x05, 0x7d, 0x40, 0xcf, 0x49, 0x2c, 0xaf, 0x2f, 0x52, 0xf0, 0x00, - 0xd6, 0x4b, 0x1e, 0x45, 0xc6, 0x52, 0x41, 0x35, 0x00, 0x49, 0x64, 0x2e, 0xb4, 0xb3, 0x45, 0x6c, - 0xa5, 0x80, 0xc2, 0xc6, 0x17, 0xb1, 0x70, 0xdb, 0xe9, 0xdf, 0x81, 0xb0, 0x09, 0x8d, 0x53, 0xc6, - 0x13, 0x22, 0x1d, 0x02, 0x23, 0x21, 0x04, 0x75, 0xc2, 0x47, 0xc2, 0xaf, 0x6d, 0xd7, 0x76, 0x9a, - 0x58, 0xaf, 0x55, 0x55, 0xce, 0x84, 0xb1, 0xb8, 0xee, 0x42, 0xdb, 0xe6, 0x7d, 0x38, 0x8e, 0x85, - 0xd4, 0x71, 0xda, 0xb8, 0x65, 0x75, 0xea, 0x9f, 0x20, 0x02, 0xf4, 0x9c, 0xc7, 0x92, 0x0e, 0x24, - 0xa7, 0x24, 0xb9, 0x8e, 0xdb, 0x40, 0x50, 0x8f, 0x88, 0x24, 0xfa, 0x2e, 0xda, 0x58, 0xaf, 0x83, - 0xfb, 0xb0, 0x5e, 0x8a, 0x62, 0xf1, 0xad, 0x41, 0x6d, 0x4c, 0x53, 0xed, 0xbd, 0x83, 0xd5, 0x32, - 0x20, 0x70, 0x03, 0x53, 0x12, 0x5d, 0x1f, 0x1a, 0x1b, 0xa2, 0x36, 0x09, 0xb1, 0x03, 0x68, 0x3a, - 0x84, 0x85, 0xe2, 0x50, 0x7b, 0x53, 0xa8, 0x8f, 0xe0, 0x46, 0x6f, 0xcc, 0x04, 0x1d, 0xc8, 0x28, - 0x4e, 0xaf, 0xa3, 0x7c, 0x5e, 0xc2, 0xfa, 0x57, 0xf2, 0xf2, 0xb9, 0x72, 0x26,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 0x78, 0x04, 0xed, 0xe9, 0x49, 0xe0, 0x5c, 0x54, 0x4c, 0x87, - 0xee, 0x6c, 0x07, 0x47, 0x9f, 0xc2, 0xea, 0xcc, 0x38, 0x72, 0xf5, 0x5d, 0x3d, 0xa5, 0x2a, 0x3d, - 0xcc, 0x4c, 0x90, 0xf2, 0x0b, 0xf9, 0x6b, 0x0f, 0x1f, 0x41, 0x7b, 0x7a, 0x74, 0x38, 0xfc, 0x15, - 0xe3, 0xa4, 0x5b, 0x1a, 0x1f, 0xea, 0x49, 0x94, 0x08, 0x9a, 0xab, 0xc4, 0x2a, 0xd6, 0xf6, 0xba, - 0x46, 0x51, 0xe6, 0x53, 0xae, 0x51, 0x54, 0xb2, 0xac, 0xd7, 0xdd, 0xe3, 0xf4, 0x08, 0x73, 0x87, - 0xa8, 0x18, 0x6b, 0xf3, 0x5c, 0x3c, 0x69, 0xff, 0xfa, 0xea, 0x8e, 0xf7, 0xdb, 0xab, 0x3b, 0xde, - 0xef, 0xaf, 0xee, 0x78, 0x27, 0x0d, 0x6d, 0x7d, 0xff, 0xcf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x42, - 0x3f, 0x03, 0x5f, 0x79, 0x10, 0x00, 0x00, + // 2160 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x58, 0xcd, 0x6e, 0x1b, 0xc9, + 0xf1, 0xff, 0xf3, 0x53, 0x62, 0x91, 0x94, 0xc4, 0x91, 0x2c, 0x73, 0x69, 0xc3, 0x7f, 0xed, 0x38, + 0xf1, 0x2a, 0xbb, 0xb0, 0x8c, 0xd5, 0x1a, 0xc9, 0xc2, 0x8b, 0xc5, 0x46, 0x92, 0x1d, 0x5b, 0xd9, + 0x38, 0x66, 0x5a, 0x16, 0x1c, 0x20, 0x07, 0xa2, 0x35, 0xd3, 0xa6, 0x7a, 0xcd, 0x99, 0x9e, 0xed, + 0xee, 0x91,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, 0xdd, 0x0b, 0x60, 0xf5, 0xab, 0xc0, 0x36, 0x33, 0xab, 0x54, 0x3e, 0xc8, 0x11, 0x7f, + 0x0e, 0x9b, 0x94, 0x8d, 0xce, 0x31, 0x95, 0xb3, 0x70, 0x8d, 0x77, 0x38, 0xa9, 0x9e, 0xa2, 0x32, + 0x96, 0x71, 0x32, 0x22, 0x7c, 0x5c, 0x72, 0xb2, 0xf9, 0x0e, 0x27, 0x9f, 0xeb, 0x05, 0x39, 0xcc, + 0x1e, 0xf4, 0x28, 0x9b, 0xb5, 0x66, 0xe9, 0x2a, 0x90, 0x55, 0xca, 0xca, 0x96, 0xec, 0x43, 0x4f, + 0x90, 0x40, 0x32, 0x5e, 0x3c, 0x04, 0xcb, 0x57, 0x41, 0xac, 0x59, 0xf9, 0x0c, 0xc3, 0xff, 0x0d, + 0x74, 0x9e, 0xa5, 0x63, 0x22, 0x27, 0x27, 0x59, 0x32, 0xb8, 0xb6, 0xfc, 0xe3, 0xff, 0xab, 0x0a, + 0xed, 0x83, 0x31, 0x67, 0x69, 0x52, 0xca, 0xc9, 0xe6, 0x92, 0xce, 0xe6, 0x64, 0x2d, 0xa2, 0x73, + 0xb2, 0x11, 0x7e, 0x08, 0x9d, 0x48, 0x5f, 0x5d, 0x2b, 0x6f, 0xf2, 0x50, 0xef, 0xd2, 0xa5, 0x46, + 0xed, 0xa8, 0x90, 0xcc, 0x76, 0x00, 0x12, 0x1a, 0x0a, 0xbb, 0xc6, 0xa4, 0xa3, 0x55, 0x5b, 0x27, + 0xb9, 0x14, 0x8d, 0x5a, 0x49, 0x96, 0xad, 0x3f, 0x85, 0xf6, 0x89, 0x0a, 0x92, 0x5d, 0x50, 0x4a, + 0x46, 0x79, 0xf4, 0x10, 0x9c, 0xe4, 0x97, 0xf0, 0x19, 0x74, 0x4f, 0x4d, 0xc8, 0xec, 0x22, 0x73, + 0x86, 0xee, 0x5a, 0x4f, 0x72, 0x7f, 0x77, 0x8a, 0x91, 0x35, 0x1b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, 0xf9, 0xba, 0xbd, 0x1b, 0xe1, + 0x27, 0xd0, 0x29, 0xbe, 0x43, 0xce, 0xfe, 0x39, 0x6f, 0xd3, 0xa0, 0xf4, 0x16, 0xa9, 0xfb, 0x55, + 0xaa, 0xf6, 0xdc, 0xb1, 0x9e, 0x57, 0x02, 0x5e, 0x95, 0x75, 0xca, 0xc5, 0x99, 0x3b, 0xd1, 0x73, + 0x4b, 0xb6, 0xab, 0xf6, 0xb1, 0xf8, 0x1e, 0x3a, 0x27, 0xe6, 0xbc, 0x91, 0x8b, 0x20, 0xf6, 0x3b, + 0x7f, 0x7d, 0x7b, 0xa7, 0xf2, 0xb7, 0xb7, 0x77, 0x2a, 0xff, 0x7c, 0x7b, 0xa7, 0x72, 0xd2, 0xd4, + 0xb3, 0x9f, 0xfd, 0x27, 0x00, 0x00, 0xff, 0xff, 0xab, 0x20, 0x3e, 0xbd, 0x84, 0x19, 0x00, 0x00, } diff --git a/protocols/grpc/agent.proto b/protocols/grpc/agent.proto index 911680a050..662cb74e69 100644 --- a/protocols/grpc/agent.proto +++ b/protocols/grpc/agent.proto @@ -29,6 +29,7 @@ service AgentService { rpc SignalProcess(SignalProcessRequest) returns (google.protobuf.Empty); rpc WaitProcess(WaitProcessRequest) returns (WaitProcessResponse); // wait & reap like waitpid(2) rpc ListProcesses(ListProcessesRequest) returns (ListProcessesResponse); + rpc StatsContainer(StatsContainerRequest) returns (StatsContainerResponse); // stdio rpc WriteStdin(WriteStreamRequest) returns (WriteStreamResponse); @@ -110,6 +111,87 @@ message ListProcessesResponse { bytes process_list = 1; } +message StatsContainerRequest { + string container_id = 1; +} + +message CpuUsage { + uint64 total_usage = 1; + repeated uint64 percpu_usage = 2; + uint64 usage_in_kernelmode = 3; + uint64 usage_in_usermode = 4; +} + +message ThrottlingData { + uint64 periods = 1; + uint64 throttled_periods = 2; + uint64 throttled_time = 3; +} + +message CpuStats { + CpuUsage cpu_usage = 1; + ThrottlingData throttling_data = 2; +} + +message PidsStats { + uint64 current = 1; + uint64 limit = 2; +} + +message MemoryData { + uint64 usage = 1; + uint64 max_usage = 2; + uint64 failcnt = 3; + uint64 limit = 4; +} + +message MemoryStats { + uint64 cache = 1; + MemoryData usage = 2; + MemoryData swap_usage = 3; + MemoryData kernel_usage = 4; + bool use_hierarchy = 5; + map stats = 6; +} + + +message BlkioStatsEntry { + uint64 major = 1; + uint64 minor = 2; + string op = 3; + uint64 value = 4; +} + +message BlkioStats { + repeated BlkioStatsEntry io_service_bytes_recursive = 1; // number of bytes transferred to and from the block device + repeated BlkioStatsEntry io_serviced_recursive = 2; + repeated BlkioStatsEntry io_queued_recursive = 3; + repeated BlkioStatsEntry io_service_time_recursive = 4; + repeated BlkioStatsEntry io_wait_time_recursive = 5; + repeated BlkioStatsEntry io_merged_recursive = 6; + repeated BlkioStatsEntry io_time_recursive = 7; + repeated BlkioStatsEntry sectors_recursive = 8; +} + +message HugetlbStats { + uint64 usage = 1; + uint64 max_usage = 2; + uint64 failcnt = 3; +} + +message CgroupStats { + CpuStats cpu_stats = 1; + MemoryStats memory_stats = 2; + PidsStats pids_stats = 3; + BlkioStats blkio_stats = 4; + map hugetlb_stats = 5; // the map is in the format "size of hugepage: stats of the hugepage" + +} + +message StatsContainerResponse { + CgroupStats cgroup_stats = 1; +} + message WriteStreamRequest { string container_id = 1; string exec_id = 2; diff --git a/protocols/mockserver/mockserver.go b/protocols/mockserver/mockserver.go index 3492b51a4d..340cccea3f 100644 --- a/protocols/mockserver/mockserver.go +++ b/protocols/mockserver/mockserver.go @@ -345,3 +345,13 @@ func (m *mockServer) ListProcesses(ctx context.Context, req *pb.ListProcessesReq return &pb.ListProcessesResponse{}, nil } + +func (m *mockServer) StatsContainer(ctx context.Context, req *pb.StatsContainerRequest) (*pb.StatsContainerResponse, error) { + mockLock.RLock() + defer mockLock.RUnlock() + if err := m.podExist(); err != nil { + return nil, err + } + + return &pb.StatsContainerResponse{}, nil +}