From 010b7a9fba930bc1380f998600e90daa3540c502 Mon Sep 17 00:00:00 2001 From: "fupan.lfp" Date: Fri, 8 May 2020 19:20:58 +0800 Subject: [PATCH] vendor: add the ttrpc protos add the ttrpc protocol files Signed-off-by: fupan.lfp --- .../agent/pkg/types/types.pb.go | 789 +- .../agent/protocols/client/client.go | 29 +- .../agent/protocols/grpc/agent.pb.go | 9897 ++++++++++------- .../agent/protocols/grpc/agent.proto | 2 +- .../agent/protocols/grpc/health.pb.go | 643 +- .../agent/protocols/grpc/healthpb_test.go | 585 + .../agent/protocols/grpc/oci.pb.go | 6623 ++++++----- .../agent/protocols/grpc/ocipb_test.go | 5822 ++++++++++ .../agent/protocols/grpc/utils_test.go | 196 + 9 files changed, 17534 insertions(+), 7052 deletions(-) create mode 100644 src/runtime/vendor/github.com/kata-containers/agent/protocols/grpc/healthpb_test.go create mode 100644 src/runtime/vendor/github.com/kata-containers/agent/protocols/grpc/ocipb_test.go create mode 100644 src/runtime/vendor/github.com/kata-containers/agent/protocols/grpc/utils_test.go diff --git a/src/runtime/vendor/github.com/kata-containers/agent/pkg/types/types.pb.go b/src/runtime/vendor/github.com/kata-containers/agent/pkg/types/types.pb.go index 7ea63e3c0e..793f8705e7 100644 --- a/src/runtime/vendor/github.com/kata-containers/agent/pkg/types/types.pb.go +++ b/src/runtime/vendor/github.com/kata-containers/agent/pkg/types/types.pb.go @@ -1,24 +1,17 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: pkg/types/types.proto +// source: github.com/kata-containers/agent/pkg/types/types.proto -/* - Package types is a generated protocol buffer package. - - It is generated from these files: - pkg/types/types.proto - - It has these top-level messages: - IPAddress - Interface - Route -*/ package types -import proto "github.com/gogo/protobuf/proto" -import fmt "fmt" -import math "math" - -import io "io" +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" + reflect "reflect" + strings "strings" +) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal @@ -29,7 +22,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type IPFamily int32 @@ -42,6 +35,7 @@ var IPFamily_name = map[int32]string{ 0: "v4", 1: "v6", } + var IPFamily_value = map[string]int32{ "v4": 0, "v6": 1, @@ -50,44 +44,56 @@ var IPFamily_value = map[string]int32{ func (x IPFamily) String() string { return proto.EnumName(IPFamily_name, int32(x)) } -func (IPFamily) EnumDescriptor() ([]byte, []int) { return fileDescriptorTypes, []int{0} } + +func (IPFamily) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_0aa5fc813702e149, []int{0} +} type IPAddress struct { - Family IPFamily `protobuf:"varint,1,opt,name=family,proto3,enum=types.IPFamily" json:"family,omitempty"` - Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` - Mask string `protobuf:"bytes,3,opt,name=mask,proto3" json:"mask,omitempty"` + Family IPFamily `protobuf:"varint,1,opt,name=family,proto3,enum=types.IPFamily" json:"family,omitempty"` + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` + Mask string `protobuf:"bytes,3,opt,name=mask,proto3" json:"mask,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *IPAddress) Reset() { *m = IPAddress{} } -func (m *IPAddress) String() string { return proto.CompactTextString(m) } -func (*IPAddress) ProtoMessage() {} -func (*IPAddress) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{0} } - -func (m *IPAddress) GetFamily() IPFamily { - if m != nil { - return m.Family +func (m *IPAddress) Reset() { *m = IPAddress{} } +func (*IPAddress) ProtoMessage() {} +func (*IPAddress) Descriptor() ([]byte, []int) { + return fileDescriptor_0aa5fc813702e149, []int{0} +} +func (m *IPAddress) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *IPAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_IPAddress.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return IPFamily_v4 +} +func (m *IPAddress) XXX_Merge(src proto.Message) { + xxx_messageInfo_IPAddress.Merge(m, src) +} +func (m *IPAddress) XXX_Size() int { + return m.Size() +} +func (m *IPAddress) XXX_DiscardUnknown() { + xxx_messageInfo_IPAddress.DiscardUnknown(m) } -func (m *IPAddress) GetAddress() string { - if m != nil { - return m.Address - } - return "" -} - -func (m *IPAddress) GetMask() string { - if m != nil { - return m.Mask - } - return "" -} +var xxx_messageInfo_IPAddress proto.InternalMessageInfo type Interface struct { Device string `protobuf:"bytes,1,opt,name=device,proto3" json:"device,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - IPAddresses []*IPAddress `protobuf:"bytes,3,rep,name=IPAddresses" json:"IPAddresses,omitempty"` + IPAddresses []*IPAddress `protobuf:"bytes,3,rep,name=IPAddresses,json=iPAddresses,proto3" json:"IPAddresses,omitempty"` Mtu uint64 `protobuf:"varint,4,opt,name=mtu,proto3" json:"mtu,omitempty"` HwAddr string `protobuf:"bytes,5,opt,name=hwAddr,proto3" json:"hwAddr,omitempty"` // pciAddr is the PCI address in the format "bridgeAddr/deviceAddr". @@ -98,129 +104,132 @@ type Interface struct { // The expected values are the one that are defined by the netlink // library, regarding each type of link. Here is a non exhaustive // list: "veth", "macvtap", "vlan", "macvlan", "tap", ... - Type string `protobuf:"bytes,7,opt,name=type,proto3" json:"type,omitempty"` - RawFlags uint32 `protobuf:"varint,8,opt,name=raw_flags,json=rawFlags,proto3" json:"raw_flags,omitempty"` + Type string `protobuf:"bytes,7,opt,name=type,proto3" json:"type,omitempty"` + RawFlags uint32 `protobuf:"varint,8,opt,name=raw_flags,json=rawFlags,proto3" json:"raw_flags,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Interface) Reset() { *m = Interface{} } -func (m *Interface) String() string { return proto.CompactTextString(m) } -func (*Interface) ProtoMessage() {} -func (*Interface) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{1} } - -func (m *Interface) GetDevice() string { - if m != nil { - return m.Device +func (m *Interface) Reset() { *m = Interface{} } +func (*Interface) ProtoMessage() {} +func (*Interface) Descriptor() ([]byte, []int) { + return fileDescriptor_0aa5fc813702e149, []int{1} +} +func (m *Interface) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Interface) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Interface.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return "" +} +func (m *Interface) XXX_Merge(src proto.Message) { + xxx_messageInfo_Interface.Merge(m, src) +} +func (m *Interface) XXX_Size() int { + return m.Size() +} +func (m *Interface) XXX_DiscardUnknown() { + xxx_messageInfo_Interface.DiscardUnknown(m) } -func (m *Interface) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *Interface) GetIPAddresses() []*IPAddress { - if m != nil { - return m.IPAddresses - } - return nil -} - -func (m *Interface) GetMtu() uint64 { - if m != nil { - return m.Mtu - } - return 0 -} - -func (m *Interface) GetHwAddr() string { - if m != nil { - return m.HwAddr - } - return "" -} - -func (m *Interface) GetPciAddr() string { - if m != nil { - return m.PciAddr - } - return "" -} - -func (m *Interface) GetType() string { - if m != nil { - return m.Type - } - return "" -} - -func (m *Interface) GetRawFlags() uint32 { - if m != nil { - return m.RawFlags - } - return 0 -} +var xxx_messageInfo_Interface proto.InternalMessageInfo type Route struct { - Dest string `protobuf:"bytes,1,opt,name=dest,proto3" json:"dest,omitempty"` - Gateway string `protobuf:"bytes,2,opt,name=gateway,proto3" json:"gateway,omitempty"` - Device string `protobuf:"bytes,3,opt,name=device,proto3" json:"device,omitempty"` - Source string `protobuf:"bytes,4,opt,name=source,proto3" json:"source,omitempty"` - Scope uint32 `protobuf:"varint,5,opt,name=scope,proto3" json:"scope,omitempty"` + Dest string `protobuf:"bytes,1,opt,name=dest,proto3" json:"dest,omitempty"` + Gateway string `protobuf:"bytes,2,opt,name=gateway,proto3" json:"gateway,omitempty"` + Device string `protobuf:"bytes,3,opt,name=device,proto3" json:"device,omitempty"` + Source string `protobuf:"bytes,4,opt,name=source,proto3" json:"source,omitempty"` + Scope uint32 `protobuf:"varint,5,opt,name=scope,proto3" json:"scope,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Route) Reset() { *m = Route{} } -func (m *Route) String() string { return proto.CompactTextString(m) } -func (*Route) ProtoMessage() {} -func (*Route) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{2} } - -func (m *Route) GetDest() string { - if m != nil { - return m.Dest +func (m *Route) Reset() { *m = Route{} } +func (*Route) ProtoMessage() {} +func (*Route) Descriptor() ([]byte, []int) { + return fileDescriptor_0aa5fc813702e149, []int{2} +} +func (m *Route) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Route) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Route.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return "" +} +func (m *Route) XXX_Merge(src proto.Message) { + xxx_messageInfo_Route.Merge(m, src) +} +func (m *Route) XXX_Size() int { + return m.Size() +} +func (m *Route) XXX_DiscardUnknown() { + xxx_messageInfo_Route.DiscardUnknown(m) } -func (m *Route) GetGateway() string { - if m != nil { - return m.Gateway - } - return "" -} - -func (m *Route) GetDevice() string { - if m != nil { - return m.Device - } - return "" -} - -func (m *Route) GetSource() string { - if m != nil { - return m.Source - } - return "" -} - -func (m *Route) GetScope() uint32 { - if m != nil { - return m.Scope - } - return 0 -} +var xxx_messageInfo_Route proto.InternalMessageInfo func init() { + proto.RegisterEnum("types.IPFamily", IPFamily_name, IPFamily_value) proto.RegisterType((*IPAddress)(nil), "types.IPAddress") proto.RegisterType((*Interface)(nil), "types.Interface") proto.RegisterType((*Route)(nil), "types.Route") - proto.RegisterEnum("types.IPFamily", IPFamily_name, IPFamily_value) } + +func init() { + proto.RegisterFile("github.com/kata-containers/agent/pkg/types/types.proto", fileDescriptor_0aa5fc813702e149) +} + +var fileDescriptor_0aa5fc813702e149 = []byte{ + // 386 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x92, 0x4f, 0x8b, 0xda, 0x40, + 0x18, 0xc6, 0x1d, 0x63, 0xa2, 0x19, 0xb1, 0x0d, 0x43, 0x91, 0xa1, 0x85, 0x10, 0xbc, 0x34, 0x14, + 0x6a, 0xc0, 0x16, 0xef, 0xed, 0x41, 0xf0, 0x26, 0xf3, 0x05, 0xca, 0x98, 0x8c, 0x31, 0x68, 0xfe, + 0x90, 0x99, 0x18, 0xa4, 0x97, 0xfd, 0x78, 0x1e, 0xf7, 0xb8, 0x47, 0xcd, 0x27, 0x59, 0xe6, 0x8f, + 0xee, 0xee, 0x45, 0x9f, 0xdf, 0xbc, 0xf3, 0xe6, 0x79, 0x9f, 0x37, 0x81, 0xcb, 0x34, 0x13, 0xfb, + 0x66, 0x3b, 0x8f, 0xcb, 0x3c, 0x3a, 0x50, 0x41, 0x7f, 0xc6, 0x65, 0x21, 0x68, 0x56, 0xb0, 0x9a, + 0x47, 0x34, 0x65, 0x85, 0x88, 0xaa, 0x43, 0x1a, 0x89, 0x73, 0xc5, 0xb8, 0xfe, 0x9d, 0x57, 0x75, + 0x29, 0x4a, 0x64, 0x2b, 0x98, 0x6d, 0xa1, 0xbb, 0xde, 0xfc, 0x49, 0x92, 0x9a, 0x71, 0x8e, 0xbe, + 0x43, 0x67, 0x47, 0xf3, 0xec, 0x78, 0xc6, 0x20, 0x00, 0xe1, 0xa7, 0xc5, 0xe7, 0xb9, 0xee, 0x58, + 0x6f, 0x56, 0xea, 0x98, 0x98, 0x32, 0xc2, 0x70, 0x48, 0x75, 0x0f, 0xee, 0x07, 0x20, 0x74, 0xc9, + 0x1d, 0x11, 0x82, 0x83, 0x9c, 0xf2, 0x03, 0xb6, 0xd4, 0xb1, 0xd2, 0xb3, 0x2b, 0x80, 0xee, 0xba, + 0x10, 0xac, 0xde, 0xd1, 0x98, 0xa1, 0x29, 0x74, 0x12, 0x76, 0xca, 0x62, 0xa6, 0x4c, 0x5c, 0x62, + 0x48, 0x76, 0x16, 0x34, 0x67, 0xe6, 0x81, 0x4a, 0xa3, 0x05, 0x1c, 0x3f, 0xa6, 0x63, 0x1c, 0x5b, + 0x81, 0x15, 0x8e, 0x17, 0xde, 0x63, 0x2a, 0x53, 0x21, 0xe3, 0xec, 0xed, 0x12, 0xf2, 0xa0, 0x95, + 0x8b, 0x06, 0x0f, 0x02, 0x10, 0x0e, 0x88, 0x94, 0xd2, 0x71, 0xdf, 0xca, 0x0b, 0xd8, 0xd6, 0x8e, + 0x9a, 0x64, 0x8a, 0x2a, 0xce, 0x54, 0xc1, 0xd1, 0x29, 0x0c, 0xca, 0x59, 0xa4, 0x07, 0x1e, 0xea, + 0x59, 0xa4, 0x46, 0xdf, 0xa0, 0x5b, 0xd3, 0xf6, 0xdf, 0xee, 0x48, 0x53, 0x8e, 0x47, 0x01, 0x08, + 0x27, 0x64, 0x54, 0xd3, 0x76, 0x25, 0x79, 0xf6, 0x1f, 0xda, 0xa4, 0x6c, 0x84, 0x4a, 0x91, 0x30, + 0x2e, 0x4c, 0x36, 0xa5, 0xa5, 0x4f, 0x4a, 0x05, 0x6b, 0xe9, 0xf9, 0xbe, 0x2d, 0x83, 0xef, 0x76, + 0x61, 0x7d, 0xd8, 0xc5, 0x14, 0x3a, 0xbc, 0x6c, 0xea, 0x98, 0xa9, 0x18, 0x2e, 0x31, 0x84, 0xbe, + 0x40, 0x9b, 0xc7, 0x65, 0xc5, 0x54, 0x90, 0x09, 0xd1, 0xf0, 0xe3, 0x2b, 0x1c, 0xdd, 0xdf, 0x10, + 0x72, 0x60, 0xff, 0xf4, 0xdb, 0xeb, 0xa9, 0xff, 0xa5, 0x07, 0xfe, 0xe2, 0xcb, 0xcd, 0xef, 0xbd, + 0xdc, 0xfc, 0xde, 0x53, 0xe7, 0x83, 0x4b, 0xe7, 0x83, 0xe7, 0xce, 0x07, 0xd7, 0xce, 0x07, 0x5b, + 0x47, 0x7d, 0x07, 0xbf, 0x5e, 0x03, 0x00, 0x00, 0xff, 0xff, 0x53, 0xa5, 0xea, 0x65, 0x41, 0x02, + 0x00, 0x00, +} + func (m *IPAddress) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -228,34 +237,45 @@ func (m *IPAddress) Marshal() (dAtA []byte, err error) { } func (m *IPAddress) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *IPAddress) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Family != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintTypes(dAtA, i, uint64(m.Family)) - } - if len(m.Address) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintTypes(dAtA, i, uint64(len(m.Address))) - i += copy(dAtA[i:], m.Address) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Mask) > 0 { - dAtA[i] = 0x1a - i++ + i -= len(m.Mask) + copy(dAtA[i:], m.Mask) i = encodeVarintTypes(dAtA, i, uint64(len(m.Mask))) - i += copy(dAtA[i:], m.Mask) + i-- + dAtA[i] = 0x1a } - return i, nil + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintTypes(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0x12 + } + if m.Family != 0 { + i = encodeVarintTypes(dAtA, i, uint64(m.Family)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *Interface) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -263,69 +283,85 @@ func (m *Interface) Marshal() (dAtA []byte, err error) { } func (m *Interface) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Interface) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Device) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintTypes(dAtA, i, uint64(len(m.Device))) - i += copy(dAtA[i:], m.Device) - } - if len(m.Name) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintTypes(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) - } - if len(m.IPAddresses) > 0 { - for _, msg := range m.IPAddresses { - dAtA[i] = 0x1a - i++ - i = encodeVarintTypes(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if m.Mtu != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintTypes(dAtA, i, uint64(m.Mtu)) - } - if len(m.HwAddr) > 0 { - dAtA[i] = 0x2a - i++ - i = encodeVarintTypes(dAtA, i, uint64(len(m.HwAddr))) - i += copy(dAtA[i:], m.HwAddr) - } - if len(m.PciAddr) > 0 { - dAtA[i] = 0x32 - i++ - i = encodeVarintTypes(dAtA, i, uint64(len(m.PciAddr))) - i += copy(dAtA[i:], m.PciAddr) - } - if len(m.Type) > 0 { - dAtA[i] = 0x3a - i++ - i = encodeVarintTypes(dAtA, i, uint64(len(m.Type))) - i += copy(dAtA[i:], m.Type) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.RawFlags != 0 { - dAtA[i] = 0x40 - i++ i = encodeVarintTypes(dAtA, i, uint64(m.RawFlags)) + i-- + dAtA[i] = 0x40 } - return i, nil + if len(m.Type) > 0 { + i -= len(m.Type) + copy(dAtA[i:], m.Type) + i = encodeVarintTypes(dAtA, i, uint64(len(m.Type))) + i-- + dAtA[i] = 0x3a + } + if len(m.PciAddr) > 0 { + i -= len(m.PciAddr) + copy(dAtA[i:], m.PciAddr) + i = encodeVarintTypes(dAtA, i, uint64(len(m.PciAddr))) + i-- + dAtA[i] = 0x32 + } + if len(m.HwAddr) > 0 { + i -= len(m.HwAddr) + copy(dAtA[i:], m.HwAddr) + i = encodeVarintTypes(dAtA, i, uint64(len(m.HwAddr))) + i-- + dAtA[i] = 0x2a + } + if m.Mtu != 0 { + i = encodeVarintTypes(dAtA, i, uint64(m.Mtu)) + i-- + dAtA[i] = 0x20 + } + if len(m.IPAddresses) > 0 { + for iNdEx := len(m.IPAddresses) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.IPAddresses[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTypes(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintTypes(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if len(m.Device) > 0 { + i -= len(m.Device) + copy(dAtA[i:], m.Device) + i = encodeVarintTypes(dAtA, i, uint64(len(m.Device))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *Route) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -333,52 +369,70 @@ func (m *Route) Marshal() (dAtA []byte, err error) { } func (m *Route) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Route) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Dest) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintTypes(dAtA, i, uint64(len(m.Dest))) - i += copy(dAtA[i:], m.Dest) - } - if len(m.Gateway) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintTypes(dAtA, i, uint64(len(m.Gateway))) - i += copy(dAtA[i:], m.Gateway) - } - if len(m.Device) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintTypes(dAtA, i, uint64(len(m.Device))) - i += copy(dAtA[i:], m.Device) - } - if len(m.Source) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintTypes(dAtA, i, uint64(len(m.Source))) - i += copy(dAtA[i:], m.Source) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.Scope != 0 { - dAtA[i] = 0x28 - i++ i = encodeVarintTypes(dAtA, i, uint64(m.Scope)) + i-- + dAtA[i] = 0x28 } - return i, nil + if len(m.Source) > 0 { + i -= len(m.Source) + copy(dAtA[i:], m.Source) + i = encodeVarintTypes(dAtA, i, uint64(len(m.Source))) + i-- + dAtA[i] = 0x22 + } + if len(m.Device) > 0 { + i -= len(m.Device) + copy(dAtA[i:], m.Device) + i = encodeVarintTypes(dAtA, i, uint64(len(m.Device))) + i-- + dAtA[i] = 0x1a + } + if len(m.Gateway) > 0 { + i -= len(m.Gateway) + copy(dAtA[i:], m.Gateway) + i = encodeVarintTypes(dAtA, i, uint64(len(m.Gateway))) + i-- + dAtA[i] = 0x12 + } + if len(m.Dest) > 0 { + i -= len(m.Dest) + copy(dAtA[i:], m.Dest) + i = encodeVarintTypes(dAtA, i, uint64(len(m.Dest))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func encodeVarintTypes(dAtA []byte, offset int, v uint64) int { + offset -= sovTypes(v) + base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return offset + 1 + return base } func (m *IPAddress) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Family != 0 { @@ -392,10 +446,16 @@ func (m *IPAddress) Size() (n int) { if l > 0 { n += 1 + l + sovTypes(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Interface) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Device) @@ -430,10 +490,16 @@ func (m *Interface) Size() (n int) { if m.RawFlags != 0 { n += 1 + sovTypes(uint64(m.RawFlags)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Route) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Dest) @@ -455,22 +521,77 @@ func (m *Route) Size() (n int) { if m.Scope != 0 { n += 1 + sovTypes(uint64(m.Scope)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func sovTypes(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n + return (math_bits.Len64(x|1) + 6) / 7 } func sozTypes(x uint64) (n int) { return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } +func (this *IPAddress) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&IPAddress{`, + `Family:` + fmt.Sprintf("%v", this.Family) + `,`, + `Address:` + fmt.Sprintf("%v", this.Address) + `,`, + `Mask:` + fmt.Sprintf("%v", this.Mask) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *Interface) String() string { + if this == nil { + return "nil" + } + repeatedStringForIPAddresses := "[]*IPAddress{" + for _, f := range this.IPAddresses { + repeatedStringForIPAddresses += strings.Replace(f.String(), "IPAddress", "IPAddress", 1) + "," + } + repeatedStringForIPAddresses += "}" + s := strings.Join([]string{`&Interface{`, + `Device:` + fmt.Sprintf("%v", this.Device) + `,`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `IPAddresses:` + repeatedStringForIPAddresses + `,`, + `Mtu:` + fmt.Sprintf("%v", this.Mtu) + `,`, + `HwAddr:` + fmt.Sprintf("%v", this.HwAddr) + `,`, + `PciAddr:` + fmt.Sprintf("%v", this.PciAddr) + `,`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `RawFlags:` + fmt.Sprintf("%v", this.RawFlags) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *Route) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Route{`, + `Dest:` + fmt.Sprintf("%v", this.Dest) + `,`, + `Gateway:` + fmt.Sprintf("%v", this.Gateway) + `,`, + `Device:` + fmt.Sprintf("%v", this.Device) + `,`, + `Source:` + fmt.Sprintf("%v", this.Source) + `,`, + `Scope:` + fmt.Sprintf("%v", this.Scope) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func valueToStringTypes(v interface{}) string { + rv := reflect.ValueOf(v) + if rv.IsNil() { + return "nil" + } + pv := reflect.Indirect(rv).Interface() + return fmt.Sprintf("*%v", pv) +} func (m *IPAddress) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -486,7 +607,7 @@ func (m *IPAddress) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -514,7 +635,7 @@ func (m *IPAddress) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Family |= (IPFamily(b) & 0x7F) << shift + m.Family |= IPFamily(b&0x7F) << shift if b < 0x80 { break } @@ -533,7 +654,7 @@ func (m *IPAddress) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -543,6 +664,9 @@ func (m *IPAddress) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -562,7 +686,7 @@ func (m *IPAddress) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -572,6 +696,9 @@ func (m *IPAddress) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -586,9 +713,13 @@ func (m *IPAddress) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthTypes } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTypes + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -613,7 +744,7 @@ func (m *Interface) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -641,7 +772,7 @@ func (m *Interface) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -651,6 +782,9 @@ func (m *Interface) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -670,7 +804,7 @@ func (m *Interface) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -680,6 +814,9 @@ func (m *Interface) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -699,7 +836,7 @@ func (m *Interface) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -708,6 +845,9 @@ func (m *Interface) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -730,7 +870,7 @@ func (m *Interface) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Mtu |= (uint64(b) & 0x7F) << shift + m.Mtu |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -749,7 +889,7 @@ func (m *Interface) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -759,6 +899,9 @@ func (m *Interface) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -778,7 +921,7 @@ func (m *Interface) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -788,6 +931,9 @@ func (m *Interface) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -807,7 +953,7 @@ func (m *Interface) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -817,6 +963,9 @@ func (m *Interface) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -836,7 +985,7 @@ func (m *Interface) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RawFlags |= (uint32(b) & 0x7F) << shift + m.RawFlags |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -850,9 +999,13 @@ func (m *Interface) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthTypes } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTypes + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -877,7 +1030,7 @@ func (m *Route) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -905,7 +1058,7 @@ func (m *Route) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -915,6 +1068,9 @@ func (m *Route) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -934,7 +1090,7 @@ func (m *Route) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -944,6 +1100,9 @@ func (m *Route) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -963,7 +1122,7 @@ func (m *Route) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -973,6 +1132,9 @@ func (m *Route) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -992,7 +1154,7 @@ func (m *Route) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1002,6 +1164,9 @@ func (m *Route) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTypes } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTypes + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1021,7 +1186,7 @@ func (m *Route) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Scope |= (uint32(b) & 0x7F) << shift + m.Scope |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -1035,9 +1200,13 @@ func (m *Route) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthTypes } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTypes + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1050,6 +1219,7 @@ func (m *Route) Unmarshal(dAtA []byte) error { func skipTypes(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -1081,10 +1251,8 @@ func skipTypes(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -1101,81 +1269,34 @@ func skipTypes(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthTypes } - return iNdEx, nil + iNdEx += length case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowTypes - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipTypes(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupTypes + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthTypes + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") ) - -func init() { proto.RegisterFile("pkg/types/types.proto", fileDescriptorTypes) } - -var fileDescriptorTypes = []byte{ - // 345 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x91, 0xd1, 0x6a, 0xfa, 0x30, - 0x14, 0xc6, 0xff, 0xb1, 0xb6, 0xda, 0xe3, 0xdf, 0xad, 0x84, 0x4d, 0xc2, 0x06, 0x52, 0xbc, 0x59, - 0xd9, 0x85, 0x03, 0x37, 0x76, 0xbf, 0x5d, 0x08, 0xde, 0x49, 0x5e, 0x60, 0xc4, 0x36, 0x3a, 0xd1, - 0xda, 0xd2, 0x44, 0x8b, 0xec, 0x05, 0x77, 0xb9, 0x47, 0x10, 0x9f, 0x64, 0xe4, 0x24, 0x8a, 0xbb, - 0xd1, 0xef, 0x97, 0x93, 0xd3, 0xef, 0x7c, 0x27, 0x70, 0x5b, 0xae, 0x16, 0x4f, 0x7a, 0x5f, 0x4a, - 0x65, 0x7f, 0x87, 0x65, 0x55, 0xe8, 0x82, 0xfa, 0x08, 0x83, 0x19, 0x84, 0x93, 0xe9, 0x5b, 0x96, - 0x55, 0x52, 0x29, 0xfa, 0x00, 0xc1, 0x5c, 0xe4, 0xcb, 0xf5, 0x9e, 0x91, 0x98, 0x24, 0x57, 0xa3, - 0xeb, 0xa1, 0xed, 0x98, 0x4c, 0xc7, 0x78, 0xcc, 0x5d, 0x99, 0x32, 0x68, 0x09, 0xdb, 0xc3, 0x1a, - 0x31, 0x49, 0x42, 0x7e, 0x42, 0x4a, 0xa1, 0x99, 0x0b, 0xb5, 0x62, 0x1e, 0x1e, 0xa3, 0x1e, 0x1c, - 0x08, 0x84, 0x93, 0x8d, 0x96, 0xd5, 0x5c, 0xa4, 0x92, 0xf6, 0x20, 0xc8, 0xe4, 0x6e, 0x99, 0x4a, - 0x34, 0x09, 0xb9, 0x23, 0xd3, 0xb9, 0x11, 0xb9, 0x74, 0x1f, 0x44, 0x4d, 0x47, 0xd0, 0x39, 0x4f, - 0x27, 0x15, 0xf3, 0x62, 0x2f, 0xe9, 0x8c, 0xa2, 0xf3, 0x54, 0xae, 0xc2, 0x2f, 0x2f, 0xd1, 0x08, - 0xbc, 0x5c, 0x6f, 0x59, 0x33, 0x26, 0x49, 0x93, 0x1b, 0x69, 0x1c, 0x3f, 0x6b, 0x73, 0x81, 0xf9, - 0xd6, 0xd1, 0x92, 0x49, 0x51, 0xa6, 0x4b, 0x2c, 0x04, 0x36, 0x85, 0x43, 0x33, 0x8b, 0xf1, 0x60, - 0x2d, 0x3b, 0x8b, 0xd1, 0xf4, 0x1e, 0xc2, 0x4a, 0xd4, 0x1f, 0xf3, 0xb5, 0x58, 0x28, 0xd6, 0x8e, - 0x49, 0xd2, 0xe5, 0xed, 0x4a, 0xd4, 0x63, 0xc3, 0x83, 0x2f, 0xf0, 0x79, 0xb1, 0xd5, 0x98, 0x22, - 0x93, 0x4a, 0xbb, 0x6c, 0xa8, 0x8d, 0xcf, 0x42, 0x68, 0x59, 0x8b, 0xfd, 0x69, 0x5b, 0x0e, 0x2f, - 0x76, 0xe1, 0xfd, 0xd9, 0x45, 0x0f, 0x02, 0x55, 0x6c, 0xab, 0x54, 0x62, 0x8c, 0x90, 0x3b, 0xa2, - 0x37, 0xe0, 0xab, 0xb4, 0x28, 0x25, 0x06, 0xe9, 0x72, 0x0b, 0x8f, 0x77, 0xd0, 0x3e, 0xbd, 0x10, - 0x0d, 0xa0, 0xb1, 0x7b, 0x89, 0xfe, 0xe1, 0xff, 0x6b, 0x44, 0xde, 0xff, 0x7f, 0x1f, 0xfb, 0xe4, - 0xe7, 0xd8, 0x27, 0x87, 0x63, 0x9f, 0xcc, 0x02, 0x7c, 0xfb, 0xe7, 0xdf, 0x00, 0x00, 0x00, 0xff, - 0xff, 0xb5, 0x52, 0x37, 0xf2, 0x14, 0x02, 0x00, 0x00, -} diff --git a/src/runtime/vendor/github.com/kata-containers/agent/protocols/client/client.go b/src/runtime/vendor/github.com/kata-containers/agent/protocols/client/client.go index aac0dd1a2d..c41e9a1709 100644 --- a/src/runtime/vendor/github.com/kata-containers/agent/protocols/client/client.go +++ b/src/runtime/vendor/github.com/kata-containers/agent/protocols/client/client.go @@ -18,16 +18,16 @@ import ( "strings" "time" - "github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc" "github.com/hashicorp/yamux" "github.com/mdlayher/vsock" - opentracing "github.com/opentracing/opentracing-go" +// opentracing "github.com/opentracing/opentracing-go" "github.com/sirupsen/logrus" - "google.golang.org/grpc" +// "google.golang.org/grpc" "google.golang.org/grpc/codes" grpcStatus "google.golang.org/grpc/status" agentgrpc "github.com/kata-containers/agent/protocols/grpc" + "github.com/containerd/ttrpc" ) const ( @@ -51,9 +51,9 @@ var agentClientLog = logrus.WithFields(agentClientFields) // AgentClient is an agent gRPC client connection wrapper for agentgrpc.AgentServiceClient type AgentClient struct { - agentgrpc.AgentServiceClient - agentgrpc.HealthClient - conn *grpc.ClientConn + AgentServiceClient agentgrpc.AgentServiceService + HealthClient agentgrpc.HealthService + conn *ttrpc.Client } type yamuxSessionStream struct { @@ -100,6 +100,15 @@ func NewAgentClient(ctx context.Context, sock string, enableYamux bool) (*AgentC if err != nil { return nil, err } + + var conn net.Conn + var d dialer + d = agentDialer(parsedAddr, enableYamux) + conn, err = d(grpcAddr, defaultDialTimeout) + if err != nil { + return nil, err + } +/* dialOpts := []grpc.DialOption{grpc.WithInsecure(), grpc.WithBlock()} dialOpts = append(dialOpts, grpc.WithDialer(agentDialer(parsedAddr, enableYamux))) @@ -123,11 +132,13 @@ func NewAgentClient(ctx context.Context, sock string, enableYamux bool) (*AgentC if err != nil { return nil, err } +*/ + client := ttrpc.NewClient(conn) return &AgentClient{ - AgentServiceClient: agentgrpc.NewAgentServiceClient(conn), - HealthClient: agentgrpc.NewHealthClient(conn), - conn: conn, + AgentServiceClient: agentgrpc.NewAgentServiceClient(client), + HealthClient: agentgrpc.NewHealthClient(client), + conn: client, }, nil } diff --git a/src/runtime/vendor/github.com/kata-containers/agent/protocols/grpc/agent.pb.go b/src/runtime/vendor/github.com/kata-containers/agent/protocols/grpc/agent.pb.go index 77e6d1bc97..4e84637171 100644 --- a/src/runtime/vendor/github.com/kata-containers/agent/protocols/grpc/agent.pb.go +++ b/src/runtime/vendor/github.com/kata-containers/agent/protocols/grpc/agent.pb.go @@ -1,115 +1,22 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: agent.proto +// source: github.com/kata-containers/agent/protocols/grpc/agent.proto -/* - Package grpc is a generated protocol buffer package. - - It is generated from these files: - agent.proto - health.proto - oci.proto - - It has these top-level messages: - CreateContainerRequest - StartContainerRequest - RemoveContainerRequest - ExecProcessRequest - SignalProcessRequest - WaitProcessRequest - WaitProcessResponse - ListProcessesRequest - ListProcessesResponse - UpdateContainerRequest - StatsContainerRequest - PauseContainerRequest - ResumeContainerRequest - CpuUsage - ThrottlingData - CpuStats - PidsStats - MemoryData - MemoryStats - BlkioStatsEntry - BlkioStats - HugetlbStats - CgroupStats - NetworkStats - StatsContainerResponse - WriteStreamRequest - WriteStreamResponse - ReadStreamRequest - ReadStreamResponse - CloseStdinRequest - TtyWinResizeRequest - KernelModule - CreateSandboxRequest - DestroySandboxRequest - Interfaces - Routes - UpdateInterfaceRequest - UpdateRoutesRequest - ListInterfacesRequest - ListRoutesRequest - OnlineCPUMemRequest - ReseedRandomDevRequest - AgentDetails - GuestDetailsRequest - GuestDetailsResponse - MemHotplugByProbeRequest - SetGuestDateTimeRequest - Storage - Device - StringUser - CopyFileRequest - StartTracingRequest - StopTracingRequest - CheckRequest - HealthCheckResponse - VersionCheckResponse - Spec - Process - Box - User - LinuxCapabilities - POSIXRlimit - Mount - Root - Hooks - Hook - Linux - Windows - Solaris - LinuxIDMapping - LinuxNamespace - LinuxDevice - LinuxResources - LinuxMemory - LinuxCPU - LinuxWeightDevice - LinuxThrottleDevice - LinuxBlockIO - LinuxPids - LinuxDeviceCgroup - LinuxNetwork - LinuxHugepageLimit - LinuxInterfacePriority - LinuxSeccomp - LinuxSeccompArg - LinuxSyscall - LinuxIntelRdt -*/ package grpc -import proto "github.com/gogo/protobuf/proto" -import fmt "fmt" -import math "math" -import types "github.com/kata-containers/agent/pkg/types" -import google_protobuf2 "github.com/gogo/protobuf/types" - -import context "golang.org/x/net/context" -import grpc1 "google.golang.org/grpc" - -import io "io" +import ( + context "context" + fmt "fmt" + github_com_containerd_ttrpc "github.com/containerd/ttrpc" + proto "github.com/gogo/protobuf/proto" + github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" + types1 "github.com/gogo/protobuf/types" + types "github.com/kata-containers/agent/pkg/types" + io "io" + math "math" + math_bits "math/bits" + reflect "reflect" + strings "strings" +) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal @@ -120,92 +27,96 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type CreateContainerRequest 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"` - StringUser *StringUser `protobuf:"bytes,3,opt,name=string_user,json=stringUser" json:"string_user,omitempty"` - Devices []*Device `protobuf:"bytes,4,rep,name=devices" json:"devices,omitempty"` - Storages []*Storage `protobuf:"bytes,5,rep,name=storages" json:"storages,omitempty"` - OCI *Spec `protobuf:"bytes,6,opt,name=OCI" json:"OCI,omitempty"` + StringUser *StringUser `protobuf:"bytes,3,opt,name=string_user,json=stringUser,proto3" json:"string_user,omitempty"` + Devices []*Device `protobuf:"bytes,4,rep,name=devices,proto3" json:"devices,omitempty"` + Storages []*Storage `protobuf:"bytes,5,rep,name=storages,proto3" json:"storages,omitempty"` + OCI *Spec `protobuf:"bytes,6,opt,name=OCI,json=oCI,proto3" json:"OCI,omitempty"` // This field is used to indicate if the container needs to join // sandbox shared pid ns or create a new namespace. This field is // meant to override the NEWPID config settings in the OCI spec. // The agent would receive an OCI spec with PID namespace cleared // out altogether and not just the pid ns path. - SandboxPidns bool `protobuf:"varint,7,opt,name=sandbox_pidns,json=sandboxPidns,proto3" json:"sandbox_pidns,omitempty"` + SandboxPidns bool `protobuf:"varint,7,opt,name=sandbox_pidns,json=sandboxPidns,proto3" json:"sandbox_pidns,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *CreateContainerRequest) Reset() { *m = CreateContainerRequest{} } -func (m *CreateContainerRequest) String() string { return proto.CompactTextString(m) } -func (*CreateContainerRequest) ProtoMessage() {} -func (*CreateContainerRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{0} } - -func (m *CreateContainerRequest) GetContainerId() string { - if m != nil { - return m.ContainerId +func (m *CreateContainerRequest) Reset() { *m = CreateContainerRequest{} } +func (*CreateContainerRequest) ProtoMessage() {} +func (*CreateContainerRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4a132446d64d28b7, []int{0} +} +func (m *CreateContainerRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CreateContainerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CreateContainerRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return "" +} +func (m *CreateContainerRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateContainerRequest.Merge(m, src) +} +func (m *CreateContainerRequest) XXX_Size() int { + return m.Size() +} +func (m *CreateContainerRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CreateContainerRequest.DiscardUnknown(m) } -func (m *CreateContainerRequest) GetExecId() string { - if m != nil { - return m.ExecId - } - return "" -} - -func (m *CreateContainerRequest) GetStringUser() *StringUser { - if m != nil { - return m.StringUser - } - return nil -} - -func (m *CreateContainerRequest) GetDevices() []*Device { - if m != nil { - return m.Devices - } - return nil -} - -func (m *CreateContainerRequest) GetStorages() []*Storage { - if m != nil { - return m.Storages - } - return nil -} - -func (m *CreateContainerRequest) GetOCI() *Spec { - if m != nil { - return m.OCI - } - return nil -} - -func (m *CreateContainerRequest) GetSandboxPidns() bool { - if m != nil { - return m.SandboxPidns - } - return false -} +var xxx_messageInfo_CreateContainerRequest proto.InternalMessageInfo type StartContainerRequest struct { - ContainerId string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` + ContainerId string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *StartContainerRequest) Reset() { *m = StartContainerRequest{} } -func (m *StartContainerRequest) String() string { return proto.CompactTextString(m) } -func (*StartContainerRequest) ProtoMessage() {} -func (*StartContainerRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{1} } - -func (m *StartContainerRequest) GetContainerId() string { - if m != nil { - return m.ContainerId +func (m *StartContainerRequest) Reset() { *m = StartContainerRequest{} } +func (*StartContainerRequest) ProtoMessage() {} +func (*StartContainerRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4a132446d64d28b7, []int{1} +} +func (m *StartContainerRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StartContainerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StartContainerRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return "" } +func (m *StartContainerRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_StartContainerRequest.Merge(m, src) +} +func (m *StartContainerRequest) XXX_Size() int { + return m.Size() +} +func (m *StartContainerRequest) XXX_DiscardUnknown() { + xxx_messageInfo_StartContainerRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_StartContainerRequest proto.InternalMessageInfo type RemoveContainerRequest struct { ContainerId string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` @@ -214,968 +125,1245 @@ type RemoveContainerRequest struct { // after timeout seconds. // Setting timeout to 0 means RemoveContainer will // wait for ever. - Timeout uint32 `protobuf:"varint,2,opt,name=timeout,proto3" json:"timeout,omitempty"` + Timeout uint32 `protobuf:"varint,2,opt,name=timeout,proto3" json:"timeout,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *RemoveContainerRequest) Reset() { *m = RemoveContainerRequest{} } -func (m *RemoveContainerRequest) String() string { return proto.CompactTextString(m) } -func (*RemoveContainerRequest) ProtoMessage() {} -func (*RemoveContainerRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{2} } - -func (m *RemoveContainerRequest) GetContainerId() string { - if m != nil { - return m.ContainerId +func (m *RemoveContainerRequest) Reset() { *m = RemoveContainerRequest{} } +func (*RemoveContainerRequest) ProtoMessage() {} +func (*RemoveContainerRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4a132446d64d28b7, []int{2} +} +func (m *RemoveContainerRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RemoveContainerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RemoveContainerRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return "" +} +func (m *RemoveContainerRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RemoveContainerRequest.Merge(m, src) +} +func (m *RemoveContainerRequest) XXX_Size() int { + return m.Size() +} +func (m *RemoveContainerRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RemoveContainerRequest.DiscardUnknown(m) } -func (m *RemoveContainerRequest) GetTimeout() uint32 { - if m != nil { - return m.Timeout - } - return 0 -} +var xxx_messageInfo_RemoveContainerRequest proto.InternalMessageInfo type ExecProcessRequest 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"` - StringUser *StringUser `protobuf:"bytes,3,opt,name=string_user,json=stringUser" json:"string_user,omitempty"` - Process *Process `protobuf:"bytes,4,opt,name=process" json:"process,omitempty"` + 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"` + StringUser *StringUser `protobuf:"bytes,3,opt,name=string_user,json=stringUser,proto3" json:"string_user,omitempty"` + Process *Process `protobuf:"bytes,4,opt,name=process,proto3" json:"process,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ExecProcessRequest) Reset() { *m = ExecProcessRequest{} } -func (m *ExecProcessRequest) String() string { return proto.CompactTextString(m) } -func (*ExecProcessRequest) ProtoMessage() {} -func (*ExecProcessRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{3} } - -func (m *ExecProcessRequest) GetContainerId() string { - if m != nil { - return m.ContainerId +func (m *ExecProcessRequest) Reset() { *m = ExecProcessRequest{} } +func (*ExecProcessRequest) ProtoMessage() {} +func (*ExecProcessRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4a132446d64d28b7, []int{3} +} +func (m *ExecProcessRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ExecProcessRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ExecProcessRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return "" +} +func (m *ExecProcessRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExecProcessRequest.Merge(m, src) +} +func (m *ExecProcessRequest) XXX_Size() int { + return m.Size() +} +func (m *ExecProcessRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ExecProcessRequest.DiscardUnknown(m) } -func (m *ExecProcessRequest) GetExecId() string { - if m != nil { - return m.ExecId - } - return "" -} - -func (m *ExecProcessRequest) GetStringUser() *StringUser { - if m != nil { - return m.StringUser - } - return nil -} - -func (m *ExecProcessRequest) GetProcess() *Process { - if m != nil { - return m.Process - } - return nil -} +var xxx_messageInfo_ExecProcessRequest proto.InternalMessageInfo type SignalProcessRequest struct { ContainerId string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` // Special case for SignalProcess(): exec_id can be empty(""), // which means to send the signal to all the processes including their descendants. // Other APIs with exec_id should treat empty exec_id as an invalid request. - ExecId string `protobuf:"bytes,2,opt,name=exec_id,json=execId,proto3" json:"exec_id,omitempty"` - Signal uint32 `protobuf:"varint,3,opt,name=signal,proto3" json:"signal,omitempty"` + ExecId string `protobuf:"bytes,2,opt,name=exec_id,json=execId,proto3" json:"exec_id,omitempty"` + Signal uint32 `protobuf:"varint,3,opt,name=signal,proto3" json:"signal,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *SignalProcessRequest) Reset() { *m = SignalProcessRequest{} } -func (m *SignalProcessRequest) String() string { return proto.CompactTextString(m) } -func (*SignalProcessRequest) ProtoMessage() {} -func (*SignalProcessRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{4} } - -func (m *SignalProcessRequest) GetContainerId() string { - if m != nil { - return m.ContainerId +func (m *SignalProcessRequest) Reset() { *m = SignalProcessRequest{} } +func (*SignalProcessRequest) ProtoMessage() {} +func (*SignalProcessRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4a132446d64d28b7, []int{4} +} +func (m *SignalProcessRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SignalProcessRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SignalProcessRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return "" +} +func (m *SignalProcessRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SignalProcessRequest.Merge(m, src) +} +func (m *SignalProcessRequest) XXX_Size() int { + return m.Size() +} +func (m *SignalProcessRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SignalProcessRequest.DiscardUnknown(m) } -func (m *SignalProcessRequest) GetExecId() string { - if m != nil { - return m.ExecId - } - return "" -} - -func (m *SignalProcessRequest) GetSignal() uint32 { - if m != nil { - return m.Signal - } - return 0 -} +var xxx_messageInfo_SignalProcessRequest proto.InternalMessageInfo type WaitProcessRequest 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"` + 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"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *WaitProcessRequest) Reset() { *m = WaitProcessRequest{} } -func (m *WaitProcessRequest) String() string { return proto.CompactTextString(m) } -func (*WaitProcessRequest) ProtoMessage() {} -func (*WaitProcessRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{5} } - -func (m *WaitProcessRequest) GetContainerId() string { - if m != nil { - return m.ContainerId +func (m *WaitProcessRequest) Reset() { *m = WaitProcessRequest{} } +func (*WaitProcessRequest) ProtoMessage() {} +func (*WaitProcessRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4a132446d64d28b7, []int{5} +} +func (m *WaitProcessRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WaitProcessRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_WaitProcessRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return "" +} +func (m *WaitProcessRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_WaitProcessRequest.Merge(m, src) +} +func (m *WaitProcessRequest) XXX_Size() int { + return m.Size() +} +func (m *WaitProcessRequest) XXX_DiscardUnknown() { + xxx_messageInfo_WaitProcessRequest.DiscardUnknown(m) } -func (m *WaitProcessRequest) GetExecId() string { - if m != nil { - return m.ExecId - } - return "" -} +var xxx_messageInfo_WaitProcessRequest proto.InternalMessageInfo type WaitProcessResponse struct { - Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` + Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *WaitProcessResponse) Reset() { *m = WaitProcessResponse{} } -func (m *WaitProcessResponse) String() string { return proto.CompactTextString(m) } -func (*WaitProcessResponse) ProtoMessage() {} -func (*WaitProcessResponse) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{6} } - -func (m *WaitProcessResponse) GetStatus() int32 { - if m != nil { - return m.Status +func (m *WaitProcessResponse) Reset() { *m = WaitProcessResponse{} } +func (*WaitProcessResponse) ProtoMessage() {} +func (*WaitProcessResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_4a132446d64d28b7, []int{6} +} +func (m *WaitProcessResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WaitProcessResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_WaitProcessResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return 0 } +func (m *WaitProcessResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_WaitProcessResponse.Merge(m, src) +} +func (m *WaitProcessResponse) XXX_Size() int { + return m.Size() +} +func (m *WaitProcessResponse) XXX_DiscardUnknown() { + xxx_messageInfo_WaitProcessResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_WaitProcessResponse proto.InternalMessageInfo // ListProcessesRequest contains the options used to list running processes inside the container type ListProcessesRequest struct { - ContainerId string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` - Format string `protobuf:"bytes,2,opt,name=format,proto3" json:"format,omitempty"` - Args []string `protobuf:"bytes,3,rep,name=args" json:"args,omitempty"` + ContainerId string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` + Format string `protobuf:"bytes,2,opt,name=format,proto3" json:"format,omitempty"` + Args []string `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ListProcessesRequest) Reset() { *m = ListProcessesRequest{} } -func (m *ListProcessesRequest) String() string { return proto.CompactTextString(m) } -func (*ListProcessesRequest) ProtoMessage() {} -func (*ListProcessesRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{7} } - -func (m *ListProcessesRequest) GetContainerId() string { - if m != nil { - return m.ContainerId +func (m *ListProcessesRequest) Reset() { *m = ListProcessesRequest{} } +func (*ListProcessesRequest) ProtoMessage() {} +func (*ListProcessesRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4a132446d64d28b7, []int{7} +} +func (m *ListProcessesRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ListProcessesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ListProcessesRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return "" +} +func (m *ListProcessesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListProcessesRequest.Merge(m, src) +} +func (m *ListProcessesRequest) XXX_Size() int { + return m.Size() +} +func (m *ListProcessesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListProcessesRequest.DiscardUnknown(m) } -func (m *ListProcessesRequest) GetFormat() string { - if m != nil { - return m.Format - } - return "" -} - -func (m *ListProcessesRequest) GetArgs() []string { - if m != nil { - return m.Args - } - return nil -} +var xxx_messageInfo_ListProcessesRequest proto.InternalMessageInfo // ListProcessesResponse represents the list of running processes inside the container type ListProcessesResponse struct { - ProcessList []byte `protobuf:"bytes,1,opt,name=process_list,json=processList,proto3" json:"process_list,omitempty"` + ProcessList []byte `protobuf:"bytes,1,opt,name=process_list,json=processList,proto3" json:"process_list,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ListProcessesResponse) Reset() { *m = ListProcessesResponse{} } -func (m *ListProcessesResponse) String() string { return proto.CompactTextString(m) } -func (*ListProcessesResponse) ProtoMessage() {} -func (*ListProcessesResponse) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{8} } - -func (m *ListProcessesResponse) GetProcessList() []byte { - if m != nil { - return m.ProcessList +func (m *ListProcessesResponse) Reset() { *m = ListProcessesResponse{} } +func (*ListProcessesResponse) ProtoMessage() {} +func (*ListProcessesResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_4a132446d64d28b7, []int{8} +} +func (m *ListProcessesResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ListProcessesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ListProcessesResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return nil } +func (m *ListProcessesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListProcessesResponse.Merge(m, src) +} +func (m *ListProcessesResponse) XXX_Size() int { + return m.Size() +} +func (m *ListProcessesResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListProcessesResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ListProcessesResponse proto.InternalMessageInfo type UpdateContainerRequest struct { - ContainerId string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` - Resources *LinuxResources `protobuf:"bytes,2,opt,name=resources" json:"resources,omitempty"` + ContainerId string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` + Resources *LinuxResources `protobuf:"bytes,2,opt,name=resources,proto3" json:"resources,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *UpdateContainerRequest) Reset() { *m = UpdateContainerRequest{} } -func (m *UpdateContainerRequest) String() string { return proto.CompactTextString(m) } -func (*UpdateContainerRequest) ProtoMessage() {} -func (*UpdateContainerRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{9} } - -func (m *UpdateContainerRequest) GetContainerId() string { - if m != nil { - return m.ContainerId +func (m *UpdateContainerRequest) Reset() { *m = UpdateContainerRequest{} } +func (*UpdateContainerRequest) ProtoMessage() {} +func (*UpdateContainerRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4a132446d64d28b7, []int{9} +} +func (m *UpdateContainerRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UpdateContainerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UpdateContainerRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return "" +} +func (m *UpdateContainerRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateContainerRequest.Merge(m, src) +} +func (m *UpdateContainerRequest) XXX_Size() int { + return m.Size() +} +func (m *UpdateContainerRequest) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateContainerRequest.DiscardUnknown(m) } -func (m *UpdateContainerRequest) GetResources() *LinuxResources { - if m != nil { - return m.Resources - } - return nil -} +var xxx_messageInfo_UpdateContainerRequest proto.InternalMessageInfo type StatsContainerRequest struct { - ContainerId string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` + ContainerId string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -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{10} } - -func (m *StatsContainerRequest) GetContainerId() string { - if m != nil { - return m.ContainerId +func (m *StatsContainerRequest) Reset() { *m = StatsContainerRequest{} } +func (*StatsContainerRequest) ProtoMessage() {} +func (*StatsContainerRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4a132446d64d28b7, []int{10} +} +func (m *StatsContainerRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StatsContainerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StatsContainerRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return "" } +func (m *StatsContainerRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_StatsContainerRequest.Merge(m, src) +} +func (m *StatsContainerRequest) XXX_Size() int { + return m.Size() +} +func (m *StatsContainerRequest) XXX_DiscardUnknown() { + xxx_messageInfo_StatsContainerRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_StatsContainerRequest proto.InternalMessageInfo type PauseContainerRequest struct { - ContainerId string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` + ContainerId string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *PauseContainerRequest) Reset() { *m = PauseContainerRequest{} } -func (m *PauseContainerRequest) String() string { return proto.CompactTextString(m) } -func (*PauseContainerRequest) ProtoMessage() {} -func (*PauseContainerRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{11} } - -func (m *PauseContainerRequest) GetContainerId() string { - if m != nil { - return m.ContainerId +func (m *PauseContainerRequest) Reset() { *m = PauseContainerRequest{} } +func (*PauseContainerRequest) ProtoMessage() {} +func (*PauseContainerRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4a132446d64d28b7, []int{11} +} +func (m *PauseContainerRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PauseContainerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PauseContainerRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return "" } +func (m *PauseContainerRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_PauseContainerRequest.Merge(m, src) +} +func (m *PauseContainerRequest) XXX_Size() int { + return m.Size() +} +func (m *PauseContainerRequest) XXX_DiscardUnknown() { + xxx_messageInfo_PauseContainerRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_PauseContainerRequest proto.InternalMessageInfo type ResumeContainerRequest struct { - ContainerId string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` + ContainerId string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ResumeContainerRequest) Reset() { *m = ResumeContainerRequest{} } -func (m *ResumeContainerRequest) String() string { return proto.CompactTextString(m) } -func (*ResumeContainerRequest) ProtoMessage() {} -func (*ResumeContainerRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{12} } - -func (m *ResumeContainerRequest) GetContainerId() string { - if m != nil { - return m.ContainerId +func (m *ResumeContainerRequest) Reset() { *m = ResumeContainerRequest{} } +func (*ResumeContainerRequest) ProtoMessage() {} +func (*ResumeContainerRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4a132446d64d28b7, []int{12} +} +func (m *ResumeContainerRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ResumeContainerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ResumeContainerRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return "" } +func (m *ResumeContainerRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResumeContainerRequest.Merge(m, src) +} +func (m *ResumeContainerRequest) XXX_Size() int { + return m.Size() +} +func (m *ResumeContainerRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ResumeContainerRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ResumeContainerRequest proto.InternalMessageInfo 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"` + 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,proto3" 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"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -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{13} } - -func (m *CpuUsage) GetTotalUsage() uint64 { - if m != nil { - return m.TotalUsage +func (m *CpuUsage) Reset() { *m = CpuUsage{} } +func (*CpuUsage) ProtoMessage() {} +func (*CpuUsage) Descriptor() ([]byte, []int) { + return fileDescriptor_4a132446d64d28b7, []int{13} +} +func (m *CpuUsage) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CpuUsage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CpuUsage.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return 0 +} +func (m *CpuUsage) XXX_Merge(src proto.Message) { + xxx_messageInfo_CpuUsage.Merge(m, src) +} +func (m *CpuUsage) XXX_Size() int { + return m.Size() +} +func (m *CpuUsage) XXX_DiscardUnknown() { + xxx_messageInfo_CpuUsage.DiscardUnknown(m) } -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 -} +var xxx_messageInfo_CpuUsage proto.InternalMessageInfo 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"` + 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"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -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{14} } - -func (m *ThrottlingData) GetPeriods() uint64 { - if m != nil { - return m.Periods +func (m *ThrottlingData) Reset() { *m = ThrottlingData{} } +func (*ThrottlingData) ProtoMessage() {} +func (*ThrottlingData) Descriptor() ([]byte, []int) { + return fileDescriptor_4a132446d64d28b7, []int{14} +} +func (m *ThrottlingData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ThrottlingData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ThrottlingData.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return 0 +} +func (m *ThrottlingData) XXX_Merge(src proto.Message) { + xxx_messageInfo_ThrottlingData.Merge(m, src) +} +func (m *ThrottlingData) XXX_Size() int { + return m.Size() +} +func (m *ThrottlingData) XXX_DiscardUnknown() { + xxx_messageInfo_ThrottlingData.DiscardUnknown(m) } -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 -} +var xxx_messageInfo_ThrottlingData proto.InternalMessageInfo 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"` + CpuUsage *CpuUsage `protobuf:"bytes,1,opt,name=cpu_usage,json=cpuUsage,proto3" json:"cpu_usage,omitempty"` + ThrottlingData *ThrottlingData `protobuf:"bytes,2,opt,name=throttling_data,json=throttlingData,proto3" json:"throttling_data,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -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{15} } - -func (m *CpuStats) GetCpuUsage() *CpuUsage { - if m != nil { - return m.CpuUsage +func (m *CpuStats) Reset() { *m = CpuStats{} } +func (*CpuStats) ProtoMessage() {} +func (*CpuStats) Descriptor() ([]byte, []int) { + return fileDescriptor_4a132446d64d28b7, []int{15} +} +func (m *CpuStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CpuStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CpuStats.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return nil +} +func (m *CpuStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_CpuStats.Merge(m, src) +} +func (m *CpuStats) XXX_Size() int { + return m.Size() +} +func (m *CpuStats) XXX_DiscardUnknown() { + xxx_messageInfo_CpuStats.DiscardUnknown(m) } -func (m *CpuStats) GetThrottlingData() *ThrottlingData { - if m != nil { - return m.ThrottlingData - } - return nil -} +var xxx_messageInfo_CpuStats proto.InternalMessageInfo 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"` + Current uint64 `protobuf:"varint,1,opt,name=current,proto3" json:"current,omitempty"` + Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -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{16} } - -func (m *PidsStats) GetCurrent() uint64 { - if m != nil { - return m.Current +func (m *PidsStats) Reset() { *m = PidsStats{} } +func (*PidsStats) ProtoMessage() {} +func (*PidsStats) Descriptor() ([]byte, []int) { + return fileDescriptor_4a132446d64d28b7, []int{16} +} +func (m *PidsStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PidsStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PidsStats.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return 0 +} +func (m *PidsStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_PidsStats.Merge(m, src) +} +func (m *PidsStats) XXX_Size() int { + return m.Size() +} +func (m *PidsStats) XXX_DiscardUnknown() { + xxx_messageInfo_PidsStats.DiscardUnknown(m) } -func (m *PidsStats) GetLimit() uint64 { - if m != nil { - return m.Limit - } - return 0 -} +var xxx_messageInfo_PidsStats proto.InternalMessageInfo 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"` + 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"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -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{17} } - -func (m *MemoryData) GetUsage() uint64 { - if m != nil { - return m.Usage +func (m *MemoryData) Reset() { *m = MemoryData{} } +func (*MemoryData) ProtoMessage() {} +func (*MemoryData) Descriptor() ([]byte, []int) { + return fileDescriptor_4a132446d64d28b7, []int{17} +} +func (m *MemoryData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MemoryData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MemoryData.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return 0 +} +func (m *MemoryData) XXX_Merge(src proto.Message) { + xxx_messageInfo_MemoryData.Merge(m, src) +} +func (m *MemoryData) XXX_Size() int { + return m.Size() +} +func (m *MemoryData) XXX_DiscardUnknown() { + xxx_messageInfo_MemoryData.DiscardUnknown(m) } -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 -} +var xxx_messageInfo_MemoryData proto.InternalMessageInfo 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"` + Cache uint64 `protobuf:"varint,1,opt,name=cache,proto3" json:"cache,omitempty"` + Usage *MemoryData `protobuf:"bytes,2,opt,name=usage,proto3" json:"usage,omitempty"` + SwapUsage *MemoryData `protobuf:"bytes,3,opt,name=swap_usage,json=swapUsage,proto3" json:"swap_usage,omitempty"` + KernelUsage *MemoryData `protobuf:"bytes,4,opt,name=kernel_usage,json=kernelUsage,proto3" 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,proto3" json:"stats,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -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{18} } - -func (m *MemoryStats) GetCache() uint64 { - if m != nil { - return m.Cache +func (m *MemoryStats) Reset() { *m = MemoryStats{} } +func (*MemoryStats) ProtoMessage() {} +func (*MemoryStats) Descriptor() ([]byte, []int) { + return fileDescriptor_4a132446d64d28b7, []int{18} +} +func (m *MemoryStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MemoryStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MemoryStats.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return 0 +} +func (m *MemoryStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_MemoryStats.Merge(m, src) +} +func (m *MemoryStats) XXX_Size() int { + return m.Size() +} +func (m *MemoryStats) XXX_DiscardUnknown() { + xxx_messageInfo_MemoryStats.DiscardUnknown(m) } -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 -} +var xxx_messageInfo_MemoryStats proto.InternalMessageInfo 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"` + 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"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -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{19} } - -func (m *BlkioStatsEntry) GetMajor() uint64 { - if m != nil { - return m.Major +func (m *BlkioStatsEntry) Reset() { *m = BlkioStatsEntry{} } +func (*BlkioStatsEntry) ProtoMessage() {} +func (*BlkioStatsEntry) Descriptor() ([]byte, []int) { + return fileDescriptor_4a132446d64d28b7, []int{19} +} +func (m *BlkioStatsEntry) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BlkioStatsEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BlkioStatsEntry.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return 0 +} +func (m *BlkioStatsEntry) XXX_Merge(src proto.Message) { + xxx_messageInfo_BlkioStatsEntry.Merge(m, src) +} +func (m *BlkioStatsEntry) XXX_Size() int { + return m.Size() +} +func (m *BlkioStatsEntry) XXX_DiscardUnknown() { + xxx_messageInfo_BlkioStatsEntry.DiscardUnknown(m) } -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 -} +var xxx_messageInfo_BlkioStatsEntry proto.InternalMessageInfo 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"` + IoServiceBytesRecursive []*BlkioStatsEntry `protobuf:"bytes,1,rep,name=io_service_bytes_recursive,json=ioServiceBytesRecursive,proto3" json:"io_service_bytes_recursive,omitempty"` + IoServicedRecursive []*BlkioStatsEntry `protobuf:"bytes,2,rep,name=io_serviced_recursive,json=ioServicedRecursive,proto3" json:"io_serviced_recursive,omitempty"` + IoQueuedRecursive []*BlkioStatsEntry `protobuf:"bytes,3,rep,name=io_queued_recursive,json=ioQueuedRecursive,proto3" json:"io_queued_recursive,omitempty"` + IoServiceTimeRecursive []*BlkioStatsEntry `protobuf:"bytes,4,rep,name=io_service_time_recursive,json=ioServiceTimeRecursive,proto3" json:"io_service_time_recursive,omitempty"` + IoWaitTimeRecursive []*BlkioStatsEntry `protobuf:"bytes,5,rep,name=io_wait_time_recursive,json=ioWaitTimeRecursive,proto3" json:"io_wait_time_recursive,omitempty"` + IoMergedRecursive []*BlkioStatsEntry `protobuf:"bytes,6,rep,name=io_merged_recursive,json=ioMergedRecursive,proto3" json:"io_merged_recursive,omitempty"` + IoTimeRecursive []*BlkioStatsEntry `protobuf:"bytes,7,rep,name=io_time_recursive,json=ioTimeRecursive,proto3" json:"io_time_recursive,omitempty"` + SectorsRecursive []*BlkioStatsEntry `protobuf:"bytes,8,rep,name=sectors_recursive,json=sectorsRecursive,proto3" json:"sectors_recursive,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -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{20} } - -func (m *BlkioStats) GetIoServiceBytesRecursive() []*BlkioStatsEntry { - if m != nil { - return m.IoServiceBytesRecursive +func (m *BlkioStats) Reset() { *m = BlkioStats{} } +func (*BlkioStats) ProtoMessage() {} +func (*BlkioStats) Descriptor() ([]byte, []int) { + return fileDescriptor_4a132446d64d28b7, []int{20} +} +func (m *BlkioStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BlkioStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BlkioStats.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return nil +} +func (m *BlkioStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_BlkioStats.Merge(m, src) +} +func (m *BlkioStats) XXX_Size() int { + return m.Size() +} +func (m *BlkioStats) XXX_DiscardUnknown() { + xxx_messageInfo_BlkioStats.DiscardUnknown(m) } -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 -} +var xxx_messageInfo_BlkioStats proto.InternalMessageInfo 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"` + 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"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -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{21} } - -func (m *HugetlbStats) GetUsage() uint64 { - if m != nil { - return m.Usage +func (m *HugetlbStats) Reset() { *m = HugetlbStats{} } +func (*HugetlbStats) ProtoMessage() {} +func (*HugetlbStats) Descriptor() ([]byte, []int) { + return fileDescriptor_4a132446d64d28b7, []int{21} +} +func (m *HugetlbStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *HugetlbStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_HugetlbStats.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return 0 +} +func (m *HugetlbStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_HugetlbStats.Merge(m, src) +} +func (m *HugetlbStats) XXX_Size() int { + return m.Size() +} +func (m *HugetlbStats) XXX_DiscardUnknown() { + xxx_messageInfo_HugetlbStats.DiscardUnknown(m) } -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 -} +var xxx_messageInfo_HugetlbStats proto.InternalMessageInfo 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"` + CpuStats *CpuStats `protobuf:"bytes,1,opt,name=cpu_stats,json=cpuStats,proto3" json:"cpu_stats,omitempty"` + MemoryStats *MemoryStats `protobuf:"bytes,2,opt,name=memory_stats,json=memoryStats,proto3" json:"memory_stats,omitempty"` + PidsStats *PidsStats `protobuf:"bytes,3,opt,name=pids_stats,json=pidsStats,proto3" json:"pids_stats,omitempty"` + BlkioStats *BlkioStats `protobuf:"bytes,4,opt,name=blkio_stats,json=blkioStats,proto3" json:"blkio_stats,omitempty"` + HugetlbStats map[string]*HugetlbStats `protobuf:"bytes,5,rep,name=hugetlb_stats,json=hugetlbStats,proto3" json:"hugetlb_stats,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -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{22} } - -func (m *CgroupStats) GetCpuStats() *CpuStats { - if m != nil { - return m.CpuStats +func (m *CgroupStats) Reset() { *m = CgroupStats{} } +func (*CgroupStats) ProtoMessage() {} +func (*CgroupStats) Descriptor() ([]byte, []int) { + return fileDescriptor_4a132446d64d28b7, []int{22} +} +func (m *CgroupStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CgroupStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CgroupStats.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return nil +} +func (m *CgroupStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_CgroupStats.Merge(m, src) +} +func (m *CgroupStats) XXX_Size() int { + return m.Size() +} +func (m *CgroupStats) XXX_DiscardUnknown() { + xxx_messageInfo_CgroupStats.DiscardUnknown(m) } -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 -} +var xxx_messageInfo_CgroupStats proto.InternalMessageInfo type NetworkStats struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - RxBytes uint64 `protobuf:"varint,2,opt,name=rx_bytes,json=rxBytes,proto3" json:"rx_bytes,omitempty"` - RxPackets uint64 `protobuf:"varint,3,opt,name=rx_packets,json=rxPackets,proto3" json:"rx_packets,omitempty"` - RxErrors uint64 `protobuf:"varint,4,opt,name=rx_errors,json=rxErrors,proto3" json:"rx_errors,omitempty"` - RxDropped uint64 `protobuf:"varint,5,opt,name=rx_dropped,json=rxDropped,proto3" json:"rx_dropped,omitempty"` - TxBytes uint64 `protobuf:"varint,6,opt,name=tx_bytes,json=txBytes,proto3" json:"tx_bytes,omitempty"` - TxPackets uint64 `protobuf:"varint,7,opt,name=tx_packets,json=txPackets,proto3" json:"tx_packets,omitempty"` - TxErrors uint64 `protobuf:"varint,8,opt,name=tx_errors,json=txErrors,proto3" json:"tx_errors,omitempty"` - TxDropped uint64 `protobuf:"varint,9,opt,name=tx_dropped,json=txDropped,proto3" json:"tx_dropped,omitempty"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + RxBytes uint64 `protobuf:"varint,2,opt,name=rx_bytes,json=rxBytes,proto3" json:"rx_bytes,omitempty"` + RxPackets uint64 `protobuf:"varint,3,opt,name=rx_packets,json=rxPackets,proto3" json:"rx_packets,omitempty"` + RxErrors uint64 `protobuf:"varint,4,opt,name=rx_errors,json=rxErrors,proto3" json:"rx_errors,omitempty"` + RxDropped uint64 `protobuf:"varint,5,opt,name=rx_dropped,json=rxDropped,proto3" json:"rx_dropped,omitempty"` + TxBytes uint64 `protobuf:"varint,6,opt,name=tx_bytes,json=txBytes,proto3" json:"tx_bytes,omitempty"` + TxPackets uint64 `protobuf:"varint,7,opt,name=tx_packets,json=txPackets,proto3" json:"tx_packets,omitempty"` + TxErrors uint64 `protobuf:"varint,8,opt,name=tx_errors,json=txErrors,proto3" json:"tx_errors,omitempty"` + TxDropped uint64 `protobuf:"varint,9,opt,name=tx_dropped,json=txDropped,proto3" json:"tx_dropped,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *NetworkStats) Reset() { *m = NetworkStats{} } -func (m *NetworkStats) String() string { return proto.CompactTextString(m) } -func (*NetworkStats) ProtoMessage() {} -func (*NetworkStats) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{23} } - -func (m *NetworkStats) GetName() string { - if m != nil { - return m.Name +func (m *NetworkStats) Reset() { *m = NetworkStats{} } +func (*NetworkStats) ProtoMessage() {} +func (*NetworkStats) Descriptor() ([]byte, []int) { + return fileDescriptor_4a132446d64d28b7, []int{23} +} +func (m *NetworkStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkStats.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return "" +} +func (m *NetworkStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkStats.Merge(m, src) +} +func (m *NetworkStats) XXX_Size() int { + return m.Size() +} +func (m *NetworkStats) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkStats.DiscardUnknown(m) } -func (m *NetworkStats) GetRxBytes() uint64 { - if m != nil { - return m.RxBytes - } - return 0 -} - -func (m *NetworkStats) GetRxPackets() uint64 { - if m != nil { - return m.RxPackets - } - return 0 -} - -func (m *NetworkStats) GetRxErrors() uint64 { - if m != nil { - return m.RxErrors - } - return 0 -} - -func (m *NetworkStats) GetRxDropped() uint64 { - if m != nil { - return m.RxDropped - } - return 0 -} - -func (m *NetworkStats) GetTxBytes() uint64 { - if m != nil { - return m.TxBytes - } - return 0 -} - -func (m *NetworkStats) GetTxPackets() uint64 { - if m != nil { - return m.TxPackets - } - return 0 -} - -func (m *NetworkStats) GetTxErrors() uint64 { - if m != nil { - return m.TxErrors - } - return 0 -} - -func (m *NetworkStats) GetTxDropped() uint64 { - if m != nil { - return m.TxDropped - } - return 0 -} +var xxx_messageInfo_NetworkStats proto.InternalMessageInfo type StatsContainerResponse struct { - CgroupStats *CgroupStats `protobuf:"bytes,1,opt,name=cgroup_stats,json=cgroupStats" json:"cgroup_stats,omitempty"` - NetworkStats []*NetworkStats `protobuf:"bytes,2,rep,name=network_stats,json=networkStats" json:"network_stats,omitempty"` + CgroupStats *CgroupStats `protobuf:"bytes,1,opt,name=cgroup_stats,json=cgroupStats,proto3" json:"cgroup_stats,omitempty"` + NetworkStats []*NetworkStats `protobuf:"bytes,2,rep,name=network_stats,json=networkStats,proto3" json:"network_stats,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -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{24} } - -func (m *StatsContainerResponse) GetCgroupStats() *CgroupStats { - if m != nil { - return m.CgroupStats +func (m *StatsContainerResponse) Reset() { *m = StatsContainerResponse{} } +func (*StatsContainerResponse) ProtoMessage() {} +func (*StatsContainerResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_4a132446d64d28b7, []int{24} +} +func (m *StatsContainerResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StatsContainerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StatsContainerResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return nil +} +func (m *StatsContainerResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_StatsContainerResponse.Merge(m, src) +} +func (m *StatsContainerResponse) XXX_Size() int { + return m.Size() +} +func (m *StatsContainerResponse) XXX_DiscardUnknown() { + xxx_messageInfo_StatsContainerResponse.DiscardUnknown(m) } -func (m *StatsContainerResponse) GetNetworkStats() []*NetworkStats { - if m != nil { - return m.NetworkStats - } - return nil -} +var xxx_messageInfo_StatsContainerResponse proto.InternalMessageInfo 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"` - Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` + 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"` + Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -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{25} } - -func (m *WriteStreamRequest) GetContainerId() string { - if m != nil { - return m.ContainerId +func (m *WriteStreamRequest) Reset() { *m = WriteStreamRequest{} } +func (*WriteStreamRequest) ProtoMessage() {} +func (*WriteStreamRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4a132446d64d28b7, []int{25} +} +func (m *WriteStreamRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WriteStreamRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_WriteStreamRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return "" +} +func (m *WriteStreamRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_WriteStreamRequest.Merge(m, src) +} +func (m *WriteStreamRequest) XXX_Size() int { + return m.Size() +} +func (m *WriteStreamRequest) XXX_DiscardUnknown() { + xxx_messageInfo_WriteStreamRequest.DiscardUnknown(m) } -func (m *WriteStreamRequest) GetExecId() string { - if m != nil { - return m.ExecId - } - return "" -} - -func (m *WriteStreamRequest) GetData() []byte { - if m != nil { - return m.Data - } - return nil -} +var xxx_messageInfo_WriteStreamRequest proto.InternalMessageInfo type WriteStreamResponse struct { - Len uint32 `protobuf:"varint,1,opt,name=len,proto3" json:"len,omitempty"` + Len uint32 `protobuf:"varint,1,opt,name=len,proto3" json:"len,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -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{26} } - -func (m *WriteStreamResponse) GetLen() uint32 { - if m != nil { - return m.Len +func (m *WriteStreamResponse) Reset() { *m = WriteStreamResponse{} } +func (*WriteStreamResponse) ProtoMessage() {} +func (*WriteStreamResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_4a132446d64d28b7, []int{26} +} +func (m *WriteStreamResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WriteStreamResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_WriteStreamResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return 0 } +func (m *WriteStreamResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_WriteStreamResponse.Merge(m, src) +} +func (m *WriteStreamResponse) XXX_Size() int { + return m.Size() +} +func (m *WriteStreamResponse) XXX_DiscardUnknown() { + xxx_messageInfo_WriteStreamResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_WriteStreamResponse proto.InternalMessageInfo type ReadStreamRequest 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"` - Len uint32 `protobuf:"varint,3,opt,name=len,proto3" json:"len,omitempty"` + 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"` + Len uint32 `protobuf:"varint,3,opt,name=len,proto3" json:"len,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -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{27} } - -func (m *ReadStreamRequest) GetContainerId() string { - if m != nil { - return m.ContainerId +func (m *ReadStreamRequest) Reset() { *m = ReadStreamRequest{} } +func (*ReadStreamRequest) ProtoMessage() {} +func (*ReadStreamRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4a132446d64d28b7, []int{27} +} +func (m *ReadStreamRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ReadStreamRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ReadStreamRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return "" +} +func (m *ReadStreamRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReadStreamRequest.Merge(m, src) +} +func (m *ReadStreamRequest) XXX_Size() int { + return m.Size() +} +func (m *ReadStreamRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ReadStreamRequest.DiscardUnknown(m) } -func (m *ReadStreamRequest) GetExecId() string { - if m != nil { - return m.ExecId - } - return "" -} - -func (m *ReadStreamRequest) GetLen() uint32 { - if m != nil { - return m.Len - } - return 0 -} +var xxx_messageInfo_ReadStreamRequest proto.InternalMessageInfo type ReadStreamResponse struct { - Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -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{28} } - -func (m *ReadStreamResponse) GetData() []byte { - if m != nil { - return m.Data +func (m *ReadStreamResponse) Reset() { *m = ReadStreamResponse{} } +func (*ReadStreamResponse) ProtoMessage() {} +func (*ReadStreamResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_4a132446d64d28b7, []int{28} +} +func (m *ReadStreamResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ReadStreamResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ReadStreamResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return nil } +func (m *ReadStreamResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReadStreamResponse.Merge(m, src) +} +func (m *ReadStreamResponse) XXX_Size() int { + return m.Size() +} +func (m *ReadStreamResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ReadStreamResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ReadStreamResponse proto.InternalMessageInfo type CloseStdinRequest 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"` + 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"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -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{29} } - -func (m *CloseStdinRequest) GetContainerId() string { - if m != nil { - return m.ContainerId +func (m *CloseStdinRequest) Reset() { *m = CloseStdinRequest{} } +func (*CloseStdinRequest) ProtoMessage() {} +func (*CloseStdinRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4a132446d64d28b7, []int{29} +} +func (m *CloseStdinRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CloseStdinRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CloseStdinRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return "" +} +func (m *CloseStdinRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CloseStdinRequest.Merge(m, src) +} +func (m *CloseStdinRequest) XXX_Size() int { + return m.Size() +} +func (m *CloseStdinRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CloseStdinRequest.DiscardUnknown(m) } -func (m *CloseStdinRequest) GetExecId() string { - if m != nil { - return m.ExecId - } - return "" -} +var xxx_messageInfo_CloseStdinRequest proto.InternalMessageInfo type TtyWinResizeRequest 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"` - Row uint32 `protobuf:"varint,3,opt,name=row,proto3" json:"row,omitempty"` - Column uint32 `protobuf:"varint,4,opt,name=column,proto3" json:"column,omitempty"` + 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"` + Row uint32 `protobuf:"varint,3,opt,name=row,proto3" json:"row,omitempty"` + Column uint32 `protobuf:"varint,4,opt,name=column,proto3" json:"column,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -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{30} } - -func (m *TtyWinResizeRequest) GetContainerId() string { - if m != nil { - return m.ContainerId +func (m *TtyWinResizeRequest) Reset() { *m = TtyWinResizeRequest{} } +func (*TtyWinResizeRequest) ProtoMessage() {} +func (*TtyWinResizeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4a132446d64d28b7, []int{30} +} +func (m *TtyWinResizeRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TtyWinResizeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TtyWinResizeRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return "" +} +func (m *TtyWinResizeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_TtyWinResizeRequest.Merge(m, src) +} +func (m *TtyWinResizeRequest) XXX_Size() int { + return m.Size() +} +func (m *TtyWinResizeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_TtyWinResizeRequest.DiscardUnknown(m) } -func (m *TtyWinResizeRequest) GetExecId() string { - if m != nil { - return m.ExecId - } - return "" -} - -func (m *TtyWinResizeRequest) GetRow() uint32 { - if m != nil { - return m.Row - } - return 0 -} - -func (m *TtyWinResizeRequest) GetColumn() uint32 { - if m != nil { - return m.Column - } - return 0 -} +var xxx_messageInfo_TtyWinResizeRequest proto.InternalMessageInfo type KernelModule struct { // This field is the name of the kernel module. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // This field are the parameters for the kernel module which are // whitespace-delimited key=value pairs passed to modprobe(8). - Parameters []string `protobuf:"bytes,2,rep,name=parameters" json:"parameters,omitempty"` + Parameters []string `protobuf:"bytes,2,rep,name=parameters,proto3" json:"parameters,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *KernelModule) Reset() { *m = KernelModule{} } -func (m *KernelModule) String() string { return proto.CompactTextString(m) } -func (*KernelModule) ProtoMessage() {} -func (*KernelModule) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{31} } - -func (m *KernelModule) GetName() string { - if m != nil { - return m.Name +func (m *KernelModule) Reset() { *m = KernelModule{} } +func (*KernelModule) ProtoMessage() {} +func (*KernelModule) Descriptor() ([]byte, []int) { + return fileDescriptor_4a132446d64d28b7, []int{31} +} +func (m *KernelModule) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *KernelModule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_KernelModule.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return "" +} +func (m *KernelModule) XXX_Merge(src proto.Message) { + xxx_messageInfo_KernelModule.Merge(m, src) +} +func (m *KernelModule) XXX_Size() int { + return m.Size() +} +func (m *KernelModule) XXX_DiscardUnknown() { + xxx_messageInfo_KernelModule.DiscardUnknown(m) } -func (m *KernelModule) GetParameters() []string { - if m != nil { - return m.Parameters - } - return nil -} +var xxx_messageInfo_KernelModule proto.InternalMessageInfo type CreateSandboxRequest struct { Hostname string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"` - Dns []string `protobuf:"bytes,2,rep,name=dns" json:"dns,omitempty"` - Storages []*Storage `protobuf:"bytes,3,rep,name=storages" json:"storages,omitempty"` + Dns []string `protobuf:"bytes,2,rep,name=dns,proto3" json:"dns,omitempty"` + Storages []*Storage `protobuf:"bytes,3,rep,name=storages,proto3" json:"storages,omitempty"` // This field means that a pause process needs to be created by the // agent. This pid namespace of the pause process will be treated as // a shared pid namespace. All containers created will join this shared @@ -1189,150 +1377,313 @@ type CreateSandboxRequest struct { // that the agent will search for OCI hooks to run within the guest. GuestHookPath string `protobuf:"bytes,6,opt,name=guest_hook_path,json=guestHookPath,proto3" json:"guest_hook_path,omitempty"` // This field is the list of kernel modules to be loaded in the guest kernel. - KernelModules []*KernelModule `protobuf:"bytes,7,rep,name=kernel_modules,json=kernelModules" json:"kernel_modules,omitempty"` + KernelModules []*KernelModule `protobuf:"bytes,7,rep,name=kernel_modules,json=kernelModules,proto3" json:"kernel_modules,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -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{32} } - -func (m *CreateSandboxRequest) GetHostname() string { - if m != nil { - return m.Hostname +func (m *CreateSandboxRequest) Reset() { *m = CreateSandboxRequest{} } +func (*CreateSandboxRequest) ProtoMessage() {} +func (*CreateSandboxRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4a132446d64d28b7, []int{32} +} +func (m *CreateSandboxRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CreateSandboxRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CreateSandboxRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return "" +} +func (m *CreateSandboxRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateSandboxRequest.Merge(m, src) +} +func (m *CreateSandboxRequest) XXX_Size() int { + return m.Size() +} +func (m *CreateSandboxRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CreateSandboxRequest.DiscardUnknown(m) } -func (m *CreateSandboxRequest) GetDns() []string { - if m != nil { - return m.Dns - } - return nil -} - -func (m *CreateSandboxRequest) GetStorages() []*Storage { - if m != nil { - return m.Storages - } - return nil -} - -func (m *CreateSandboxRequest) GetSandboxPidns() bool { - if m != nil { - return m.SandboxPidns - } - return false -} - -func (m *CreateSandboxRequest) GetSandboxId() string { - if m != nil { - return m.SandboxId - } - return "" -} - -func (m *CreateSandboxRequest) GetGuestHookPath() string { - if m != nil { - return m.GuestHookPath - } - return "" -} - -func (m *CreateSandboxRequest) GetKernelModules() []*KernelModule { - if m != nil { - return m.KernelModules - } - return nil -} +var xxx_messageInfo_CreateSandboxRequest proto.InternalMessageInfo type DestroySandboxRequest struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -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{33} } +func (m *DestroySandboxRequest) Reset() { *m = DestroySandboxRequest{} } +func (*DestroySandboxRequest) ProtoMessage() {} +func (*DestroySandboxRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4a132446d64d28b7, []int{33} +} +func (m *DestroySandboxRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DestroySandboxRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DestroySandboxRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *DestroySandboxRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DestroySandboxRequest.Merge(m, src) +} +func (m *DestroySandboxRequest) XXX_Size() int { + return m.Size() +} +func (m *DestroySandboxRequest) XXX_DiscardUnknown() { + xxx_messageInfo_DestroySandboxRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_DestroySandboxRequest proto.InternalMessageInfo type Interfaces struct { - Interfaces []*types.Interface `protobuf:"bytes,1,rep,name=Interfaces" json:"Interfaces,omitempty"` + Interfaces []*types.Interface `protobuf:"bytes,1,rep,name=Interfaces,json=interfaces,proto3" json:"Interfaces,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Interfaces) Reset() { *m = Interfaces{} } -func (m *Interfaces) String() string { return proto.CompactTextString(m) } -func (*Interfaces) ProtoMessage() {} -func (*Interfaces) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{34} } - -func (m *Interfaces) GetInterfaces() []*types.Interface { - if m != nil { - return m.Interfaces +func (m *Interfaces) Reset() { *m = Interfaces{} } +func (*Interfaces) ProtoMessage() {} +func (*Interfaces) Descriptor() ([]byte, []int) { + return fileDescriptor_4a132446d64d28b7, []int{34} +} +func (m *Interfaces) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Interfaces) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Interfaces.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return nil } +func (m *Interfaces) XXX_Merge(src proto.Message) { + xxx_messageInfo_Interfaces.Merge(m, src) +} +func (m *Interfaces) XXX_Size() int { + return m.Size() +} +func (m *Interfaces) XXX_DiscardUnknown() { + xxx_messageInfo_Interfaces.DiscardUnknown(m) +} + +var xxx_messageInfo_Interfaces proto.InternalMessageInfo type Routes struct { - Routes []*types.Route `protobuf:"bytes,1,rep,name=Routes" json:"Routes,omitempty"` + Routes []*types.Route `protobuf:"bytes,1,rep,name=Routes,json=routes,proto3" json:"Routes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -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{35} } - -func (m *Routes) GetRoutes() []*types.Route { - if m != nil { - return m.Routes +func (m *Routes) Reset() { *m = Routes{} } +func (*Routes) ProtoMessage() {} +func (*Routes) Descriptor() ([]byte, []int) { + return fileDescriptor_4a132446d64d28b7, []int{35} +} +func (m *Routes) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Routes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Routes.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return nil } +func (m *Routes) XXX_Merge(src proto.Message) { + xxx_messageInfo_Routes.Merge(m, src) +} +func (m *Routes) XXX_Size() int { + return m.Size() +} +func (m *Routes) XXX_DiscardUnknown() { + xxx_messageInfo_Routes.DiscardUnknown(m) +} + +var xxx_messageInfo_Routes proto.InternalMessageInfo type UpdateInterfaceRequest struct { - Interface *types.Interface `protobuf:"bytes,1,opt,name=interface" json:"interface,omitempty"` + Interface *types.Interface `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -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{36} } - -func (m *UpdateInterfaceRequest) GetInterface() *types.Interface { - if m != nil { - return m.Interface +func (m *UpdateInterfaceRequest) Reset() { *m = UpdateInterfaceRequest{} } +func (*UpdateInterfaceRequest) ProtoMessage() {} +func (*UpdateInterfaceRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4a132446d64d28b7, []int{36} +} +func (m *UpdateInterfaceRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UpdateInterfaceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UpdateInterfaceRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return nil } +func (m *UpdateInterfaceRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateInterfaceRequest.Merge(m, src) +} +func (m *UpdateInterfaceRequest) XXX_Size() int { + return m.Size() +} +func (m *UpdateInterfaceRequest) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateInterfaceRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateInterfaceRequest proto.InternalMessageInfo type UpdateRoutesRequest struct { - Routes *Routes `protobuf:"bytes,1,opt,name=routes" json:"routes,omitempty"` + Routes *Routes `protobuf:"bytes,1,opt,name=routes,proto3" json:"routes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -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{37} } - -func (m *UpdateRoutesRequest) GetRoutes() *Routes { - if m != nil { - return m.Routes +func (m *UpdateRoutesRequest) Reset() { *m = UpdateRoutesRequest{} } +func (*UpdateRoutesRequest) ProtoMessage() {} +func (*UpdateRoutesRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4a132446d64d28b7, []int{37} +} +func (m *UpdateRoutesRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UpdateRoutesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UpdateRoutesRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return nil } +func (m *UpdateRoutesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateRoutesRequest.Merge(m, src) +} +func (m *UpdateRoutesRequest) XXX_Size() int { + return m.Size() +} +func (m *UpdateRoutesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateRoutesRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateRoutesRequest proto.InternalMessageInfo type ListInterfacesRequest struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ListInterfacesRequest) Reset() { *m = ListInterfacesRequest{} } -func (m *ListInterfacesRequest) String() string { return proto.CompactTextString(m) } -func (*ListInterfacesRequest) ProtoMessage() {} -func (*ListInterfacesRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{38} } +func (m *ListInterfacesRequest) Reset() { *m = ListInterfacesRequest{} } +func (*ListInterfacesRequest) ProtoMessage() {} +func (*ListInterfacesRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4a132446d64d28b7, []int{38} +} +func (m *ListInterfacesRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ListInterfacesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ListInterfacesRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ListInterfacesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListInterfacesRequest.Merge(m, src) +} +func (m *ListInterfacesRequest) XXX_Size() int { + return m.Size() +} +func (m *ListInterfacesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListInterfacesRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListInterfacesRequest proto.InternalMessageInfo type ListRoutesRequest struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ListRoutesRequest) Reset() { *m = ListRoutesRequest{} } -func (m *ListRoutesRequest) String() string { return proto.CompactTextString(m) } -func (*ListRoutesRequest) ProtoMessage() {} -func (*ListRoutesRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{39} } +func (m *ListRoutesRequest) Reset() { *m = ListRoutesRequest{} } +func (*ListRoutesRequest) ProtoMessage() {} +func (*ListRoutesRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4a132446d64d28b7, []int{39} +} +func (m *ListRoutesRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ListRoutesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ListRoutesRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ListRoutesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListRoutesRequest.Merge(m, src) +} +func (m *ListRoutesRequest) XXX_Size() int { + return m.Size() +} +func (m *ListRoutesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListRoutesRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListRoutesRequest proto.InternalMessageInfo type OnlineCPUMemRequest struct { // Wait specifies if the caller waits for the agent to online all resources. @@ -1342,51 +1693,83 @@ type OnlineCPUMemRequest struct { // NbCpus specifies the number of CPUs that were added and the agent has to online. NbCpus uint32 `protobuf:"varint,2,opt,name=nb_cpus,json=nbCpus,proto3" json:"nb_cpus,omitempty"` // CpuOnly specifies whether only online CPU or not. - CpuOnly bool `protobuf:"varint,3,opt,name=cpu_only,json=cpuOnly,proto3" json:"cpu_only,omitempty"` + CpuOnly bool `protobuf:"varint,3,opt,name=cpu_only,json=cpuOnly,proto3" json:"cpu_only,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -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{40} } - -func (m *OnlineCPUMemRequest) GetWait() bool { - if m != nil { - return m.Wait +func (m *OnlineCPUMemRequest) Reset() { *m = OnlineCPUMemRequest{} } +func (*OnlineCPUMemRequest) ProtoMessage() {} +func (*OnlineCPUMemRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4a132446d64d28b7, []int{40} +} +func (m *OnlineCPUMemRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OnlineCPUMemRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OnlineCPUMemRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return false +} +func (m *OnlineCPUMemRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_OnlineCPUMemRequest.Merge(m, src) +} +func (m *OnlineCPUMemRequest) XXX_Size() int { + return m.Size() +} +func (m *OnlineCPUMemRequest) XXX_DiscardUnknown() { + xxx_messageInfo_OnlineCPUMemRequest.DiscardUnknown(m) } -func (m *OnlineCPUMemRequest) GetNbCpus() uint32 { - if m != nil { - return m.NbCpus - } - return 0 -} - -func (m *OnlineCPUMemRequest) GetCpuOnly() bool { - if m != nil { - return m.CpuOnly - } - return false -} +var xxx_messageInfo_OnlineCPUMemRequest proto.InternalMessageInfo type ReseedRandomDevRequest struct { // Data specifies the random data used to reseed the guest crng. - Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` + Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ReseedRandomDevRequest) Reset() { *m = ReseedRandomDevRequest{} } -func (m *ReseedRandomDevRequest) String() string { return proto.CompactTextString(m) } -func (*ReseedRandomDevRequest) ProtoMessage() {} -func (*ReseedRandomDevRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{41} } - -func (m *ReseedRandomDevRequest) GetData() []byte { - if m != nil { - return m.Data +func (m *ReseedRandomDevRequest) Reset() { *m = ReseedRandomDevRequest{} } +func (*ReseedRandomDevRequest) ProtoMessage() {} +func (*ReseedRandomDevRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4a132446d64d28b7, []int{41} +} +func (m *ReseedRandomDevRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ReseedRandomDevRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ReseedRandomDevRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return nil } +func (m *ReseedRandomDevRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReseedRandomDevRequest.Merge(m, src) +} +func (m *ReseedRandomDevRequest) XXX_Size() int { + return m.Size() +} +func (m *ReseedRandomDevRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ReseedRandomDevRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ReseedRandomDevRequest proto.InternalMessageInfo // AgentDetails provides information to the client about the running agent. type AgentDetails struct { @@ -1395,53 +1778,48 @@ type AgentDetails struct { // Set if the agent is running as PID 1. InitDaemon bool `protobuf:"varint,2,opt,name=init_daemon,json=initDaemon,proto3" json:"init_daemon,omitempty"` // List of available device handlers. - DeviceHandlers []string `protobuf:"bytes,3,rep,name=device_handlers,json=deviceHandlers" json:"device_handlers,omitempty"` + DeviceHandlers []string `protobuf:"bytes,3,rep,name=device_handlers,json=deviceHandlers,proto3" json:"device_handlers,omitempty"` // List of available storage handlers. - StorageHandlers []string `protobuf:"bytes,4,rep,name=storage_handlers,json=storageHandlers" json:"storage_handlers,omitempty"` + StorageHandlers []string `protobuf:"bytes,4,rep,name=storage_handlers,json=storageHandlers,proto3" json:"storage_handlers,omitempty"` // Set only if the agent is built with seccomp support and the guest // environment supports seccomp. - SupportsSeccomp bool `protobuf:"varint,5,opt,name=supports_seccomp,json=supportsSeccomp,proto3" json:"supports_seccomp,omitempty"` + SupportsSeccomp bool `protobuf:"varint,5,opt,name=supports_seccomp,json=supportsSeccomp,proto3" json:"supports_seccomp,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *AgentDetails) Reset() { *m = AgentDetails{} } -func (m *AgentDetails) String() string { return proto.CompactTextString(m) } -func (*AgentDetails) ProtoMessage() {} -func (*AgentDetails) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{42} } - -func (m *AgentDetails) GetVersion() string { - if m != nil { - return m.Version +func (m *AgentDetails) Reset() { *m = AgentDetails{} } +func (*AgentDetails) ProtoMessage() {} +func (*AgentDetails) Descriptor() ([]byte, []int) { + return fileDescriptor_4a132446d64d28b7, []int{42} +} +func (m *AgentDetails) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AgentDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AgentDetails.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return "" +} +func (m *AgentDetails) XXX_Merge(src proto.Message) { + xxx_messageInfo_AgentDetails.Merge(m, src) +} +func (m *AgentDetails) XXX_Size() int { + return m.Size() +} +func (m *AgentDetails) XXX_DiscardUnknown() { + xxx_messageInfo_AgentDetails.DiscardUnknown(m) } -func (m *AgentDetails) GetInitDaemon() bool { - if m != nil { - return m.InitDaemon - } - return false -} - -func (m *AgentDetails) GetDeviceHandlers() []string { - if m != nil { - return m.DeviceHandlers - } - return nil -} - -func (m *AgentDetails) GetStorageHandlers() []string { - if m != nil { - return m.StorageHandlers - } - return nil -} - -func (m *AgentDetails) GetSupportsSeccomp() bool { - if m != nil { - return m.SupportsSeccomp - } - return false -} +var xxx_messageInfo_AgentDetails proto.InternalMessageInfo type GuestDetailsRequest struct { // MemBlockSize asks server to return the system memory block size that can be used @@ -1451,104 +1829,168 @@ type GuestDetailsRequest struct { // MemoryHotplugProbe asks server to return whether guest kernel supports memory hotplug // via probeinterface. Typically the server will check if the path // /sys/devices/system/memory/probe exists. - MemHotplugProbe bool `protobuf:"varint,2,opt,name=mem_hotplug_probe,json=memHotplugProbe,proto3" json:"mem_hotplug_probe,omitempty"` + MemHotplugProbe bool `protobuf:"varint,2,opt,name=mem_hotplug_probe,json=memHotplugProbe,proto3" json:"mem_hotplug_probe,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *GuestDetailsRequest) Reset() { *m = GuestDetailsRequest{} } -func (m *GuestDetailsRequest) String() string { return proto.CompactTextString(m) } -func (*GuestDetailsRequest) ProtoMessage() {} -func (*GuestDetailsRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{43} } - -func (m *GuestDetailsRequest) GetMemBlockSize() bool { - if m != nil { - return m.MemBlockSize +func (m *GuestDetailsRequest) Reset() { *m = GuestDetailsRequest{} } +func (*GuestDetailsRequest) ProtoMessage() {} +func (*GuestDetailsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4a132446d64d28b7, []int{43} +} +func (m *GuestDetailsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GuestDetailsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GuestDetailsRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return false +} +func (m *GuestDetailsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GuestDetailsRequest.Merge(m, src) +} +func (m *GuestDetailsRequest) XXX_Size() int { + return m.Size() +} +func (m *GuestDetailsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GuestDetailsRequest.DiscardUnknown(m) } -func (m *GuestDetailsRequest) GetMemHotplugProbe() bool { - if m != nil { - return m.MemHotplugProbe - } - return false -} +var xxx_messageInfo_GuestDetailsRequest proto.InternalMessageInfo type GuestDetailsResponse struct { // MemBlockSizeBytes returns the system memory block size in bytes. MemBlockSizeBytes uint64 `protobuf:"varint,1,opt,name=mem_block_size_bytes,json=memBlockSizeBytes,proto3" json:"mem_block_size_bytes,omitempty"` - AgentDetails *AgentDetails `protobuf:"bytes,2,opt,name=agent_details,json=agentDetails" json:"agent_details,omitempty"` + AgentDetails *AgentDetails `protobuf:"bytes,2,opt,name=agent_details,json=agentDetails,proto3" json:"agent_details,omitempty"` SupportMemHotplugProbe bool `protobuf:"varint,3,opt,name=support_mem_hotplug_probe,json=supportMemHotplugProbe,proto3" json:"support_mem_hotplug_probe,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *GuestDetailsResponse) Reset() { *m = GuestDetailsResponse{} } -func (m *GuestDetailsResponse) String() string { return proto.CompactTextString(m) } -func (*GuestDetailsResponse) ProtoMessage() {} -func (*GuestDetailsResponse) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{44} } - -func (m *GuestDetailsResponse) GetMemBlockSizeBytes() uint64 { - if m != nil { - return m.MemBlockSizeBytes +func (m *GuestDetailsResponse) Reset() { *m = GuestDetailsResponse{} } +func (*GuestDetailsResponse) ProtoMessage() {} +func (*GuestDetailsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_4a132446d64d28b7, []int{44} +} +func (m *GuestDetailsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GuestDetailsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GuestDetailsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return 0 +} +func (m *GuestDetailsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GuestDetailsResponse.Merge(m, src) +} +func (m *GuestDetailsResponse) XXX_Size() int { + return m.Size() +} +func (m *GuestDetailsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GuestDetailsResponse.DiscardUnknown(m) } -func (m *GuestDetailsResponse) GetAgentDetails() *AgentDetails { - if m != nil { - return m.AgentDetails - } - return nil -} - -func (m *GuestDetailsResponse) GetSupportMemHotplugProbe() bool { - if m != nil { - return m.SupportMemHotplugProbe - } - return false -} +var xxx_messageInfo_GuestDetailsResponse proto.InternalMessageInfo type MemHotplugByProbeRequest struct { // server needs to send the value of memHotplugProbeAddr into file /sys/devices/system/memory/probe, // in order to notify the guest kernel about hot-add memory event - MemHotplugProbeAddr []uint64 `protobuf:"varint,1,rep,packed,name=memHotplugProbeAddr" json:"memHotplugProbeAddr,omitempty"` + MemHotplugProbeAddr []uint64 `protobuf:"varint,1,rep,packed,name=memHotplugProbeAddr,proto3" json:"memHotplugProbeAddr,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *MemHotplugByProbeRequest) Reset() { *m = MemHotplugByProbeRequest{} } -func (m *MemHotplugByProbeRequest) String() string { return proto.CompactTextString(m) } -func (*MemHotplugByProbeRequest) ProtoMessage() {} -func (*MemHotplugByProbeRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{45} } - -func (m *MemHotplugByProbeRequest) GetMemHotplugProbeAddr() []uint64 { - if m != nil { - return m.MemHotplugProbeAddr +func (m *MemHotplugByProbeRequest) Reset() { *m = MemHotplugByProbeRequest{} } +func (*MemHotplugByProbeRequest) ProtoMessage() {} +func (*MemHotplugByProbeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4a132446d64d28b7, []int{45} +} +func (m *MemHotplugByProbeRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MemHotplugByProbeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MemHotplugByProbeRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return nil } +func (m *MemHotplugByProbeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_MemHotplugByProbeRequest.Merge(m, src) +} +func (m *MemHotplugByProbeRequest) XXX_Size() int { + return m.Size() +} +func (m *MemHotplugByProbeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_MemHotplugByProbeRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_MemHotplugByProbeRequest proto.InternalMessageInfo type SetGuestDateTimeRequest struct { // Sec the second since the Epoch. - Sec int64 `protobuf:"varint,1,opt,name=Sec,proto3" json:"Sec,omitempty"` + Sec int64 `protobuf:"varint,1,opt,name=Sec,json=sec,proto3" json:"Sec,omitempty"` // Usec the microseconds portion of time since the Epoch. - Usec int64 `protobuf:"varint,2,opt,name=Usec,proto3" json:"Usec,omitempty"` + Usec int64 `protobuf:"varint,2,opt,name=Usec,json=usec,proto3" json:"Usec,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *SetGuestDateTimeRequest) Reset() { *m = SetGuestDateTimeRequest{} } -func (m *SetGuestDateTimeRequest) String() string { return proto.CompactTextString(m) } -func (*SetGuestDateTimeRequest) ProtoMessage() {} -func (*SetGuestDateTimeRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{46} } - -func (m *SetGuestDateTimeRequest) GetSec() int64 { - if m != nil { - return m.Sec +func (m *SetGuestDateTimeRequest) Reset() { *m = SetGuestDateTimeRequest{} } +func (*SetGuestDateTimeRequest) ProtoMessage() {} +func (*SetGuestDateTimeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4a132446d64d28b7, []int{46} +} +func (m *SetGuestDateTimeRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SetGuestDateTimeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SetGuestDateTimeRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return 0 +} +func (m *SetGuestDateTimeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SetGuestDateTimeRequest.Merge(m, src) +} +func (m *SetGuestDateTimeRequest) XXX_Size() int { + return m.Size() +} +func (m *SetGuestDateTimeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SetGuestDateTimeRequest.DiscardUnknown(m) } -func (m *SetGuestDateTimeRequest) GetUsec() int64 { - if m != nil { - return m.Usec - } - return 0 -} +var xxx_messageInfo_SetGuestDateTimeRequest proto.InternalMessageInfo // Storage represents both the rootfs of the container, and any volume that // could have been defined through the Mount list of the OCI specification. @@ -1561,7 +2003,7 @@ type Storage struct { // DriverOptions allows the caller to define a list of options such // as block sizes, numbers of luns, ... which are very specific to // every device and cannot be generalized through extra fields. - DriverOptions []string `protobuf:"bytes,2,rep,name=driver_options,json=driverOptions" json:"driver_options,omitempty"` + DriverOptions []string `protobuf:"bytes,2,rep,name=driver_options,json=driverOptions,proto3" json:"driver_options,omitempty"` // Source can be anything representing the source of the storage. This // will be handled by the proper handler based on the Driver used. // For instance, it can be a very simple path if the caller knows the @@ -1574,58 +2016,46 @@ type Storage struct { Fstype string `protobuf:"bytes,4,opt,name=fstype,proto3" json:"fstype,omitempty"` // Options describes the additional options that might be needed to // mount properly the storage filesytem. - Options []string `protobuf:"bytes,5,rep,name=options" json:"options,omitempty"` + Options []string `protobuf:"bytes,5,rep,name=options,proto3" json:"options,omitempty"` // MountPoint refers to the path where the storage should be mounted // inside the VM. - MountPoint string `protobuf:"bytes,6,opt,name=mount_point,json=mountPoint,proto3" json:"mount_point,omitempty"` + MountPoint string `protobuf:"bytes,6,opt,name=mount_point,json=mountPoint,proto3" json:"mount_point,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -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{47} } - -func (m *Storage) GetDriver() string { - if m != nil { - return m.Driver +func (m *Storage) Reset() { *m = Storage{} } +func (*Storage) ProtoMessage() {} +func (*Storage) Descriptor() ([]byte, []int) { + return fileDescriptor_4a132446d64d28b7, []int{47} +} +func (m *Storage) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Storage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Storage.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return "" +} +func (m *Storage) XXX_Merge(src proto.Message) { + xxx_messageInfo_Storage.Merge(m, src) +} +func (m *Storage) XXX_Size() int { + return m.Size() +} +func (m *Storage) XXX_DiscardUnknown() { + xxx_messageInfo_Storage.DiscardUnknown(m) } -func (m *Storage) GetDriverOptions() []string { - if m != nil { - return m.DriverOptions - } - return nil -} - -func (m *Storage) GetSource() string { - if m != nil { - return m.Source - } - return "" -} - -func (m *Storage) GetFstype() string { - if m != nil { - return m.Fstype - } - return "" -} - -func (m *Storage) GetOptions() []string { - if m != nil { - return m.Options - } - return nil -} - -func (m *Storage) GetMountPoint() string { - if m != nil { - return m.MountPoint - } - return "" -} +var xxx_messageInfo_Storage proto.InternalMessageInfo // Device represents only the devices that could have been defined through the // Linux Device list of the OCI specification. @@ -1660,80 +2090,84 @@ type Device struct { // Options allows the caller to define a list of options such as block // sizes, numbers of luns, ... which are very specific to every device // and cannot be generalized through extra fields. - Options []string `protobuf:"bytes,5,rep,name=options" json:"options,omitempty"` + Options []string `protobuf:"bytes,5,rep,name=options,proto3" json:"options,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -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{48} } - -func (m *Device) GetId() string { - if m != nil { - return m.Id +func (m *Device) Reset() { *m = Device{} } +func (*Device) ProtoMessage() {} +func (*Device) Descriptor() ([]byte, []int) { + return fileDescriptor_4a132446d64d28b7, []int{48} +} +func (m *Device) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Device) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Device.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return "" +} +func (m *Device) XXX_Merge(src proto.Message) { + xxx_messageInfo_Device.Merge(m, src) +} +func (m *Device) XXX_Size() int { + return m.Size() +} +func (m *Device) XXX_DiscardUnknown() { + xxx_messageInfo_Device.DiscardUnknown(m) } -func (m *Device) GetType() string { - if m != nil { - return m.Type - } - return "" -} - -func (m *Device) GetVmPath() string { - if m != nil { - return m.VmPath - } - return "" -} - -func (m *Device) GetContainerPath() string { - if m != nil { - return m.ContainerPath - } - return "" -} - -func (m *Device) GetOptions() []string { - if m != nil { - return m.Options - } - return nil -} +var xxx_messageInfo_Device proto.InternalMessageInfo type StringUser struct { - Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` - Gid string `protobuf:"bytes,2,opt,name=gid,proto3" json:"gid,omitempty"` - AdditionalGids []string `protobuf:"bytes,3,rep,name=additionalGids" json:"additionalGids,omitempty"` + Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` + Gid string `protobuf:"bytes,2,opt,name=gid,proto3" json:"gid,omitempty"` + AdditionalGids []string `protobuf:"bytes,3,rep,name=additionalGids,proto3" json:"additionalGids,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -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{49} } - -func (m *StringUser) GetUid() string { - if m != nil { - return m.Uid +func (m *StringUser) Reset() { *m = StringUser{} } +func (*StringUser) ProtoMessage() {} +func (*StringUser) Descriptor() ([]byte, []int) { + return fileDescriptor_4a132446d64d28b7, []int{49} +} +func (m *StringUser) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StringUser) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StringUser.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return "" +} +func (m *StringUser) XXX_Merge(src proto.Message) { + xxx_messageInfo_StringUser.Merge(m, src) +} +func (m *StringUser) XXX_Size() int { + return m.Size() +} +func (m *StringUser) XXX_DiscardUnknown() { + xxx_messageInfo_StringUser.DiscardUnknown(m) } -func (m *StringUser) GetGid() string { - if m != nil { - return m.Gid - } - return "" -} - -func (m *StringUser) GetAdditionalGids() []string { - if m != nil { - return m.AdditionalGids - } - return nil -} +var xxx_messageInfo_StringUser proto.InternalMessageInfo type CopyFileRequest struct { // Path is the destination file in the guest. It must be absolute, @@ -1754,85 +2188,119 @@ type CopyFileRequest struct { // Offset for the next write operation. Offset int64 `protobuf:"varint,7,opt,name=offset,proto3" json:"offset,omitempty"` // Data to write in the destination file. - Data []byte `protobuf:"bytes,8,opt,name=data,proto3" json:"data,omitempty"` + Data []byte `protobuf:"bytes,8,opt,name=data,proto3" json:"data,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *CopyFileRequest) Reset() { *m = CopyFileRequest{} } -func (m *CopyFileRequest) String() string { return proto.CompactTextString(m) } -func (*CopyFileRequest) ProtoMessage() {} -func (*CopyFileRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{50} } - -func (m *CopyFileRequest) GetPath() string { - if m != nil { - return m.Path +func (m *CopyFileRequest) Reset() { *m = CopyFileRequest{} } +func (*CopyFileRequest) ProtoMessage() {} +func (*CopyFileRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4a132446d64d28b7, []int{50} +} +func (m *CopyFileRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CopyFileRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CopyFileRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return "" +} +func (m *CopyFileRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CopyFileRequest.Merge(m, src) +} +func (m *CopyFileRequest) XXX_Size() int { + return m.Size() +} +func (m *CopyFileRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CopyFileRequest.DiscardUnknown(m) } -func (m *CopyFileRequest) GetFileSize() int64 { - if m != nil { - return m.FileSize - } - return 0 -} - -func (m *CopyFileRequest) GetFileMode() uint32 { - if m != nil { - return m.FileMode - } - return 0 -} - -func (m *CopyFileRequest) GetDirMode() uint32 { - if m != nil { - return m.DirMode - } - return 0 -} - -func (m *CopyFileRequest) GetUid() int32 { - if m != nil { - return m.Uid - } - return 0 -} - -func (m *CopyFileRequest) GetGid() int32 { - if m != nil { - return m.Gid - } - return 0 -} - -func (m *CopyFileRequest) GetOffset() int64 { - if m != nil { - return m.Offset - } - return 0 -} - -func (m *CopyFileRequest) GetData() []byte { - if m != nil { - return m.Data - } - return nil -} +var xxx_messageInfo_CopyFileRequest proto.InternalMessageInfo type StartTracingRequest struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *StartTracingRequest) Reset() { *m = StartTracingRequest{} } -func (m *StartTracingRequest) String() string { return proto.CompactTextString(m) } -func (*StartTracingRequest) ProtoMessage() {} -func (*StartTracingRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{51} } +func (m *StartTracingRequest) Reset() { *m = StartTracingRequest{} } +func (*StartTracingRequest) ProtoMessage() {} +func (*StartTracingRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4a132446d64d28b7, []int{51} +} +func (m *StartTracingRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StartTracingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StartTracingRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *StartTracingRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_StartTracingRequest.Merge(m, src) +} +func (m *StartTracingRequest) XXX_Size() int { + return m.Size() +} +func (m *StartTracingRequest) XXX_DiscardUnknown() { + xxx_messageInfo_StartTracingRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_StartTracingRequest proto.InternalMessageInfo type StopTracingRequest struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *StopTracingRequest) Reset() { *m = StopTracingRequest{} } -func (m *StopTracingRequest) String() string { return proto.CompactTextString(m) } -func (*StopTracingRequest) ProtoMessage() {} -func (*StopTracingRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{52} } +func (m *StopTracingRequest) Reset() { *m = StopTracingRequest{} } +func (*StopTracingRequest) ProtoMessage() {} +func (*StopTracingRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4a132446d64d28b7, []int{52} +} +func (m *StopTracingRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StopTracingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StopTracingRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *StopTracingRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_StopTracingRequest.Merge(m, src) +} +func (m *StopTracingRequest) XXX_Size() int { + return m.Size() +} +func (m *StopTracingRequest) XXX_DiscardUnknown() { + xxx_messageInfo_StopTracingRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_StopTracingRequest proto.InternalMessageInfo func init() { proto.RegisterType((*CreateContainerRequest)(nil), "grpc.CreateContainerRequest") @@ -1854,10 +2322,12 @@ func init() { proto.RegisterType((*PidsStats)(nil), "grpc.PidsStats") proto.RegisterType((*MemoryData)(nil), "grpc.MemoryData") proto.RegisterType((*MemoryStats)(nil), "grpc.MemoryStats") + proto.RegisterMapType((map[string]uint64)(nil), "grpc.MemoryStats.StatsEntry") 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.RegisterMapType((map[string]*HugetlbStats)(nil), "grpc.CgroupStats.HugetlbStatsEntry") proto.RegisterType((*NetworkStats)(nil), "grpc.NetworkStats") proto.RegisterType((*StatsContainerResponse)(nil), "grpc.StatsContainerResponse") proto.RegisterType((*WriteStreamRequest)(nil), "grpc.WriteStreamRequest") @@ -1890,1061 +2360,200 @@ func init() { proto.RegisterType((*StopTracingRequest)(nil), "grpc.StopTracingRequest") } -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc1.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc1.SupportPackageIsVersion4 - -// Client API for AgentService service - -type AgentServiceClient interface { - // execution - CreateContainer(ctx context.Context, in *CreateContainerRequest, opts ...grpc1.CallOption) (*google_protobuf2.Empty, error) - StartContainer(ctx context.Context, in *StartContainerRequest, opts ...grpc1.CallOption) (*google_protobuf2.Empty, error) - // RemoveContainer will tear down an existing container by forcibly terminating - // all processes running inside that container and releasing all internal - // resources associated with it. - // RemoveContainer will wait for all processes termination before returning. - // If any process can not be killed or if it can not be killed after - // the RemoveContainerRequest timeout, RemoveContainer will return an error. - RemoveContainer(ctx context.Context, in *RemoveContainerRequest, opts ...grpc1.CallOption) (*google_protobuf2.Empty, error) - ExecProcess(ctx context.Context, in *ExecProcessRequest, opts ...grpc1.CallOption) (*google_protobuf2.Empty, error) - 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) - UpdateContainer(ctx context.Context, in *UpdateContainerRequest, opts ...grpc1.CallOption) (*google_protobuf2.Empty, error) - StatsContainer(ctx context.Context, in *StatsContainerRequest, opts ...grpc1.CallOption) (*StatsContainerResponse, error) - PauseContainer(ctx context.Context, in *PauseContainerRequest, opts ...grpc1.CallOption) (*google_protobuf2.Empty, error) - ResumeContainer(ctx context.Context, in *ResumeContainerRequest, opts ...grpc1.CallOption) (*google_protobuf2.Empty, error) - // stdio - WriteStdin(ctx context.Context, in *WriteStreamRequest, opts ...grpc1.CallOption) (*WriteStreamResponse, error) - ReadStdout(ctx context.Context, in *ReadStreamRequest, opts ...grpc1.CallOption) (*ReadStreamResponse, error) - ReadStderr(ctx context.Context, in *ReadStreamRequest, opts ...grpc1.CallOption) (*ReadStreamResponse, error) - CloseStdin(ctx context.Context, in *CloseStdinRequest, opts ...grpc1.CallOption) (*google_protobuf2.Empty, error) - TtyWinResize(ctx context.Context, in *TtyWinResizeRequest, opts ...grpc1.CallOption) (*google_protobuf2.Empty, error) - // networking - UpdateInterface(ctx context.Context, in *UpdateInterfaceRequest, opts ...grpc1.CallOption) (*types.Interface, error) - UpdateRoutes(ctx context.Context, in *UpdateRoutesRequest, opts ...grpc1.CallOption) (*Routes, error) - ListInterfaces(ctx context.Context, in *ListInterfacesRequest, opts ...grpc1.CallOption) (*Interfaces, error) - ListRoutes(ctx context.Context, in *ListRoutesRequest, opts ...grpc1.CallOption) (*Routes, error) - // tracing - StartTracing(ctx context.Context, in *StartTracingRequest, opts ...grpc1.CallOption) (*google_protobuf2.Empty, error) - StopTracing(ctx context.Context, in *StopTracingRequest, opts ...grpc1.CallOption) (*google_protobuf2.Empty, error) - // misc (TODO: some rpcs can be replaced by hyperstart-exec) - CreateSandbox(ctx context.Context, in *CreateSandboxRequest, opts ...grpc1.CallOption) (*google_protobuf2.Empty, error) - DestroySandbox(ctx context.Context, in *DestroySandboxRequest, opts ...grpc1.CallOption) (*google_protobuf2.Empty, error) - OnlineCPUMem(ctx context.Context, in *OnlineCPUMemRequest, opts ...grpc1.CallOption) (*google_protobuf2.Empty, error) - ReseedRandomDev(ctx context.Context, in *ReseedRandomDevRequest, opts ...grpc1.CallOption) (*google_protobuf2.Empty, error) - GetGuestDetails(ctx context.Context, in *GuestDetailsRequest, opts ...grpc1.CallOption) (*GuestDetailsResponse, error) - MemHotplugByProbe(ctx context.Context, in *MemHotplugByProbeRequest, opts ...grpc1.CallOption) (*google_protobuf2.Empty, error) - SetGuestDateTime(ctx context.Context, in *SetGuestDateTimeRequest, opts ...grpc1.CallOption) (*google_protobuf2.Empty, error) - CopyFile(ctx context.Context, in *CopyFileRequest, opts ...grpc1.CallOption) (*google_protobuf2.Empty, error) -} - -type agentServiceClient struct { - cc *grpc1.ClientConn -} - -func NewAgentServiceClient(cc *grpc1.ClientConn) AgentServiceClient { - return &agentServiceClient{cc} -} - -func (c *agentServiceClient) CreateContainer(ctx context.Context, in *CreateContainerRequest, opts ...grpc1.CallOption) (*google_protobuf2.Empty, error) { - out := new(google_protobuf2.Empty) - err := grpc1.Invoke(ctx, "/grpc.AgentService/CreateContainer", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *agentServiceClient) StartContainer(ctx context.Context, in *StartContainerRequest, opts ...grpc1.CallOption) (*google_protobuf2.Empty, error) { - out := new(google_protobuf2.Empty) - err := grpc1.Invoke(ctx, "/grpc.AgentService/StartContainer", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *agentServiceClient) RemoveContainer(ctx context.Context, in *RemoveContainerRequest, opts ...grpc1.CallOption) (*google_protobuf2.Empty, error) { - out := new(google_protobuf2.Empty) - err := grpc1.Invoke(ctx, "/grpc.AgentService/RemoveContainer", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *agentServiceClient) ExecProcess(ctx context.Context, in *ExecProcessRequest, opts ...grpc1.CallOption) (*google_protobuf2.Empty, error) { - out := new(google_protobuf2.Empty) - err := grpc1.Invoke(ctx, "/grpc.AgentService/ExecProcess", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *agentServiceClient) SignalProcess(ctx context.Context, in *SignalProcessRequest, opts ...grpc1.CallOption) (*google_protobuf2.Empty, error) { - out := new(google_protobuf2.Empty) - err := grpc1.Invoke(ctx, "/grpc.AgentService/SignalProcess", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *agentServiceClient) WaitProcess(ctx context.Context, in *WaitProcessRequest, opts ...grpc1.CallOption) (*WaitProcessResponse, error) { - out := new(WaitProcessResponse) - err := grpc1.Invoke(ctx, "/grpc.AgentService/WaitProcess", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *agentServiceClient) ListProcesses(ctx context.Context, in *ListProcessesRequest, opts ...grpc1.CallOption) (*ListProcessesResponse, error) { - out := new(ListProcessesResponse) - err := grpc1.Invoke(ctx, "/grpc.AgentService/ListProcesses", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *agentServiceClient) UpdateContainer(ctx context.Context, in *UpdateContainerRequest, opts ...grpc1.CallOption) (*google_protobuf2.Empty, error) { - out := new(google_protobuf2.Empty) - err := grpc1.Invoke(ctx, "/grpc.AgentService/UpdateContainer", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -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) PauseContainer(ctx context.Context, in *PauseContainerRequest, opts ...grpc1.CallOption) (*google_protobuf2.Empty, error) { - out := new(google_protobuf2.Empty) - err := grpc1.Invoke(ctx, "/grpc.AgentService/PauseContainer", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *agentServiceClient) ResumeContainer(ctx context.Context, in *ResumeContainerRequest, opts ...grpc1.CallOption) (*google_protobuf2.Empty, error) { - out := new(google_protobuf2.Empty) - err := grpc1.Invoke(ctx, "/grpc.AgentService/ResumeContainer", 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 - } - return out, nil -} - -func (c *agentServiceClient) ReadStdout(ctx context.Context, in *ReadStreamRequest, opts ...grpc1.CallOption) (*ReadStreamResponse, error) { - out := new(ReadStreamResponse) - err := grpc1.Invoke(ctx, "/grpc.AgentService/ReadStdout", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *agentServiceClient) ReadStderr(ctx context.Context, in *ReadStreamRequest, opts ...grpc1.CallOption) (*ReadStreamResponse, error) { - out := new(ReadStreamResponse) - err := grpc1.Invoke(ctx, "/grpc.AgentService/ReadStderr", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *agentServiceClient) CloseStdin(ctx context.Context, in *CloseStdinRequest, opts ...grpc1.CallOption) (*google_protobuf2.Empty, error) { - out := new(google_protobuf2.Empty) - err := grpc1.Invoke(ctx, "/grpc.AgentService/CloseStdin", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *agentServiceClient) TtyWinResize(ctx context.Context, in *TtyWinResizeRequest, opts ...grpc1.CallOption) (*google_protobuf2.Empty, error) { - out := new(google_protobuf2.Empty) - err := grpc1.Invoke(ctx, "/grpc.AgentService/TtyWinResize", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *agentServiceClient) UpdateInterface(ctx context.Context, in *UpdateInterfaceRequest, opts ...grpc1.CallOption) (*types.Interface, error) { - out := new(types.Interface) - err := grpc1.Invoke(ctx, "/grpc.AgentService/UpdateInterface", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *agentServiceClient) UpdateRoutes(ctx context.Context, in *UpdateRoutesRequest, opts ...grpc1.CallOption) (*Routes, error) { - out := new(Routes) - err := grpc1.Invoke(ctx, "/grpc.AgentService/UpdateRoutes", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *agentServiceClient) ListInterfaces(ctx context.Context, in *ListInterfacesRequest, opts ...grpc1.CallOption) (*Interfaces, error) { - out := new(Interfaces) - err := grpc1.Invoke(ctx, "/grpc.AgentService/ListInterfaces", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *agentServiceClient) ListRoutes(ctx context.Context, in *ListRoutesRequest, opts ...grpc1.CallOption) (*Routes, error) { - out := new(Routes) - err := grpc1.Invoke(ctx, "/grpc.AgentService/ListRoutes", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *agentServiceClient) StartTracing(ctx context.Context, in *StartTracingRequest, opts ...grpc1.CallOption) (*google_protobuf2.Empty, error) { - out := new(google_protobuf2.Empty) - err := grpc1.Invoke(ctx, "/grpc.AgentService/StartTracing", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *agentServiceClient) StopTracing(ctx context.Context, in *StopTracingRequest, opts ...grpc1.CallOption) (*google_protobuf2.Empty, error) { - out := new(google_protobuf2.Empty) - err := grpc1.Invoke(ctx, "/grpc.AgentService/StopTracing", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *agentServiceClient) CreateSandbox(ctx context.Context, in *CreateSandboxRequest, opts ...grpc1.CallOption) (*google_protobuf2.Empty, error) { - out := new(google_protobuf2.Empty) - err := grpc1.Invoke(ctx, "/grpc.AgentService/CreateSandbox", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *agentServiceClient) DestroySandbox(ctx context.Context, in *DestroySandboxRequest, opts ...grpc1.CallOption) (*google_protobuf2.Empty, error) { - out := new(google_protobuf2.Empty) - err := grpc1.Invoke(ctx, "/grpc.AgentService/DestroySandbox", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *agentServiceClient) OnlineCPUMem(ctx context.Context, in *OnlineCPUMemRequest, opts ...grpc1.CallOption) (*google_protobuf2.Empty, error) { - out := new(google_protobuf2.Empty) - err := grpc1.Invoke(ctx, "/grpc.AgentService/OnlineCPUMem", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *agentServiceClient) ReseedRandomDev(ctx context.Context, in *ReseedRandomDevRequest, opts ...grpc1.CallOption) (*google_protobuf2.Empty, error) { - out := new(google_protobuf2.Empty) - err := grpc1.Invoke(ctx, "/grpc.AgentService/ReseedRandomDev", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *agentServiceClient) GetGuestDetails(ctx context.Context, in *GuestDetailsRequest, opts ...grpc1.CallOption) (*GuestDetailsResponse, error) { - out := new(GuestDetailsResponse) - err := grpc1.Invoke(ctx, "/grpc.AgentService/GetGuestDetails", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *agentServiceClient) MemHotplugByProbe(ctx context.Context, in *MemHotplugByProbeRequest, opts ...grpc1.CallOption) (*google_protobuf2.Empty, error) { - out := new(google_protobuf2.Empty) - err := grpc1.Invoke(ctx, "/grpc.AgentService/MemHotplugByProbe", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *agentServiceClient) SetGuestDateTime(ctx context.Context, in *SetGuestDateTimeRequest, opts ...grpc1.CallOption) (*google_protobuf2.Empty, error) { - out := new(google_protobuf2.Empty) - err := grpc1.Invoke(ctx, "/grpc.AgentService/SetGuestDateTime", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *agentServiceClient) CopyFile(ctx context.Context, in *CopyFileRequest, opts ...grpc1.CallOption) (*google_protobuf2.Empty, error) { - out := new(google_protobuf2.Empty) - err := grpc1.Invoke(ctx, "/grpc.AgentService/CopyFile", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// Server API for AgentService service - -type AgentServiceServer interface { - // execution - CreateContainer(context.Context, *CreateContainerRequest) (*google_protobuf2.Empty, error) - StartContainer(context.Context, *StartContainerRequest) (*google_protobuf2.Empty, error) - // RemoveContainer will tear down an existing container by forcibly terminating - // all processes running inside that container and releasing all internal - // resources associated with it. - // RemoveContainer will wait for all processes termination before returning. - // If any process can not be killed or if it can not be killed after - // the RemoveContainerRequest timeout, RemoveContainer will return an error. - RemoveContainer(context.Context, *RemoveContainerRequest) (*google_protobuf2.Empty, error) - ExecProcess(context.Context, *ExecProcessRequest) (*google_protobuf2.Empty, error) - SignalProcess(context.Context, *SignalProcessRequest) (*google_protobuf2.Empty, error) - WaitProcess(context.Context, *WaitProcessRequest) (*WaitProcessResponse, error) - ListProcesses(context.Context, *ListProcessesRequest) (*ListProcessesResponse, error) - UpdateContainer(context.Context, *UpdateContainerRequest) (*google_protobuf2.Empty, error) - StatsContainer(context.Context, *StatsContainerRequest) (*StatsContainerResponse, error) - PauseContainer(context.Context, *PauseContainerRequest) (*google_protobuf2.Empty, error) - ResumeContainer(context.Context, *ResumeContainerRequest) (*google_protobuf2.Empty, error) - // stdio - WriteStdin(context.Context, *WriteStreamRequest) (*WriteStreamResponse, error) - ReadStdout(context.Context, *ReadStreamRequest) (*ReadStreamResponse, error) - ReadStderr(context.Context, *ReadStreamRequest) (*ReadStreamResponse, error) - CloseStdin(context.Context, *CloseStdinRequest) (*google_protobuf2.Empty, error) - TtyWinResize(context.Context, *TtyWinResizeRequest) (*google_protobuf2.Empty, error) - // networking - UpdateInterface(context.Context, *UpdateInterfaceRequest) (*types.Interface, error) - UpdateRoutes(context.Context, *UpdateRoutesRequest) (*Routes, error) - ListInterfaces(context.Context, *ListInterfacesRequest) (*Interfaces, error) - ListRoutes(context.Context, *ListRoutesRequest) (*Routes, error) - // tracing - StartTracing(context.Context, *StartTracingRequest) (*google_protobuf2.Empty, error) - StopTracing(context.Context, *StopTracingRequest) (*google_protobuf2.Empty, error) - // misc (TODO: some rpcs can be replaced by hyperstart-exec) - CreateSandbox(context.Context, *CreateSandboxRequest) (*google_protobuf2.Empty, error) - DestroySandbox(context.Context, *DestroySandboxRequest) (*google_protobuf2.Empty, error) - OnlineCPUMem(context.Context, *OnlineCPUMemRequest) (*google_protobuf2.Empty, error) - ReseedRandomDev(context.Context, *ReseedRandomDevRequest) (*google_protobuf2.Empty, error) - GetGuestDetails(context.Context, *GuestDetailsRequest) (*GuestDetailsResponse, error) - MemHotplugByProbe(context.Context, *MemHotplugByProbeRequest) (*google_protobuf2.Empty, error) - SetGuestDateTime(context.Context, *SetGuestDateTimeRequest) (*google_protobuf2.Empty, error) - CopyFile(context.Context, *CopyFileRequest) (*google_protobuf2.Empty, error) -} - -func RegisterAgentServiceServer(s *grpc1.Server, srv AgentServiceServer) { - s.RegisterService(&_AgentService_serviceDesc, srv) -} - -func _AgentService_CreateContainer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc1.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateContainerRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AgentServiceServer).CreateContainer(ctx, in) - } - info := &grpc1.UnaryServerInfo{ - Server: srv, - FullMethod: "/grpc.AgentService/CreateContainer", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AgentServiceServer).CreateContainer(ctx, req.(*CreateContainerRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AgentService_StartContainer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc1.UnaryServerInterceptor) (interface{}, error) { - in := new(StartContainerRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AgentServiceServer).StartContainer(ctx, in) - } - info := &grpc1.UnaryServerInfo{ - Server: srv, - FullMethod: "/grpc.AgentService/StartContainer", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AgentServiceServer).StartContainer(ctx, req.(*StartContainerRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AgentService_RemoveContainer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc1.UnaryServerInterceptor) (interface{}, error) { - in := new(RemoveContainerRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AgentServiceServer).RemoveContainer(ctx, in) - } - info := &grpc1.UnaryServerInfo{ - Server: srv, - FullMethod: "/grpc.AgentService/RemoveContainer", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AgentServiceServer).RemoveContainer(ctx, req.(*RemoveContainerRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AgentService_ExecProcess_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc1.UnaryServerInterceptor) (interface{}, error) { - in := new(ExecProcessRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AgentServiceServer).ExecProcess(ctx, in) - } - info := &grpc1.UnaryServerInfo{ - Server: srv, - FullMethod: "/grpc.AgentService/ExecProcess", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AgentServiceServer).ExecProcess(ctx, req.(*ExecProcessRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AgentService_SignalProcess_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc1.UnaryServerInterceptor) (interface{}, error) { - in := new(SignalProcessRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AgentServiceServer).SignalProcess(ctx, in) - } - info := &grpc1.UnaryServerInfo{ - Server: srv, - FullMethod: "/grpc.AgentService/SignalProcess", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AgentServiceServer).SignalProcess(ctx, req.(*SignalProcessRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AgentService_WaitProcess_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc1.UnaryServerInterceptor) (interface{}, error) { - in := new(WaitProcessRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AgentServiceServer).WaitProcess(ctx, in) - } - info := &grpc1.UnaryServerInfo{ - Server: srv, - FullMethod: "/grpc.AgentService/WaitProcess", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AgentServiceServer).WaitProcess(ctx, req.(*WaitProcessRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AgentService_ListProcesses_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc1.UnaryServerInterceptor) (interface{}, error) { - in := new(ListProcessesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AgentServiceServer).ListProcesses(ctx, in) - } - info := &grpc1.UnaryServerInfo{ - Server: srv, - FullMethod: "/grpc.AgentService/ListProcesses", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AgentServiceServer).ListProcesses(ctx, req.(*ListProcessesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AgentService_UpdateContainer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc1.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateContainerRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AgentServiceServer).UpdateContainer(ctx, in) - } - info := &grpc1.UnaryServerInfo{ - Server: srv, - FullMethod: "/grpc.AgentService/UpdateContainer", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AgentServiceServer).UpdateContainer(ctx, req.(*UpdateContainerRequest)) - } - 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_PauseContainer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc1.UnaryServerInterceptor) (interface{}, error) { - in := new(PauseContainerRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AgentServiceServer).PauseContainer(ctx, in) - } - info := &grpc1.UnaryServerInfo{ - Server: srv, - FullMethod: "/grpc.AgentService/PauseContainer", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AgentServiceServer).PauseContainer(ctx, req.(*PauseContainerRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AgentService_ResumeContainer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc1.UnaryServerInterceptor) (interface{}, error) { - in := new(ResumeContainerRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AgentServiceServer).ResumeContainer(ctx, in) - } - info := &grpc1.UnaryServerInfo{ - Server: srv, - FullMethod: "/grpc.AgentService/ResumeContainer", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AgentServiceServer).ResumeContainer(ctx, req.(*ResumeContainerRequest)) - } - 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 { - return nil, err - } - if interceptor == nil { - return srv.(AgentServiceServer).WriteStdin(ctx, in) - } - info := &grpc1.UnaryServerInfo{ - Server: srv, - FullMethod: "/grpc.AgentService/WriteStdin", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AgentServiceServer).WriteStdin(ctx, req.(*WriteStreamRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AgentService_ReadStdout_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc1.UnaryServerInterceptor) (interface{}, error) { - in := new(ReadStreamRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AgentServiceServer).ReadStdout(ctx, in) - } - info := &grpc1.UnaryServerInfo{ - Server: srv, - FullMethod: "/grpc.AgentService/ReadStdout", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AgentServiceServer).ReadStdout(ctx, req.(*ReadStreamRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AgentService_ReadStderr_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc1.UnaryServerInterceptor) (interface{}, error) { - in := new(ReadStreamRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AgentServiceServer).ReadStderr(ctx, in) - } - info := &grpc1.UnaryServerInfo{ - Server: srv, - FullMethod: "/grpc.AgentService/ReadStderr", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AgentServiceServer).ReadStderr(ctx, req.(*ReadStreamRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AgentService_CloseStdin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc1.UnaryServerInterceptor) (interface{}, error) { - in := new(CloseStdinRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AgentServiceServer).CloseStdin(ctx, in) - } - info := &grpc1.UnaryServerInfo{ - Server: srv, - FullMethod: "/grpc.AgentService/CloseStdin", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AgentServiceServer).CloseStdin(ctx, req.(*CloseStdinRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AgentService_TtyWinResize_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc1.UnaryServerInterceptor) (interface{}, error) { - in := new(TtyWinResizeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AgentServiceServer).TtyWinResize(ctx, in) - } - info := &grpc1.UnaryServerInfo{ - Server: srv, - FullMethod: "/grpc.AgentService/TtyWinResize", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AgentServiceServer).TtyWinResize(ctx, req.(*TtyWinResizeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AgentService_UpdateInterface_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc1.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateInterfaceRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AgentServiceServer).UpdateInterface(ctx, in) - } - info := &grpc1.UnaryServerInfo{ - Server: srv, - FullMethod: "/grpc.AgentService/UpdateInterface", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AgentServiceServer).UpdateInterface(ctx, req.(*UpdateInterfaceRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AgentService_UpdateRoutes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc1.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateRoutesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AgentServiceServer).UpdateRoutes(ctx, in) - } - info := &grpc1.UnaryServerInfo{ - Server: srv, - FullMethod: "/grpc.AgentService/UpdateRoutes", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AgentServiceServer).UpdateRoutes(ctx, req.(*UpdateRoutesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AgentService_ListInterfaces_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc1.UnaryServerInterceptor) (interface{}, error) { - in := new(ListInterfacesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AgentServiceServer).ListInterfaces(ctx, in) - } - info := &grpc1.UnaryServerInfo{ - Server: srv, - FullMethod: "/grpc.AgentService/ListInterfaces", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AgentServiceServer).ListInterfaces(ctx, req.(*ListInterfacesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AgentService_ListRoutes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc1.UnaryServerInterceptor) (interface{}, error) { - in := new(ListRoutesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AgentServiceServer).ListRoutes(ctx, in) - } - info := &grpc1.UnaryServerInfo{ - Server: srv, - FullMethod: "/grpc.AgentService/ListRoutes", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AgentServiceServer).ListRoutes(ctx, req.(*ListRoutesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AgentService_StartTracing_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc1.UnaryServerInterceptor) (interface{}, error) { - in := new(StartTracingRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AgentServiceServer).StartTracing(ctx, in) - } - info := &grpc1.UnaryServerInfo{ - Server: srv, - FullMethod: "/grpc.AgentService/StartTracing", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AgentServiceServer).StartTracing(ctx, req.(*StartTracingRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AgentService_StopTracing_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc1.UnaryServerInterceptor) (interface{}, error) { - in := new(StopTracingRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AgentServiceServer).StopTracing(ctx, in) - } - info := &grpc1.UnaryServerInfo{ - Server: srv, - FullMethod: "/grpc.AgentService/StopTracing", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AgentServiceServer).StopTracing(ctx, req.(*StopTracingRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AgentService_CreateSandbox_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc1.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateSandboxRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AgentServiceServer).CreateSandbox(ctx, in) - } - info := &grpc1.UnaryServerInfo{ - Server: srv, - FullMethod: "/grpc.AgentService/CreateSandbox", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AgentServiceServer).CreateSandbox(ctx, req.(*CreateSandboxRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AgentService_DestroySandbox_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc1.UnaryServerInterceptor) (interface{}, error) { - in := new(DestroySandboxRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AgentServiceServer).DestroySandbox(ctx, in) - } - info := &grpc1.UnaryServerInfo{ - Server: srv, - FullMethod: "/grpc.AgentService/DestroySandbox", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AgentServiceServer).DestroySandbox(ctx, req.(*DestroySandboxRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AgentService_OnlineCPUMem_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc1.UnaryServerInterceptor) (interface{}, error) { - in := new(OnlineCPUMemRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AgentServiceServer).OnlineCPUMem(ctx, in) - } - info := &grpc1.UnaryServerInfo{ - Server: srv, - FullMethod: "/grpc.AgentService/OnlineCPUMem", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AgentServiceServer).OnlineCPUMem(ctx, req.(*OnlineCPUMemRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AgentService_ReseedRandomDev_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc1.UnaryServerInterceptor) (interface{}, error) { - in := new(ReseedRandomDevRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AgentServiceServer).ReseedRandomDev(ctx, in) - } - info := &grpc1.UnaryServerInfo{ - Server: srv, - FullMethod: "/grpc.AgentService/ReseedRandomDev", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AgentServiceServer).ReseedRandomDev(ctx, req.(*ReseedRandomDevRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AgentService_GetGuestDetails_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc1.UnaryServerInterceptor) (interface{}, error) { - in := new(GuestDetailsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AgentServiceServer).GetGuestDetails(ctx, in) - } - info := &grpc1.UnaryServerInfo{ - Server: srv, - FullMethod: "/grpc.AgentService/GetGuestDetails", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AgentServiceServer).GetGuestDetails(ctx, req.(*GuestDetailsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AgentService_MemHotplugByProbe_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc1.UnaryServerInterceptor) (interface{}, error) { - in := new(MemHotplugByProbeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AgentServiceServer).MemHotplugByProbe(ctx, in) - } - info := &grpc1.UnaryServerInfo{ - Server: srv, - FullMethod: "/grpc.AgentService/MemHotplugByProbe", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AgentServiceServer).MemHotplugByProbe(ctx, req.(*MemHotplugByProbeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AgentService_SetGuestDateTime_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc1.UnaryServerInterceptor) (interface{}, error) { - in := new(SetGuestDateTimeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AgentServiceServer).SetGuestDateTime(ctx, in) - } - info := &grpc1.UnaryServerInfo{ - Server: srv, - FullMethod: "/grpc.AgentService/SetGuestDateTime", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AgentServiceServer).SetGuestDateTime(ctx, req.(*SetGuestDateTimeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AgentService_CopyFile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc1.UnaryServerInterceptor) (interface{}, error) { - in := new(CopyFileRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AgentServiceServer).CopyFile(ctx, in) - } - info := &grpc1.UnaryServerInfo{ - Server: srv, - FullMethod: "/grpc.AgentService/CopyFile", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AgentServiceServer).CopyFile(ctx, req.(*CopyFileRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _AgentService_serviceDesc = grpc1.ServiceDesc{ - ServiceName: "grpc.AgentService", - HandlerType: (*AgentServiceServer)(nil), - Methods: []grpc1.MethodDesc{ - { - MethodName: "CreateContainer", - Handler: _AgentService_CreateContainer_Handler, - }, - { - MethodName: "StartContainer", - Handler: _AgentService_StartContainer_Handler, - }, - { - MethodName: "RemoveContainer", - Handler: _AgentService_RemoveContainer_Handler, - }, - { - MethodName: "ExecProcess", - Handler: _AgentService_ExecProcess_Handler, - }, - { - MethodName: "SignalProcess", - Handler: _AgentService_SignalProcess_Handler, - }, - { - MethodName: "WaitProcess", - Handler: _AgentService_WaitProcess_Handler, - }, - { - MethodName: "ListProcesses", - Handler: _AgentService_ListProcesses_Handler, - }, - { - MethodName: "UpdateContainer", - Handler: _AgentService_UpdateContainer_Handler, - }, - { - MethodName: "StatsContainer", - Handler: _AgentService_StatsContainer_Handler, - }, - { - MethodName: "PauseContainer", - Handler: _AgentService_PauseContainer_Handler, - }, - { - MethodName: "ResumeContainer", - Handler: _AgentService_ResumeContainer_Handler, - }, - { - MethodName: "WriteStdin", - Handler: _AgentService_WriteStdin_Handler, - }, - { - MethodName: "ReadStdout", - Handler: _AgentService_ReadStdout_Handler, - }, - { - MethodName: "ReadStderr", - Handler: _AgentService_ReadStderr_Handler, - }, - { - MethodName: "CloseStdin", - Handler: _AgentService_CloseStdin_Handler, - }, - { - MethodName: "TtyWinResize", - Handler: _AgentService_TtyWinResize_Handler, - }, - { - MethodName: "UpdateInterface", - Handler: _AgentService_UpdateInterface_Handler, - }, - { - MethodName: "UpdateRoutes", - Handler: _AgentService_UpdateRoutes_Handler, - }, - { - MethodName: "ListInterfaces", - Handler: _AgentService_ListInterfaces_Handler, - }, - { - MethodName: "ListRoutes", - Handler: _AgentService_ListRoutes_Handler, - }, - { - MethodName: "StartTracing", - Handler: _AgentService_StartTracing_Handler, - }, - { - MethodName: "StopTracing", - Handler: _AgentService_StopTracing_Handler, - }, - { - MethodName: "CreateSandbox", - Handler: _AgentService_CreateSandbox_Handler, - }, - { - MethodName: "DestroySandbox", - Handler: _AgentService_DestroySandbox_Handler, - }, - { - MethodName: "OnlineCPUMem", - Handler: _AgentService_OnlineCPUMem_Handler, - }, - { - MethodName: "ReseedRandomDev", - Handler: _AgentService_ReseedRandomDev_Handler, - }, - { - MethodName: "GetGuestDetails", - Handler: _AgentService_GetGuestDetails_Handler, - }, - { - MethodName: "MemHotplugByProbe", - Handler: _AgentService_MemHotplugByProbe_Handler, - }, - { - MethodName: "SetGuestDateTime", - Handler: _AgentService_SetGuestDateTime_Handler, - }, - { - MethodName: "CopyFile", - Handler: _AgentService_CopyFile_Handler, - }, - }, - Streams: []grpc1.StreamDesc{}, - Metadata: "agent.proto", +func init() { + proto.RegisterFile("github.com/kata-containers/agent/protocols/grpc/agent.proto", fileDescriptor_4a132446d64d28b7) +} + +var fileDescriptor_4a132446d64d28b7 = []byte{ + // 2899 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x39, 0x4b, 0x6f, 0x1c, 0xc7, + 0xd1, 0xde, 0x07, 0x97, 0xbb, 0xb5, 0x2f, 0xee, 0x90, 0xa2, 0x56, 0x2b, 0x9b, 0x9f, 0x3c, 0xb6, + 0x65, 0xfa, 0xf3, 0xe7, 0xa5, 0x2d, 0x1b, 0x9f, 0x2d, 0x0b, 0x8e, 0x20, 0x3e, 0x22, 0x32, 0xb6, + 0x22, 0x66, 0x28, 0xc2, 0x01, 0x82, 0x60, 0x30, 0x9c, 0x69, 0x2e, 0xdb, 0xdc, 0x99, 0x1e, 0x77, + 0xf7, 0x50, 0x5c, 0x07, 0x08, 0x72, 0x4a, 0x6e, 0xb9, 0x04, 0xc8, 0x2d, 0x7f, 0x20, 0xc8, 0x2d, + 0xc7, 0x5c, 0x73, 0x30, 0x72, 0xca, 0x31, 0xa7, 0x20, 0xd6, 0x4f, 0xc8, 0x2f, 0x08, 0xfa, 0x35, + 0x8f, 0xdd, 0x25, 0x05, 0x13, 0x04, 0x72, 0x59, 0x74, 0x55, 0x57, 0xd7, 0xab, 0xbb, 0x6a, 0xaa, + 0x6a, 0xe1, 0xc1, 0x08, 0xf3, 0x93, 0xe4, 0x68, 0xe8, 0x93, 0x70, 0xe3, 0xd4, 0xe3, 0xde, 0x7b, + 0x3e, 0x89, 0xb8, 0x87, 0x23, 0x44, 0xd9, 0x86, 0x37, 0x42, 0x11, 0xdf, 0x88, 0x29, 0xe1, 0xc4, + 0x27, 0x63, 0xb6, 0x31, 0xa2, 0xb1, 0xaf, 0x90, 0x43, 0x89, 0xb4, 0xaa, 0x02, 0x33, 0xb8, 0xff, + 0x7d, 0x59, 0x10, 0x1f, 0x2b, 0x06, 0x83, 0xff, 0x7f, 0xf9, 0xd1, 0xd3, 0xd1, 0x06, 0x9f, 0xc4, + 0x88, 0xa9, 0x5f, 0x7d, 0xee, 0xf6, 0x88, 0x90, 0xd1, 0x18, 0x29, 0xc6, 0x47, 0xc9, 0xf1, 0x06, + 0x0a, 0x63, 0x3e, 0x51, 0x9b, 0xf6, 0x1f, 0xca, 0xb0, 0xba, 0x45, 0x91, 0xc7, 0xd1, 0x96, 0xe1, + 0xe6, 0xa0, 0xaf, 0x13, 0xc4, 0xb8, 0xf5, 0x3a, 0xb4, 0x52, 0x09, 0x2e, 0x0e, 0xfa, 0xa5, 0x3b, + 0xa5, 0xf5, 0x86, 0xd3, 0x4c, 0x71, 0x7b, 0x81, 0x75, 0x13, 0x16, 0xd1, 0x39, 0xf2, 0xc5, 0x6e, + 0x59, 0xee, 0xd6, 0x04, 0xb8, 0x17, 0x58, 0x1f, 0x40, 0x93, 0x71, 0x8a, 0xa3, 0x91, 0x9b, 0x30, + 0x44, 0xfb, 0x95, 0x3b, 0xa5, 0xf5, 0xe6, 0xbd, 0xa5, 0xa1, 0xb0, 0x68, 0x78, 0x20, 0x37, 0x0e, + 0x19, 0xa2, 0x0e, 0xb0, 0x74, 0x6d, 0xdd, 0x85, 0xc5, 0x00, 0x9d, 0x61, 0x1f, 0xb1, 0x7e, 0xf5, + 0x4e, 0x65, 0xbd, 0x79, 0xaf, 0xa5, 0xc8, 0xb7, 0x25, 0xd2, 0x31, 0x9b, 0xd6, 0x3b, 0x50, 0x67, + 0x9c, 0x50, 0x6f, 0x84, 0x58, 0x7f, 0x41, 0x12, 0xb6, 0x0d, 0x5f, 0x89, 0x75, 0xd2, 0x6d, 0xeb, + 0x55, 0xa8, 0x3c, 0xdd, 0xda, 0xeb, 0xd7, 0xa4, 0x74, 0xd0, 0x54, 0x31, 0xf2, 0x9d, 0x0a, 0xd9, + 0xda, 0xb3, 0xde, 0x80, 0x36, 0xf3, 0xa2, 0xe0, 0x88, 0x9c, 0xbb, 0x31, 0x0e, 0x22, 0xd6, 0x5f, + 0xbc, 0x53, 0x5a, 0xaf, 0x3b, 0x2d, 0x8d, 0xdc, 0x17, 0x38, 0xfb, 0x53, 0xb8, 0x71, 0xc0, 0x3d, + 0xca, 0xaf, 0xe0, 0x1d, 0xfb, 0x10, 0x56, 0x1d, 0x14, 0x92, 0xb3, 0x2b, 0xb9, 0xb6, 0x0f, 0x8b, + 0x1c, 0x87, 0x88, 0x24, 0x5c, 0xba, 0xb6, 0xed, 0x18, 0xd0, 0xfe, 0x53, 0x09, 0xac, 0x9d, 0x73, + 0xe4, 0xef, 0x53, 0xe2, 0x23, 0xc6, 0xfe, 0x4b, 0xd7, 0xf5, 0x36, 0x2c, 0xc6, 0x4a, 0x81, 0x7e, + 0x55, 0x92, 0xeb, 0x5b, 0x30, 0x5a, 0x99, 0x5d, 0xfb, 0x2b, 0x58, 0x39, 0xc0, 0xa3, 0xc8, 0x1b, + 0x5f, 0xa3, 0xbe, 0xab, 0x50, 0x63, 0x92, 0xa7, 0x54, 0xb5, 0xed, 0x68, 0xc8, 0xde, 0x07, 0xeb, + 0x4b, 0x0f, 0xf3, 0xeb, 0x93, 0x64, 0xbf, 0x07, 0xcb, 0x05, 0x8e, 0x2c, 0x26, 0x11, 0x43, 0x52, + 0x01, 0xee, 0xf1, 0x84, 0x49, 0x66, 0x0b, 0x8e, 0x86, 0x6c, 0x04, 0x2b, 0x5f, 0x60, 0x66, 0xc8, + 0xd1, 0xf7, 0x51, 0x61, 0x15, 0x6a, 0xc7, 0x84, 0x86, 0x1e, 0x37, 0x1a, 0x28, 0xc8, 0xb2, 0xa0, + 0xea, 0xd1, 0x11, 0xeb, 0x57, 0xee, 0x54, 0xd6, 0x1b, 0x8e, 0x5c, 0x8b, 0x57, 0x39, 0x25, 0x46, + 0xeb, 0xf5, 0x3a, 0xb4, 0xb4, 0xdf, 0xdd, 0x31, 0x66, 0x5c, 0xca, 0x69, 0x39, 0x4d, 0x8d, 0x13, + 0x67, 0x6c, 0x02, 0xab, 0x87, 0x71, 0x70, 0xc5, 0x80, 0xbf, 0x07, 0x0d, 0x8a, 0x18, 0x49, 0xa8, + 0x08, 0xd3, 0xb2, 0xbc, 0xf7, 0x15, 0x75, 0xef, 0x5f, 0xe0, 0x28, 0x39, 0x77, 0xcc, 0x9e, 0x93, + 0x91, 0xe9, 0x10, 0xe2, 0xec, 0x2a, 0x21, 0xf4, 0x29, 0xdc, 0xd8, 0xf7, 0x12, 0x76, 0x15, 0x5d, + 0xed, 0x07, 0x22, 0xfc, 0x58, 0x12, 0x5e, 0xe9, 0xf0, 0x1f, 0x4b, 0x50, 0xdf, 0x8a, 0x93, 0x43, + 0xe6, 0x8d, 0x90, 0xf5, 0x3f, 0xd0, 0xe4, 0x84, 0x7b, 0x63, 0x37, 0x11, 0xa0, 0x24, 0xaf, 0x3a, + 0x20, 0x51, 0x8a, 0x40, 0xb8, 0x1d, 0x51, 0x3f, 0x4e, 0x34, 0x45, 0xf9, 0x4e, 0x65, 0xbd, 0xea, + 0x34, 0x15, 0x4e, 0x91, 0x0c, 0x61, 0x59, 0xee, 0xb9, 0x38, 0x72, 0x4f, 0x11, 0x8d, 0xd0, 0x38, + 0x24, 0x01, 0x92, 0xef, 0xb7, 0xea, 0xf4, 0xe4, 0xd6, 0x5e, 0xf4, 0x79, 0xba, 0x61, 0xfd, 0x2f, + 0xf4, 0x52, 0x7a, 0x11, 0x94, 0x92, 0xba, 0x2a, 0xa9, 0xbb, 0x9a, 0xfa, 0x50, 0xa3, 0xed, 0x5f, + 0x42, 0xe7, 0xd9, 0x09, 0x25, 0x9c, 0x8f, 0x71, 0x34, 0xda, 0xf6, 0xb8, 0x27, 0xb2, 0x47, 0x8c, + 0x28, 0x26, 0x01, 0xd3, 0xda, 0x1a, 0xd0, 0x7a, 0x17, 0x7a, 0x5c, 0xd1, 0xa2, 0xc0, 0x35, 0x34, + 0x65, 0x49, 0xb3, 0x94, 0x6e, 0xec, 0x6b, 0xe2, 0xb7, 0xa0, 0x93, 0x11, 0x8b, 0xfc, 0xa3, 0xf5, + 0x6d, 0xa7, 0xd8, 0x67, 0x38, 0x44, 0xf6, 0x99, 0xf4, 0x95, 0xbc, 0x64, 0xeb, 0x5d, 0x68, 0x64, + 0x7e, 0x28, 0xc9, 0x17, 0xd2, 0x51, 0x2f, 0xc4, 0xb8, 0xd3, 0xa9, 0xa7, 0x4e, 0xf9, 0x0c, 0xba, + 0x3c, 0x55, 0xdc, 0x0d, 0x3c, 0xee, 0x15, 0x1f, 0x55, 0xd1, 0x2a, 0xa7, 0xc3, 0x0b, 0xb0, 0xfd, + 0x00, 0x1a, 0xfb, 0x38, 0x60, 0x4a, 0x70, 0x1f, 0x16, 0xfd, 0x84, 0x52, 0x14, 0x71, 0x63, 0xb2, + 0x06, 0xad, 0x15, 0x58, 0x18, 0xe3, 0x10, 0x73, 0x6d, 0xa6, 0x02, 0x6c, 0x02, 0xf0, 0x04, 0x85, + 0x84, 0x4e, 0xa4, 0xc3, 0x56, 0x60, 0x21, 0x7f, 0xb9, 0x0a, 0xb0, 0x6e, 0x43, 0x23, 0xf4, 0xce, + 0xd3, 0x4b, 0x15, 0x3b, 0xf5, 0xd0, 0x3b, 0x57, 0xca, 0xf7, 0x61, 0xf1, 0xd8, 0xc3, 0x63, 0x3f, + 0xe2, 0xda, 0x2b, 0x06, 0xcc, 0x04, 0x56, 0xf3, 0x02, 0xff, 0x5a, 0x86, 0xa6, 0x92, 0xa8, 0x14, + 0x5e, 0x81, 0x05, 0xdf, 0xf3, 0x4f, 0x52, 0x91, 0x12, 0xb0, 0xee, 0x1a, 0x45, 0xca, 0xf9, 0x24, + 0x9c, 0x69, 0x6a, 0x54, 0xdb, 0x00, 0x60, 0xcf, 0xbd, 0x58, 0xeb, 0x56, 0xb9, 0x80, 0xb8, 0x21, + 0x68, 0x94, 0xba, 0x1f, 0x42, 0x4b, 0xbd, 0x3b, 0x7d, 0xa4, 0x7a, 0xc1, 0x91, 0xa6, 0xa2, 0x52, + 0x87, 0xde, 0x80, 0x76, 0xc2, 0x90, 0x7b, 0x82, 0x11, 0xf5, 0xa8, 0x7f, 0x32, 0xe9, 0x2f, 0xa8, + 0x6f, 0x64, 0xc2, 0xd0, 0xae, 0xc1, 0x59, 0xf7, 0x60, 0x41, 0xa4, 0x3f, 0xd6, 0xaf, 0xc9, 0xcf, + 0xf1, 0xab, 0x79, 0x96, 0xd2, 0xd4, 0xa1, 0xfc, 0xdd, 0x89, 0x38, 0x9d, 0x38, 0x8a, 0x74, 0xf0, + 0x09, 0x40, 0x86, 0xb4, 0x96, 0xa0, 0x72, 0x8a, 0x26, 0x3a, 0x0e, 0xc5, 0x52, 0x38, 0xe7, 0xcc, + 0x1b, 0x27, 0xc6, 0xeb, 0x0a, 0xf8, 0xb4, 0xfc, 0x49, 0xc9, 0xf6, 0xa1, 0xbb, 0x39, 0x3e, 0xc5, + 0x24, 0x77, 0x7c, 0x05, 0x16, 0x42, 0xef, 0x2b, 0x42, 0x8d, 0x27, 0x25, 0x20, 0xb1, 0x38, 0x22, + 0xd4, 0xb0, 0x90, 0x80, 0xd5, 0x81, 0x32, 0x89, 0xa5, 0xbf, 0x1a, 0x4e, 0x99, 0xc4, 0x99, 0xa0, + 0x6a, 0x4e, 0x90, 0xfd, 0xcf, 0x2a, 0x40, 0x26, 0xc5, 0x72, 0x60, 0x80, 0x89, 0xcb, 0x10, 0x15, + 0x25, 0x88, 0x7b, 0x34, 0xe1, 0x88, 0xb9, 0x14, 0xf9, 0x09, 0x65, 0xf8, 0x4c, 0xdc, 0x9f, 0x30, + 0xfb, 0x86, 0x32, 0x7b, 0x4a, 0x37, 0xe7, 0x26, 0x26, 0x07, 0xea, 0xdc, 0xa6, 0x38, 0xe6, 0x98, + 0x53, 0xd6, 0x1e, 0xdc, 0xc8, 0x78, 0x06, 0x39, 0x76, 0xe5, 0xcb, 0xd8, 0x2d, 0xa7, 0xec, 0x82, + 0x8c, 0xd5, 0x0e, 0x2c, 0x63, 0xe2, 0x7e, 0x9d, 0xa0, 0xa4, 0xc0, 0xa8, 0x72, 0x19, 0xa3, 0x1e, + 0x26, 0x3f, 0x91, 0x07, 0x32, 0x36, 0xfb, 0x70, 0x2b, 0x67, 0xa5, 0x08, 0xf7, 0x1c, 0xb3, 0xea, + 0x65, 0xcc, 0x56, 0x53, 0xad, 0x44, 0x3e, 0xc8, 0x38, 0xfe, 0x08, 0x56, 0x31, 0x71, 0x9f, 0x7b, + 0x98, 0x4f, 0xb3, 0x5b, 0x78, 0x89, 0x91, 0xe2, 0xa3, 0x5b, 0xe4, 0xa5, 0x8c, 0x0c, 0x11, 0x1d, + 0x15, 0x8c, 0xac, 0xbd, 0xc4, 0xc8, 0x27, 0xf2, 0x40, 0xc6, 0xe6, 0x11, 0xf4, 0x30, 0x99, 0xd6, + 0x66, 0xf1, 0x32, 0x26, 0x5d, 0x4c, 0x8a, 0x9a, 0x6c, 0x42, 0x8f, 0x21, 0x9f, 0x13, 0x9a, 0x7f, + 0x04, 0xf5, 0xcb, 0x58, 0x2c, 0x69, 0xfa, 0x94, 0x87, 0xfd, 0x33, 0x68, 0xed, 0x26, 0x23, 0xc4, + 0xc7, 0x47, 0x69, 0x32, 0xb8, 0xb6, 0xfc, 0x63, 0xff, 0xbb, 0x0c, 0xcd, 0xad, 0x11, 0x25, 0x49, + 0x5c, 0xc8, 0xc9, 0x2a, 0x48, 0xa7, 0x73, 0xb2, 0x24, 0x91, 0x39, 0x59, 0x11, 0x7f, 0x04, 0xad, + 0x50, 0x86, 0xae, 0xa6, 0x57, 0x79, 0xa8, 0x37, 0x13, 0xd4, 0x4e, 0x33, 0xcc, 0x25, 0xb3, 0x21, + 0x40, 0x8c, 0x03, 0xa6, 0xcf, 0xa8, 0x74, 0xd4, 0xd5, 0x15, 0xa1, 0x49, 0xd1, 0x4e, 0x23, 0x4e, + 0xb3, 0xf5, 0x07, 0xd0, 0x3c, 0x12, 0x4e, 0xd2, 0x07, 0x0a, 0xc9, 0x28, 0xf3, 0x9e, 0x03, 0x47, + 0x59, 0x10, 0xee, 0x42, 0xfb, 0x44, 0xb9, 0x4c, 0x1f, 0x52, 0x6f, 0xe8, 0x0d, 0x6d, 0x49, 0x66, + 0xef, 0x30, 0xef, 0x59, 0x75, 0x01, 0xad, 0x93, 0x1c, 0x6a, 0x70, 0x00, 0xbd, 0x19, 0x92, 0x39, + 0x39, 0x68, 0x3d, 0x9f, 0x83, 0x9a, 0xf7, 0x2c, 0x25, 0x28, 0x7f, 0x32, 0x9f, 0x97, 0x7e, 0x5b, + 0x86, 0xd6, 0x8f, 0x11, 0x7f, 0x4e, 0xe8, 0xa9, 0xd2, 0xd7, 0x82, 0x6a, 0xe4, 0x85, 0x48, 0x73, + 0x94, 0x6b, 0xeb, 0x16, 0xd4, 0xe9, 0xb9, 0x4a, 0x20, 0xfa, 0x3e, 0x17, 0xe9, 0xb9, 0x4c, 0x0c, + 0xd6, 0x6b, 0x00, 0xf4, 0xdc, 0x8d, 0x3d, 0xff, 0x14, 0x69, 0x0f, 0x56, 0x9d, 0x06, 0x3d, 0xdf, + 0x57, 0x08, 0xf1, 0x14, 0xe8, 0xb9, 0x8b, 0x28, 0x25, 0x94, 0xe9, 0x5c, 0x55, 0xa7, 0xe7, 0x3b, + 0x12, 0xd6, 0x67, 0x03, 0x4a, 0xe2, 0x18, 0x05, 0x32, 0x47, 0xcb, 0xb3, 0xdb, 0x0a, 0x21, 0xa4, + 0x72, 0x23, 0xb5, 0xa6, 0xa4, 0xf2, 0x4c, 0x2a, 0xcf, 0xa4, 0x2e, 0xaa, 0x93, 0x3c, 0x2f, 0x95, + 0xa7, 0x52, 0xeb, 0x4a, 0x2a, 0xcf, 0x49, 0xe5, 0x99, 0xd4, 0x86, 0x39, 0xab, 0xa5, 0xda, 0xbf, + 0x29, 0xc1, 0xea, 0x74, 0xe1, 0xa7, 0xcb, 0xd4, 0x8f, 0xa0, 0xe5, 0xcb, 0xfb, 0x2a, 0xbc, 0xc9, + 0xde, 0xcc, 0x4d, 0x3a, 0x4d, 0x3f, 0xf7, 0x8c, 0x3f, 0x86, 0x76, 0xa4, 0x1c, 0x9c, 0x3e, 0xcd, + 0x4a, 0x76, 0x2f, 0x79, 0xdf, 0x3b, 0xad, 0x28, 0x07, 0xd9, 0x01, 0x58, 0x5f, 0x52, 0xcc, 0xd1, + 0x01, 0xa7, 0xc8, 0x0b, 0xaf, 0xa3, 0x01, 0xb1, 0xa0, 0x2a, 0xab, 0x95, 0x8a, 0xac, 0xaf, 0xe5, + 0xda, 0x7e, 0x1b, 0x96, 0x0b, 0x52, 0xb4, 0xad, 0x4b, 0x50, 0x19, 0xa3, 0x48, 0x72, 0x6f, 0x3b, + 0x62, 0x69, 0x7b, 0xd0, 0x73, 0x90, 0x17, 0x5c, 0x9f, 0x36, 0x5a, 0x44, 0x25, 0x13, 0xb1, 0x0e, + 0x56, 0x5e, 0x84, 0x56, 0xc5, 0x68, 0x5d, 0xca, 0x69, 0xfd, 0x14, 0x7a, 0x5b, 0x63, 0xc2, 0xd0, + 0x01, 0x0f, 0x70, 0x74, 0x1d, 0x1d, 0xd3, 0x2f, 0x60, 0xf9, 0x19, 0x9f, 0x7c, 0x29, 0x98, 0x31, + 0xfc, 0x0d, 0xba, 0x26, 0xfb, 0x28, 0x79, 0x6e, 0xec, 0xa3, 0xe4, 0xb9, 0x68, 0x96, 0x7c, 0x32, + 0x4e, 0xc2, 0x48, 0x86, 0x42, 0xdb, 0xd1, 0x90, 0xbd, 0x09, 0x2d, 0x55, 0x43, 0x3f, 0x21, 0x41, + 0x32, 0x46, 0x73, 0x63, 0x70, 0x0d, 0x20, 0xf6, 0xa8, 0x17, 0x22, 0x8e, 0xa8, 0x7a, 0x43, 0x0d, + 0x27, 0x87, 0xb1, 0x7f, 0x5f, 0x86, 0x15, 0x35, 0x12, 0x39, 0x50, 0x93, 0x00, 0x63, 0xc2, 0x00, + 0xea, 0x27, 0x84, 0xf1, 0x1c, 0xc3, 0x14, 0x16, 0x2a, 0x06, 0x91, 0xe1, 0x26, 0x96, 0x85, 0x39, + 0x45, 0xe5, 0xf2, 0x39, 0xc5, 0xcc, 0x24, 0xa2, 0x3a, 0x3b, 0x89, 0x10, 0xd1, 0x66, 0x88, 0xb0, + 0x8a, 0xf1, 0x86, 0xd3, 0xd0, 0x98, 0xbd, 0xc0, 0xba, 0x0b, 0xdd, 0x91, 0xd0, 0xd2, 0x3d, 0x21, + 0xe4, 0xd4, 0x8d, 0x3d, 0x7e, 0x22, 0x43, 0xbd, 0xe1, 0xb4, 0x25, 0x7a, 0x97, 0x90, 0xd3, 0x7d, + 0x8f, 0x9f, 0x58, 0xf7, 0xa1, 0xa3, 0xcb, 0xc0, 0x50, 0xba, 0x88, 0xe9, 0x8f, 0x9f, 0x8e, 0xa2, + 0xbc, 0xf7, 0x9c, 0xf6, 0x69, 0x0e, 0x62, 0xf6, 0x4d, 0xb8, 0xb1, 0x8d, 0x18, 0xa7, 0x64, 0x52, + 0x74, 0x8c, 0xfd, 0x03, 0x80, 0xbd, 0x88, 0x23, 0x7a, 0xec, 0xf9, 0x88, 0x59, 0xef, 0xe7, 0x21, + 0x5d, 0x1c, 0x2d, 0x0d, 0xd5, 0x44, 0x2a, 0xdd, 0x70, 0x00, 0xa7, 0x34, 0xf6, 0x10, 0x6a, 0x0e, + 0x49, 0x44, 0x3a, 0x7a, 0xd3, 0xac, 0xf4, 0xb9, 0x96, 0x3e, 0x27, 0x91, 0x4e, 0x8d, 0xca, 0x3d, + 0x7b, 0xd7, 0xb4, 0xb0, 0x19, 0x3b, 0x7d, 0x45, 0x43, 0x68, 0xa4, 0x7c, 0x75, 0x56, 0x99, 0x15, + 0x9d, 0x91, 0xd8, 0x0f, 0x60, 0x59, 0x71, 0x52, 0x52, 0x0d, 0x9b, 0x37, 0x41, 0x8b, 0xd2, 0x3c, + 0xf4, 0x28, 0x4a, 0x13, 0x19, 0x35, 0x6e, 0xaa, 0x2e, 0x3c, 0x33, 0xd6, 0xf8, 0x63, 0x19, 0x7a, + 0x62, 0xa3, 0xc0, 0xd3, 0xfe, 0x39, 0x2c, 0x3f, 0x8d, 0xc6, 0x38, 0x42, 0x5b, 0xfb, 0x87, 0x4f, + 0x50, 0x1a, 0xf7, 0x16, 0x54, 0x45, 0x7d, 0x24, 0x05, 0xd5, 0x1d, 0xb9, 0x16, 0x81, 0x10, 0x1d, + 0xb9, 0x7e, 0x9c, 0x30, 0x3d, 0xfb, 0xa9, 0x45, 0x47, 0x5b, 0x71, 0xc2, 0x44, 0x22, 0x17, 0x1f, + 0x72, 0x12, 0x8d, 0x27, 0x32, 0x1a, 0xea, 0xce, 0xa2, 0x1f, 0x27, 0x4f, 0xa3, 0xf1, 0xc4, 0xfe, + 0x3f, 0xd9, 0xed, 0x22, 0x14, 0x38, 0x5e, 0x14, 0x90, 0x70, 0x1b, 0x9d, 0xe5, 0x24, 0xa4, 0x9d, + 0x95, 0x89, 0xfa, 0x6f, 0x4b, 0xd0, 0x7a, 0x34, 0x42, 0x11, 0xdf, 0x46, 0xdc, 0xc3, 0x63, 0xd9, + 0x3d, 0x9d, 0x21, 0xca, 0x30, 0x89, 0xf4, 0xd3, 0x36, 0xa0, 0x68, 0x7e, 0x71, 0x84, 0xb9, 0x1b, + 0x78, 0x28, 0x24, 0x91, 0xe4, 0x52, 0x17, 0xb7, 0x87, 0xf9, 0xb6, 0xc4, 0x58, 0x6f, 0x43, 0x57, + 0xcd, 0xe6, 0xdc, 0x13, 0x2f, 0x0a, 0xc6, 0x22, 0xa8, 0xd4, 0xac, 0xa2, 0xa3, 0xd0, 0xbb, 0x1a, + 0x6b, 0xbd, 0x03, 0x4b, 0xfa, 0xc9, 0x67, 0x94, 0x55, 0x49, 0xd9, 0xd5, 0xf8, 0x02, 0x69, 0x12, + 0xc7, 0x84, 0x72, 0xe6, 0x32, 0xe4, 0xfb, 0x24, 0x8c, 0x75, 0xeb, 0xd1, 0x35, 0xf8, 0x03, 0x85, + 0xb6, 0x47, 0xb0, 0xfc, 0x58, 0xd8, 0xa9, 0x2d, 0xc9, 0xae, 0xb0, 0x13, 0xa2, 0xd0, 0x3d, 0x1a, + 0x13, 0xff, 0xd4, 0x15, 0x89, 0x48, 0x7b, 0x58, 0x14, 0x37, 0x9b, 0x02, 0x79, 0x80, 0xbf, 0x91, + 0x5d, 0xb6, 0xa0, 0x3a, 0x21, 0x3c, 0x1e, 0x27, 0x23, 0x37, 0xa6, 0xe4, 0x08, 0x69, 0x13, 0xbb, + 0x21, 0x0a, 0x77, 0x15, 0x7e, 0x5f, 0xa0, 0xed, 0xbf, 0x94, 0x60, 0xa5, 0x28, 0x49, 0xa7, 0xd5, + 0x0d, 0x58, 0x29, 0x8a, 0xd2, 0x9f, 0x5a, 0x55, 0xca, 0xf5, 0xf2, 0x02, 0xd5, 0x47, 0xf7, 0x63, + 0x68, 0xcb, 0x81, 0xad, 0x1b, 0x28, 0x4e, 0xc5, 0x02, 0x23, 0x7f, 0x2f, 0x4e, 0xcb, 0xcb, 0xdf, + 0xd2, 0x7d, 0xb8, 0xa5, 0xcd, 0x77, 0x67, 0xd5, 0x56, 0x0f, 0x62, 0x55, 0x13, 0x3c, 0x99, 0xd2, + 0xfe, 0x0b, 0xe8, 0x67, 0xa8, 0xcd, 0x89, 0x44, 0x1a, 0x5f, 0xbd, 0x0f, 0xcb, 0x53, 0xc6, 0x3e, + 0x0a, 0x02, 0x2a, 0x43, 0xb0, 0xea, 0xcc, 0xdb, 0xb2, 0x1f, 0xc2, 0xcd, 0x03, 0xc4, 0x95, 0x37, + 0x3c, 0xae, 0xab, 0x7e, 0xc5, 0x6c, 0x09, 0x2a, 0x07, 0xc8, 0x97, 0xc6, 0x57, 0x9c, 0x0a, 0x43, + 0xbe, 0x78, 0x80, 0x87, 0x0c, 0xf9, 0xd2, 0xca, 0x8a, 0x53, 0x4d, 0x18, 0xf2, 0xed, 0x3f, 0x97, + 0x60, 0x51, 0x27, 0x42, 0x91, 0xcc, 0x03, 0x8a, 0xcf, 0x10, 0xd5, 0x4f, 0x4f, 0x43, 0xd6, 0x5b, + 0xd0, 0x51, 0x2b, 0x97, 0xc4, 0x1c, 0x93, 0x34, 0xbd, 0xb6, 0x15, 0xf6, 0xa9, 0x42, 0xca, 0x59, + 0x9c, 0x1c, 0x35, 0xe9, 0xae, 0x4e, 0x43, 0x72, 0xa0, 0xc6, 0x44, 0xec, 0xcb, 0x74, 0xda, 0x70, + 0x34, 0x24, 0x9e, 0xba, 0xe1, 0xb7, 0x20, 0xf9, 0x19, 0x50, 0x3c, 0xf5, 0x90, 0x24, 0x11, 0x77, + 0x63, 0x82, 0x23, 0xae, 0xf3, 0x27, 0x48, 0xd4, 0xbe, 0xc0, 0xd8, 0xbf, 0x2e, 0x41, 0x4d, 0xcd, + 0xa3, 0x45, 0x1f, 0x99, 0x7e, 0xc5, 0xca, 0x58, 0x56, 0x04, 0x52, 0x96, 0xfa, 0x72, 0xc9, 0xb5, + 0x88, 0xe3, 0xb3, 0x50, 0xe5, 0x62, 0xad, 0xda, 0x59, 0x28, 0x93, 0xf0, 0x5b, 0xd0, 0xc9, 0x3e, + 0x86, 0x72, 0x5f, 0xa9, 0xd8, 0x4e, 0xb1, 0x92, 0xec, 0x42, 0x4d, 0xed, 0x9f, 0x8a, 0xf6, 0x39, + 0x9d, 0xc5, 0x2e, 0x41, 0x25, 0x49, 0x95, 0x11, 0x4b, 0x81, 0x19, 0xa5, 0x9f, 0x51, 0xb1, 0xb4, + 0xee, 0x42, 0xc7, 0x0b, 0x02, 0x2c, 0x8e, 0x7b, 0xe3, 0xc7, 0x38, 0x48, 0x83, 0xb4, 0x88, 0xb5, + 0xff, 0x56, 0x82, 0xee, 0x16, 0x89, 0x27, 0x3f, 0xc4, 0x63, 0x94, 0xcb, 0x20, 0x52, 0x49, 0xfd, + 0x15, 0x15, 0x6b, 0x51, 0x19, 0x1e, 0xe3, 0x31, 0x52, 0xa1, 0xa5, 0x6e, 0xb6, 0x2e, 0x10, 0x32, + 0xac, 0xcc, 0x66, 0x3a, 0xe2, 0x6a, 0xab, 0xcd, 0x27, 0x24, 0x90, 0x35, 0x70, 0x80, 0xa9, 0x9b, + 0x0e, 0xb4, 0xda, 0xce, 0x62, 0x80, 0xa9, 0xdc, 0xd2, 0x86, 0x2c, 0xc8, 0x99, 0x6a, 0xde, 0x90, + 0x9a, 0xc2, 0x08, 0x43, 0x56, 0xa1, 0x46, 0x8e, 0x8f, 0x19, 0xe2, 0xb2, 0x5a, 0xad, 0x38, 0x1a, + 0x4a, 0xd3, 0x5c, 0x3d, 0x97, 0xe6, 0x6e, 0xc0, 0xb2, 0x9c, 0xde, 0x3f, 0xa3, 0x9e, 0x8f, 0xa3, + 0x91, 0x49, 0xc5, 0x2b, 0x60, 0x1d, 0x70, 0x12, 0x17, 0xb1, 0xf7, 0x7e, 0xb7, 0xa4, 0x73, 0xa2, + 0x6e, 0x65, 0xad, 0xc7, 0xd0, 0x9d, 0xfa, 0x6b, 0xc4, 0xd2, 0xb3, 0x8d, 0xf9, 0xff, 0x98, 0x0c, + 0x56, 0x87, 0xea, 0xaf, 0x96, 0xa1, 0xf9, 0xab, 0x65, 0xb8, 0x13, 0xc6, 0x7c, 0x62, 0xed, 0x40, + 0xa7, 0xf8, 0x27, 0x82, 0x75, 0xdb, 0x94, 0x02, 0x73, 0xfe, 0x5a, 0xb8, 0x90, 0xcd, 0x63, 0xe8, + 0x4e, 0xfd, 0x9f, 0x60, 0xf4, 0x99, 0xff, 0x37, 0xc3, 0x85, 0x8c, 0x1e, 0x42, 0x33, 0xf7, 0x07, + 0x82, 0xd5, 0x57, 0x4c, 0x66, 0xff, 0x53, 0xb8, 0x90, 0xc1, 0x16, 0xb4, 0x0b, 0x33, 0x7d, 0x6b, + 0xa0, 0xed, 0x99, 0x33, 0xe8, 0xbf, 0x90, 0xc9, 0x26, 0x34, 0x73, 0xa3, 0x75, 0xa3, 0xc5, 0xec, + 0xfc, 0x7e, 0x70, 0x6b, 0xce, 0x8e, 0x4e, 0xbd, 0xbb, 0xd0, 0x2e, 0x0c, 0xc2, 0x8d, 0x22, 0xf3, + 0x86, 0xf0, 0x83, 0xdb, 0x73, 0xf7, 0x34, 0xa7, 0xc7, 0xd0, 0x9d, 0x1a, 0x8b, 0x1b, 0xe7, 0xce, + 0x9f, 0x96, 0x5f, 0x68, 0xd6, 0xe7, 0xf2, 0xb2, 0x73, 0x5d, 0x4f, 0xee, 0xb2, 0x67, 0x87, 0xe0, + 0x83, 0x57, 0xe7, 0x6f, 0x6a, 0xad, 0x76, 0xa0, 0x53, 0x9c, 0x7f, 0x1b, 0x66, 0x73, 0xa7, 0xe2, + 0x97, 0xbf, 0x9c, 0xc2, 0x28, 0x3c, 0x7b, 0x39, 0xf3, 0x26, 0xe4, 0x17, 0x32, 0x7a, 0x04, 0xa0, + 0x7b, 0x9c, 0x00, 0x47, 0xe9, 0x95, 0xcd, 0xf4, 0x56, 0xe9, 0x95, 0xcd, 0xe9, 0x87, 0x1e, 0x02, + 0xa8, 0xd6, 0x24, 0x20, 0x09, 0xb7, 0x6e, 0x1a, 0x35, 0xa6, 0xfa, 0xa1, 0x41, 0x7f, 0x76, 0x63, + 0x86, 0x01, 0xa2, 0xf4, 0x2a, 0x0c, 0x3e, 0x03, 0xc8, 0x5a, 0x1e, 0xc3, 0x60, 0xa6, 0x09, 0xba, + 0xc4, 0x07, 0xad, 0x7c, 0x83, 0x63, 0x69, 0x5b, 0xe7, 0x34, 0x3d, 0x97, 0xb0, 0xe8, 0x4e, 0x15, + 0xb0, 0xc5, 0xc7, 0x36, 0x5d, 0xd7, 0x0e, 0x66, 0x8a, 0x58, 0xeb, 0x63, 0x68, 0xe5, 0x2b, 0x57, + 0xa3, 0xc5, 0x9c, 0x6a, 0x76, 0x50, 0xa8, 0x5e, 0xad, 0x87, 0xd0, 0x29, 0x56, 0xad, 0x56, 0x2e, + 0x2e, 0x66, 0x6a, 0xd9, 0x81, 0x9e, 0xc9, 0xe4, 0xc8, 0x3f, 0x04, 0xc8, 0xaa, 0x5b, 0xe3, 0xbe, + 0x99, 0x7a, 0x77, 0x4a, 0xea, 0x23, 0x68, 0xe5, 0x33, 0xb1, 0x51, 0x77, 0x4e, 0x76, 0xbe, 0x2c, + 0x6b, 0xe5, 0xb2, 0xb6, 0x79, 0x7c, 0xb3, 0x89, 0xfc, 0xb2, 0xac, 0x55, 0xe8, 0xeb, 0x4c, 0xb2, + 0x98, 0xd7, 0xec, 0x5d, 0x96, 0xcb, 0x8b, 0x4d, 0x90, 0x71, 0xdf, 0xdc, 0xd6, 0xe8, 0xb2, 0x47, + 0x94, 0xef, 0x06, 0x8c, 0x3f, 0xe6, 0x74, 0x08, 0x2f, 0x09, 0xea, 0x7c, 0xc5, 0x9f, 0x0b, 0xea, + 0x39, 0x8d, 0xc0, 0x85, 0x8c, 0x76, 0xa1, 0xfb, 0xd8, 0x14, 0x73, 0xba, 0xd0, 0xd4, 0xea, 0xcc, + 0x29, 0xac, 0x07, 0x83, 0x79, 0x5b, 0x3a, 0xb2, 0x3e, 0x87, 0xde, 0x4c, 0x91, 0x69, 0xad, 0xa5, + 0xa3, 0xc3, 0xb9, 0xd5, 0xe7, 0x85, 0x6a, 0xed, 0xc1, 0xd2, 0x74, 0x8d, 0x69, 0xbd, 0xa6, 0x2f, + 0x7d, 0x7e, 0xed, 0x79, 0x21, 0xab, 0xfb, 0x50, 0x37, 0x35, 0x8d, 0xa5, 0x47, 0xb4, 0x53, 0x35, + 0xce, 0x45, 0x47, 0x37, 0xfb, 0xdf, 0x7e, 0xb7, 0xf6, 0xca, 0x3f, 0xbe, 0x5b, 0x7b, 0xe5, 0x57, + 0x2f, 0xd6, 0x4a, 0xdf, 0xbe, 0x58, 0x2b, 0xfd, 0xfd, 0xc5, 0x5a, 0xe9, 0x5f, 0x2f, 0xd6, 0x4a, + 0x47, 0x35, 0x49, 0xf9, 0xe1, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x27, 0xe6, 0x44, 0xed, 0x16, + 0x22, 0x00, 0x00, } func (m *CreateContainerRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2952,83 +2561,102 @@ func (m *CreateContainerRequest) Marshal() (dAtA []byte, err error) { } func (m *CreateContainerRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CreateContainerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.ContainerId) > 0 { - dAtA[i] = 0xa - i++ - 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.StringUser != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintAgent(dAtA, i, uint64(m.StringUser.Size())) - n1, err := m.StringUser.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n1 - } - if len(m.Devices) > 0 { - for _, msg := range m.Devices { - 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.Storages) > 0 { - for _, msg := range m.Storages { - 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 - } - } - if m.OCI != nil { - dAtA[i] = 0x32 - i++ - i = encodeVarintAgent(dAtA, i, uint64(m.OCI.Size())) - n2, err := m.OCI.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n2 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.SandboxPidns { - dAtA[i] = 0x38 - i++ + i-- if m.SandboxPidns { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x38 } - return i, nil + if m.OCI != nil { + { + size, err := m.OCI.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAgent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if len(m.Storages) > 0 { + for iNdEx := len(m.Storages) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Storages[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAgent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if len(m.Devices) > 0 { + for iNdEx := len(m.Devices) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Devices[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAgent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if m.StringUser != nil { + { + size, err := m.StringUser.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAgent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.ExecId) > 0 { + i -= len(m.ExecId) + copy(dAtA[i:], m.ExecId) + i = encodeVarintAgent(dAtA, i, uint64(len(m.ExecId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContainerId) > 0 { + i -= len(m.ContainerId) + copy(dAtA[i:], m.ContainerId) + i = encodeVarintAgent(dAtA, i, uint64(len(m.ContainerId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *StartContainerRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3036,23 +2664,33 @@ func (m *StartContainerRequest) Marshal() (dAtA []byte, err error) { } func (m *StartContainerRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StartContainerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.ContainerId) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.ContainerId))) - i += copy(dAtA[i:], m.ContainerId) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - return i, nil + if len(m.ContainerId) > 0 { + i -= len(m.ContainerId) + copy(dAtA[i:], m.ContainerId) + i = encodeVarintAgent(dAtA, i, uint64(len(m.ContainerId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *RemoveContainerRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3060,28 +2698,38 @@ func (m *RemoveContainerRequest) Marshal() (dAtA []byte, err error) { } func (m *RemoveContainerRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RemoveContainerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.ContainerId) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.ContainerId))) - i += copy(dAtA[i:], m.ContainerId) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.Timeout != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintAgent(dAtA, i, uint64(m.Timeout)) + i-- + dAtA[i] = 0x10 } - return i, nil + if len(m.ContainerId) > 0 { + i -= len(m.ContainerId) + copy(dAtA[i:], m.ContainerId) + i = encodeVarintAgent(dAtA, i, uint64(len(m.ContainerId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *ExecProcessRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3089,49 +2737,64 @@ func (m *ExecProcessRequest) Marshal() (dAtA []byte, err error) { } func (m *ExecProcessRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ExecProcessRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.ContainerId) > 0 { - dAtA[i] = 0xa - i++ - 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.StringUser != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintAgent(dAtA, i, uint64(m.StringUser.Size())) - n3, err := m.StringUser.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n3 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.Process != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintAgent(dAtA, i, uint64(m.Process.Size())) - n4, err := m.Process.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Process.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAgent(dAtA, i, uint64(size)) } - i += n4 + i-- + dAtA[i] = 0x22 } - return i, nil + if m.StringUser != nil { + { + size, err := m.StringUser.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAgent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.ExecId) > 0 { + i -= len(m.ExecId) + copy(dAtA[i:], m.ExecId) + i = encodeVarintAgent(dAtA, i, uint64(len(m.ExecId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContainerId) > 0 { + i -= len(m.ContainerId) + copy(dAtA[i:], m.ContainerId) + i = encodeVarintAgent(dAtA, i, uint64(len(m.ContainerId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *SignalProcessRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3139,34 +2802,45 @@ func (m *SignalProcessRequest) Marshal() (dAtA []byte, err error) { } func (m *SignalProcessRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SignalProcessRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.ContainerId) > 0 { - dAtA[i] = 0xa - i++ - 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.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.Signal != 0 { - dAtA[i] = 0x18 - i++ i = encodeVarintAgent(dAtA, i, uint64(m.Signal)) + i-- + dAtA[i] = 0x18 } - return i, nil + if len(m.ExecId) > 0 { + i -= len(m.ExecId) + copy(dAtA[i:], m.ExecId) + i = encodeVarintAgent(dAtA, i, uint64(len(m.ExecId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContainerId) > 0 { + i -= len(m.ContainerId) + copy(dAtA[i:], m.ContainerId) + i = encodeVarintAgent(dAtA, i, uint64(len(m.ContainerId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *WaitProcessRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3174,29 +2848,40 @@ func (m *WaitProcessRequest) Marshal() (dAtA []byte, err error) { } func (m *WaitProcessRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WaitProcessRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.ContainerId) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.ContainerId))) - i += copy(dAtA[i:], m.ContainerId) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.ExecId) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.ExecId) + copy(dAtA[i:], m.ExecId) i = encodeVarintAgent(dAtA, i, uint64(len(m.ExecId))) - i += copy(dAtA[i:], m.ExecId) + i-- + dAtA[i] = 0x12 } - return i, nil + if len(m.ContainerId) > 0 { + i -= len(m.ContainerId) + copy(dAtA[i:], m.ContainerId) + i = encodeVarintAgent(dAtA, i, uint64(len(m.ContainerId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *WaitProcessResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3204,22 +2889,31 @@ func (m *WaitProcessResponse) Marshal() (dAtA []byte, err error) { } func (m *WaitProcessResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WaitProcessResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Status != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintAgent(dAtA, i, uint64(m.Status)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - return i, nil + if m.Status != 0 { + i = encodeVarintAgent(dAtA, i, uint64(m.Status)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *ListProcessesRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3227,44 +2921,49 @@ func (m *ListProcessesRequest) Marshal() (dAtA []byte, err error) { } func (m *ListProcessesRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ListProcessesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.ContainerId) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.ContainerId))) - i += copy(dAtA[i:], m.ContainerId) - } - if len(m.Format) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.Format))) - i += copy(dAtA[i:], m.Format) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Args) > 0 { - for _, s := range m.Args { + for iNdEx := len(m.Args) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Args[iNdEx]) + copy(dAtA[i:], m.Args[iNdEx]) + i = encodeVarintAgent(dAtA, i, uint64(len(m.Args[iNdEx]))) + i-- 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 i, nil + if len(m.Format) > 0 { + i -= len(m.Format) + copy(dAtA[i:], m.Format) + i = encodeVarintAgent(dAtA, i, uint64(len(m.Format))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContainerId) > 0 { + i -= len(m.ContainerId) + copy(dAtA[i:], m.ContainerId) + i = encodeVarintAgent(dAtA, i, uint64(len(m.ContainerId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *ListProcessesResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3272,23 +2971,33 @@ func (m *ListProcessesResponse) Marshal() (dAtA []byte, err error) { } func (m *ListProcessesResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ListProcessesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.ProcessList) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.ProcessList))) - i += copy(dAtA[i:], m.ProcessList) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - return i, nil + if len(m.ProcessList) > 0 { + i -= len(m.ProcessList) + copy(dAtA[i:], m.ProcessList) + i = encodeVarintAgent(dAtA, i, uint64(len(m.ProcessList))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *UpdateContainerRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3296,33 +3005,45 @@ func (m *UpdateContainerRequest) Marshal() (dAtA []byte, err error) { } func (m *UpdateContainerRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UpdateContainerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.ContainerId) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.ContainerId))) - i += copy(dAtA[i:], m.ContainerId) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.Resources != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintAgent(dAtA, i, uint64(m.Resources.Size())) - n5, err := m.Resources.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Resources.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAgent(dAtA, i, uint64(size)) } - i += n5 + i-- + dAtA[i] = 0x12 } - return i, nil + if len(m.ContainerId) > 0 { + i -= len(m.ContainerId) + copy(dAtA[i:], m.ContainerId) + i = encodeVarintAgent(dAtA, i, uint64(len(m.ContainerId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *StatsContainerRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3330,23 +3051,33 @@ func (m *StatsContainerRequest) Marshal() (dAtA []byte, err error) { } func (m *StatsContainerRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StatsContainerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.ContainerId) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.ContainerId))) - i += copy(dAtA[i:], m.ContainerId) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - return i, nil + if len(m.ContainerId) > 0 { + i -= len(m.ContainerId) + copy(dAtA[i:], m.ContainerId) + i = encodeVarintAgent(dAtA, i, uint64(len(m.ContainerId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *PauseContainerRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3354,23 +3085,33 @@ func (m *PauseContainerRequest) Marshal() (dAtA []byte, err error) { } func (m *PauseContainerRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PauseContainerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.ContainerId) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.ContainerId))) - i += copy(dAtA[i:], m.ContainerId) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - return i, nil + if len(m.ContainerId) > 0 { + i -= len(m.ContainerId) + copy(dAtA[i:], m.ContainerId) + i = encodeVarintAgent(dAtA, i, uint64(len(m.ContainerId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *ResumeContainerRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3378,23 +3119,33 @@ func (m *ResumeContainerRequest) Marshal() (dAtA []byte, err error) { } func (m *ResumeContainerRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ResumeContainerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.ContainerId) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.ContainerId))) - i += copy(dAtA[i:], m.ContainerId) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - return i, nil + if len(m.ContainerId) > 0 { + i -= len(m.ContainerId) + copy(dAtA[i:], m.ContainerId) + i = encodeVarintAgent(dAtA, i, uint64(len(m.ContainerId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *CpuUsage) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3402,14 +3153,28 @@ func (m *CpuUsage) Marshal() (dAtA []byte, err error) { } func (m *CpuUsage) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CpuUsage) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.TotalUsage != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintAgent(dAtA, i, uint64(m.TotalUsage)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.UsageInUsermode != 0 { + i = encodeVarintAgent(dAtA, i, uint64(m.UsageInUsermode)) + i-- + dAtA[i] = 0x20 + } + if m.UsageInKernelmode != 0 { + i = encodeVarintAgent(dAtA, i, uint64(m.UsageInKernelmode)) + i-- + dAtA[i] = 0x18 } if len(m.PercpuUsage) > 0 { dAtA7 := make([]byte, len(m.PercpuUsage)*10) @@ -3423,28 +3188,24 @@ func (m *CpuUsage) MarshalTo(dAtA []byte) (int, error) { dAtA7[j6] = uint8(num) j6++ } - dAtA[i] = 0x12 - i++ + i -= j6 + copy(dAtA[i:], dAtA7[:j6]) i = encodeVarintAgent(dAtA, i, uint64(j6)) - i += copy(dAtA[i:], dAtA7[:j6]) + i-- + dAtA[i] = 0x12 } - if m.UsageInKernelmode != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintAgent(dAtA, i, uint64(m.UsageInKernelmode)) + if m.TotalUsage != 0 { + i = encodeVarintAgent(dAtA, i, uint64(m.TotalUsage)) + i-- + dAtA[i] = 0x8 } - if m.UsageInUsermode != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintAgent(dAtA, i, uint64(m.UsageInUsermode)) - } - return i, nil + return len(dAtA) - i, nil } func (m *ThrottlingData) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3452,32 +3213,41 @@ func (m *ThrottlingData) Marshal() (dAtA []byte, err error) { } func (m *ThrottlingData) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ThrottlingData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Periods != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintAgent(dAtA, i, uint64(m.Periods)) - } - if m.ThrottledPeriods != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintAgent(dAtA, i, uint64(m.ThrottledPeriods)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.ThrottledTime != 0 { - dAtA[i] = 0x18 - i++ i = encodeVarintAgent(dAtA, i, uint64(m.ThrottledTime)) + i-- + dAtA[i] = 0x18 } - return i, nil + if m.ThrottledPeriods != 0 { + i = encodeVarintAgent(dAtA, i, uint64(m.ThrottledPeriods)) + i-- + dAtA[i] = 0x10 + } + if m.Periods != 0 { + i = encodeVarintAgent(dAtA, i, uint64(m.Periods)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *CpuStats) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3485,37 +3255,50 @@ func (m *CpuStats) Marshal() (dAtA []byte, err error) { } func (m *CpuStats) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CpuStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.CpuUsage != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintAgent(dAtA, i, uint64(m.CpuUsage.Size())) - n8, err := m.CpuUsage.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n8 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.ThrottlingData != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintAgent(dAtA, i, uint64(m.ThrottlingData.Size())) - n9, err := m.ThrottlingData.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.ThrottlingData.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAgent(dAtA, i, uint64(size)) } - i += n9 + i-- + dAtA[i] = 0x12 } - return i, nil + if m.CpuUsage != nil { + { + size, err := m.CpuUsage.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAgent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *PidsStats) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3523,27 +3306,36 @@ func (m *PidsStats) Marshal() (dAtA []byte, err error) { } func (m *PidsStats) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PidsStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Current != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintAgent(dAtA, i, uint64(m.Current)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.Limit != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintAgent(dAtA, i, uint64(m.Limit)) + i-- + dAtA[i] = 0x10 } - return i, nil + if m.Current != 0 { + i = encodeVarintAgent(dAtA, i, uint64(m.Current)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *MemoryData) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3551,37 +3343,46 @@ func (m *MemoryData) Marshal() (dAtA []byte, err error) { } func (m *MemoryData) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MemoryData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Usage != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintAgent(dAtA, i, uint64(m.Usage)) - } - if m.MaxUsage != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintAgent(dAtA, i, uint64(m.MaxUsage)) - } - if m.Failcnt != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintAgent(dAtA, i, uint64(m.Failcnt)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.Limit != 0 { - dAtA[i] = 0x20 - i++ i = encodeVarintAgent(dAtA, i, uint64(m.Limit)) + i-- + dAtA[i] = 0x20 } - return i, nil + if m.Failcnt != 0 { + i = encodeVarintAgent(dAtA, i, uint64(m.Failcnt)) + i-- + dAtA[i] = 0x18 + } + if m.MaxUsage != 0 { + i = encodeVarintAgent(dAtA, i, uint64(m.MaxUsage)) + i-- + dAtA[i] = 0x10 + } + if m.Usage != 0 { + i = encodeVarintAgent(dAtA, i, uint64(m.Usage)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *MemoryStats) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3589,78 +3390,94 @@ func (m *MemoryStats) Marshal() (dAtA []byte, err error) { } func (m *MemoryStats) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MemoryStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Cache != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintAgent(dAtA, i, uint64(m.Cache)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.Usage != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintAgent(dAtA, i, uint64(m.Usage.Size())) - n10, err := m.Usage.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if len(m.Stats) > 0 { + for k := range m.Stats { + v := m.Stats[k] + baseI := i + i = encodeVarintAgent(dAtA, i, uint64(v)) + i-- + dAtA[i] = 0x10 + i -= len(k) + copy(dAtA[i:], k) + i = encodeVarintAgent(dAtA, i, uint64(len(k))) + i-- + dAtA[i] = 0xa + i = encodeVarintAgent(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x32 } - i += n10 - } - if m.SwapUsage != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintAgent(dAtA, i, uint64(m.SwapUsage.Size())) - n11, err := m.SwapUsage.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n11 - } - if m.KernelUsage != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintAgent(dAtA, i, uint64(m.KernelUsage.Size())) - n12, err := m.KernelUsage.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n12 } if m.UseHierarchy { - dAtA[i] = 0x28 - i++ + i-- if m.UseHierarchy { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x28 } - 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)) + if m.KernelUsage != nil { + { + size, err := m.KernelUsage.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAgent(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x22 } - return i, nil + if m.SwapUsage != nil { + { + size, err := m.SwapUsage.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAgent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.Usage != nil { + { + size, err := m.Usage.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAgent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.Cache != 0 { + i = encodeVarintAgent(dAtA, i, uint64(m.Cache)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *BlkioStatsEntry) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3668,38 +3485,48 @@ func (m *BlkioStatsEntry) Marshal() (dAtA []byte, err error) { } func (m *BlkioStatsEntry) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlkioStatsEntry) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Major != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintAgent(dAtA, i, uint64(m.Major)) - } - if m.Minor != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintAgent(dAtA, i, uint64(m.Minor)) - } - if len(m.Op) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.Op))) - i += copy(dAtA[i:], m.Op) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.Value != 0 { - dAtA[i] = 0x20 - i++ i = encodeVarintAgent(dAtA, i, uint64(m.Value)) + i-- + dAtA[i] = 0x20 } - return i, nil + if len(m.Op) > 0 { + i -= len(m.Op) + copy(dAtA[i:], m.Op) + i = encodeVarintAgent(dAtA, i, uint64(len(m.Op))) + i-- + dAtA[i] = 0x1a + } + if m.Minor != 0 { + i = encodeVarintAgent(dAtA, i, uint64(m.Minor)) + i-- + dAtA[i] = 0x10 + } + if m.Major != 0 { + i = encodeVarintAgent(dAtA, i, uint64(m.Major)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *BlkioStats) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3707,113 +3534,138 @@ func (m *BlkioStats) Marshal() (dAtA []byte, err error) { } func (m *BlkioStats) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlkioStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - 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 m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - 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 + if len(m.SectorsRecursive) > 0 { + for iNdEx := len(m.SectorsRecursive) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.SectorsRecursive[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAgent(dAtA, i, uint64(size)) } - i += n - } - } - if len(m.IoQueuedRecursive) > 0 { - for _, msg := range m.IoQueuedRecursive { - 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 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.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 - } - } - 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 + i-- + dAtA[i] = 0x42 } } if len(m.IoTimeRecursive) > 0 { - for _, msg := range m.IoTimeRecursive { + for iNdEx := len(m.IoTimeRecursive) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.IoTimeRecursive[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAgent(dAtA, i, uint64(size)) + } + i-- 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 + if len(m.IoMergedRecursive) > 0 { + for iNdEx := len(m.IoMergedRecursive) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.IoMergedRecursive[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAgent(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x32 } } - return i, nil + if len(m.IoWaitTimeRecursive) > 0 { + for iNdEx := len(m.IoWaitTimeRecursive) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.IoWaitTimeRecursive[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAgent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if len(m.IoServiceTimeRecursive) > 0 { + for iNdEx := len(m.IoServiceTimeRecursive) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.IoServiceTimeRecursive[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAgent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.IoQueuedRecursive) > 0 { + for iNdEx := len(m.IoQueuedRecursive) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.IoQueuedRecursive[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAgent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.IoServicedRecursive) > 0 { + for iNdEx := len(m.IoServicedRecursive) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.IoServicedRecursive[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAgent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.IoServiceBytesRecursive) > 0 { + for iNdEx := len(m.IoServiceBytesRecursive) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.IoServiceBytesRecursive[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAgent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil } func (m *HugetlbStats) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3821,32 +3673,41 @@ func (m *HugetlbStats) Marshal() (dAtA []byte, err error) { } func (m *HugetlbStats) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *HugetlbStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Usage != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintAgent(dAtA, i, uint64(m.Usage)) - } - if m.MaxUsage != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintAgent(dAtA, i, uint64(m.MaxUsage)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.Failcnt != 0 { - dAtA[i] = 0x18 - i++ i = encodeVarintAgent(dAtA, i, uint64(m.Failcnt)) + i-- + dAtA[i] = 0x18 } - return i, nil + if m.MaxUsage != 0 { + i = encodeVarintAgent(dAtA, i, uint64(m.MaxUsage)) + i-- + dAtA[i] = 0x10 + } + if m.Usage != 0 { + i = encodeVarintAgent(dAtA, i, uint64(m.Usage)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *CgroupStats) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3854,85 +3715,100 @@ func (m *CgroupStats) Marshal() (dAtA []byte, err error) { } func (m *CgroupStats) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CgroupStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.CpuStats != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintAgent(dAtA, i, uint64(m.CpuStats.Size())) - n13, err := m.CpuStats.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n13 - } - if m.MemoryStats != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintAgent(dAtA, i, uint64(m.MemoryStats.Size())) - n14, err := m.MemoryStats.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n14 - } - if m.PidsStats != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintAgent(dAtA, i, uint64(m.PidsStats.Size())) - n15, err := m.PidsStats.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n15 - } - if m.BlkioStats != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintAgent(dAtA, i, uint64(m.BlkioStats.Size())) - n16, err := m.BlkioStats.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n16 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.HugetlbStats) > 0 { - for k, _ := range m.HugetlbStats { - dAtA[i] = 0x2a - i++ + for k := range m.HugetlbStats { v := m.HugetlbStats[k] - msgSize := 0 + baseI := i 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(len(k))) - i += copy(dAtA[i:], k) - if v != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintAgent(dAtA, i, uint64(v.Size())) - n17, err := v.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := v.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAgent(dAtA, i, uint64(size)) } - i += n17 + i-- + dAtA[i] = 0x12 } + i -= len(k) + copy(dAtA[i:], k) + i = encodeVarintAgent(dAtA, i, uint64(len(k))) + i-- + dAtA[i] = 0xa + i = encodeVarintAgent(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x2a } } - return i, nil + if m.BlkioStats != nil { + { + size, err := m.BlkioStats.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAgent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if m.PidsStats != nil { + { + size, err := m.PidsStats.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAgent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.MemoryStats != nil { + { + size, err := m.MemoryStats.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAgent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.CpuStats != nil { + { + size, err := m.CpuStats.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAgent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *NetworkStats) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3940,63 +3816,73 @@ func (m *NetworkStats) Marshal() (dAtA []byte, err error) { } func (m *NetworkStats) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Name) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) - } - if m.RxBytes != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintAgent(dAtA, i, uint64(m.RxBytes)) - } - if m.RxPackets != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintAgent(dAtA, i, uint64(m.RxPackets)) - } - if m.RxErrors != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintAgent(dAtA, i, uint64(m.RxErrors)) - } - if m.RxDropped != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintAgent(dAtA, i, uint64(m.RxDropped)) - } - if m.TxBytes != 0 { - dAtA[i] = 0x30 - i++ - i = encodeVarintAgent(dAtA, i, uint64(m.TxBytes)) - } - if m.TxPackets != 0 { - dAtA[i] = 0x38 - i++ - i = encodeVarintAgent(dAtA, i, uint64(m.TxPackets)) - } - if m.TxErrors != 0 { - dAtA[i] = 0x40 - i++ - i = encodeVarintAgent(dAtA, i, uint64(m.TxErrors)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.TxDropped != 0 { - dAtA[i] = 0x48 - i++ i = encodeVarintAgent(dAtA, i, uint64(m.TxDropped)) + i-- + dAtA[i] = 0x48 } - return i, nil + if m.TxErrors != 0 { + i = encodeVarintAgent(dAtA, i, uint64(m.TxErrors)) + i-- + dAtA[i] = 0x40 + } + if m.TxPackets != 0 { + i = encodeVarintAgent(dAtA, i, uint64(m.TxPackets)) + i-- + dAtA[i] = 0x38 + } + if m.TxBytes != 0 { + i = encodeVarintAgent(dAtA, i, uint64(m.TxBytes)) + i-- + dAtA[i] = 0x30 + } + if m.RxDropped != 0 { + i = encodeVarintAgent(dAtA, i, uint64(m.RxDropped)) + i-- + dAtA[i] = 0x28 + } + if m.RxErrors != 0 { + i = encodeVarintAgent(dAtA, i, uint64(m.RxErrors)) + i-- + dAtA[i] = 0x20 + } + if m.RxPackets != 0 { + i = encodeVarintAgent(dAtA, i, uint64(m.RxPackets)) + i-- + dAtA[i] = 0x18 + } + if m.RxBytes != 0 { + i = encodeVarintAgent(dAtA, i, uint64(m.RxBytes)) + i-- + dAtA[i] = 0x10 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintAgent(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *StatsContainerResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4004,39 +3890,52 @@ func (m *StatsContainerResponse) Marshal() (dAtA []byte, err error) { } func (m *StatsContainerResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StatsContainerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.CgroupStats != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintAgent(dAtA, i, uint64(m.CgroupStats.Size())) - n18, err := m.CgroupStats.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n18 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.NetworkStats) > 0 { - for _, msg := range m.NetworkStats { + for iNdEx := len(m.NetworkStats) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.NetworkStats[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAgent(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x12 - i++ - i = encodeVarintAgent(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + } + } + if m.CgroupStats != nil { + { + size, err := m.CgroupStats.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintAgent(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *WriteStreamRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4044,35 +3943,47 @@ func (m *WriteStreamRequest) Marshal() (dAtA []byte, err error) { } func (m *WriteStreamRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WriteStreamRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.ContainerId) > 0 { - dAtA[i] = 0xa - i++ - 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.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Data) > 0 { - dAtA[i] = 0x1a - i++ + i -= len(m.Data) + copy(dAtA[i:], m.Data) i = encodeVarintAgent(dAtA, i, uint64(len(m.Data))) - i += copy(dAtA[i:], m.Data) + i-- + dAtA[i] = 0x1a } - return i, nil + if len(m.ExecId) > 0 { + i -= len(m.ExecId) + copy(dAtA[i:], m.ExecId) + i = encodeVarintAgent(dAtA, i, uint64(len(m.ExecId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContainerId) > 0 { + i -= len(m.ContainerId) + copy(dAtA[i:], m.ContainerId) + i = encodeVarintAgent(dAtA, i, uint64(len(m.ContainerId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *WriteStreamResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4080,22 +3991,31 @@ func (m *WriteStreamResponse) Marshal() (dAtA []byte, err error) { } func (m *WriteStreamResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WriteStreamResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Len != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintAgent(dAtA, i, uint64(m.Len)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - return i, nil + if m.Len != 0 { + i = encodeVarintAgent(dAtA, i, uint64(m.Len)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *ReadStreamRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4103,34 +4023,45 @@ func (m *ReadStreamRequest) Marshal() (dAtA []byte, err error) { } func (m *ReadStreamRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ReadStreamRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.ContainerId) > 0 { - dAtA[i] = 0xa - i++ - 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.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.Len != 0 { - dAtA[i] = 0x18 - i++ i = encodeVarintAgent(dAtA, i, uint64(m.Len)) + i-- + dAtA[i] = 0x18 } - return i, nil + if len(m.ExecId) > 0 { + i -= len(m.ExecId) + copy(dAtA[i:], m.ExecId) + i = encodeVarintAgent(dAtA, i, uint64(len(m.ExecId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContainerId) > 0 { + i -= len(m.ContainerId) + copy(dAtA[i:], m.ContainerId) + i = encodeVarintAgent(dAtA, i, uint64(len(m.ContainerId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *ReadStreamResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4138,23 +4069,33 @@ func (m *ReadStreamResponse) Marshal() (dAtA []byte, err error) { } func (m *ReadStreamResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ReadStreamResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Data) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.Data))) - i += copy(dAtA[i:], m.Data) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - return i, nil + if len(m.Data) > 0 { + i -= len(m.Data) + copy(dAtA[i:], m.Data) + i = encodeVarintAgent(dAtA, i, uint64(len(m.Data))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *CloseStdinRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4162,29 +4103,40 @@ func (m *CloseStdinRequest) Marshal() (dAtA []byte, err error) { } func (m *CloseStdinRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CloseStdinRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.ContainerId) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.ContainerId))) - i += copy(dAtA[i:], m.ContainerId) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.ExecId) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.ExecId) + copy(dAtA[i:], m.ExecId) i = encodeVarintAgent(dAtA, i, uint64(len(m.ExecId))) - i += copy(dAtA[i:], m.ExecId) + i-- + dAtA[i] = 0x12 } - return i, nil + if len(m.ContainerId) > 0 { + i -= len(m.ContainerId) + copy(dAtA[i:], m.ContainerId) + i = encodeVarintAgent(dAtA, i, uint64(len(m.ContainerId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *TtyWinResizeRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4192,39 +4144,50 @@ func (m *TtyWinResizeRequest) Marshal() (dAtA []byte, err error) { } func (m *TtyWinResizeRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TtyWinResizeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.ContainerId) > 0 { - dAtA[i] = 0xa - i++ - 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.Row != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintAgent(dAtA, i, uint64(m.Row)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.Column != 0 { - dAtA[i] = 0x20 - i++ i = encodeVarintAgent(dAtA, i, uint64(m.Column)) + i-- + dAtA[i] = 0x20 } - return i, nil + if m.Row != 0 { + i = encodeVarintAgent(dAtA, i, uint64(m.Row)) + i-- + dAtA[i] = 0x18 + } + if len(m.ExecId) > 0 { + i -= len(m.ExecId) + copy(dAtA[i:], m.ExecId) + i = encodeVarintAgent(dAtA, i, uint64(len(m.ExecId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContainerId) > 0 { + i -= len(m.ContainerId) + copy(dAtA[i:], m.ContainerId) + i = encodeVarintAgent(dAtA, i, uint64(len(m.ContainerId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *KernelModule) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4232,38 +4195,42 @@ func (m *KernelModule) Marshal() (dAtA []byte, err error) { } func (m *KernelModule) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *KernelModule) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Name) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Parameters) > 0 { - for _, s := range m.Parameters { + for iNdEx := len(m.Parameters) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Parameters[iNdEx]) + copy(dAtA[i:], m.Parameters[iNdEx]) + i = encodeVarintAgent(dAtA, i, uint64(len(m.Parameters[iNdEx]))) + i-- 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) } } - return i, nil + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintAgent(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *CreateSandboxRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4271,84 +4238,94 @@ func (m *CreateSandboxRequest) Marshal() (dAtA []byte, err error) { } func (m *CreateSandboxRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CreateSandboxRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Hostname) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.Hostname))) - i += copy(dAtA[i:], m.Hostname) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - 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++ + if len(m.KernelModules) > 0 { + for iNdEx := len(m.KernelModules) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.KernelModules[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAgent(dAtA, i, uint64(size)) } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) + i-- + dAtA[i] = 0x3a } } - 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 len(m.GuestHookPath) > 0 { + i -= len(m.GuestHookPath) + copy(dAtA[i:], m.GuestHookPath) + i = encodeVarintAgent(dAtA, i, uint64(len(m.GuestHookPath))) + i-- + dAtA[i] = 0x32 + } + if len(m.SandboxId) > 0 { + i -= len(m.SandboxId) + copy(dAtA[i:], m.SandboxId) + i = encodeVarintAgent(dAtA, i, uint64(len(m.SandboxId))) + i-- + dAtA[i] = 0x2a } if m.SandboxPidns { - dAtA[i] = 0x20 - i++ + i-- if m.SandboxPidns { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x20 } - if len(m.SandboxId) > 0 { - dAtA[i] = 0x2a - i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.SandboxId))) - i += copy(dAtA[i:], m.SandboxId) - } - if len(m.GuestHookPath) > 0 { - dAtA[i] = 0x32 - i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.GuestHookPath))) - i += copy(dAtA[i:], m.GuestHookPath) - } - if len(m.KernelModules) > 0 { - for _, msg := range m.KernelModules { - dAtA[i] = 0x3a - i++ - i = encodeVarintAgent(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if len(m.Storages) > 0 { + for iNdEx := len(m.Storages) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Storages[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAgent(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x1a } } - return i, nil + if len(m.Dns) > 0 { + for iNdEx := len(m.Dns) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Dns[iNdEx]) + copy(dAtA[i:], m.Dns[iNdEx]) + i = encodeVarintAgent(dAtA, i, uint64(len(m.Dns[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.Hostname) > 0 { + i -= len(m.Hostname) + copy(dAtA[i:], m.Hostname) + i = encodeVarintAgent(dAtA, i, uint64(len(m.Hostname))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *DestroySandboxRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4356,17 +4333,26 @@ func (m *DestroySandboxRequest) Marshal() (dAtA []byte, err error) { } func (m *DestroySandboxRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DestroySandboxRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *Interfaces) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4374,29 +4360,40 @@ func (m *Interfaces) Marshal() (dAtA []byte, err error) { } func (m *Interfaces) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Interfaces) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if len(m.Interfaces) > 0 { - for _, msg := range m.Interfaces { - dAtA[i] = 0xa - i++ - i = encodeVarintAgent(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + for iNdEx := len(m.Interfaces) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Interfaces[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAgent(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0xa } } - return i, nil + return len(dAtA) - i, nil } func (m *Routes) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4404,29 +4401,40 @@ func (m *Routes) Marshal() (dAtA []byte, err error) { } func (m *Routes) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Routes) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } 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 + for iNdEx := len(m.Routes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Routes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAgent(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0xa } } - return i, nil + return len(dAtA) - i, nil } func (m *UpdateInterfaceRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4434,27 +4442,38 @@ func (m *UpdateInterfaceRequest) Marshal() (dAtA []byte, err error) { } func (m *UpdateInterfaceRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UpdateInterfaceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = 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 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - return i, nil + if m.Interface != nil { + { + size, err := m.Interface.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAgent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *UpdateRoutesRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4462,27 +4481,38 @@ func (m *UpdateRoutesRequest) Marshal() (dAtA []byte, err error) { } func (m *UpdateRoutesRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UpdateRoutesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Routes != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintAgent(dAtA, i, uint64(m.Routes.Size())) - n20, err := m.Routes.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n20 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - return i, nil + if m.Routes != nil { + { + size, err := m.Routes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAgent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *ListInterfacesRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4490,17 +4520,26 @@ func (m *ListInterfacesRequest) Marshal() (dAtA []byte, err error) { } func (m *ListInterfacesRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ListInterfacesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *ListRoutesRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4508,17 +4547,26 @@ func (m *ListRoutesRequest) Marshal() (dAtA []byte, err error) { } func (m *ListRoutesRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ListRoutesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *OnlineCPUMemRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4526,42 +4574,51 @@ func (m *OnlineCPUMemRequest) Marshal() (dAtA []byte, err error) { } func (m *OnlineCPUMemRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OnlineCPUMemRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = 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 - i++ - i = encodeVarintAgent(dAtA, i, uint64(m.NbCpus)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.CpuOnly { - dAtA[i] = 0x18 - i++ + i-- if m.CpuOnly { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x18 } - return i, nil + if m.NbCpus != 0 { + i = encodeVarintAgent(dAtA, i, uint64(m.NbCpus)) + i-- + dAtA[i] = 0x10 + } + if m.Wait { + i-- + if m.Wait { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *ReseedRandomDevRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4569,23 +4626,33 @@ func (m *ReseedRandomDevRequest) Marshal() (dAtA []byte, err error) { } func (m *ReseedRandomDevRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ReseedRandomDevRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Data) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.Data))) - i += copy(dAtA[i:], m.Data) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - return i, nil + if len(m.Data) > 0 { + i -= len(m.Data) + copy(dAtA[i:], m.Data) + i = encodeVarintAgent(dAtA, i, uint64(len(m.Data))) + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil } func (m *AgentDetails) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4593,73 +4660,71 @@ func (m *AgentDetails) Marshal() (dAtA []byte, err error) { } func (m *AgentDetails) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AgentDetails) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Version) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.Version))) - i += copy(dAtA[i:], m.Version) - } - if m.InitDaemon { - dAtA[i] = 0x10 - i++ - if m.InitDaemon { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - } - if len(m.DeviceHandlers) > 0 { - for _, s := range m.DeviceHandlers { - 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) - } - } - if len(m.StorageHandlers) > 0 { - for _, s := range m.StorageHandlers { - dAtA[i] = 0x22 - 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.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.SupportsSeccomp { - dAtA[i] = 0x28 - i++ + i-- if m.SupportsSeccomp { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x28 } - return i, nil + if len(m.StorageHandlers) > 0 { + for iNdEx := len(m.StorageHandlers) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.StorageHandlers[iNdEx]) + copy(dAtA[i:], m.StorageHandlers[iNdEx]) + i = encodeVarintAgent(dAtA, i, uint64(len(m.StorageHandlers[iNdEx]))) + i-- + dAtA[i] = 0x22 + } + } + if len(m.DeviceHandlers) > 0 { + for iNdEx := len(m.DeviceHandlers) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.DeviceHandlers[iNdEx]) + copy(dAtA[i:], m.DeviceHandlers[iNdEx]) + i = encodeVarintAgent(dAtA, i, uint64(len(m.DeviceHandlers[iNdEx]))) + i-- + dAtA[i] = 0x1a + } + } + if m.InitDaemon { + i-- + if m.InitDaemon { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if len(m.Version) > 0 { + i -= len(m.Version) + copy(dAtA[i:], m.Version) + i = encodeVarintAgent(dAtA, i, uint64(len(m.Version))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *GuestDetailsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4667,37 +4732,46 @@ func (m *GuestDetailsRequest) Marshal() (dAtA []byte, err error) { } func (m *GuestDetailsRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GuestDetailsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.MemBlockSize { - dAtA[i] = 0x8 - i++ - if m.MemBlockSize { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.MemHotplugProbe { - dAtA[i] = 0x10 - i++ + i-- if m.MemHotplugProbe { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x10 } - return i, nil + if m.MemBlockSize { + i-- + if m.MemBlockSize { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *GuestDetailsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4705,42 +4779,53 @@ func (m *GuestDetailsResponse) Marshal() (dAtA []byte, err error) { } func (m *GuestDetailsResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GuestDetailsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.MemBlockSizeBytes != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintAgent(dAtA, i, uint64(m.MemBlockSizeBytes)) - } - if m.AgentDetails != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintAgent(dAtA, i, uint64(m.AgentDetails.Size())) - n21, err := m.AgentDetails.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n21 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.SupportMemHotplugProbe { - dAtA[i] = 0x18 - i++ + i-- if m.SupportMemHotplugProbe { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x18 } - return i, nil + if m.AgentDetails != nil { + { + size, err := m.AgentDetails.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAgent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.MemBlockSizeBytes != 0 { + i = encodeVarintAgent(dAtA, i, uint64(m.MemBlockSizeBytes)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *MemHotplugByProbeRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4748,10 +4833,19 @@ func (m *MemHotplugByProbeRequest) Marshal() (dAtA []byte, err error) { } func (m *MemHotplugByProbeRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MemHotplugByProbeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if len(m.MemHotplugProbeAddr) > 0 { dAtA23 := make([]byte, len(m.MemHotplugProbeAddr)*10) var j22 int @@ -4764,18 +4858,19 @@ func (m *MemHotplugByProbeRequest) MarshalTo(dAtA []byte) (int, error) { dAtA23[j22] = uint8(num) j22++ } - dAtA[i] = 0xa - i++ + i -= j22 + copy(dAtA[i:], dAtA23[:j22]) i = encodeVarintAgent(dAtA, i, uint64(j22)) - i += copy(dAtA[i:], dAtA23[:j22]) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *SetGuestDateTimeRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4783,27 +4878,36 @@ func (m *SetGuestDateTimeRequest) Marshal() (dAtA []byte, err error) { } func (m *SetGuestDateTimeRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SetGuestDateTimeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Sec != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintAgent(dAtA, i, uint64(m.Sec)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.Usec != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintAgent(dAtA, i, uint64(m.Usec)) + i-- + dAtA[i] = 0x10 } - return i, nil + if m.Sec != 0 { + i = encodeVarintAgent(dAtA, i, uint64(m.Sec)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *Storage) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4811,71 +4915,72 @@ func (m *Storage) Marshal() (dAtA []byte, err error) { } func (m *Storage) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Storage) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Driver) > 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) - } + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.MountPoint) > 0 { - dAtA[i] = 0x32 - i++ + i -= len(m.MountPoint) + copy(dAtA[i:], m.MountPoint) i = encodeVarintAgent(dAtA, i, uint64(len(m.MountPoint))) - i += copy(dAtA[i:], m.MountPoint) + i-- + dAtA[i] = 0x32 } - return i, nil + if len(m.Options) > 0 { + for iNdEx := len(m.Options) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Options[iNdEx]) + copy(dAtA[i:], m.Options[iNdEx]) + i = encodeVarintAgent(dAtA, i, uint64(len(m.Options[iNdEx]))) + i-- + dAtA[i] = 0x2a + } + } + if len(m.Fstype) > 0 { + i -= len(m.Fstype) + copy(dAtA[i:], m.Fstype) + i = encodeVarintAgent(dAtA, i, uint64(len(m.Fstype))) + i-- + dAtA[i] = 0x22 + } + if len(m.Source) > 0 { + i -= len(m.Source) + copy(dAtA[i:], m.Source) + i = encodeVarintAgent(dAtA, i, uint64(len(m.Source))) + i-- + dAtA[i] = 0x1a + } + if len(m.DriverOptions) > 0 { + for iNdEx := len(m.DriverOptions) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.DriverOptions[iNdEx]) + copy(dAtA[i:], m.DriverOptions[iNdEx]) + i = encodeVarintAgent(dAtA, i, uint64(len(m.DriverOptions[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.Driver) > 0 { + i -= len(m.Driver) + copy(dAtA[i:], m.Driver) + i = encodeVarintAgent(dAtA, i, uint64(len(m.Driver))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *Device) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4883,56 +4988,63 @@ func (m *Device) Marshal() (dAtA []byte, err error) { } func (m *Device) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Device) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Id) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.Id))) - i += copy(dAtA[i:], m.Id) - } - if len(m.Type) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.Type))) - i += copy(dAtA[i:], m.Type) - } - if len(m.VmPath) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.VmPath))) - i += copy(dAtA[i:], m.VmPath) - } - 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.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Options) > 0 { - for _, s := range m.Options { + for iNdEx := len(m.Options) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Options[iNdEx]) + copy(dAtA[i:], m.Options[iNdEx]) + i = encodeVarintAgent(dAtA, i, uint64(len(m.Options[iNdEx]))) + i-- 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 i, nil + if len(m.ContainerPath) > 0 { + i -= len(m.ContainerPath) + copy(dAtA[i:], m.ContainerPath) + i = encodeVarintAgent(dAtA, i, uint64(len(m.ContainerPath))) + i-- + dAtA[i] = 0x22 + } + if len(m.VmPath) > 0 { + i -= len(m.VmPath) + copy(dAtA[i:], m.VmPath) + i = encodeVarintAgent(dAtA, i, uint64(len(m.VmPath))) + i-- + dAtA[i] = 0x1a + } + if len(m.Type) > 0 { + i -= len(m.Type) + copy(dAtA[i:], m.Type) + i = encodeVarintAgent(dAtA, i, uint64(len(m.Type))) + i-- + dAtA[i] = 0x12 + } + if len(m.Id) > 0 { + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = encodeVarintAgent(dAtA, i, uint64(len(m.Id))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *StringUser) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4940,44 +5052,49 @@ func (m *StringUser) Marshal() (dAtA []byte, err error) { } func (m *StringUser) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StringUser) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = 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 m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.AdditionalGids) > 0 { - for _, s := range m.AdditionalGids { + for iNdEx := len(m.AdditionalGids) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.AdditionalGids[iNdEx]) + copy(dAtA[i:], m.AdditionalGids[iNdEx]) + i = encodeVarintAgent(dAtA, i, uint64(len(m.AdditionalGids[iNdEx]))) + i-- 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 i, nil + if len(m.Gid) > 0 { + i -= len(m.Gid) + copy(dAtA[i:], m.Gid) + i = encodeVarintAgent(dAtA, i, uint64(len(m.Gid))) + i-- + dAtA[i] = 0x12 + } + if len(m.Uid) > 0 { + i -= len(m.Uid) + copy(dAtA[i:], m.Uid) + i = encodeVarintAgent(dAtA, i, uint64(len(m.Uid))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *CopyFileRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4985,59 +5102,70 @@ func (m *CopyFileRequest) Marshal() (dAtA []byte, err error) { } func (m *CopyFileRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CopyFileRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Path) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.Path))) - i += copy(dAtA[i:], m.Path) - } - if m.FileSize != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintAgent(dAtA, i, uint64(m.FileSize)) - } - if m.FileMode != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintAgent(dAtA, i, uint64(m.FileMode)) - } - if m.DirMode != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintAgent(dAtA, i, uint64(m.DirMode)) - } - if m.Uid != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintAgent(dAtA, i, uint64(m.Uid)) - } - if m.Gid != 0 { - dAtA[i] = 0x30 - i++ - i = encodeVarintAgent(dAtA, i, uint64(m.Gid)) - } - if m.Offset != 0 { - dAtA[i] = 0x38 - i++ - i = encodeVarintAgent(dAtA, i, uint64(m.Offset)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Data) > 0 { - dAtA[i] = 0x42 - i++ + i -= len(m.Data) + copy(dAtA[i:], m.Data) i = encodeVarintAgent(dAtA, i, uint64(len(m.Data))) - i += copy(dAtA[i:], m.Data) + i-- + dAtA[i] = 0x42 } - return i, nil + if m.Offset != 0 { + i = encodeVarintAgent(dAtA, i, uint64(m.Offset)) + i-- + dAtA[i] = 0x38 + } + if m.Gid != 0 { + i = encodeVarintAgent(dAtA, i, uint64(m.Gid)) + i-- + dAtA[i] = 0x30 + } + if m.Uid != 0 { + i = encodeVarintAgent(dAtA, i, uint64(m.Uid)) + i-- + dAtA[i] = 0x28 + } + if m.DirMode != 0 { + i = encodeVarintAgent(dAtA, i, uint64(m.DirMode)) + i-- + dAtA[i] = 0x20 + } + if m.FileMode != 0 { + i = encodeVarintAgent(dAtA, i, uint64(m.FileMode)) + i-- + dAtA[i] = 0x18 + } + if m.FileSize != 0 { + i = encodeVarintAgent(dAtA, i, uint64(m.FileSize)) + i-- + dAtA[i] = 0x10 + } + if len(m.Path) > 0 { + i -= len(m.Path) + copy(dAtA[i:], m.Path) + i = encodeVarintAgent(dAtA, i, uint64(len(m.Path))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *StartTracingRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -5045,17 +5173,26 @@ func (m *StartTracingRequest) Marshal() (dAtA []byte, err error) { } func (m *StartTracingRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StartTracingRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *StopTracingRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -5063,23 +5200,37 @@ func (m *StopTracingRequest) Marshal() (dAtA []byte, err error) { } func (m *StopTracingRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StopTracingRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func encodeVarintAgent(dAtA []byte, offset int, v uint64) int { + offset -= sovAgent(v) + base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return offset + 1 + return base } func (m *CreateContainerRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.ContainerId) @@ -5113,20 +5264,32 @@ func (m *CreateContainerRequest) Size() (n int) { if m.SandboxPidns { n += 2 } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *StartContainerRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.ContainerId) if l > 0 { n += 1 + l + sovAgent(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RemoveContainerRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.ContainerId) @@ -5136,10 +5299,16 @@ func (m *RemoveContainerRequest) Size() (n int) { if m.Timeout != 0 { n += 1 + sovAgent(uint64(m.Timeout)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ExecProcessRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.ContainerId) @@ -5158,10 +5327,16 @@ func (m *ExecProcessRequest) Size() (n int) { l = m.Process.Size() n += 1 + l + sovAgent(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *SignalProcessRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.ContainerId) @@ -5175,10 +5350,16 @@ func (m *SignalProcessRequest) Size() (n int) { if m.Signal != 0 { n += 1 + sovAgent(uint64(m.Signal)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *WaitProcessRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.ContainerId) @@ -5189,19 +5370,31 @@ func (m *WaitProcessRequest) Size() (n int) { if l > 0 { n += 1 + l + sovAgent(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *WaitProcessResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Status != 0 { n += 1 + sovAgent(uint64(m.Status)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ListProcessesRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.ContainerId) @@ -5218,20 +5411,32 @@ func (m *ListProcessesRequest) Size() (n int) { n += 1 + l + sovAgent(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ListProcessesResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.ProcessList) if l > 0 { n += 1 + l + sovAgent(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *UpdateContainerRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.ContainerId) @@ -5242,40 +5447,64 @@ func (m *UpdateContainerRequest) Size() (n int) { l = m.Resources.Size() n += 1 + l + sovAgent(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *StatsContainerRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.ContainerId) if l > 0 { n += 1 + l + sovAgent(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *PauseContainerRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.ContainerId) if l > 0 { n += 1 + l + sovAgent(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ResumeContainerRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.ContainerId) if l > 0 { n += 1 + l + sovAgent(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *CpuUsage) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.TotalUsage != 0 { @@ -5294,10 +5523,16 @@ func (m *CpuUsage) Size() (n int) { if m.UsageInUsermode != 0 { n += 1 + sovAgent(uint64(m.UsageInUsermode)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ThrottlingData) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Periods != 0 { @@ -5309,10 +5544,16 @@ func (m *ThrottlingData) Size() (n int) { if m.ThrottledTime != 0 { n += 1 + sovAgent(uint64(m.ThrottledTime)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *CpuStats) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.CpuUsage != nil { @@ -5323,10 +5564,16 @@ func (m *CpuStats) Size() (n int) { l = m.ThrottlingData.Size() n += 1 + l + sovAgent(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *PidsStats) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Current != 0 { @@ -5335,10 +5582,16 @@ func (m *PidsStats) Size() (n int) { if m.Limit != 0 { n += 1 + sovAgent(uint64(m.Limit)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *MemoryData) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Usage != 0 { @@ -5353,10 +5606,16 @@ func (m *MemoryData) Size() (n int) { if m.Limit != 0 { n += 1 + sovAgent(uint64(m.Limit)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *MemoryStats) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Cache != 0 { @@ -5385,10 +5644,16 @@ func (m *MemoryStats) Size() (n int) { n += mapEntrySize + 1 + sovAgent(uint64(mapEntrySize)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *BlkioStatsEntry) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Major != 0 { @@ -5404,10 +5669,16 @@ func (m *BlkioStatsEntry) Size() (n int) { if m.Value != 0 { n += 1 + sovAgent(uint64(m.Value)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *BlkioStats) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.IoServiceBytesRecursive) > 0 { @@ -5458,10 +5729,16 @@ func (m *BlkioStats) Size() (n int) { n += 1 + l + sovAgent(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *HugetlbStats) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Usage != 0 { @@ -5473,10 +5750,16 @@ func (m *HugetlbStats) Size() (n int) { if m.Failcnt != 0 { n += 1 + sovAgent(uint64(m.Failcnt)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *CgroupStats) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.CpuStats != nil { @@ -5508,10 +5791,16 @@ func (m *CgroupStats) Size() (n int) { n += mapEntrySize + 1 + sovAgent(uint64(mapEntrySize)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *NetworkStats) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Name) @@ -5542,10 +5831,16 @@ func (m *NetworkStats) Size() (n int) { if m.TxDropped != 0 { n += 1 + sovAgent(uint64(m.TxDropped)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *StatsContainerResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.CgroupStats != nil { @@ -5558,10 +5853,16 @@ func (m *StatsContainerResponse) Size() (n int) { n += 1 + l + sovAgent(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *WriteStreamRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.ContainerId) @@ -5576,19 +5877,31 @@ func (m *WriteStreamRequest) Size() (n int) { if l > 0 { n += 1 + l + sovAgent(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *WriteStreamResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Len != 0 { n += 1 + sovAgent(uint64(m.Len)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ReadStreamRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.ContainerId) @@ -5602,20 +5915,32 @@ func (m *ReadStreamRequest) Size() (n int) { if m.Len != 0 { n += 1 + sovAgent(uint64(m.Len)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ReadStreamResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Data) if l > 0 { n += 1 + l + sovAgent(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *CloseStdinRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.ContainerId) @@ -5626,10 +5951,16 @@ func (m *CloseStdinRequest) Size() (n int) { if l > 0 { n += 1 + l + sovAgent(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *TtyWinResizeRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.ContainerId) @@ -5646,10 +5977,16 @@ func (m *TtyWinResizeRequest) Size() (n int) { if m.Column != 0 { n += 1 + sovAgent(uint64(m.Column)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *KernelModule) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Name) @@ -5662,10 +5999,16 @@ func (m *KernelModule) Size() (n int) { n += 1 + l + sovAgent(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *CreateSandboxRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Hostname) @@ -5701,16 +6044,28 @@ func (m *CreateSandboxRequest) Size() (n int) { n += 1 + l + sovAgent(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *DestroySandboxRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Interfaces) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.Interfaces) > 0 { @@ -5719,10 +6074,16 @@ func (m *Interfaces) Size() (n int) { n += 1 + l + sovAgent(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Routes) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.Routes) > 0 { @@ -5731,42 +6092,72 @@ func (m *Routes) Size() (n int) { n += 1 + l + sovAgent(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *UpdateInterfaceRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Interface != nil { l = m.Interface.Size() n += 1 + l + sovAgent(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *UpdateRoutesRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Routes != nil { l = m.Routes.Size() n += 1 + l + sovAgent(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ListInterfacesRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ListRoutesRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *OnlineCPUMemRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Wait { @@ -5778,20 +6169,32 @@ func (m *OnlineCPUMemRequest) Size() (n int) { if m.CpuOnly { n += 2 } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ReseedRandomDevRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Data) if l > 0 { n += 1 + l + sovAgent(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *AgentDetails) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Version) @@ -5816,10 +6219,16 @@ func (m *AgentDetails) Size() (n int) { if m.SupportsSeccomp { n += 2 } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *GuestDetailsRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.MemBlockSize { @@ -5828,10 +6237,16 @@ func (m *GuestDetailsRequest) Size() (n int) { if m.MemHotplugProbe { n += 2 } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *GuestDetailsResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.MemBlockSizeBytes != 0 { @@ -5844,10 +6259,16 @@ func (m *GuestDetailsResponse) Size() (n int) { if m.SupportMemHotplugProbe { n += 2 } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *MemHotplugByProbeRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.MemHotplugProbeAddr) > 0 { @@ -5857,10 +6278,16 @@ func (m *MemHotplugByProbeRequest) Size() (n int) { } n += 1 + sovAgent(uint64(l)) + l } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *SetGuestDateTimeRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Sec != 0 { @@ -5869,10 +6296,16 @@ func (m *SetGuestDateTimeRequest) Size() (n int) { if m.Usec != 0 { n += 1 + sovAgent(uint64(m.Usec)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Storage) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Driver) @@ -5903,10 +6336,16 @@ func (m *Storage) Size() (n int) { if l > 0 { n += 1 + l + sovAgent(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Device) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Id) @@ -5931,10 +6370,16 @@ func (m *Device) Size() (n int) { n += 1 + l + sovAgent(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *StringUser) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Uid) @@ -5951,10 +6396,16 @@ func (m *StringUser) Size() (n int) { n += 1 + l + sovAgent(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *CopyFileRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Path) @@ -5983,34 +6434,1320 @@ func (m *CopyFileRequest) Size() (n int) { if l > 0 { n += 1 + l + sovAgent(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *StartTracingRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *StopTracingRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func sovAgent(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n + return (math_bits.Len64(x|1) + 6) / 7 } func sozAgent(x uint64) (n int) { return sovAgent(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } +func (this *CreateContainerRequest) String() string { + if this == nil { + return "nil" + } + repeatedStringForDevices := "[]*Device{" + for _, f := range this.Devices { + repeatedStringForDevices += strings.Replace(f.String(), "Device", "Device", 1) + "," + } + repeatedStringForDevices += "}" + repeatedStringForStorages := "[]*Storage{" + for _, f := range this.Storages { + repeatedStringForStorages += strings.Replace(f.String(), "Storage", "Storage", 1) + "," + } + repeatedStringForStorages += "}" + s := strings.Join([]string{`&CreateContainerRequest{`, + `ContainerId:` + fmt.Sprintf("%v", this.ContainerId) + `,`, + `ExecId:` + fmt.Sprintf("%v", this.ExecId) + `,`, + `StringUser:` + strings.Replace(this.StringUser.String(), "StringUser", "StringUser", 1) + `,`, + `Devices:` + repeatedStringForDevices + `,`, + `Storages:` + repeatedStringForStorages + `,`, + `OCI:` + strings.Replace(fmt.Sprintf("%v", this.OCI), "Spec", "Spec", 1) + `,`, + `SandboxPidns:` + fmt.Sprintf("%v", this.SandboxPidns) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *StartContainerRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&StartContainerRequest{`, + `ContainerId:` + fmt.Sprintf("%v", this.ContainerId) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *RemoveContainerRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&RemoveContainerRequest{`, + `ContainerId:` + fmt.Sprintf("%v", this.ContainerId) + `,`, + `Timeout:` + fmt.Sprintf("%v", this.Timeout) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *ExecProcessRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ExecProcessRequest{`, + `ContainerId:` + fmt.Sprintf("%v", this.ContainerId) + `,`, + `ExecId:` + fmt.Sprintf("%v", this.ExecId) + `,`, + `StringUser:` + strings.Replace(this.StringUser.String(), "StringUser", "StringUser", 1) + `,`, + `Process:` + strings.Replace(fmt.Sprintf("%v", this.Process), "Process", "Process", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *SignalProcessRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&SignalProcessRequest{`, + `ContainerId:` + fmt.Sprintf("%v", this.ContainerId) + `,`, + `ExecId:` + fmt.Sprintf("%v", this.ExecId) + `,`, + `Signal:` + fmt.Sprintf("%v", this.Signal) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *WaitProcessRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&WaitProcessRequest{`, + `ContainerId:` + fmt.Sprintf("%v", this.ContainerId) + `,`, + `ExecId:` + fmt.Sprintf("%v", this.ExecId) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *WaitProcessResponse) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&WaitProcessResponse{`, + `Status:` + fmt.Sprintf("%v", this.Status) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *ListProcessesRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ListProcessesRequest{`, + `ContainerId:` + fmt.Sprintf("%v", this.ContainerId) + `,`, + `Format:` + fmt.Sprintf("%v", this.Format) + `,`, + `Args:` + fmt.Sprintf("%v", this.Args) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *ListProcessesResponse) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ListProcessesResponse{`, + `ProcessList:` + fmt.Sprintf("%v", this.ProcessList) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *UpdateContainerRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&UpdateContainerRequest{`, + `ContainerId:` + fmt.Sprintf("%v", this.ContainerId) + `,`, + `Resources:` + strings.Replace(fmt.Sprintf("%v", this.Resources), "LinuxResources", "LinuxResources", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *StatsContainerRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&StatsContainerRequest{`, + `ContainerId:` + fmt.Sprintf("%v", this.ContainerId) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *PauseContainerRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PauseContainerRequest{`, + `ContainerId:` + fmt.Sprintf("%v", this.ContainerId) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *ResumeContainerRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ResumeContainerRequest{`, + `ContainerId:` + fmt.Sprintf("%v", this.ContainerId) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *CpuUsage) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&CpuUsage{`, + `TotalUsage:` + fmt.Sprintf("%v", this.TotalUsage) + `,`, + `PercpuUsage:` + fmt.Sprintf("%v", this.PercpuUsage) + `,`, + `UsageInKernelmode:` + fmt.Sprintf("%v", this.UsageInKernelmode) + `,`, + `UsageInUsermode:` + fmt.Sprintf("%v", this.UsageInUsermode) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *ThrottlingData) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ThrottlingData{`, + `Periods:` + fmt.Sprintf("%v", this.Periods) + `,`, + `ThrottledPeriods:` + fmt.Sprintf("%v", this.ThrottledPeriods) + `,`, + `ThrottledTime:` + fmt.Sprintf("%v", this.ThrottledTime) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *CpuStats) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&CpuStats{`, + `CpuUsage:` + strings.Replace(this.CpuUsage.String(), "CpuUsage", "CpuUsage", 1) + `,`, + `ThrottlingData:` + strings.Replace(this.ThrottlingData.String(), "ThrottlingData", "ThrottlingData", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *PidsStats) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PidsStats{`, + `Current:` + fmt.Sprintf("%v", this.Current) + `,`, + `Limit:` + fmt.Sprintf("%v", this.Limit) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *MemoryData) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&MemoryData{`, + `Usage:` + fmt.Sprintf("%v", this.Usage) + `,`, + `MaxUsage:` + fmt.Sprintf("%v", this.MaxUsage) + `,`, + `Failcnt:` + fmt.Sprintf("%v", this.Failcnt) + `,`, + `Limit:` + fmt.Sprintf("%v", this.Limit) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *MemoryStats) String() string { + if this == nil { + return "nil" + } + keysForStats := make([]string, 0, len(this.Stats)) + for k, _ := range this.Stats { + keysForStats = append(keysForStats, k) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForStats) + mapStringForStats := "map[string]uint64{" + for _, k := range keysForStats { + mapStringForStats += fmt.Sprintf("%v: %v,", k, this.Stats[k]) + } + mapStringForStats += "}" + s := strings.Join([]string{`&MemoryStats{`, + `Cache:` + fmt.Sprintf("%v", this.Cache) + `,`, + `Usage:` + strings.Replace(this.Usage.String(), "MemoryData", "MemoryData", 1) + `,`, + `SwapUsage:` + strings.Replace(this.SwapUsage.String(), "MemoryData", "MemoryData", 1) + `,`, + `KernelUsage:` + strings.Replace(this.KernelUsage.String(), "MemoryData", "MemoryData", 1) + `,`, + `UseHierarchy:` + fmt.Sprintf("%v", this.UseHierarchy) + `,`, + `Stats:` + mapStringForStats + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *BlkioStatsEntry) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&BlkioStatsEntry{`, + `Major:` + fmt.Sprintf("%v", this.Major) + `,`, + `Minor:` + fmt.Sprintf("%v", this.Minor) + `,`, + `Op:` + fmt.Sprintf("%v", this.Op) + `,`, + `Value:` + fmt.Sprintf("%v", this.Value) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *BlkioStats) String() string { + if this == nil { + return "nil" + } + repeatedStringForIoServiceBytesRecursive := "[]*BlkioStatsEntry{" + for _, f := range this.IoServiceBytesRecursive { + repeatedStringForIoServiceBytesRecursive += strings.Replace(f.String(), "BlkioStatsEntry", "BlkioStatsEntry", 1) + "," + } + repeatedStringForIoServiceBytesRecursive += "}" + repeatedStringForIoServicedRecursive := "[]*BlkioStatsEntry{" + for _, f := range this.IoServicedRecursive { + repeatedStringForIoServicedRecursive += strings.Replace(f.String(), "BlkioStatsEntry", "BlkioStatsEntry", 1) + "," + } + repeatedStringForIoServicedRecursive += "}" + repeatedStringForIoQueuedRecursive := "[]*BlkioStatsEntry{" + for _, f := range this.IoQueuedRecursive { + repeatedStringForIoQueuedRecursive += strings.Replace(f.String(), "BlkioStatsEntry", "BlkioStatsEntry", 1) + "," + } + repeatedStringForIoQueuedRecursive += "}" + repeatedStringForIoServiceTimeRecursive := "[]*BlkioStatsEntry{" + for _, f := range this.IoServiceTimeRecursive { + repeatedStringForIoServiceTimeRecursive += strings.Replace(f.String(), "BlkioStatsEntry", "BlkioStatsEntry", 1) + "," + } + repeatedStringForIoServiceTimeRecursive += "}" + repeatedStringForIoWaitTimeRecursive := "[]*BlkioStatsEntry{" + for _, f := range this.IoWaitTimeRecursive { + repeatedStringForIoWaitTimeRecursive += strings.Replace(f.String(), "BlkioStatsEntry", "BlkioStatsEntry", 1) + "," + } + repeatedStringForIoWaitTimeRecursive += "}" + repeatedStringForIoMergedRecursive := "[]*BlkioStatsEntry{" + for _, f := range this.IoMergedRecursive { + repeatedStringForIoMergedRecursive += strings.Replace(f.String(), "BlkioStatsEntry", "BlkioStatsEntry", 1) + "," + } + repeatedStringForIoMergedRecursive += "}" + repeatedStringForIoTimeRecursive := "[]*BlkioStatsEntry{" + for _, f := range this.IoTimeRecursive { + repeatedStringForIoTimeRecursive += strings.Replace(f.String(), "BlkioStatsEntry", "BlkioStatsEntry", 1) + "," + } + repeatedStringForIoTimeRecursive += "}" + repeatedStringForSectorsRecursive := "[]*BlkioStatsEntry{" + for _, f := range this.SectorsRecursive { + repeatedStringForSectorsRecursive += strings.Replace(f.String(), "BlkioStatsEntry", "BlkioStatsEntry", 1) + "," + } + repeatedStringForSectorsRecursive += "}" + s := strings.Join([]string{`&BlkioStats{`, + `IoServiceBytesRecursive:` + repeatedStringForIoServiceBytesRecursive + `,`, + `IoServicedRecursive:` + repeatedStringForIoServicedRecursive + `,`, + `IoQueuedRecursive:` + repeatedStringForIoQueuedRecursive + `,`, + `IoServiceTimeRecursive:` + repeatedStringForIoServiceTimeRecursive + `,`, + `IoWaitTimeRecursive:` + repeatedStringForIoWaitTimeRecursive + `,`, + `IoMergedRecursive:` + repeatedStringForIoMergedRecursive + `,`, + `IoTimeRecursive:` + repeatedStringForIoTimeRecursive + `,`, + `SectorsRecursive:` + repeatedStringForSectorsRecursive + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *HugetlbStats) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&HugetlbStats{`, + `Usage:` + fmt.Sprintf("%v", this.Usage) + `,`, + `MaxUsage:` + fmt.Sprintf("%v", this.MaxUsage) + `,`, + `Failcnt:` + fmt.Sprintf("%v", this.Failcnt) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *CgroupStats) String() string { + if this == nil { + return "nil" + } + keysForHugetlbStats := make([]string, 0, len(this.HugetlbStats)) + for k, _ := range this.HugetlbStats { + keysForHugetlbStats = append(keysForHugetlbStats, k) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForHugetlbStats) + mapStringForHugetlbStats := "map[string]*HugetlbStats{" + for _, k := range keysForHugetlbStats { + mapStringForHugetlbStats += fmt.Sprintf("%v: %v,", k, this.HugetlbStats[k]) + } + mapStringForHugetlbStats += "}" + s := strings.Join([]string{`&CgroupStats{`, + `CpuStats:` + strings.Replace(this.CpuStats.String(), "CpuStats", "CpuStats", 1) + `,`, + `MemoryStats:` + strings.Replace(this.MemoryStats.String(), "MemoryStats", "MemoryStats", 1) + `,`, + `PidsStats:` + strings.Replace(this.PidsStats.String(), "PidsStats", "PidsStats", 1) + `,`, + `BlkioStats:` + strings.Replace(this.BlkioStats.String(), "BlkioStats", "BlkioStats", 1) + `,`, + `HugetlbStats:` + mapStringForHugetlbStats + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *NetworkStats) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&NetworkStats{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `RxBytes:` + fmt.Sprintf("%v", this.RxBytes) + `,`, + `RxPackets:` + fmt.Sprintf("%v", this.RxPackets) + `,`, + `RxErrors:` + fmt.Sprintf("%v", this.RxErrors) + `,`, + `RxDropped:` + fmt.Sprintf("%v", this.RxDropped) + `,`, + `TxBytes:` + fmt.Sprintf("%v", this.TxBytes) + `,`, + `TxPackets:` + fmt.Sprintf("%v", this.TxPackets) + `,`, + `TxErrors:` + fmt.Sprintf("%v", this.TxErrors) + `,`, + `TxDropped:` + fmt.Sprintf("%v", this.TxDropped) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *StatsContainerResponse) String() string { + if this == nil { + return "nil" + } + repeatedStringForNetworkStats := "[]*NetworkStats{" + for _, f := range this.NetworkStats { + repeatedStringForNetworkStats += strings.Replace(f.String(), "NetworkStats", "NetworkStats", 1) + "," + } + repeatedStringForNetworkStats += "}" + s := strings.Join([]string{`&StatsContainerResponse{`, + `CgroupStats:` + strings.Replace(this.CgroupStats.String(), "CgroupStats", "CgroupStats", 1) + `,`, + `NetworkStats:` + repeatedStringForNetworkStats + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *WriteStreamRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&WriteStreamRequest{`, + `ContainerId:` + fmt.Sprintf("%v", this.ContainerId) + `,`, + `ExecId:` + fmt.Sprintf("%v", this.ExecId) + `,`, + `Data:` + fmt.Sprintf("%v", this.Data) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *WriteStreamResponse) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&WriteStreamResponse{`, + `Len:` + fmt.Sprintf("%v", this.Len) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *ReadStreamRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ReadStreamRequest{`, + `ContainerId:` + fmt.Sprintf("%v", this.ContainerId) + `,`, + `ExecId:` + fmt.Sprintf("%v", this.ExecId) + `,`, + `Len:` + fmt.Sprintf("%v", this.Len) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *ReadStreamResponse) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ReadStreamResponse{`, + `Data:` + fmt.Sprintf("%v", this.Data) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *CloseStdinRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&CloseStdinRequest{`, + `ContainerId:` + fmt.Sprintf("%v", this.ContainerId) + `,`, + `ExecId:` + fmt.Sprintf("%v", this.ExecId) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *TtyWinResizeRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&TtyWinResizeRequest{`, + `ContainerId:` + fmt.Sprintf("%v", this.ContainerId) + `,`, + `ExecId:` + fmt.Sprintf("%v", this.ExecId) + `,`, + `Row:` + fmt.Sprintf("%v", this.Row) + `,`, + `Column:` + fmt.Sprintf("%v", this.Column) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *KernelModule) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&KernelModule{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Parameters:` + fmt.Sprintf("%v", this.Parameters) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *CreateSandboxRequest) String() string { + if this == nil { + return "nil" + } + repeatedStringForStorages := "[]*Storage{" + for _, f := range this.Storages { + repeatedStringForStorages += strings.Replace(f.String(), "Storage", "Storage", 1) + "," + } + repeatedStringForStorages += "}" + repeatedStringForKernelModules := "[]*KernelModule{" + for _, f := range this.KernelModules { + repeatedStringForKernelModules += strings.Replace(f.String(), "KernelModule", "KernelModule", 1) + "," + } + repeatedStringForKernelModules += "}" + s := strings.Join([]string{`&CreateSandboxRequest{`, + `Hostname:` + fmt.Sprintf("%v", this.Hostname) + `,`, + `Dns:` + fmt.Sprintf("%v", this.Dns) + `,`, + `Storages:` + repeatedStringForStorages + `,`, + `SandboxPidns:` + fmt.Sprintf("%v", this.SandboxPidns) + `,`, + `SandboxId:` + fmt.Sprintf("%v", this.SandboxId) + `,`, + `GuestHookPath:` + fmt.Sprintf("%v", this.GuestHookPath) + `,`, + `KernelModules:` + repeatedStringForKernelModules + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *DestroySandboxRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&DestroySandboxRequest{`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *Interfaces) String() string { + if this == nil { + return "nil" + } + repeatedStringForInterfaces := "[]*Interface{" + for _, f := range this.Interfaces { + repeatedStringForInterfaces += strings.Replace(fmt.Sprintf("%v", f), "Interface", "types.Interface", 1) + "," + } + repeatedStringForInterfaces += "}" + s := strings.Join([]string{`&Interfaces{`, + `Interfaces:` + repeatedStringForInterfaces + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *Routes) String() string { + if this == nil { + return "nil" + } + repeatedStringForRoutes := "[]*Route{" + for _, f := range this.Routes { + repeatedStringForRoutes += strings.Replace(fmt.Sprintf("%v", f), "Route", "types.Route", 1) + "," + } + repeatedStringForRoutes += "}" + s := strings.Join([]string{`&Routes{`, + `Routes:` + repeatedStringForRoutes + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *UpdateInterfaceRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&UpdateInterfaceRequest{`, + `Interface:` + strings.Replace(fmt.Sprintf("%v", this.Interface), "Interface", "types.Interface", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *UpdateRoutesRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&UpdateRoutesRequest{`, + `Routes:` + strings.Replace(this.Routes.String(), "Routes", "Routes", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *ListInterfacesRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ListInterfacesRequest{`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *ListRoutesRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ListRoutesRequest{`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *OnlineCPUMemRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&OnlineCPUMemRequest{`, + `Wait:` + fmt.Sprintf("%v", this.Wait) + `,`, + `NbCpus:` + fmt.Sprintf("%v", this.NbCpus) + `,`, + `CpuOnly:` + fmt.Sprintf("%v", this.CpuOnly) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *ReseedRandomDevRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ReseedRandomDevRequest{`, + `Data:` + fmt.Sprintf("%v", this.Data) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *AgentDetails) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&AgentDetails{`, + `Version:` + fmt.Sprintf("%v", this.Version) + `,`, + `InitDaemon:` + fmt.Sprintf("%v", this.InitDaemon) + `,`, + `DeviceHandlers:` + fmt.Sprintf("%v", this.DeviceHandlers) + `,`, + `StorageHandlers:` + fmt.Sprintf("%v", this.StorageHandlers) + `,`, + `SupportsSeccomp:` + fmt.Sprintf("%v", this.SupportsSeccomp) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *GuestDetailsRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&GuestDetailsRequest{`, + `MemBlockSize:` + fmt.Sprintf("%v", this.MemBlockSize) + `,`, + `MemHotplugProbe:` + fmt.Sprintf("%v", this.MemHotplugProbe) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *GuestDetailsResponse) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&GuestDetailsResponse{`, + `MemBlockSizeBytes:` + fmt.Sprintf("%v", this.MemBlockSizeBytes) + `,`, + `AgentDetails:` + strings.Replace(this.AgentDetails.String(), "AgentDetails", "AgentDetails", 1) + `,`, + `SupportMemHotplugProbe:` + fmt.Sprintf("%v", this.SupportMemHotplugProbe) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *MemHotplugByProbeRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&MemHotplugByProbeRequest{`, + `MemHotplugProbeAddr:` + fmt.Sprintf("%v", this.MemHotplugProbeAddr) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *SetGuestDateTimeRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&SetGuestDateTimeRequest{`, + `Sec:` + fmt.Sprintf("%v", this.Sec) + `,`, + `Usec:` + fmt.Sprintf("%v", this.Usec) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *Storage) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Storage{`, + `Driver:` + fmt.Sprintf("%v", this.Driver) + `,`, + `DriverOptions:` + fmt.Sprintf("%v", this.DriverOptions) + `,`, + `Source:` + fmt.Sprintf("%v", this.Source) + `,`, + `Fstype:` + fmt.Sprintf("%v", this.Fstype) + `,`, + `Options:` + fmt.Sprintf("%v", this.Options) + `,`, + `MountPoint:` + fmt.Sprintf("%v", this.MountPoint) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *Device) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Device{`, + `Id:` + fmt.Sprintf("%v", this.Id) + `,`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `VmPath:` + fmt.Sprintf("%v", this.VmPath) + `,`, + `ContainerPath:` + fmt.Sprintf("%v", this.ContainerPath) + `,`, + `Options:` + fmt.Sprintf("%v", this.Options) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *StringUser) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&StringUser{`, + `Uid:` + fmt.Sprintf("%v", this.Uid) + `,`, + `Gid:` + fmt.Sprintf("%v", this.Gid) + `,`, + `AdditionalGids:` + fmt.Sprintf("%v", this.AdditionalGids) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *CopyFileRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&CopyFileRequest{`, + `Path:` + fmt.Sprintf("%v", this.Path) + `,`, + `FileSize:` + fmt.Sprintf("%v", this.FileSize) + `,`, + `FileMode:` + fmt.Sprintf("%v", this.FileMode) + `,`, + `DirMode:` + fmt.Sprintf("%v", this.DirMode) + `,`, + `Uid:` + fmt.Sprintf("%v", this.Uid) + `,`, + `Gid:` + fmt.Sprintf("%v", this.Gid) + `,`, + `Offset:` + fmt.Sprintf("%v", this.Offset) + `,`, + `Data:` + fmt.Sprintf("%v", this.Data) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *StartTracingRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&StartTracingRequest{`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *StopTracingRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&StopTracingRequest{`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func valueToStringAgent(v interface{}) string { + rv := reflect.ValueOf(v) + if rv.IsNil() { + return "nil" + } + pv := reflect.Indirect(rv).Interface() + return fmt.Sprintf("*%v", pv) +} + +type AgentServiceService interface { + CreateContainer(ctx context.Context, req *CreateContainerRequest) (*types1.Empty, error) + StartContainer(ctx context.Context, req *StartContainerRequest) (*types1.Empty, error) + RemoveContainer(ctx context.Context, req *RemoveContainerRequest) (*types1.Empty, error) + ExecProcess(ctx context.Context, req *ExecProcessRequest) (*types1.Empty, error) + SignalProcess(ctx context.Context, req *SignalProcessRequest) (*types1.Empty, error) + WaitProcess(ctx context.Context, req *WaitProcessRequest) (*WaitProcessResponse, error) + ListProcesses(ctx context.Context, req *ListProcessesRequest) (*ListProcessesResponse, error) + UpdateContainer(ctx context.Context, req *UpdateContainerRequest) (*types1.Empty, error) + StatsContainer(ctx context.Context, req *StatsContainerRequest) (*StatsContainerResponse, error) + PauseContainer(ctx context.Context, req *PauseContainerRequest) (*types1.Empty, error) + ResumeContainer(ctx context.Context, req *ResumeContainerRequest) (*types1.Empty, error) + WriteStdin(ctx context.Context, req *WriteStreamRequest) (*WriteStreamResponse, error) + ReadStdout(ctx context.Context, req *ReadStreamRequest) (*ReadStreamResponse, error) + ReadStderr(ctx context.Context, req *ReadStreamRequest) (*ReadStreamResponse, error) + CloseStdin(ctx context.Context, req *CloseStdinRequest) (*types1.Empty, error) + TtyWinResize(ctx context.Context, req *TtyWinResizeRequest) (*types1.Empty, error) + UpdateInterface(ctx context.Context, req *UpdateInterfaceRequest) (*types.Interface, error) + UpdateRoutes(ctx context.Context, req *UpdateRoutesRequest) (*Routes, error) + ListInterfaces(ctx context.Context, req *ListInterfacesRequest) (*Interfaces, error) + ListRoutes(ctx context.Context, req *ListRoutesRequest) (*Routes, error) + StartTracing(ctx context.Context, req *StartTracingRequest) (*types1.Empty, error) + StopTracing(ctx context.Context, req *StopTracingRequest) (*types1.Empty, error) + CreateSandbox(ctx context.Context, req *CreateSandboxRequest) (*types1.Empty, error) + DestroySandbox(ctx context.Context, req *DestroySandboxRequest) (*types1.Empty, error) + OnlineCPUMem(ctx context.Context, req *OnlineCPUMemRequest) (*types1.Empty, error) + ReseedRandomDev(ctx context.Context, req *ReseedRandomDevRequest) (*types1.Empty, error) + GetGuestDetails(ctx context.Context, req *GuestDetailsRequest) (*GuestDetailsResponse, error) + MemHotplugByProbe(ctx context.Context, req *MemHotplugByProbeRequest) (*types1.Empty, error) + SetGuestDateTime(ctx context.Context, req *SetGuestDateTimeRequest) (*types1.Empty, error) + CopyFile(ctx context.Context, req *CopyFileRequest) (*types1.Empty, error) +} + +func RegisterAgentServiceService(srv *github_com_containerd_ttrpc.Server, svc AgentServiceService) { + srv.Register("grpc.AgentService", map[string]github_com_containerd_ttrpc.Method{ + "CreateContainer": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { + var req CreateContainerRequest + if err := unmarshal(&req); err != nil { + return nil, err + } + return svc.CreateContainer(ctx, &req) + }, + "StartContainer": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { + var req StartContainerRequest + if err := unmarshal(&req); err != nil { + return nil, err + } + return svc.StartContainer(ctx, &req) + }, + "RemoveContainer": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { + var req RemoveContainerRequest + if err := unmarshal(&req); err != nil { + return nil, err + } + return svc.RemoveContainer(ctx, &req) + }, + "ExecProcess": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { + var req ExecProcessRequest + if err := unmarshal(&req); err != nil { + return nil, err + } + return svc.ExecProcess(ctx, &req) + }, + "SignalProcess": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { + var req SignalProcessRequest + if err := unmarshal(&req); err != nil { + return nil, err + } + return svc.SignalProcess(ctx, &req) + }, + "WaitProcess": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { + var req WaitProcessRequest + if err := unmarshal(&req); err != nil { + return nil, err + } + return svc.WaitProcess(ctx, &req) + }, + "ListProcesses": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { + var req ListProcessesRequest + if err := unmarshal(&req); err != nil { + return nil, err + } + return svc.ListProcesses(ctx, &req) + }, + "UpdateContainer": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { + var req UpdateContainerRequest + if err := unmarshal(&req); err != nil { + return nil, err + } + return svc.UpdateContainer(ctx, &req) + }, + "StatsContainer": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { + var req StatsContainerRequest + if err := unmarshal(&req); err != nil { + return nil, err + } + return svc.StatsContainer(ctx, &req) + }, + "PauseContainer": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { + var req PauseContainerRequest + if err := unmarshal(&req); err != nil { + return nil, err + } + return svc.PauseContainer(ctx, &req) + }, + "ResumeContainer": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { + var req ResumeContainerRequest + if err := unmarshal(&req); err != nil { + return nil, err + } + return svc.ResumeContainer(ctx, &req) + }, + "WriteStdin": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { + var req WriteStreamRequest + if err := unmarshal(&req); err != nil { + return nil, err + } + return svc.WriteStdin(ctx, &req) + }, + "ReadStdout": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { + var req ReadStreamRequest + if err := unmarshal(&req); err != nil { + return nil, err + } + return svc.ReadStdout(ctx, &req) + }, + "ReadStderr": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { + var req ReadStreamRequest + if err := unmarshal(&req); err != nil { + return nil, err + } + return svc.ReadStderr(ctx, &req) + }, + "CloseStdin": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { + var req CloseStdinRequest + if err := unmarshal(&req); err != nil { + return nil, err + } + return svc.CloseStdin(ctx, &req) + }, + "TtyWinResize": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { + var req TtyWinResizeRequest + if err := unmarshal(&req); err != nil { + return nil, err + } + return svc.TtyWinResize(ctx, &req) + }, + "UpdateInterface": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { + var req UpdateInterfaceRequest + if err := unmarshal(&req); err != nil { + return nil, err + } + return svc.UpdateInterface(ctx, &req) + }, + "UpdateRoutes": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { + var req UpdateRoutesRequest + if err := unmarshal(&req); err != nil { + return nil, err + } + return svc.UpdateRoutes(ctx, &req) + }, + "ListInterfaces": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { + var req ListInterfacesRequest + if err := unmarshal(&req); err != nil { + return nil, err + } + return svc.ListInterfaces(ctx, &req) + }, + "ListRoutes": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { + var req ListRoutesRequest + if err := unmarshal(&req); err != nil { + return nil, err + } + return svc.ListRoutes(ctx, &req) + }, + "StartTracing": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { + var req StartTracingRequest + if err := unmarshal(&req); err != nil { + return nil, err + } + return svc.StartTracing(ctx, &req) + }, + "StopTracing": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { + var req StopTracingRequest + if err := unmarshal(&req); err != nil { + return nil, err + } + return svc.StopTracing(ctx, &req) + }, + "CreateSandbox": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { + var req CreateSandboxRequest + if err := unmarshal(&req); err != nil { + return nil, err + } + return svc.CreateSandbox(ctx, &req) + }, + "DestroySandbox": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { + var req DestroySandboxRequest + if err := unmarshal(&req); err != nil { + return nil, err + } + return svc.DestroySandbox(ctx, &req) + }, + "OnlineCPUMem": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { + var req OnlineCPUMemRequest + if err := unmarshal(&req); err != nil { + return nil, err + } + return svc.OnlineCPUMem(ctx, &req) + }, + "ReseedRandomDev": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { + var req ReseedRandomDevRequest + if err := unmarshal(&req); err != nil { + return nil, err + } + return svc.ReseedRandomDev(ctx, &req) + }, + "GetGuestDetails": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { + var req GuestDetailsRequest + if err := unmarshal(&req); err != nil { + return nil, err + } + return svc.GetGuestDetails(ctx, &req) + }, + "MemHotplugByProbe": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { + var req MemHotplugByProbeRequest + if err := unmarshal(&req); err != nil { + return nil, err + } + return svc.MemHotplugByProbe(ctx, &req) + }, + "SetGuestDateTime": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { + var req SetGuestDateTimeRequest + if err := unmarshal(&req); err != nil { + return nil, err + } + return svc.SetGuestDateTime(ctx, &req) + }, + "CopyFile": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { + var req CopyFileRequest + if err := unmarshal(&req); err != nil { + return nil, err + } + return svc.CopyFile(ctx, &req) + }, + }) +} + +type agentServiceClient struct { + client *github_com_containerd_ttrpc.Client +} + +func NewAgentServiceClient(client *github_com_containerd_ttrpc.Client) AgentServiceService { + return &agentServiceClient{ + client: client, + } +} + +func (c *agentServiceClient) CreateContainer(ctx context.Context, req *CreateContainerRequest) (*types1.Empty, error) { + var resp types1.Empty + if err := c.client.Call(ctx, "grpc.AgentService", "CreateContainer", req, &resp); err != nil { + return nil, err + } + return &resp, nil +} + +func (c *agentServiceClient) StartContainer(ctx context.Context, req *StartContainerRequest) (*types1.Empty, error) { + var resp types1.Empty + if err := c.client.Call(ctx, "grpc.AgentService", "StartContainer", req, &resp); err != nil { + return nil, err + } + return &resp, nil +} + +func (c *agentServiceClient) RemoveContainer(ctx context.Context, req *RemoveContainerRequest) (*types1.Empty, error) { + var resp types1.Empty + if err := c.client.Call(ctx, "grpc.AgentService", "RemoveContainer", req, &resp); err != nil { + return nil, err + } + return &resp, nil +} + +func (c *agentServiceClient) ExecProcess(ctx context.Context, req *ExecProcessRequest) (*types1.Empty, error) { + var resp types1.Empty + if err := c.client.Call(ctx, "grpc.AgentService", "ExecProcess", req, &resp); err != nil { + return nil, err + } + return &resp, nil +} + +func (c *agentServiceClient) SignalProcess(ctx context.Context, req *SignalProcessRequest) (*types1.Empty, error) { + var resp types1.Empty + if err := c.client.Call(ctx, "grpc.AgentService", "SignalProcess", req, &resp); err != nil { + return nil, err + } + return &resp, nil +} + +func (c *agentServiceClient) WaitProcess(ctx context.Context, req *WaitProcessRequest) (*WaitProcessResponse, error) { + var resp WaitProcessResponse + if err := c.client.Call(ctx, "grpc.AgentService", "WaitProcess", req, &resp); err != nil { + return nil, err + } + return &resp, nil +} + +func (c *agentServiceClient) ListProcesses(ctx context.Context, req *ListProcessesRequest) (*ListProcessesResponse, error) { + var resp ListProcessesResponse + if err := c.client.Call(ctx, "grpc.AgentService", "ListProcesses", req, &resp); err != nil { + return nil, err + } + return &resp, nil +} + +func (c *agentServiceClient) UpdateContainer(ctx context.Context, req *UpdateContainerRequest) (*types1.Empty, error) { + var resp types1.Empty + if err := c.client.Call(ctx, "grpc.AgentService", "UpdateContainer", req, &resp); err != nil { + return nil, err + } + return &resp, nil +} + +func (c *agentServiceClient) StatsContainer(ctx context.Context, req *StatsContainerRequest) (*StatsContainerResponse, error) { + var resp StatsContainerResponse + if err := c.client.Call(ctx, "grpc.AgentService", "StatsContainer", req, &resp); err != nil { + return nil, err + } + return &resp, nil +} + +func (c *agentServiceClient) PauseContainer(ctx context.Context, req *PauseContainerRequest) (*types1.Empty, error) { + var resp types1.Empty + if err := c.client.Call(ctx, "grpc.AgentService", "PauseContainer", req, &resp); err != nil { + return nil, err + } + return &resp, nil +} + +func (c *agentServiceClient) ResumeContainer(ctx context.Context, req *ResumeContainerRequest) (*types1.Empty, error) { + var resp types1.Empty + if err := c.client.Call(ctx, "grpc.AgentService", "ResumeContainer", req, &resp); err != nil { + return nil, err + } + return &resp, nil +} + +func (c *agentServiceClient) WriteStdin(ctx context.Context, req *WriteStreamRequest) (*WriteStreamResponse, error) { + var resp WriteStreamResponse + if err := c.client.Call(ctx, "grpc.AgentService", "WriteStdin", req, &resp); err != nil { + return nil, err + } + return &resp, nil +} + +func (c *agentServiceClient) ReadStdout(ctx context.Context, req *ReadStreamRequest) (*ReadStreamResponse, error) { + var resp ReadStreamResponse + if err := c.client.Call(ctx, "grpc.AgentService", "ReadStdout", req, &resp); err != nil { + return nil, err + } + return &resp, nil +} + +func (c *agentServiceClient) ReadStderr(ctx context.Context, req *ReadStreamRequest) (*ReadStreamResponse, error) { + var resp ReadStreamResponse + if err := c.client.Call(ctx, "grpc.AgentService", "ReadStderr", req, &resp); err != nil { + return nil, err + } + return &resp, nil +} + +func (c *agentServiceClient) CloseStdin(ctx context.Context, req *CloseStdinRequest) (*types1.Empty, error) { + var resp types1.Empty + if err := c.client.Call(ctx, "grpc.AgentService", "CloseStdin", req, &resp); err != nil { + return nil, err + } + return &resp, nil +} + +func (c *agentServiceClient) TtyWinResize(ctx context.Context, req *TtyWinResizeRequest) (*types1.Empty, error) { + var resp types1.Empty + if err := c.client.Call(ctx, "grpc.AgentService", "TtyWinResize", req, &resp); err != nil { + return nil, err + } + return &resp, nil +} + +func (c *agentServiceClient) UpdateInterface(ctx context.Context, req *UpdateInterfaceRequest) (*types.Interface, error) { + var resp types.Interface + if err := c.client.Call(ctx, "grpc.AgentService", "UpdateInterface", req, &resp); err != nil { + return nil, err + } + return &resp, nil +} + +func (c *agentServiceClient) UpdateRoutes(ctx context.Context, req *UpdateRoutesRequest) (*Routes, error) { + var resp Routes + if err := c.client.Call(ctx, "grpc.AgentService", "UpdateRoutes", req, &resp); err != nil { + return nil, err + } + return &resp, nil +} + +func (c *agentServiceClient) ListInterfaces(ctx context.Context, req *ListInterfacesRequest) (*Interfaces, error) { + var resp Interfaces + if err := c.client.Call(ctx, "grpc.AgentService", "ListInterfaces", req, &resp); err != nil { + return nil, err + } + return &resp, nil +} + +func (c *agentServiceClient) ListRoutes(ctx context.Context, req *ListRoutesRequest) (*Routes, error) { + var resp Routes + if err := c.client.Call(ctx, "grpc.AgentService", "ListRoutes", req, &resp); err != nil { + return nil, err + } + return &resp, nil +} + +func (c *agentServiceClient) StartTracing(ctx context.Context, req *StartTracingRequest) (*types1.Empty, error) { + var resp types1.Empty + if err := c.client.Call(ctx, "grpc.AgentService", "StartTracing", req, &resp); err != nil { + return nil, err + } + return &resp, nil +} + +func (c *agentServiceClient) StopTracing(ctx context.Context, req *StopTracingRequest) (*types1.Empty, error) { + var resp types1.Empty + if err := c.client.Call(ctx, "grpc.AgentService", "StopTracing", req, &resp); err != nil { + return nil, err + } + return &resp, nil +} + +func (c *agentServiceClient) CreateSandbox(ctx context.Context, req *CreateSandboxRequest) (*types1.Empty, error) { + var resp types1.Empty + if err := c.client.Call(ctx, "grpc.AgentService", "CreateSandbox", req, &resp); err != nil { + return nil, err + } + return &resp, nil +} + +func (c *agentServiceClient) DestroySandbox(ctx context.Context, req *DestroySandboxRequest) (*types1.Empty, error) { + var resp types1.Empty + if err := c.client.Call(ctx, "grpc.AgentService", "DestroySandbox", req, &resp); err != nil { + return nil, err + } + return &resp, nil +} + +func (c *agentServiceClient) OnlineCPUMem(ctx context.Context, req *OnlineCPUMemRequest) (*types1.Empty, error) { + var resp types1.Empty + if err := c.client.Call(ctx, "grpc.AgentService", "OnlineCPUMem", req, &resp); err != nil { + return nil, err + } + return &resp, nil +} + +func (c *agentServiceClient) ReseedRandomDev(ctx context.Context, req *ReseedRandomDevRequest) (*types1.Empty, error) { + var resp types1.Empty + if err := c.client.Call(ctx, "grpc.AgentService", "ReseedRandomDev", req, &resp); err != nil { + return nil, err + } + return &resp, nil +} + +func (c *agentServiceClient) GetGuestDetails(ctx context.Context, req *GuestDetailsRequest) (*GuestDetailsResponse, error) { + var resp GuestDetailsResponse + if err := c.client.Call(ctx, "grpc.AgentService", "GetGuestDetails", req, &resp); err != nil { + return nil, err + } + return &resp, nil +} + +func (c *agentServiceClient) MemHotplugByProbe(ctx context.Context, req *MemHotplugByProbeRequest) (*types1.Empty, error) { + var resp types1.Empty + if err := c.client.Call(ctx, "grpc.AgentService", "MemHotplugByProbe", req, &resp); err != nil { + return nil, err + } + return &resp, nil +} + +func (c *agentServiceClient) SetGuestDateTime(ctx context.Context, req *SetGuestDateTimeRequest) (*types1.Empty, error) { + var resp types1.Empty + if err := c.client.Call(ctx, "grpc.AgentService", "SetGuestDateTime", req, &resp); err != nil { + return nil, err + } + return &resp, nil +} + +func (c *agentServiceClient) CopyFile(ctx context.Context, req *CopyFileRequest) (*types1.Empty, error) { + var resp types1.Empty + if err := c.client.Call(ctx, "grpc.AgentService", "CopyFile", req, &resp); err != nil { + return nil, err + } + return &resp, nil +} func (m *CreateContainerRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -6026,7 +7763,7 @@ func (m *CreateContainerRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6054,7 +7791,7 @@ func (m *CreateContainerRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6064,6 +7801,9 @@ func (m *CreateContainerRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6083,7 +7823,7 @@ func (m *CreateContainerRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6093,6 +7833,9 @@ func (m *CreateContainerRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6112,7 +7855,7 @@ func (m *CreateContainerRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6121,6 +7864,9 @@ func (m *CreateContainerRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6145,7 +7891,7 @@ func (m *CreateContainerRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6154,6 +7900,9 @@ func (m *CreateContainerRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6176,7 +7925,7 @@ func (m *CreateContainerRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6185,6 +7934,9 @@ func (m *CreateContainerRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6207,7 +7959,7 @@ func (m *CreateContainerRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6216,6 +7968,9 @@ func (m *CreateContainerRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6240,7 +7995,7 @@ func (m *CreateContainerRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6255,9 +8010,13 @@ func (m *CreateContainerRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthAgent } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6282,7 +8041,7 @@ func (m *StartContainerRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6310,7 +8069,7 @@ func (m *StartContainerRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6320,6 +8079,9 @@ func (m *StartContainerRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6334,9 +8096,13 @@ func (m *StartContainerRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthAgent } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6361,7 +8127,7 @@ func (m *RemoveContainerRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6389,7 +8155,7 @@ func (m *RemoveContainerRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6399,6 +8165,9 @@ func (m *RemoveContainerRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6418,7 +8187,7 @@ func (m *RemoveContainerRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Timeout |= (uint32(b) & 0x7F) << shift + m.Timeout |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -6432,9 +8201,13 @@ func (m *RemoveContainerRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthAgent } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6459,7 +8232,7 @@ func (m *ExecProcessRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6487,7 +8260,7 @@ func (m *ExecProcessRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6497,6 +8270,9 @@ func (m *ExecProcessRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6516,7 +8292,7 @@ func (m *ExecProcessRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6526,6 +8302,9 @@ func (m *ExecProcessRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6545,7 +8324,7 @@ func (m *ExecProcessRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6554,6 +8333,9 @@ func (m *ExecProcessRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6578,7 +8360,7 @@ func (m *ExecProcessRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6587,6 +8369,9 @@ func (m *ExecProcessRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6606,9 +8391,13 @@ func (m *ExecProcessRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthAgent } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6633,7 +8422,7 @@ func (m *SignalProcessRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6661,7 +8450,7 @@ func (m *SignalProcessRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6671,6 +8460,9 @@ func (m *SignalProcessRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6690,7 +8482,7 @@ func (m *SignalProcessRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6700,6 +8492,9 @@ func (m *SignalProcessRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6719,7 +8514,7 @@ func (m *SignalProcessRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Signal |= (uint32(b) & 0x7F) << shift + m.Signal |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -6733,9 +8528,13 @@ func (m *SignalProcessRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthAgent } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6760,7 +8559,7 @@ func (m *WaitProcessRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6788,7 +8587,7 @@ func (m *WaitProcessRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6798,6 +8597,9 @@ func (m *WaitProcessRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6817,7 +8619,7 @@ func (m *WaitProcessRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6827,6 +8629,9 @@ func (m *WaitProcessRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6841,9 +8646,13 @@ func (m *WaitProcessRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthAgent } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6868,7 +8677,7 @@ func (m *WaitProcessResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6896,7 +8705,7 @@ func (m *WaitProcessResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Status |= (int32(b) & 0x7F) << shift + m.Status |= int32(b&0x7F) << shift if b < 0x80 { break } @@ -6910,9 +8719,13 @@ func (m *WaitProcessResponse) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthAgent } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6937,7 +8750,7 @@ func (m *ListProcessesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6965,7 +8778,7 @@ func (m *ListProcessesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6975,6 +8788,9 @@ func (m *ListProcessesRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6994,7 +8810,7 @@ func (m *ListProcessesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7004,6 +8820,9 @@ func (m *ListProcessesRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7023,7 +8842,7 @@ func (m *ListProcessesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7033,6 +8852,9 @@ func (m *ListProcessesRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7047,9 +8869,13 @@ func (m *ListProcessesRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthAgent } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7074,7 +8900,7 @@ func (m *ListProcessesResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7102,7 +8928,7 @@ func (m *ListProcessesResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7111,6 +8937,9 @@ func (m *ListProcessesResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7128,9 +8957,13 @@ func (m *ListProcessesResponse) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthAgent } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7155,7 +8988,7 @@ func (m *UpdateContainerRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7183,7 +9016,7 @@ func (m *UpdateContainerRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7193,6 +9026,9 @@ func (m *UpdateContainerRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7212,7 +9048,7 @@ func (m *UpdateContainerRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7221,6 +9057,9 @@ func (m *UpdateContainerRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7240,9 +9079,13 @@ func (m *UpdateContainerRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthAgent } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7267,7 +9110,7 @@ func (m *StatsContainerRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7295,7 +9138,7 @@ func (m *StatsContainerRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7305,6 +9148,9 @@ func (m *StatsContainerRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7319,9 +9165,13 @@ func (m *StatsContainerRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthAgent } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7346,7 +9196,7 @@ func (m *PauseContainerRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7374,7 +9224,7 @@ func (m *PauseContainerRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7384,6 +9234,9 @@ func (m *PauseContainerRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7398,9 +9251,13 @@ func (m *PauseContainerRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthAgent } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7425,7 +9282,7 @@ func (m *ResumeContainerRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7453,7 +9310,7 @@ func (m *ResumeContainerRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7463,6 +9320,9 @@ func (m *ResumeContainerRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7477,9 +9337,13 @@ func (m *ResumeContainerRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthAgent } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7504,7 +9368,7 @@ func (m *CpuUsage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7532,7 +9396,7 @@ func (m *CpuUsage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TotalUsage |= (uint64(b) & 0x7F) << shift + m.TotalUsage |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7549,7 +9413,7 @@ func (m *CpuUsage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7566,7 +9430,7 @@ func (m *CpuUsage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7575,9 +9439,23 @@ func (m *CpuUsage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.PercpuUsage) == 0 { + m.PercpuUsage = make([]uint64, 0, elementCount) + } for iNdEx < postIndex { var v uint64 for shift := uint(0); ; shift += 7 { @@ -7589,7 +9467,7 @@ func (m *CpuUsage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7613,7 +9491,7 @@ func (m *CpuUsage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.UsageInKernelmode |= (uint64(b) & 0x7F) << shift + m.UsageInKernelmode |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7632,7 +9510,7 @@ func (m *CpuUsage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.UsageInUsermode |= (uint64(b) & 0x7F) << shift + m.UsageInUsermode |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7646,9 +9524,13 @@ func (m *CpuUsage) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthAgent } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7673,7 +9555,7 @@ func (m *ThrottlingData) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7701,7 +9583,7 @@ func (m *ThrottlingData) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Periods |= (uint64(b) & 0x7F) << shift + m.Periods |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7720,7 +9602,7 @@ func (m *ThrottlingData) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ThrottledPeriods |= (uint64(b) & 0x7F) << shift + m.ThrottledPeriods |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7739,7 +9621,7 @@ func (m *ThrottlingData) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ThrottledTime |= (uint64(b) & 0x7F) << shift + m.ThrottledTime |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7753,9 +9635,13 @@ func (m *ThrottlingData) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthAgent } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7780,7 +9666,7 @@ func (m *CpuStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7808,7 +9694,7 @@ func (m *CpuStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7817,6 +9703,9 @@ func (m *CpuStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7841,7 +9730,7 @@ func (m *CpuStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7850,6 +9739,9 @@ func (m *CpuStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7869,9 +9761,13 @@ func (m *CpuStats) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthAgent } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7896,7 +9792,7 @@ func (m *PidsStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7924,7 +9820,7 @@ func (m *PidsStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Current |= (uint64(b) & 0x7F) << shift + m.Current |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7943,7 +9839,7 @@ func (m *PidsStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Limit |= (uint64(b) & 0x7F) << shift + m.Limit |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7957,9 +9853,13 @@ func (m *PidsStats) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthAgent } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7984,7 +9884,7 @@ func (m *MemoryData) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8012,7 +9912,7 @@ func (m *MemoryData) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Usage |= (uint64(b) & 0x7F) << shift + m.Usage |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8031,7 +9931,7 @@ func (m *MemoryData) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MaxUsage |= (uint64(b) & 0x7F) << shift + m.MaxUsage |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8050,7 +9950,7 @@ func (m *MemoryData) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Failcnt |= (uint64(b) & 0x7F) << shift + m.Failcnt |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8069,7 +9969,7 @@ func (m *MemoryData) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Limit |= (uint64(b) & 0x7F) << shift + m.Limit |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8083,9 +9983,13 @@ func (m *MemoryData) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthAgent } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8110,7 +10014,7 @@ func (m *MemoryStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8138,7 +10042,7 @@ func (m *MemoryStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Cache |= (uint64(b) & 0x7F) << shift + m.Cache |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8157,7 +10061,7 @@ func (m *MemoryStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8166,6 +10070,9 @@ func (m *MemoryStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8190,7 +10097,7 @@ func (m *MemoryStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8199,6 +10106,9 @@ func (m *MemoryStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8223,7 +10133,7 @@ func (m *MemoryStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8232,6 +10142,9 @@ func (m *MemoryStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8256,7 +10169,7 @@ func (m *MemoryStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8276,7 +10189,7 @@ func (m *MemoryStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8285,6 +10198,9 @@ func (m *MemoryStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8305,7 +10221,7 @@ func (m *MemoryStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8322,7 +10238,7 @@ func (m *MemoryStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLenmapkey |= (uint64(b) & 0x7F) << shift + stringLenmapkey |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8332,6 +10248,9 @@ func (m *MemoryStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthAgent + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -8347,7 +10266,7 @@ func (m *MemoryStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - mapvalue |= (uint64(b) & 0x7F) << shift + mapvalue |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8378,9 +10297,13 @@ func (m *MemoryStats) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthAgent } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8405,7 +10328,7 @@ func (m *BlkioStatsEntry) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8433,7 +10356,7 @@ func (m *BlkioStatsEntry) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Major |= (uint64(b) & 0x7F) << shift + m.Major |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8452,7 +10375,7 @@ func (m *BlkioStatsEntry) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Minor |= (uint64(b) & 0x7F) << shift + m.Minor |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8471,7 +10394,7 @@ func (m *BlkioStatsEntry) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8481,6 +10404,9 @@ func (m *BlkioStatsEntry) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8500,7 +10426,7 @@ func (m *BlkioStatsEntry) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Value |= (uint64(b) & 0x7F) << shift + m.Value |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8514,9 +10440,13 @@ func (m *BlkioStatsEntry) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthAgent } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8541,7 +10471,7 @@ func (m *BlkioStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8569,7 +10499,7 @@ func (m *BlkioStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8578,6 +10508,9 @@ func (m *BlkioStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8600,7 +10533,7 @@ func (m *BlkioStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8609,6 +10542,9 @@ func (m *BlkioStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8631,7 +10567,7 @@ func (m *BlkioStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8640,6 +10576,9 @@ func (m *BlkioStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8662,7 +10601,7 @@ func (m *BlkioStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8671,6 +10610,9 @@ func (m *BlkioStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8693,7 +10635,7 @@ func (m *BlkioStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8702,6 +10644,9 @@ func (m *BlkioStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8724,7 +10669,7 @@ func (m *BlkioStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8733,6 +10678,9 @@ func (m *BlkioStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8755,7 +10703,7 @@ func (m *BlkioStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8764,6 +10712,9 @@ func (m *BlkioStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8786,7 +10737,7 @@ func (m *BlkioStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8795,6 +10746,9 @@ func (m *BlkioStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8812,9 +10766,13 @@ func (m *BlkioStats) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthAgent } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8839,7 +10797,7 @@ func (m *HugetlbStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8867,7 +10825,7 @@ func (m *HugetlbStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Usage |= (uint64(b) & 0x7F) << shift + m.Usage |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8886,7 +10844,7 @@ func (m *HugetlbStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MaxUsage |= (uint64(b) & 0x7F) << shift + m.MaxUsage |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8905,7 +10863,7 @@ func (m *HugetlbStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Failcnt |= (uint64(b) & 0x7F) << shift + m.Failcnt |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8919,9 +10877,13 @@ func (m *HugetlbStats) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthAgent } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8946,7 +10908,7 @@ func (m *CgroupStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8974,7 +10936,7 @@ func (m *CgroupStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8983,6 +10945,9 @@ func (m *CgroupStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9007,7 +10972,7 @@ func (m *CgroupStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9016,6 +10981,9 @@ func (m *CgroupStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9040,7 +11008,7 @@ func (m *CgroupStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9049,6 +11017,9 @@ func (m *CgroupStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9073,7 +11044,7 @@ func (m *CgroupStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9082,6 +11053,9 @@ func (m *CgroupStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9106,7 +11080,7 @@ func (m *CgroupStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9115,6 +11089,9 @@ func (m *CgroupStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9135,7 +11112,7 @@ func (m *CgroupStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9152,7 +11129,7 @@ func (m *CgroupStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLenmapkey |= (uint64(b) & 0x7F) << shift + stringLenmapkey |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9162,6 +11139,9 @@ func (m *CgroupStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthAgent + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -9178,7 +11158,7 @@ func (m *CgroupStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - mapmsglen |= (int(b) & 0x7F) << shift + mapmsglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9187,7 +11167,7 @@ func (m *CgroupStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthAgent } if postmsgIndex > l { @@ -9224,9 +11204,13 @@ func (m *CgroupStats) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthAgent } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9251,7 +11235,7 @@ func (m *NetworkStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9279,7 +11263,7 @@ func (m *NetworkStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9289,6 +11273,9 @@ func (m *NetworkStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9308,7 +11295,7 @@ func (m *NetworkStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RxBytes |= (uint64(b) & 0x7F) << shift + m.RxBytes |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9327,7 +11314,7 @@ func (m *NetworkStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RxPackets |= (uint64(b) & 0x7F) << shift + m.RxPackets |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9346,7 +11333,7 @@ func (m *NetworkStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RxErrors |= (uint64(b) & 0x7F) << shift + m.RxErrors |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9365,7 +11352,7 @@ func (m *NetworkStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RxDropped |= (uint64(b) & 0x7F) << shift + m.RxDropped |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9384,7 +11371,7 @@ func (m *NetworkStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TxBytes |= (uint64(b) & 0x7F) << shift + m.TxBytes |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9403,7 +11390,7 @@ func (m *NetworkStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TxPackets |= (uint64(b) & 0x7F) << shift + m.TxPackets |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9422,7 +11409,7 @@ func (m *NetworkStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TxErrors |= (uint64(b) & 0x7F) << shift + m.TxErrors |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9441,7 +11428,7 @@ func (m *NetworkStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TxDropped |= (uint64(b) & 0x7F) << shift + m.TxDropped |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9455,9 +11442,13 @@ func (m *NetworkStats) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthAgent } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9482,7 +11473,7 @@ func (m *StatsContainerResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9510,7 +11501,7 @@ func (m *StatsContainerResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9519,6 +11510,9 @@ func (m *StatsContainerResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9543,7 +11537,7 @@ func (m *StatsContainerResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9552,6 +11546,9 @@ func (m *StatsContainerResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9569,9 +11566,13 @@ func (m *StatsContainerResponse) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthAgent } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9596,7 +11597,7 @@ func (m *WriteStreamRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9624,7 +11625,7 @@ func (m *WriteStreamRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9634,6 +11635,9 @@ func (m *WriteStreamRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9653,7 +11657,7 @@ func (m *WriteStreamRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9663,6 +11667,9 @@ func (m *WriteStreamRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9682,7 +11689,7 @@ func (m *WriteStreamRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9691,6 +11698,9 @@ func (m *WriteStreamRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9708,9 +11718,13 @@ func (m *WriteStreamRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthAgent } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9735,7 +11749,7 @@ func (m *WriteStreamResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9763,7 +11777,7 @@ func (m *WriteStreamResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Len |= (uint32(b) & 0x7F) << shift + m.Len |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -9777,9 +11791,13 @@ func (m *WriteStreamResponse) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthAgent } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9804,7 +11822,7 @@ func (m *ReadStreamRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9832,7 +11850,7 @@ func (m *ReadStreamRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9842,6 +11860,9 @@ func (m *ReadStreamRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9861,7 +11882,7 @@ func (m *ReadStreamRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9871,6 +11892,9 @@ func (m *ReadStreamRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9890,7 +11914,7 @@ func (m *ReadStreamRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Len |= (uint32(b) & 0x7F) << shift + m.Len |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -9904,9 +11928,13 @@ func (m *ReadStreamRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthAgent } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9931,7 +11959,7 @@ func (m *ReadStreamResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9959,7 +11987,7 @@ func (m *ReadStreamResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9968,6 +11996,9 @@ func (m *ReadStreamResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9985,9 +12016,13 @@ func (m *ReadStreamResponse) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthAgent } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -10012,7 +12047,7 @@ func (m *CloseStdinRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10040,7 +12075,7 @@ func (m *CloseStdinRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10050,6 +12085,9 @@ func (m *CloseStdinRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10069,7 +12107,7 @@ func (m *CloseStdinRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10079,6 +12117,9 @@ func (m *CloseStdinRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10093,9 +12134,13 @@ func (m *CloseStdinRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthAgent } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -10120,7 +12165,7 @@ func (m *TtyWinResizeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10148,7 +12193,7 @@ func (m *TtyWinResizeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10158,6 +12203,9 @@ func (m *TtyWinResizeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10177,7 +12225,7 @@ func (m *TtyWinResizeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10187,6 +12235,9 @@ func (m *TtyWinResizeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10206,7 +12257,7 @@ func (m *TtyWinResizeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Row |= (uint32(b) & 0x7F) << shift + m.Row |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -10225,7 +12276,7 @@ func (m *TtyWinResizeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Column |= (uint32(b) & 0x7F) << shift + m.Column |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -10239,9 +12290,13 @@ func (m *TtyWinResizeRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthAgent } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -10266,7 +12321,7 @@ func (m *KernelModule) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10294,7 +12349,7 @@ func (m *KernelModule) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10304,6 +12359,9 @@ func (m *KernelModule) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10323,7 +12381,7 @@ func (m *KernelModule) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10333,6 +12391,9 @@ func (m *KernelModule) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10347,9 +12408,13 @@ func (m *KernelModule) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthAgent } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -10374,7 +12439,7 @@ func (m *CreateSandboxRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10402,7 +12467,7 @@ func (m *CreateSandboxRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10412,6 +12477,9 @@ func (m *CreateSandboxRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10431,7 +12499,7 @@ func (m *CreateSandboxRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10441,6 +12509,9 @@ func (m *CreateSandboxRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10460,7 +12531,7 @@ func (m *CreateSandboxRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -10469,6 +12540,9 @@ func (m *CreateSandboxRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10491,7 +12565,7 @@ func (m *CreateSandboxRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -10511,7 +12585,7 @@ func (m *CreateSandboxRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10521,6 +12595,9 @@ func (m *CreateSandboxRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10540,7 +12617,7 @@ func (m *CreateSandboxRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10550,6 +12627,9 @@ func (m *CreateSandboxRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10569,7 +12649,7 @@ func (m *CreateSandboxRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -10578,6 +12658,9 @@ func (m *CreateSandboxRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10595,9 +12678,13 @@ func (m *CreateSandboxRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthAgent } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -10622,7 +12709,7 @@ func (m *DestroySandboxRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10645,9 +12732,13 @@ func (m *DestroySandboxRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthAgent } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -10672,7 +12763,7 @@ func (m *Interfaces) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10700,7 +12791,7 @@ func (m *Interfaces) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -10709,6 +12800,9 @@ func (m *Interfaces) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10726,9 +12820,13 @@ func (m *Interfaces) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthAgent } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -10753,7 +12851,7 @@ func (m *Routes) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10781,7 +12879,7 @@ func (m *Routes) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -10790,6 +12888,9 @@ func (m *Routes) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10807,9 +12908,13 @@ func (m *Routes) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthAgent } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -10834,7 +12939,7 @@ func (m *UpdateInterfaceRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10862,7 +12967,7 @@ func (m *UpdateInterfaceRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -10871,6 +12976,9 @@ func (m *UpdateInterfaceRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10890,9 +12998,13 @@ func (m *UpdateInterfaceRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthAgent } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -10917,7 +13029,7 @@ func (m *UpdateRoutesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10945,7 +13057,7 @@ func (m *UpdateRoutesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -10954,6 +13066,9 @@ func (m *UpdateRoutesRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10973,9 +13088,13 @@ func (m *UpdateRoutesRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthAgent } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -11000,7 +13119,7 @@ func (m *ListInterfacesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11023,9 +13142,13 @@ func (m *ListInterfacesRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthAgent } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -11050,7 +13173,7 @@ func (m *ListRoutesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11073,9 +13196,13 @@ func (m *ListRoutesRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthAgent } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -11100,7 +13227,7 @@ func (m *OnlineCPUMemRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11128,7 +13255,7 @@ func (m *OnlineCPUMemRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -11148,7 +13275,7 @@ func (m *OnlineCPUMemRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.NbCpus |= (uint32(b) & 0x7F) << shift + m.NbCpus |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -11167,7 +13294,7 @@ func (m *OnlineCPUMemRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -11182,9 +13309,13 @@ func (m *OnlineCPUMemRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthAgent } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -11209,7 +13340,7 @@ func (m *ReseedRandomDevRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11237,7 +13368,7 @@ func (m *ReseedRandomDevRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -11246,6 +13377,9 @@ func (m *ReseedRandomDevRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11263,9 +13397,13 @@ func (m *ReseedRandomDevRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthAgent } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -11290,7 +13428,7 @@ func (m *AgentDetails) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11318,7 +13456,7 @@ func (m *AgentDetails) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11328,6 +13466,9 @@ func (m *AgentDetails) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11347,7 +13488,7 @@ func (m *AgentDetails) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -11367,7 +13508,7 @@ func (m *AgentDetails) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11377,6 +13518,9 @@ func (m *AgentDetails) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11396,7 +13540,7 @@ func (m *AgentDetails) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11406,6 +13550,9 @@ func (m *AgentDetails) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11425,7 +13572,7 @@ func (m *AgentDetails) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -11440,9 +13587,13 @@ func (m *AgentDetails) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthAgent } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -11467,7 +13618,7 @@ func (m *GuestDetailsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11495,7 +13646,7 @@ func (m *GuestDetailsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -11515,7 +13666,7 @@ func (m *GuestDetailsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -11530,9 +13681,13 @@ func (m *GuestDetailsRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthAgent } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -11557,7 +13712,7 @@ func (m *GuestDetailsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11585,7 +13740,7 @@ func (m *GuestDetailsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MemBlockSizeBytes |= (uint64(b) & 0x7F) << shift + m.MemBlockSizeBytes |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11604,7 +13759,7 @@ func (m *GuestDetailsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -11613,6 +13768,9 @@ func (m *GuestDetailsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11637,7 +13795,7 @@ func (m *GuestDetailsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -11652,9 +13810,13 @@ func (m *GuestDetailsResponse) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthAgent } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -11679,7 +13841,7 @@ func (m *MemHotplugByProbeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11705,7 +13867,7 @@ func (m *MemHotplugByProbeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11722,7 +13884,7 @@ func (m *MemHotplugByProbeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -11731,9 +13893,23 @@ func (m *MemHotplugByProbeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.MemHotplugProbeAddr) == 0 { + m.MemHotplugProbeAddr = make([]uint64, 0, elementCount) + } for iNdEx < postIndex { var v uint64 for shift := uint(0); ; shift += 7 { @@ -11745,7 +13921,7 @@ func (m *MemHotplugByProbeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11764,9 +13940,13 @@ func (m *MemHotplugByProbeRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthAgent } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -11791,7 +13971,7 @@ func (m *SetGuestDateTimeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11819,7 +13999,7 @@ func (m *SetGuestDateTimeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Sec |= (int64(b) & 0x7F) << shift + m.Sec |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -11838,7 +14018,7 @@ func (m *SetGuestDateTimeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Usec |= (int64(b) & 0x7F) << shift + m.Usec |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -11852,9 +14032,13 @@ func (m *SetGuestDateTimeRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthAgent } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -11879,7 +14063,7 @@ func (m *Storage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11907,7 +14091,7 @@ func (m *Storage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11917,6 +14101,9 @@ func (m *Storage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11936,7 +14123,7 @@ func (m *Storage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11946,6 +14133,9 @@ func (m *Storage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11965,7 +14155,7 @@ func (m *Storage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11975,6 +14165,9 @@ func (m *Storage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11994,7 +14187,7 @@ func (m *Storage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12004,6 +14197,9 @@ func (m *Storage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12023,7 +14219,7 @@ func (m *Storage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12033,6 +14229,9 @@ func (m *Storage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12052,7 +14251,7 @@ func (m *Storage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12062,6 +14261,9 @@ func (m *Storage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12076,9 +14278,13 @@ func (m *Storage) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthAgent } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -12103,7 +14309,7 @@ func (m *Device) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12131,7 +14337,7 @@ func (m *Device) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12141,6 +14347,9 @@ func (m *Device) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12160,7 +14369,7 @@ func (m *Device) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12170,6 +14379,9 @@ func (m *Device) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12189,7 +14401,7 @@ func (m *Device) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12199,6 +14411,9 @@ func (m *Device) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12218,7 +14433,7 @@ func (m *Device) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12228,6 +14443,9 @@ func (m *Device) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12247,7 +14465,7 @@ func (m *Device) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12257,6 +14475,9 @@ func (m *Device) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12271,9 +14492,13 @@ func (m *Device) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthAgent } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -12298,7 +14523,7 @@ func (m *StringUser) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12326,7 +14551,7 @@ func (m *StringUser) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12336,6 +14561,9 @@ func (m *StringUser) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12355,7 +14583,7 @@ func (m *StringUser) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12365,6 +14593,9 @@ func (m *StringUser) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12384,7 +14615,7 @@ func (m *StringUser) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12394,6 +14625,9 @@ func (m *StringUser) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12408,9 +14642,13 @@ func (m *StringUser) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthAgent } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -12435,7 +14673,7 @@ func (m *CopyFileRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12463,7 +14701,7 @@ func (m *CopyFileRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12473,6 +14711,9 @@ func (m *CopyFileRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12492,7 +14733,7 @@ func (m *CopyFileRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.FileSize |= (int64(b) & 0x7F) << shift + m.FileSize |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -12511,7 +14752,7 @@ func (m *CopyFileRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.FileMode |= (uint32(b) & 0x7F) << shift + m.FileMode |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -12530,7 +14771,7 @@ func (m *CopyFileRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.DirMode |= (uint32(b) & 0x7F) << shift + m.DirMode |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -12549,7 +14790,7 @@ func (m *CopyFileRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Uid |= (int32(b) & 0x7F) << shift + m.Uid |= int32(b&0x7F) << shift if b < 0x80 { break } @@ -12568,7 +14809,7 @@ func (m *CopyFileRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Gid |= (int32(b) & 0x7F) << shift + m.Gid |= int32(b&0x7F) << shift if b < 0x80 { break } @@ -12587,7 +14828,7 @@ func (m *CopyFileRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Offset |= (int64(b) & 0x7F) << shift + m.Offset |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -12606,7 +14847,7 @@ func (m *CopyFileRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -12615,6 +14856,9 @@ func (m *CopyFileRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAgent } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12632,9 +14876,13 @@ func (m *CopyFileRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthAgent } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -12659,7 +14907,7 @@ func (m *StartTracingRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12682,9 +14930,13 @@ func (m *StartTracingRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthAgent } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -12709,7 +14961,7 @@ func (m *StopTracingRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12732,9 +14984,13 @@ func (m *StopTracingRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthAgent } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -12747,6 +15003,7 @@ func (m *StopTracingRequest) Unmarshal(dAtA []byte) error { func skipAgent(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -12778,10 +15035,8 @@ func skipAgent(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -12798,238 +15053,34 @@ func skipAgent(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthAgent } - return iNdEx, nil + iNdEx += length case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowAgent - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipAgent(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupAgent + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthAgent + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthAgent = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowAgent = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthAgent = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowAgent = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupAgent = fmt.Errorf("proto: unexpected end of group") ) - -func init() { proto.RegisterFile("agent.proto", fileDescriptorAgent) } - -var fileDescriptorAgent = []byte{ - // 2862 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x39, 0x4b, 0x6f, 0x1c, 0xc7, - 0xd1, 0xd8, 0x07, 0x97, 0xbb, 0xb5, 0x2f, 0x6e, 0x93, 0xa2, 0x56, 0x2b, 0x5b, 0x9f, 0x3c, 0xb6, - 0x65, 0xfa, 0x73, 0xbc, 0xb4, 0x65, 0x23, 0x7e, 0xc1, 0x11, 0xc4, 0x47, 0x44, 0xc6, 0x56, 0xc4, - 0x0c, 0x45, 0x38, 0x40, 0x10, 0x0c, 0x86, 0x33, 0xcd, 0x65, 0x9b, 0x3b, 0xd3, 0xe3, 0x9e, 0x1e, - 0x8a, 0xeb, 0x00, 0x39, 0x26, 0xb7, 0x5c, 0x02, 0xe4, 0x96, 0x3f, 0x10, 0xe4, 0x96, 0x63, 0xae, - 0x39, 0x18, 0x39, 0xe5, 0x17, 0x04, 0x81, 0x7f, 0x42, 0x7e, 0x41, 0xd0, 0xaf, 0x79, 0xec, 0x0e, - 0x29, 0x84, 0x20, 0x90, 0xcb, 0xa2, 0xab, 0xba, 0xba, 0x5e, 0xdd, 0x55, 0x53, 0x55, 0x0b, 0x6d, - 0x77, 0x82, 0x43, 0x3e, 0x8e, 0x18, 0xe5, 0x14, 0xd5, 0x27, 0x2c, 0xf2, 0x46, 0x2d, 0xea, 0x11, - 0x85, 0x18, 0xfd, 0x70, 0x42, 0xf8, 0x69, 0x72, 0x3c, 0xf6, 0x68, 0xb0, 0x79, 0xe6, 0x72, 0xf7, - 0x5d, 0x8f, 0x86, 0xdc, 0x25, 0x21, 0x66, 0xf1, 0xa6, 0x3c, 0xb8, 0x19, 0x9d, 0x4d, 0x36, 0xf9, - 0x2c, 0xc2, 0xb1, 0xfa, 0xd5, 0xe7, 0xee, 0x4e, 0x28, 0x9d, 0x4c, 0xf1, 0xa6, 0x84, 0x8e, 0x93, - 0x93, 0x4d, 0x1c, 0x44, 0x7c, 0xa6, 0x36, 0xad, 0x3f, 0x56, 0x61, 0x7d, 0x9b, 0x61, 0x97, 0xe3, - 0x6d, 0xc3, 0xcd, 0xc6, 0xdf, 0x24, 0x38, 0xe6, 0xe8, 0x35, 0xe8, 0xa4, 0x12, 0x1c, 0xe2, 0x0f, - 0x2b, 0xf7, 0x2b, 0x1b, 0x2d, 0xbb, 0x9d, 0xe2, 0xf6, 0x7d, 0x74, 0x1b, 0x96, 0xf1, 0x05, 0xf6, - 0xc4, 0x6e, 0x55, 0xee, 0x36, 0x04, 0xb8, 0xef, 0xa3, 0xf7, 0xa1, 0x1d, 0x73, 0x46, 0xc2, 0x89, - 0x93, 0xc4, 0x98, 0x0d, 0x6b, 0xf7, 0x2b, 0x1b, 0xed, 0x87, 0x2b, 0x63, 0x61, 0xd2, 0xf8, 0x50, - 0x6e, 0x1c, 0xc5, 0x98, 0xd9, 0x10, 0xa7, 0x6b, 0xf4, 0x00, 0x96, 0x7d, 0x7c, 0x4e, 0x3c, 0x1c, - 0x0f, 0xeb, 0xf7, 0x6b, 0x1b, 0xed, 0x87, 0x1d, 0x45, 0xbe, 0x23, 0x91, 0xb6, 0xd9, 0x44, 0x6f, - 0x43, 0x33, 0xe6, 0x94, 0xb9, 0x13, 0x1c, 0x0f, 0x97, 0x24, 0x61, 0xd7, 0xf0, 0x95, 0x58, 0x3b, - 0xdd, 0x46, 0xaf, 0x40, 0xed, 0xd9, 0xf6, 0xfe, 0xb0, 0x21, 0xa5, 0x83, 0xa6, 0x8a, 0xb0, 0x67, - 0x0b, 0x34, 0x7a, 0x1d, 0xba, 0xb1, 0x1b, 0xfa, 0xc7, 0xf4, 0xc2, 0x89, 0x88, 0x1f, 0xc6, 0xc3, - 0xe5, 0xfb, 0x95, 0x8d, 0xa6, 0xdd, 0xd1, 0xc8, 0x03, 0x81, 0xb3, 0x3e, 0x85, 0x5b, 0x87, 0xdc, - 0x65, 0xfc, 0x1a, 0xde, 0xb1, 0x8e, 0x60, 0xdd, 0xc6, 0x01, 0x3d, 0xbf, 0x96, 0x6b, 0x87, 0xb0, - 0xcc, 0x49, 0x80, 0x69, 0xc2, 0xa5, 0x6b, 0xbb, 0xb6, 0x01, 0xad, 0x3f, 0x57, 0x00, 0xed, 0x5e, - 0x60, 0xef, 0x80, 0x51, 0x0f, 0xc7, 0xf1, 0xff, 0xe8, 0xba, 0xde, 0x82, 0xe5, 0x48, 0x29, 0x30, - 0xac, 0x4b, 0x72, 0x7d, 0x0b, 0x46, 0x2b, 0xb3, 0x6b, 0x7d, 0x0d, 0x6b, 0x87, 0x64, 0x12, 0xba, - 0xd3, 0x1b, 0xd4, 0x77, 0x1d, 0x1a, 0xb1, 0xe4, 0x29, 0x55, 0xed, 0xda, 0x1a, 0xb2, 0x0e, 0x00, - 0x7d, 0xe5, 0x12, 0x7e, 0x73, 0x92, 0xac, 0x77, 0x61, 0xb5, 0xc0, 0x31, 0x8e, 0x68, 0x18, 0x63, - 0xa9, 0x00, 0x77, 0x79, 0x12, 0x4b, 0x66, 0x4b, 0xb6, 0x86, 0x2c, 0x0c, 0x6b, 0x5f, 0x92, 0xd8, - 0x90, 0xe3, 0xff, 0x46, 0x85, 0x75, 0x68, 0x9c, 0x50, 0x16, 0xb8, 0xdc, 0x68, 0xa0, 0x20, 0x84, - 0xa0, 0xee, 0xb2, 0x49, 0x3c, 0xac, 0xdd, 0xaf, 0x6d, 0xb4, 0x6c, 0xb9, 0x16, 0xaf, 0x72, 0x4e, - 0x8c, 0xd6, 0xeb, 0x35, 0xe8, 0x68, 0xbf, 0x3b, 0x53, 0x12, 0x73, 0x29, 0xa7, 0x63, 0xb7, 0x35, - 0x4e, 0x9c, 0xb1, 0x28, 0xac, 0x1f, 0x45, 0xfe, 0x35, 0x03, 0xfe, 0x21, 0xb4, 0x18, 0x8e, 0x69, - 0xc2, 0x44, 0x98, 0x56, 0xe5, 0xbd, 0xaf, 0xa9, 0x7b, 0xff, 0x92, 0x84, 0xc9, 0x85, 0x6d, 0xf6, - 0xec, 0x8c, 0x4c, 0x87, 0x10, 0x8f, 0xaf, 0x13, 0x42, 0x9f, 0xc2, 0xad, 0x03, 0x37, 0x89, 0xaf, - 0xa3, 0xab, 0xf5, 0x99, 0x08, 0xbf, 0x38, 0x09, 0xae, 0x75, 0xf8, 0x4f, 0x15, 0x68, 0x6e, 0x47, - 0xc9, 0x51, 0xec, 0x4e, 0x30, 0xfa, 0x3f, 0x68, 0x73, 0xca, 0xdd, 0xa9, 0x93, 0x08, 0x50, 0x92, - 0xd7, 0x6d, 0x90, 0x28, 0x45, 0x20, 0xdc, 0x8e, 0x99, 0x17, 0x25, 0x9a, 0xa2, 0x7a, 0xbf, 0xb6, - 0x51, 0xb7, 0xdb, 0x0a, 0xa7, 0x48, 0xc6, 0xb0, 0x2a, 0xf7, 0x1c, 0x12, 0x3a, 0x67, 0x98, 0x85, - 0x78, 0x1a, 0x50, 0x1f, 0xcb, 0xf7, 0x5b, 0xb7, 0x07, 0x72, 0x6b, 0x3f, 0xfc, 0x22, 0xdd, 0x40, - 0xff, 0x0f, 0x83, 0x94, 0x5e, 0x04, 0xa5, 0xa4, 0xae, 0x4b, 0xea, 0xbe, 0xa6, 0x3e, 0xd2, 0x68, - 0xeb, 0xd7, 0xd0, 0x7b, 0x7e, 0xca, 0x28, 0xe7, 0x53, 0x12, 0x4e, 0x76, 0x5c, 0xee, 0x8a, 0xec, - 0x11, 0x61, 0x46, 0xa8, 0x1f, 0x6b, 0x6d, 0x0d, 0x88, 0xde, 0x81, 0x01, 0x57, 0xb4, 0xd8, 0x77, - 0x0c, 0x4d, 0x55, 0xd2, 0xac, 0xa4, 0x1b, 0x07, 0x9a, 0xf8, 0x4d, 0xe8, 0x65, 0xc4, 0x22, 0xff, - 0x68, 0x7d, 0xbb, 0x29, 0xf6, 0x39, 0x09, 0xb0, 0x75, 0x2e, 0x7d, 0x25, 0x2f, 0x19, 0xbd, 0x03, - 0xad, 0xcc, 0x0f, 0x15, 0xf9, 0x42, 0x7a, 0xea, 0x85, 0x18, 0x77, 0xda, 0xcd, 0xd4, 0x29, 0x9f, - 0x43, 0x9f, 0xa7, 0x8a, 0x3b, 0xbe, 0xcb, 0xdd, 0xe2, 0xa3, 0x2a, 0x5a, 0x65, 0xf7, 0x78, 0x01, - 0xb6, 0x3e, 0x83, 0xd6, 0x01, 0xf1, 0x63, 0x25, 0x78, 0x08, 0xcb, 0x5e, 0xc2, 0x18, 0x0e, 0xb9, - 0x31, 0x59, 0x83, 0x68, 0x0d, 0x96, 0xa6, 0x24, 0x20, 0x5c, 0x9b, 0xa9, 0x00, 0x8b, 0x02, 0x3c, - 0xc5, 0x01, 0x65, 0x33, 0xe9, 0xb0, 0x35, 0x58, 0xca, 0x5f, 0xae, 0x02, 0xd0, 0x5d, 0x68, 0x05, - 0xee, 0x45, 0x7a, 0xa9, 0x62, 0xa7, 0x19, 0xb8, 0x17, 0x4a, 0xf9, 0x21, 0x2c, 0x9f, 0xb8, 0x64, - 0xea, 0x85, 0x5c, 0x7b, 0xc5, 0x80, 0x99, 0xc0, 0x7a, 0x5e, 0xe0, 0xdf, 0xaa, 0xd0, 0x56, 0x12, - 0x95, 0xc2, 0x6b, 0xb0, 0xe4, 0xb9, 0xde, 0x69, 0x2a, 0x52, 0x02, 0xe8, 0x81, 0x51, 0xa4, 0x9a, - 0x4f, 0xc2, 0x99, 0xa6, 0x46, 0xb5, 0x4d, 0x80, 0xf8, 0x85, 0x1b, 0x69, 0xdd, 0x6a, 0x97, 0x10, - 0xb7, 0x04, 0x8d, 0x52, 0xf7, 0x03, 0xe8, 0xa8, 0x77, 0xa7, 0x8f, 0xd4, 0x2f, 0x39, 0xd2, 0x56, - 0x54, 0xea, 0xd0, 0xeb, 0xd0, 0x4d, 0x62, 0xec, 0x9c, 0x12, 0xcc, 0x5c, 0xe6, 0x9d, 0xce, 0x86, - 0x4b, 0xea, 0x1b, 0x99, 0xc4, 0x78, 0xcf, 0xe0, 0xd0, 0x43, 0x58, 0x12, 0xe9, 0x2f, 0x1e, 0x36, - 0xe4, 0xe7, 0xf8, 0x95, 0x3c, 0x4b, 0x69, 0xea, 0x58, 0xfe, 0xee, 0x86, 0x9c, 0xcd, 0x6c, 0x45, - 0x3a, 0xfa, 0x18, 0x20, 0x43, 0xa2, 0x15, 0xa8, 0x9d, 0xe1, 0x99, 0x8e, 0x43, 0xb1, 0x14, 0xce, - 0x39, 0x77, 0xa7, 0x89, 0xf1, 0xba, 0x02, 0x3e, 0xad, 0x7e, 0x5c, 0xb1, 0x3c, 0xe8, 0x6f, 0x4d, - 0xcf, 0x08, 0xcd, 0x1d, 0x5f, 0x83, 0xa5, 0xc0, 0xfd, 0x9a, 0x32, 0xe3, 0x49, 0x09, 0x48, 0x2c, - 0x09, 0x29, 0x33, 0x2c, 0x24, 0x80, 0x7a, 0x50, 0xa5, 0x91, 0xf4, 0x57, 0xcb, 0xae, 0xd2, 0x28, - 0x13, 0x54, 0xcf, 0x09, 0xb2, 0xfe, 0x59, 0x07, 0xc8, 0xa4, 0x20, 0x1b, 0x46, 0x84, 0x3a, 0x31, - 0x66, 0xa2, 0x04, 0x71, 0x8e, 0x67, 0x1c, 0xc7, 0x0e, 0xc3, 0x5e, 0xc2, 0x62, 0x72, 0x2e, 0xee, - 0x4f, 0x98, 0x7d, 0x4b, 0x99, 0x3d, 0xa7, 0x9b, 0x7d, 0x9b, 0xd0, 0x43, 0x75, 0x6e, 0x4b, 0x1c, - 0xb3, 0xcd, 0x29, 0xb4, 0x0f, 0xb7, 0x32, 0x9e, 0x7e, 0x8e, 0x5d, 0xf5, 0x2a, 0x76, 0xab, 0x29, - 0x3b, 0x3f, 0x63, 0xb5, 0x0b, 0xab, 0x84, 0x3a, 0xdf, 0x24, 0x38, 0x29, 0x30, 0xaa, 0x5d, 0xc5, - 0x68, 0x40, 0xe8, 0xcf, 0xe4, 0x81, 0x8c, 0xcd, 0x01, 0xdc, 0xc9, 0x59, 0x29, 0xc2, 0x3d, 0xc7, - 0xac, 0x7e, 0x15, 0xb3, 0xf5, 0x54, 0x2b, 0x91, 0x0f, 0x32, 0x8e, 0x3f, 0x81, 0x75, 0x42, 0x9d, - 0x17, 0x2e, 0xe1, 0xf3, 0xec, 0x96, 0x5e, 0x62, 0xa4, 0xf8, 0xe8, 0x16, 0x79, 0x29, 0x23, 0x03, - 0xcc, 0x26, 0x05, 0x23, 0x1b, 0x2f, 0x31, 0xf2, 0xa9, 0x3c, 0x90, 0xb1, 0x79, 0x0c, 0x03, 0x42, - 0xe7, 0xb5, 0x59, 0xbe, 0x8a, 0x49, 0x9f, 0xd0, 0xa2, 0x26, 0x5b, 0x30, 0x88, 0xb1, 0xc7, 0x29, - 0xcb, 0x3f, 0x82, 0xe6, 0x55, 0x2c, 0x56, 0x34, 0x7d, 0xca, 0xc3, 0xfa, 0x05, 0x74, 0xf6, 0x92, - 0x09, 0xe6, 0xd3, 0xe3, 0x34, 0x19, 0xdc, 0x58, 0xfe, 0xb1, 0xfe, 0x5d, 0x85, 0xf6, 0xf6, 0x84, - 0xd1, 0x24, 0x2a, 0xe4, 0x64, 0x15, 0xa4, 0xf3, 0x39, 0x59, 0x92, 0xc8, 0x9c, 0xac, 0x88, 0x3f, - 0x84, 0x4e, 0x20, 0x43, 0x57, 0xd3, 0xab, 0x3c, 0x34, 0x58, 0x08, 0x6a, 0xbb, 0x1d, 0xe4, 0x92, - 0xd9, 0x18, 0x20, 0x22, 0x7e, 0xac, 0xcf, 0xa8, 0x74, 0xd4, 0xd7, 0x15, 0xa1, 0x49, 0xd1, 0x76, - 0x2b, 0x4a, 0xb3, 0xf5, 0xfb, 0xd0, 0x3e, 0x16, 0x4e, 0xd2, 0x07, 0x0a, 0xc9, 0x28, 0xf3, 0x9e, - 0x0d, 0xc7, 0x59, 0x10, 0xee, 0x41, 0xf7, 0x54, 0xb9, 0x4c, 0x1f, 0x52, 0x6f, 0xe8, 0x75, 0x6d, - 0x49, 0x66, 0xef, 0x38, 0xef, 0x59, 0x75, 0x01, 0x9d, 0xd3, 0x1c, 0x6a, 0x74, 0x08, 0x83, 0x05, - 0x92, 0x92, 0x1c, 0xb4, 0x91, 0xcf, 0x41, 0xed, 0x87, 0x48, 0x09, 0xca, 0x9f, 0xcc, 0xe7, 0xa5, - 0xdf, 0x55, 0xa1, 0xf3, 0x53, 0xcc, 0x5f, 0x50, 0x76, 0xa6, 0xf4, 0x45, 0x50, 0x0f, 0xdd, 0x00, - 0x6b, 0x8e, 0x72, 0x8d, 0xee, 0x40, 0x93, 0x5d, 0xa8, 0x04, 0xa2, 0xef, 0x73, 0x99, 0x5d, 0xc8, - 0xc4, 0x80, 0x5e, 0x05, 0x60, 0x17, 0x4e, 0xe4, 0x7a, 0x67, 0x58, 0x7b, 0xb0, 0x6e, 0xb7, 0xd8, - 0xc5, 0x81, 0x42, 0x88, 0xa7, 0xc0, 0x2e, 0x1c, 0xcc, 0x18, 0x65, 0xb1, 0xce, 0x55, 0x4d, 0x76, - 0xb1, 0x2b, 0x61, 0x7d, 0xd6, 0x67, 0x34, 0x8a, 0xb0, 0x2f, 0x73, 0xb4, 0x3c, 0xbb, 0xa3, 0x10, - 0x42, 0x2a, 0x37, 0x52, 0x1b, 0x4a, 0x2a, 0xcf, 0xa4, 0xf2, 0x4c, 0xea, 0xb2, 0x3a, 0xc9, 0xf3, - 0x52, 0x79, 0x2a, 0xb5, 0xa9, 0xa4, 0xf2, 0x9c, 0x54, 0x9e, 0x49, 0x6d, 0x99, 0xb3, 0x5a, 0xaa, - 0xf5, 0xdb, 0x0a, 0xac, 0xcf, 0x17, 0x7e, 0xba, 0x4c, 0xfd, 0x10, 0x3a, 0x9e, 0xbc, 0xaf, 0xc2, - 0x9b, 0x1c, 0x2c, 0xdc, 0xa4, 0xdd, 0xf6, 0x72, 0xcf, 0xf8, 0x23, 0xe8, 0x86, 0xca, 0xc1, 0xe9, - 0xd3, 0xac, 0x65, 0xf7, 0x92, 0xf7, 0xbd, 0xdd, 0x09, 0x73, 0x90, 0xe5, 0x03, 0xfa, 0x8a, 0x11, - 0x8e, 0x0f, 0x39, 0xc3, 0x6e, 0x70, 0x13, 0x0d, 0x08, 0x82, 0xba, 0xac, 0x56, 0x6a, 0xb2, 0xbe, - 0x96, 0x6b, 0xeb, 0x2d, 0x58, 0x2d, 0x48, 0xd1, 0xb6, 0xae, 0x40, 0x6d, 0x8a, 0x43, 0xc9, 0xbd, - 0x6b, 0x8b, 0xa5, 0xe5, 0xc2, 0xc0, 0xc6, 0xae, 0x7f, 0x73, 0xda, 0x68, 0x11, 0xb5, 0x4c, 0xc4, - 0x06, 0xa0, 0xbc, 0x08, 0xad, 0x8a, 0xd1, 0xba, 0x92, 0xd3, 0xfa, 0x19, 0x0c, 0xb6, 0xa7, 0x34, - 0xc6, 0x87, 0xdc, 0x27, 0xe1, 0x4d, 0x74, 0x4c, 0xbf, 0x82, 0xd5, 0xe7, 0x7c, 0xf6, 0x95, 0x60, - 0x16, 0x93, 0x6f, 0xf1, 0x0d, 0xd9, 0xc7, 0xe8, 0x0b, 0x63, 0x1f, 0xa3, 0x2f, 0x44, 0xb3, 0xe4, - 0xd1, 0x69, 0x12, 0x84, 0x32, 0x14, 0xba, 0xb6, 0x86, 0xac, 0x2d, 0xe8, 0xa8, 0x1a, 0xfa, 0x29, - 0xf5, 0x93, 0x29, 0x2e, 0x8d, 0xc1, 0x7b, 0x00, 0x91, 0xcb, 0xdc, 0x00, 0x73, 0xcc, 0xd4, 0x1b, - 0x6a, 0xd9, 0x39, 0x8c, 0xf5, 0x87, 0x2a, 0xac, 0xa9, 0x91, 0xc8, 0xa1, 0x9a, 0x04, 0x18, 0x13, - 0x46, 0xd0, 0x3c, 0xa5, 0x31, 0xcf, 0x31, 0x4c, 0x61, 0xa1, 0xa2, 0x1f, 0x1a, 0x6e, 0x62, 0x59, - 0x98, 0x53, 0xd4, 0xae, 0x9e, 0x53, 0x2c, 0x4c, 0x22, 0xea, 0x8b, 0x93, 0x08, 0x11, 0x6d, 0x86, - 0x88, 0xa8, 0x18, 0x6f, 0xd9, 0x2d, 0x8d, 0xd9, 0xf7, 0xd1, 0x03, 0xe8, 0x4f, 0x84, 0x96, 0xce, - 0x29, 0xa5, 0x67, 0x4e, 0xe4, 0xf2, 0x53, 0x19, 0xea, 0x2d, 0xbb, 0x2b, 0xd1, 0x7b, 0x94, 0x9e, - 0x1d, 0xb8, 0xfc, 0x14, 0x7d, 0x02, 0x3d, 0x5d, 0x06, 0x06, 0xd2, 0x45, 0xb1, 0xfe, 0xf8, 0xe9, - 0x28, 0xca, 0x7b, 0xcf, 0xee, 0x9e, 0xe5, 0xa0, 0xd8, 0xba, 0x0d, 0xb7, 0x76, 0x70, 0xcc, 0x19, - 0x9d, 0x15, 0x1d, 0x63, 0xfd, 0x08, 0x60, 0x3f, 0xe4, 0x98, 0x9d, 0xb8, 0x1e, 0x8e, 0xd1, 0x7b, - 0x79, 0x48, 0x17, 0x47, 0x2b, 0x63, 0x35, 0x91, 0x4a, 0x37, 0xec, 0x1c, 0x8d, 0x35, 0x86, 0x86, - 0x4d, 0x13, 0x91, 0x8e, 0xde, 0x30, 0x2b, 0x7d, 0xae, 0xa3, 0xcf, 0x49, 0xa4, 0xad, 0xf7, 0xac, - 0x3d, 0xd3, 0xc2, 0x66, 0xec, 0xf4, 0x15, 0x8d, 0xa1, 0x45, 0x0c, 0x4e, 0x67, 0x95, 0x45, 0xd1, - 0x19, 0x89, 0xf5, 0x19, 0xac, 0x2a, 0x4e, 0x8a, 0xb3, 0x61, 0xf3, 0x06, 0x34, 0x98, 0x51, 0xa3, - 0x92, 0x8d, 0xa2, 0x34, 0x91, 0xde, 0x13, 0xfe, 0x10, 0x1d, 0x75, 0x66, 0x88, 0xf1, 0xc7, 0x2a, - 0x0c, 0xc4, 0x46, 0x81, 0xa7, 0xf5, 0x4b, 0x58, 0x7d, 0x16, 0x4e, 0x49, 0x88, 0xb7, 0x0f, 0x8e, - 0x9e, 0xe2, 0x34, 0xee, 0x11, 0xd4, 0x45, 0x7d, 0x24, 0x05, 0x35, 0x6d, 0xb9, 0x16, 0x81, 0x10, - 0x1e, 0x3b, 0x5e, 0x94, 0xc4, 0x7a, 0xf6, 0xd3, 0x08, 0x8f, 0xb7, 0xa3, 0x24, 0x16, 0x89, 0x5c, - 0x7c, 0xc8, 0x69, 0x38, 0x9d, 0xc9, 0x68, 0x68, 0xda, 0xcb, 0x5e, 0x94, 0x3c, 0x0b, 0xa7, 0x33, - 0xeb, 0x07, 0xb2, 0xdb, 0xc5, 0xd8, 0xb7, 0xdd, 0xd0, 0xa7, 0xc1, 0x0e, 0x3e, 0xcf, 0x49, 0x48, - 0x3b, 0x2b, 0x13, 0xf5, 0xdf, 0x55, 0xa0, 0xf3, 0x78, 0x82, 0x43, 0xbe, 0x83, 0xb9, 0x4b, 0xa6, - 0xb2, 0x7b, 0x3a, 0xc7, 0x2c, 0x26, 0x34, 0xd4, 0x4f, 0xdb, 0x80, 0xa2, 0xf9, 0x25, 0x21, 0xe1, - 0x8e, 0xef, 0xe2, 0x80, 0x86, 0x92, 0x4b, 0xd3, 0x06, 0x81, 0xda, 0x91, 0x18, 0xf4, 0x16, 0xf4, - 0xd5, 0x6c, 0xce, 0x39, 0x75, 0x43, 0x7f, 0x2a, 0x82, 0x4a, 0xcd, 0x2a, 0x7a, 0x0a, 0xbd, 0xa7, - 0xb1, 0xe8, 0x6d, 0x58, 0xd1, 0x4f, 0x3e, 0xa3, 0xac, 0x4b, 0xca, 0xbe, 0xc6, 0x17, 0x48, 0x93, - 0x28, 0xa2, 0x8c, 0xc7, 0x4e, 0x8c, 0x3d, 0x8f, 0x06, 0x91, 0x6e, 0x3d, 0xfa, 0x06, 0x7f, 0xa8, - 0xd0, 0xd6, 0x04, 0x56, 0x9f, 0x08, 0x3b, 0xb5, 0x25, 0xd9, 0x15, 0xf6, 0x02, 0x1c, 0x38, 0xc7, - 0x53, 0xea, 0x9d, 0x39, 0x22, 0x11, 0x69, 0x0f, 0x8b, 0xe2, 0x66, 0x4b, 0x20, 0x0f, 0xc9, 0xb7, - 0xb2, 0xcb, 0x16, 0x54, 0xa7, 0x94, 0x47, 0xd3, 0x64, 0xe2, 0x44, 0x8c, 0x1e, 0x63, 0x6d, 0x62, - 0x3f, 0xc0, 0xc1, 0x9e, 0xc2, 0x1f, 0x08, 0xb4, 0xf5, 0xd7, 0x0a, 0xac, 0x15, 0x25, 0xe9, 0xb4, - 0xba, 0x09, 0x6b, 0x45, 0x51, 0xfa, 0x53, 0xab, 0x4a, 0xb9, 0x41, 0x5e, 0xa0, 0xfa, 0xe8, 0x7e, - 0x04, 0x5d, 0x39, 0xb0, 0x75, 0x7c, 0xc5, 0xa9, 0x58, 0x60, 0xe4, 0xef, 0xc5, 0xee, 0xb8, 0xf9, - 0x5b, 0xfa, 0x04, 0xee, 0x68, 0xf3, 0x9d, 0x45, 0xb5, 0xd5, 0x83, 0x58, 0xd7, 0x04, 0x4f, 0xe7, - 0xb4, 0xff, 0x12, 0x86, 0x19, 0x6a, 0x6b, 0x26, 0x91, 0xc6, 0x57, 0xef, 0xc1, 0xea, 0x9c, 0xb1, - 0x8f, 0x7d, 0x9f, 0xc9, 0x10, 0xac, 0xdb, 0x65, 0x5b, 0xd6, 0x23, 0xb8, 0x7d, 0x88, 0xb9, 0xf2, - 0x86, 0xcb, 0x75, 0xd5, 0xaf, 0x98, 0xad, 0x40, 0xed, 0x10, 0x7b, 0xd2, 0xf8, 0x9a, 0x2d, 0x96, - 0xe2, 0x01, 0x1e, 0xc5, 0xd8, 0x93, 0x56, 0xd6, 0x6c, 0xb9, 0xb6, 0xfe, 0x52, 0x81, 0x65, 0x9d, - 0x08, 0x45, 0x32, 0xf7, 0x19, 0x39, 0xc7, 0x4c, 0x3f, 0x3d, 0x0d, 0xa1, 0x37, 0xa1, 0xa7, 0x56, - 0x0e, 0x8d, 0x38, 0xa1, 0x69, 0x7a, 0xed, 0x2a, 0xec, 0x33, 0x85, 0x94, 0xb3, 0x38, 0x39, 0x6a, - 0xd2, 0x5d, 0x9d, 0x86, 0xe4, 0x40, 0x2d, 0x16, 0xb1, 0x2f, 0xd3, 0x69, 0xcb, 0xd6, 0x90, 0x78, - 0xea, 0x86, 0xdf, 0x92, 0xe4, 0x67, 0x40, 0xf1, 0xd4, 0x03, 0x9a, 0x84, 0xdc, 0x89, 0x28, 0x09, - 0xb9, 0xce, 0x9f, 0x20, 0x51, 0x07, 0x02, 0x63, 0xfd, 0xa6, 0x02, 0x0d, 0x35, 0x8f, 0x16, 0x7d, - 0x64, 0xfa, 0x15, 0xab, 0x12, 0x59, 0x11, 0x48, 0x59, 0xea, 0xcb, 0x25, 0xd7, 0x22, 0x8e, 0xcf, - 0x03, 0x95, 0x8b, 0xb5, 0x6a, 0xe7, 0x81, 0x4c, 0xc2, 0x6f, 0x42, 0x2f, 0xfb, 0x18, 0xca, 0x7d, - 0xa5, 0x62, 0x37, 0xc5, 0x4a, 0xb2, 0x4b, 0x35, 0xb5, 0x7e, 0x2e, 0xda, 0xe7, 0x74, 0x16, 0xbb, - 0x02, 0xb5, 0x24, 0x55, 0x46, 0x2c, 0x05, 0x66, 0x92, 0x7e, 0x46, 0xc5, 0x12, 0x3d, 0x80, 0x9e, - 0xeb, 0xfb, 0x44, 0x1c, 0x77, 0xa7, 0x4f, 0x88, 0x9f, 0x06, 0x69, 0x11, 0x6b, 0xfd, 0xbd, 0x02, - 0xfd, 0x6d, 0x1a, 0xcd, 0x7e, 0x4c, 0xa6, 0x38, 0x97, 0x41, 0xa4, 0x92, 0xfa, 0x2b, 0x2a, 0xd6, - 0xa2, 0x32, 0x3c, 0x21, 0x53, 0xac, 0x42, 0x4b, 0xdd, 0x6c, 0x53, 0x20, 0x64, 0x58, 0x99, 0xcd, - 0x74, 0xc4, 0xd5, 0x55, 0x9b, 0x4f, 0xa9, 0x2f, 0x6b, 0x60, 0x9f, 0x30, 0x27, 0x1d, 0x68, 0x75, - 0xed, 0x65, 0x9f, 0x30, 0xb9, 0xa5, 0x0d, 0x59, 0x92, 0x33, 0xd5, 0xbc, 0x21, 0x0d, 0x85, 0x11, - 0x86, 0xac, 0x43, 0x83, 0x9e, 0x9c, 0xc4, 0x98, 0xcb, 0x6a, 0xb5, 0x66, 0x6b, 0x28, 0x4d, 0x73, - 0xcd, 0x5c, 0x9a, 0xbb, 0x05, 0xab, 0x72, 0x7a, 0xff, 0x9c, 0xb9, 0x1e, 0x09, 0x27, 0x26, 0x15, - 0xaf, 0x01, 0x3a, 0xe4, 0x34, 0x2a, 0x62, 0x1f, 0xfe, 0x7e, 0x45, 0xe7, 0x44, 0xdd, 0xca, 0xa2, - 0x27, 0xd0, 0x9f, 0xfb, 0x6b, 0x04, 0xe9, 0xd9, 0x46, 0xf9, 0x3f, 0x26, 0xa3, 0xf5, 0xb1, 0xfa, - 0xab, 0x65, 0x6c, 0xfe, 0x6a, 0x19, 0xef, 0x06, 0x11, 0x9f, 0xa1, 0x5d, 0xe8, 0x15, 0xff, 0x44, - 0x40, 0x77, 0x4d, 0x29, 0x50, 0xf2, 0xd7, 0xc2, 0xa5, 0x6c, 0x9e, 0x40, 0x7f, 0xee, 0xff, 0x04, - 0xa3, 0x4f, 0xf9, 0xdf, 0x0c, 0x97, 0x32, 0x7a, 0x04, 0xed, 0xdc, 0x1f, 0x08, 0x68, 0xa8, 0x98, - 0x2c, 0xfe, 0xa7, 0x70, 0x29, 0x83, 0x6d, 0xe8, 0x16, 0x66, 0xfa, 0x68, 0xa4, 0xed, 0x29, 0x19, - 0xf4, 0x5f, 0xca, 0x64, 0x0b, 0xda, 0xb9, 0xd1, 0xba, 0xd1, 0x62, 0x71, 0x7e, 0x3f, 0xba, 0x53, - 0xb2, 0xa3, 0x53, 0xef, 0x1e, 0x74, 0x0b, 0x83, 0x70, 0xa3, 0x48, 0xd9, 0x10, 0x7e, 0x74, 0xb7, - 0x74, 0x4f, 0x73, 0x7a, 0x02, 0xfd, 0xb9, 0xb1, 0xb8, 0x71, 0x6e, 0xf9, 0xb4, 0xfc, 0x52, 0xb3, - 0xbe, 0x90, 0x97, 0x9d, 0xeb, 0x7a, 0x72, 0x97, 0xbd, 0x38, 0x04, 0x1f, 0xbd, 0x52, 0xbe, 0xa9, - 0xb5, 0xda, 0x85, 0x5e, 0x71, 0xfe, 0x6d, 0x98, 0x95, 0x4e, 0xc5, 0xaf, 0x7e, 0x39, 0x85, 0x51, - 0x78, 0xf6, 0x72, 0xca, 0x26, 0xe4, 0x97, 0x32, 0x7a, 0x0c, 0xa0, 0x7b, 0x1c, 0x9f, 0x84, 0xe9, - 0x95, 0x2d, 0xf4, 0x56, 0xe9, 0x95, 0x95, 0xf4, 0x43, 0x8f, 0x00, 0x54, 0x6b, 0xe2, 0xd3, 0x84, - 0xa3, 0xdb, 0x46, 0x8d, 0xb9, 0x7e, 0x68, 0x34, 0x5c, 0xdc, 0x58, 0x60, 0x80, 0x19, 0xbb, 0x0e, - 0x83, 0xcf, 0x01, 0xb2, 0x96, 0xc7, 0x30, 0x58, 0x68, 0x82, 0xae, 0xf0, 0x41, 0x27, 0xdf, 0xe0, - 0x20, 0x6d, 0x6b, 0x49, 0xd3, 0x73, 0x05, 0x8b, 0xfe, 0x5c, 0x01, 0x5b, 0x7c, 0x6c, 0xf3, 0x75, - 0xed, 0x68, 0xa1, 0x88, 0x45, 0x1f, 0x41, 0x27, 0x5f, 0xb9, 0x1a, 0x2d, 0x4a, 0xaa, 0xd9, 0x51, - 0xa1, 0x7a, 0x45, 0x8f, 0xa0, 0x57, 0xac, 0x5a, 0x51, 0x2e, 0x2e, 0x16, 0x6a, 0xd9, 0x91, 0x9e, - 0xc9, 0xe4, 0xc8, 0x3f, 0x00, 0xc8, 0xaa, 0x5b, 0xe3, 0xbe, 0x85, 0x7a, 0x77, 0x4e, 0xea, 0x63, - 0xe8, 0xe4, 0x33, 0xb1, 0x51, 0xb7, 0x24, 0x3b, 0x5f, 0x95, 0xb5, 0x72, 0x59, 0xdb, 0x3c, 0xbe, - 0xc5, 0x44, 0x7e, 0x55, 0xd6, 0x2a, 0xf4, 0x75, 0x26, 0x59, 0x94, 0x35, 0x7b, 0x57, 0xe5, 0xf2, - 0x62, 0x13, 0x64, 0xdc, 0x57, 0xda, 0x1a, 0x5d, 0xf5, 0x88, 0xf2, 0xdd, 0x80, 0xf1, 0x47, 0x49, - 0x87, 0xf0, 0x92, 0xa0, 0xce, 0x57, 0xfc, 0xb9, 0xa0, 0x2e, 0x69, 0x04, 0x2e, 0x65, 0xb4, 0x07, - 0xfd, 0x27, 0xa6, 0x98, 0xd3, 0x85, 0xa6, 0x56, 0xa7, 0xa4, 0xb0, 0x1e, 0x8d, 0xca, 0xb6, 0x74, - 0x64, 0x7d, 0x01, 0x83, 0x85, 0x22, 0x13, 0xdd, 0x4b, 0x47, 0x87, 0xa5, 0xd5, 0xe7, 0xa5, 0x6a, - 0xed, 0xc3, 0xca, 0x7c, 0x8d, 0x89, 0x5e, 0xd5, 0x97, 0x5e, 0x5e, 0x7b, 0x5e, 0xca, 0xea, 0x13, - 0x68, 0x9a, 0x9a, 0x06, 0xe9, 0x11, 0xed, 0x5c, 0x8d, 0x73, 0xd9, 0xd1, 0xad, 0xce, 0x77, 0xdf, - 0xdf, 0xab, 0xfc, 0xe3, 0xfb, 0x7b, 0x95, 0x7f, 0x7d, 0x7f, 0xaf, 0x72, 0xdc, 0x90, 0xbb, 0x1f, - 0xfc, 0x27, 0x00, 0x00, 0xff, 0xff, 0xa5, 0xac, 0x85, 0x1d, 0xaa, 0x21, 0x00, 0x00, -} diff --git a/src/runtime/vendor/github.com/kata-containers/agent/protocols/grpc/agent.proto b/src/runtime/vendor/github.com/kata-containers/agent/protocols/grpc/agent.proto index 348d792889..237e7a773e 100644 --- a/src/runtime/vendor/github.com/kata-containers/agent/protocols/grpc/agent.proto +++ b/src/runtime/vendor/github.com/kata-containers/agent/protocols/grpc/agent.proto @@ -8,7 +8,7 @@ syntax = "proto3"; package grpc; -import "oci.proto"; +import "github.com/kata-containers/agent/protocols/grpc/oci.proto"; import "github.com/kata-containers/agent/pkg/types/types.proto"; import "google/protobuf/empty.proto"; diff --git a/src/runtime/vendor/github.com/kata-containers/agent/protocols/grpc/health.pb.go b/src/runtime/vendor/github.com/kata-containers/agent/protocols/grpc/health.pb.go index 2126ae3259..043a2dc5db 100644 --- a/src/runtime/vendor/github.com/kata-containers/agent/protocols/grpc/health.pb.go +++ b/src/runtime/vendor/github.com/kata-containers/agent/protocols/grpc/health.pb.go @@ -1,23 +1,33 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: health.proto +// source: github.com/kata-containers/agent/protocols/grpc/health.proto package grpc -import proto "github.com/gogo/protobuf/proto" -import fmt "fmt" -import math "math" -import _ "github.com/gogo/protobuf/gogoproto" - -import context "golang.org/x/net/context" -import grpc1 "google.golang.org/grpc" - -import io "io" +import ( + bytes "bytes" + context "context" + fmt "fmt" + github_com_containerd_ttrpc "github.com/containerd/ttrpc" + _ "github.com/gogo/protobuf/gogoproto" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" + reflect "reflect" + strings "strings" +) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + type HealthCheckResponse_ServingStatus int32 const ( @@ -31,6 +41,7 @@ var HealthCheckResponse_ServingStatus_name = map[int32]string{ 1: "SERVING", 2: "NOT_SERVING", } + var HealthCheckResponse_ServingStatus_value = map[string]int32{ "UNKNOWN": 0, "SERVING": 1, @@ -40,72 +51,167 @@ var HealthCheckResponse_ServingStatus_value = map[string]int32{ func (x HealthCheckResponse_ServingStatus) String() string { return proto.EnumName(HealthCheckResponse_ServingStatus_name, int32(x)) } + func (HealthCheckResponse_ServingStatus) EnumDescriptor() ([]byte, []int) { - return fileDescriptorHealth, []int{1, 0} + return fileDescriptor_24b9fe6b2d9b7b0c, []int{1, 0} } type CheckRequest struct { - Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` + Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *CheckRequest) Reset() { *m = CheckRequest{} } -func (m *CheckRequest) String() string { return proto.CompactTextString(m) } -func (*CheckRequest) ProtoMessage() {} -func (*CheckRequest) Descriptor() ([]byte, []int) { return fileDescriptorHealth, []int{0} } - -func (m *CheckRequest) GetService() string { - if m != nil { - return m.Service +func (m *CheckRequest) Reset() { *m = CheckRequest{} } +func (*CheckRequest) ProtoMessage() {} +func (*CheckRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_24b9fe6b2d9b7b0c, []int{0} +} +func (m *CheckRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CheckRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CheckRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return "" } +func (m *CheckRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CheckRequest.Merge(m, src) +} +func (m *CheckRequest) XXX_Size() int { + return m.Size() +} +func (m *CheckRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CheckRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_CheckRequest proto.InternalMessageInfo type HealthCheckResponse struct { - Status HealthCheckResponse_ServingStatus `protobuf:"varint,1,opt,name=status,proto3,enum=grpc.HealthCheckResponse_ServingStatus" json:"status,omitempty"` + Status HealthCheckResponse_ServingStatus `protobuf:"varint,1,opt,name=status,proto3,enum=grpc.HealthCheckResponse_ServingStatus" json:"status,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *HealthCheckResponse) Reset() { *m = HealthCheckResponse{} } -func (m *HealthCheckResponse) String() string { return proto.CompactTextString(m) } -func (*HealthCheckResponse) ProtoMessage() {} -func (*HealthCheckResponse) Descriptor() ([]byte, []int) { return fileDescriptorHealth, []int{1} } - -func (m *HealthCheckResponse) GetStatus() HealthCheckResponse_ServingStatus { - if m != nil { - return m.Status +func (m *HealthCheckResponse) Reset() { *m = HealthCheckResponse{} } +func (*HealthCheckResponse) ProtoMessage() {} +func (*HealthCheckResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_24b9fe6b2d9b7b0c, []int{1} +} +func (m *HealthCheckResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *HealthCheckResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_HealthCheckResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return HealthCheckResponse_UNKNOWN } +func (m *HealthCheckResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_HealthCheckResponse.Merge(m, src) +} +func (m *HealthCheckResponse) XXX_Size() int { + return m.Size() +} +func (m *HealthCheckResponse) XXX_DiscardUnknown() { + xxx_messageInfo_HealthCheckResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_HealthCheckResponse proto.InternalMessageInfo type VersionCheckResponse struct { - GrpcVersion string `protobuf:"bytes,1,opt,name=grpc_version,json=grpcVersion,proto3" json:"grpc_version,omitempty"` - AgentVersion string `protobuf:"bytes,2,opt,name=agent_version,json=agentVersion,proto3" json:"agent_version,omitempty"` + GrpcVersion string `protobuf:"bytes,1,opt,name=grpc_version,json=grpcVersion,proto3" json:"grpc_version,omitempty"` + AgentVersion string `protobuf:"bytes,2,opt,name=agent_version,json=agentVersion,proto3" json:"agent_version,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *VersionCheckResponse) Reset() { *m = VersionCheckResponse{} } -func (m *VersionCheckResponse) String() string { return proto.CompactTextString(m) } -func (*VersionCheckResponse) ProtoMessage() {} -func (*VersionCheckResponse) Descriptor() ([]byte, []int) { return fileDescriptorHealth, []int{2} } - -func (m *VersionCheckResponse) GetGrpcVersion() string { - if m != nil { - return m.GrpcVersion +func (m *VersionCheckResponse) Reset() { *m = VersionCheckResponse{} } +func (*VersionCheckResponse) ProtoMessage() {} +func (*VersionCheckResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_24b9fe6b2d9b7b0c, []int{2} +} +func (m *VersionCheckResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *VersionCheckResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_VersionCheckResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return "" +} +func (m *VersionCheckResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_VersionCheckResponse.Merge(m, src) +} +func (m *VersionCheckResponse) XXX_Size() int { + return m.Size() +} +func (m *VersionCheckResponse) XXX_DiscardUnknown() { + xxx_messageInfo_VersionCheckResponse.DiscardUnknown(m) } -func (m *VersionCheckResponse) GetAgentVersion() string { - if m != nil { - return m.AgentVersion - } - return "" -} +var xxx_messageInfo_VersionCheckResponse proto.InternalMessageInfo func init() { + proto.RegisterEnum("grpc.HealthCheckResponse_ServingStatus", HealthCheckResponse_ServingStatus_name, HealthCheckResponse_ServingStatus_value) proto.RegisterType((*CheckRequest)(nil), "grpc.CheckRequest") proto.RegisterType((*HealthCheckResponse)(nil), "grpc.HealthCheckResponse") proto.RegisterType((*VersionCheckResponse)(nil), "grpc.VersionCheckResponse") - proto.RegisterEnum("grpc.HealthCheckResponse_ServingStatus", HealthCheckResponse_ServingStatus_name, HealthCheckResponse_ServingStatus_value) } + +func init() { + proto.RegisterFile("github.com/kata-containers/agent/protocols/grpc/health.proto", fileDescriptor_24b9fe6b2d9b7b0c) +} + +var fileDescriptor_24b9fe6b2d9b7b0c = []byte{ + // 365 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x51, 0x41, 0x4b, 0xf3, 0x40, + 0x10, 0xed, 0x96, 0xef, 0x6b, 0x71, 0xda, 0x6a, 0x59, 0x3d, 0xd4, 0x1e, 0x16, 0x8d, 0x07, 0x7b, + 0x69, 0x02, 0x15, 0x04, 0x45, 0x10, 0x14, 0x51, 0x11, 0x52, 0x48, 0xb5, 0xde, 0x2c, 0x69, 0x58, + 0x93, 0xd0, 0x9a, 0xad, 0xd9, 0x4d, 0x2f, 0x5e, 0xfc, 0x0d, 0xfe, 0x0a, 0x7f, 0x82, 0x47, 0x8f, + 0x3d, 0x7a, 0xf4, 0x68, 0xf7, 0x57, 0x78, 0x94, 0xec, 0xa6, 0xd2, 0x42, 0xbd, 0xed, 0x7b, 0xf3, + 0xde, 0xcc, 0xbc, 0x59, 0x38, 0xf2, 0x43, 0x11, 0x24, 0x7d, 0xd3, 0x63, 0x0f, 0xd6, 0xc0, 0x15, + 0x6e, 0xd3, 0x63, 0x91, 0x70, 0xc3, 0x88, 0xc6, 0xdc, 0x72, 0x7d, 0x1a, 0x09, 0x6b, 0x14, 0x33, + 0xc1, 0x3c, 0x36, 0xe4, 0x96, 0x1f, 0x8f, 0x3c, 0x2b, 0xa0, 0xee, 0x50, 0x04, 0xa6, 0x62, 0xf1, + 0xbf, 0x94, 0xaa, 0x37, 0xe7, 0x7a, 0xf8, 0xcc, 0x67, 0xda, 0xd2, 0x4f, 0xee, 0x15, 0x52, 0x40, + 0xbd, 0xb4, 0xc9, 0x68, 0x40, 0xf9, 0x34, 0xa0, 0xde, 0xc0, 0xa1, 0x8f, 0x09, 0xe5, 0x02, 0xd7, + 0xa0, 0xc8, 0x69, 0x3c, 0x0e, 0x3d, 0x5a, 0x43, 0x5b, 0xa8, 0xb1, 0xe2, 0xcc, 0xa0, 0xf1, 0x82, + 0x60, 0xfd, 0x42, 0xcd, 0xcb, 0x0c, 0x7c, 0xc4, 0x22, 0x4e, 0xf1, 0x31, 0x14, 0xb8, 0x70, 0x45, + 0xc2, 0x95, 0x61, 0xb5, 0xb5, 0x6b, 0xa6, 0x7b, 0x98, 0x4b, 0xa4, 0x66, 0x27, 0x6d, 0x15, 0xf9, + 0x1d, 0x25, 0x77, 0x32, 0x9b, 0x71, 0x08, 0x95, 0x85, 0x02, 0x2e, 0x41, 0xf1, 0xc6, 0xbe, 0xb2, + 0xdb, 0xb7, 0x76, 0x35, 0x97, 0x82, 0xce, 0x99, 0xd3, 0xbd, 0xb4, 0xcf, 0xab, 0x08, 0xaf, 0x41, + 0xc9, 0x6e, 0x5f, 0xf7, 0x66, 0x44, 0xde, 0xb8, 0x83, 0x8d, 0x2e, 0x8d, 0x79, 0xc8, 0xa2, 0xc5, + 0xa5, 0xb6, 0xa1, 0x9c, 0x6e, 0xd1, 0x1b, 0xeb, 0x62, 0x96, 0xa5, 0x94, 0x72, 0x99, 0x1e, 0xef, + 0x40, 0x45, 0xdd, 0xf4, 0x57, 0x93, 0x57, 0x9a, 0xb2, 0x22, 0x33, 0x51, 0xeb, 0x09, 0x0a, 0x3a, + 0x08, 0xde, 0x87, 0xff, 0x6a, 0x04, 0xc6, 0x3a, 0xdf, 0xfc, 0xd5, 0xea, 0x9b, 0x7f, 0x66, 0xc6, + 0x07, 0x50, 0x9c, 0x4d, 0x5c, 0xe6, 0xac, 0x6b, 0x6e, 0x59, 0x88, 0x93, 0xc6, 0x64, 0x4a, 0x72, + 0x9f, 0x53, 0x92, 0xfb, 0x9e, 0x12, 0xf4, 0x2c, 0x09, 0x7a, 0x95, 0x04, 0xbd, 0x49, 0x82, 0xde, + 0x25, 0x41, 0x13, 0x49, 0xd0, 0x87, 0x24, 0xe8, 0x4b, 0x12, 0xd4, 0x2f, 0xa8, 0xcf, 0xdc, 0xfb, + 0x09, 0x00, 0x00, 0xff, 0xff, 0x16, 0xa5, 0xaa, 0xfb, 0x41, 0x02, 0x00, 0x00, +} + func (this *CheckRequest) Equal(that interface{}) bool { if that == nil { return this == nil @@ -128,6 +234,9 @@ func (this *CheckRequest) Equal(that interface{}) bool { if this.Service != that1.Service { return false } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } return true } func (this *HealthCheckResponse) Equal(that interface{}) bool { @@ -152,6 +261,9 @@ func (this *HealthCheckResponse) Equal(that interface{}) bool { if this.Status != that1.Status { return false } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } return true } func (this *VersionCheckResponse) Equal(that interface{}) bool { @@ -179,118 +291,15 @@ func (this *VersionCheckResponse) Equal(that interface{}) bool { if this.AgentVersion != that1.AgentVersion { return false } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } return true } - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc1.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc1.SupportPackageIsVersion4 - -// Client API for Health service - -type HealthClient interface { - Check(ctx context.Context, in *CheckRequest, opts ...grpc1.CallOption) (*HealthCheckResponse, error) - Version(ctx context.Context, in *CheckRequest, opts ...grpc1.CallOption) (*VersionCheckResponse, error) -} - -type healthClient struct { - cc *grpc1.ClientConn -} - -func NewHealthClient(cc *grpc1.ClientConn) HealthClient { - return &healthClient{cc} -} - -func (c *healthClient) Check(ctx context.Context, in *CheckRequest, opts ...grpc1.CallOption) (*HealthCheckResponse, error) { - out := new(HealthCheckResponse) - err := grpc1.Invoke(ctx, "/grpc.Health/Check", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *healthClient) Version(ctx context.Context, in *CheckRequest, opts ...grpc1.CallOption) (*VersionCheckResponse, error) { - out := new(VersionCheckResponse) - err := grpc1.Invoke(ctx, "/grpc.Health/Version", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// Server API for Health service - -type HealthServer interface { - Check(context.Context, *CheckRequest) (*HealthCheckResponse, error) - Version(context.Context, *CheckRequest) (*VersionCheckResponse, error) -} - -func RegisterHealthServer(s *grpc1.Server, srv HealthServer) { - s.RegisterService(&_Health_serviceDesc, srv) -} - -func _Health_Check_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc1.UnaryServerInterceptor) (interface{}, error) { - in := new(CheckRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(HealthServer).Check(ctx, in) - } - info := &grpc1.UnaryServerInfo{ - Server: srv, - FullMethod: "/grpc.Health/Check", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(HealthServer).Check(ctx, req.(*CheckRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Health_Version_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc1.UnaryServerInterceptor) (interface{}, error) { - in := new(CheckRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(HealthServer).Version(ctx, in) - } - info := &grpc1.UnaryServerInfo{ - Server: srv, - FullMethod: "/grpc.Health/Version", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(HealthServer).Version(ctx, req.(*CheckRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _Health_serviceDesc = grpc1.ServiceDesc{ - ServiceName: "grpc.Health", - HandlerType: (*HealthServer)(nil), - Methods: []grpc1.MethodDesc{ - { - MethodName: "Check", - Handler: _Health_Check_Handler, - }, - { - MethodName: "Version", - Handler: _Health_Version_Handler, - }, - }, - Streams: []grpc1.StreamDesc{}, - Metadata: "health.proto", -} - func (m *CheckRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -298,23 +307,33 @@ func (m *CheckRequest) Marshal() (dAtA []byte, err error) { } func (m *CheckRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CheckRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Service) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintHealth(dAtA, i, uint64(len(m.Service))) - i += copy(dAtA[i:], m.Service) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - return i, nil + if len(m.Service) > 0 { + i -= len(m.Service) + copy(dAtA[i:], m.Service) + i = encodeVarintHealth(dAtA, i, uint64(len(m.Service))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *HealthCheckResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -322,22 +341,31 @@ func (m *HealthCheckResponse) Marshal() (dAtA []byte, err error) { } func (m *HealthCheckResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *HealthCheckResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Status != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintHealth(dAtA, i, uint64(m.Status)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - return i, nil + if m.Status != 0 { + i = encodeVarintHealth(dAtA, i, uint64(m.Status)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *VersionCheckResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -345,38 +373,52 @@ func (m *VersionCheckResponse) Marshal() (dAtA []byte, err error) { } func (m *VersionCheckResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *VersionCheckResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.GrpcVersion) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintHealth(dAtA, i, uint64(len(m.GrpcVersion))) - i += copy(dAtA[i:], m.GrpcVersion) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.AgentVersion) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.AgentVersion) + copy(dAtA[i:], m.AgentVersion) i = encodeVarintHealth(dAtA, i, uint64(len(m.AgentVersion))) - i += copy(dAtA[i:], m.AgentVersion) + i-- + dAtA[i] = 0x12 } - return i, nil + if len(m.GrpcVersion) > 0 { + i -= len(m.GrpcVersion) + copy(dAtA[i:], m.GrpcVersion) + i = encodeVarintHealth(dAtA, i, uint64(len(m.GrpcVersion))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func encodeVarintHealth(dAtA []byte, offset int, v uint64) int { + offset -= sovHealth(v) + base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return offset + 1 + return base } func NewPopulatedCheckRequest(r randyHealth, easy bool) *CheckRequest { this := &CheckRequest{} this.Service = string(randStringHealth(r)) if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedHealth(r, 2) } return this } @@ -385,6 +427,7 @@ func NewPopulatedHealthCheckResponse(r randyHealth, easy bool) *HealthCheckRespo this := &HealthCheckResponse{} this.Status = HealthCheckResponse_ServingStatus([]int32{0, 1, 2}[r.Intn(3)]) if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedHealth(r, 2) } return this } @@ -394,6 +437,7 @@ func NewPopulatedVersionCheckResponse(r randyHealth, easy bool) *VersionCheckRes this.GrpcVersion = string(randStringHealth(r)) this.AgentVersion = string(randStringHealth(r)) if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedHealth(r, 3) } return this } @@ -471,25 +515,40 @@ func encodeVarintPopulateHealth(dAtA []byte, v uint64) []byte { return dAtA } func (m *CheckRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Service) if l > 0 { n += 1 + l + sovHealth(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *HealthCheckResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Status != 0 { n += 1 + sovHealth(uint64(m.Status)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *VersionCheckResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.GrpcVersion) @@ -500,22 +559,110 @@ func (m *VersionCheckResponse) Size() (n int) { if l > 0 { n += 1 + l + sovHealth(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func sovHealth(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n + return (math_bits.Len64(x|1) + 6) / 7 } func sozHealth(x uint64) (n int) { return sovHealth(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } +func (this *CheckRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&CheckRequest{`, + `Service:` + fmt.Sprintf("%v", this.Service) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *HealthCheckResponse) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&HealthCheckResponse{`, + `Status:` + fmt.Sprintf("%v", this.Status) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *VersionCheckResponse) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&VersionCheckResponse{`, + `GrpcVersion:` + fmt.Sprintf("%v", this.GrpcVersion) + `,`, + `AgentVersion:` + fmt.Sprintf("%v", this.AgentVersion) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func valueToStringHealth(v interface{}) string { + rv := reflect.ValueOf(v) + if rv.IsNil() { + return "nil" + } + pv := reflect.Indirect(rv).Interface() + return fmt.Sprintf("*%v", pv) +} + +type HealthService interface { + Check(ctx context.Context, req *CheckRequest) (*HealthCheckResponse, error) + Version(ctx context.Context, req *CheckRequest) (*VersionCheckResponse, error) +} + +func RegisterHealthService(srv *github_com_containerd_ttrpc.Server, svc HealthService) { + srv.Register("grpc.Health", map[string]github_com_containerd_ttrpc.Method{ + "Check": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { + var req CheckRequest + if err := unmarshal(&req); err != nil { + return nil, err + } + return svc.Check(ctx, &req) + }, + "Version": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { + var req CheckRequest + if err := unmarshal(&req); err != nil { + return nil, err + } + return svc.Version(ctx, &req) + }, + }) +} + +type healthClient struct { + client *github_com_containerd_ttrpc.Client +} + +func NewHealthClient(client *github_com_containerd_ttrpc.Client) HealthService { + return &healthClient{ + client: client, + } +} + +func (c *healthClient) Check(ctx context.Context, req *CheckRequest) (*HealthCheckResponse, error) { + var resp HealthCheckResponse + if err := c.client.Call(ctx, "grpc.Health", "Check", req, &resp); err != nil { + return nil, err + } + return &resp, nil +} + +func (c *healthClient) Version(ctx context.Context, req *CheckRequest) (*VersionCheckResponse, error) { + var resp VersionCheckResponse + if err := c.client.Call(ctx, "grpc.Health", "Version", req, &resp); err != nil { + return nil, err + } + return &resp, nil +} func (m *CheckRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -531,7 +678,7 @@ func (m *CheckRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -559,7 +706,7 @@ func (m *CheckRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -569,6 +716,9 @@ func (m *CheckRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthHealth } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthHealth + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -583,9 +733,13 @@ func (m *CheckRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthHealth } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthHealth + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -610,7 +764,7 @@ func (m *HealthCheckResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -638,7 +792,7 @@ func (m *HealthCheckResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Status |= (HealthCheckResponse_ServingStatus(b) & 0x7F) << shift + m.Status |= HealthCheckResponse_ServingStatus(b&0x7F) << shift if b < 0x80 { break } @@ -652,9 +806,13 @@ func (m *HealthCheckResponse) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthHealth } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthHealth + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -679,7 +837,7 @@ func (m *VersionCheckResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -707,7 +865,7 @@ func (m *VersionCheckResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -717,6 +875,9 @@ func (m *VersionCheckResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthHealth } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthHealth + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -736,7 +897,7 @@ func (m *VersionCheckResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -746,6 +907,9 @@ func (m *VersionCheckResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthHealth } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthHealth + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -760,9 +924,13 @@ func (m *VersionCheckResponse) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthHealth } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthHealth + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -775,6 +943,7 @@ func (m *VersionCheckResponse) Unmarshal(dAtA []byte) error { func skipHealth(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -806,10 +975,8 @@ func skipHealth(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -826,80 +993,34 @@ func skipHealth(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthHealth } - return iNdEx, nil + iNdEx += length case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowHealth - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipHealth(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupHealth + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthHealth + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthHealth = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowHealth = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthHealth = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowHealth = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupHealth = fmt.Errorf("proto: unexpected end of group") ) - -func init() { proto.RegisterFile("health.proto", fileDescriptorHealth) } - -var fileDescriptorHealth = []byte{ - // 323 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0xc9, 0x48, 0x4d, 0xcc, - 0x29, 0xc9, 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x49, 0x2f, 0x2a, 0x48, 0x96, 0xd2, - 0x4d, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x4f, 0xcf, 0x4f, 0xcf, 0xd7, - 0x07, 0x4b, 0x26, 0x95, 0xa6, 0x81, 0x79, 0x60, 0x0e, 0x98, 0x05, 0xd1, 0xa4, 0xa4, 0xc1, 0xc5, - 0xe3, 0x9c, 0x91, 0x9a, 0x9c, 0x1d, 0x94, 0x5a, 0x58, 0x9a, 0x5a, 0x5c, 0x22, 0x24, 0xc1, 0xc5, - 0x5e, 0x9c, 0x5a, 0x54, 0x96, 0x99, 0x9c, 0x2a, 0xc1, 0xa8, 0xc0, 0xa8, 0xc1, 0x19, 0x04, 0xe3, - 0x2a, 0x4d, 0x62, 0xe4, 0x12, 0xf6, 0x00, 0xdb, 0x07, 0xd5, 0x50, 0x5c, 0x90, 0x9f, 0x57, 0x9c, - 0x2a, 0x64, 0xcf, 0xc5, 0x56, 0x5c, 0x92, 0x58, 0x52, 0x5a, 0x0c, 0xd6, 0xc0, 0x67, 0xa4, 0xae, - 0x07, 0x72, 0x87, 0x1e, 0x16, 0xa5, 0x7a, 0xc1, 0x20, 0xa3, 0xf2, 0xd2, 0x83, 0xc1, 0xca, 0x83, - 0xa0, 0xda, 0x94, 0xac, 0xb8, 0x78, 0x51, 0x24, 0x84, 0xb8, 0xb9, 0xd8, 0x43, 0xfd, 0xbc, 0xfd, - 0xfc, 0xc3, 0xfd, 0x04, 0x18, 0x40, 0x9c, 0x60, 0xd7, 0xa0, 0x30, 0x4f, 0x3f, 0x77, 0x01, 0x46, - 0x21, 0x7e, 0x2e, 0x6e, 0x3f, 0xff, 0x90, 0x78, 0x98, 0x00, 0x93, 0x52, 0x1c, 0x97, 0x48, 0x58, - 0x6a, 0x51, 0x71, 0x66, 0x7e, 0x1e, 0xaa, 0xa3, 0x14, 0xb9, 0x78, 0x40, 0xae, 0x88, 0x2f, 0x83, - 0x48, 0x42, 0xfd, 0xc2, 0x0d, 0x12, 0x83, 0xaa, 0x17, 0x52, 0xe6, 0xe2, 0x4d, 0x4c, 0x4f, 0xcd, - 0x2b, 0x81, 0xab, 0x61, 0x02, 0xab, 0xe1, 0x01, 0x0b, 0x42, 0x15, 0x19, 0x55, 0x73, 0xb1, 0x41, - 0x3c, 0x22, 0x64, 0xc6, 0xc5, 0x0a, 0xb6, 0x42, 0x48, 0x08, 0xe2, 0x3f, 0xe4, 0x50, 0x93, 0x92, - 0xc4, 0xe9, 0x67, 0x21, 0x4b, 0x2e, 0x76, 0x98, 0x8d, 0xd8, 0x74, 0x4a, 0x41, 0xc4, 0xb0, 0x79, - 0xc2, 0x49, 0xe6, 0xc7, 0x43, 0x39, 0xc6, 0x15, 0x8f, 0xe4, 0x18, 0x77, 0x3c, 0x92, 0x63, 0x3c, - 0xf0, 0x48, 0x8e, 0xf1, 0xc4, 0x23, 0x39, 0xc6, 0x0b, 0x8f, 0xe4, 0x18, 0x1f, 0x3c, 0x92, 0x63, - 0x4c, 0x62, 0x03, 0x47, 0xa0, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0xb7, 0xf6, 0x84, 0x13, 0x05, - 0x02, 0x00, 0x00, -} diff --git a/src/runtime/vendor/github.com/kata-containers/agent/protocols/grpc/healthpb_test.go b/src/runtime/vendor/github.com/kata-containers/agent/protocols/grpc/healthpb_test.go new file mode 100644 index 0000000000..32bdd8a473 --- /dev/null +++ b/src/runtime/vendor/github.com/kata-containers/agent/protocols/grpc/healthpb_test.go @@ -0,0 +1,585 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: github.com/kata-containers/agent/protocols/grpc/health.proto + +package grpc + +import ( + fmt "fmt" + _ "github.com/gogo/protobuf/gogoproto" + github_com_gogo_protobuf_jsonpb "github.com/gogo/protobuf/jsonpb" + github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto" + proto "github.com/gogo/protobuf/proto" + math "math" + math_rand "math/rand" + testing "testing" + time "time" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +func TestCheckRequestProto(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedCheckRequest(popr, false) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &CheckRequest{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + littlefuzz := make([]byte, len(dAtA)) + copy(littlefuzz, dAtA) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } + if len(littlefuzz) > 0 { + fuzzamount := 100 + for i := 0; i < fuzzamount; i++ { + littlefuzz[popr.Intn(len(littlefuzz))] = byte(popr.Intn(256)) + littlefuzz = append(littlefuzz, byte(popr.Intn(256))) + } + // shouldn't panic + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + } +} + +func TestCheckRequestMarshalTo(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedCheckRequest(popr, false) + size := p.Size() + dAtA := make([]byte, size) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + _, err := p.MarshalTo(dAtA) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &CheckRequest{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func BenchmarkCheckRequestProtoMarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*CheckRequest, 10000) + for i := 0; i < 10000; i++ { + pops[i] = NewPopulatedCheckRequest(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + if err != nil { + panic(err) + } + total += len(dAtA) + } + b.SetBytes(int64(total / b.N)) +} + +func BenchmarkCheckRequestProtoUnmarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + datas := make([][]byte, 10000) + for i := 0; i < 10000; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedCheckRequest(popr, false)) + if err != nil { + panic(err) + } + datas[i] = dAtA + } + msg := &CheckRequest{} + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += len(datas[i%10000]) + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + panic(err) + } + } + b.SetBytes(int64(total / b.N)) +} + +func TestHealthCheckResponseProto(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedHealthCheckResponse(popr, false) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &HealthCheckResponse{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + littlefuzz := make([]byte, len(dAtA)) + copy(littlefuzz, dAtA) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } + if len(littlefuzz) > 0 { + fuzzamount := 100 + for i := 0; i < fuzzamount; i++ { + littlefuzz[popr.Intn(len(littlefuzz))] = byte(popr.Intn(256)) + littlefuzz = append(littlefuzz, byte(popr.Intn(256))) + } + // shouldn't panic + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + } +} + +func TestHealthCheckResponseMarshalTo(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedHealthCheckResponse(popr, false) + size := p.Size() + dAtA := make([]byte, size) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + _, err := p.MarshalTo(dAtA) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &HealthCheckResponse{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func BenchmarkHealthCheckResponseProtoMarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*HealthCheckResponse, 10000) + for i := 0; i < 10000; i++ { + pops[i] = NewPopulatedHealthCheckResponse(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + if err != nil { + panic(err) + } + total += len(dAtA) + } + b.SetBytes(int64(total / b.N)) +} + +func BenchmarkHealthCheckResponseProtoUnmarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + datas := make([][]byte, 10000) + for i := 0; i < 10000; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedHealthCheckResponse(popr, false)) + if err != nil { + panic(err) + } + datas[i] = dAtA + } + msg := &HealthCheckResponse{} + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += len(datas[i%10000]) + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + panic(err) + } + } + b.SetBytes(int64(total / b.N)) +} + +func TestVersionCheckResponseProto(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedVersionCheckResponse(popr, false) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &VersionCheckResponse{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + littlefuzz := make([]byte, len(dAtA)) + copy(littlefuzz, dAtA) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } + if len(littlefuzz) > 0 { + fuzzamount := 100 + for i := 0; i < fuzzamount; i++ { + littlefuzz[popr.Intn(len(littlefuzz))] = byte(popr.Intn(256)) + littlefuzz = append(littlefuzz, byte(popr.Intn(256))) + } + // shouldn't panic + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + } +} + +func TestVersionCheckResponseMarshalTo(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedVersionCheckResponse(popr, false) + size := p.Size() + dAtA := make([]byte, size) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + _, err := p.MarshalTo(dAtA) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &VersionCheckResponse{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func BenchmarkVersionCheckResponseProtoMarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*VersionCheckResponse, 10000) + for i := 0; i < 10000; i++ { + pops[i] = NewPopulatedVersionCheckResponse(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + if err != nil { + panic(err) + } + total += len(dAtA) + } + b.SetBytes(int64(total / b.N)) +} + +func BenchmarkVersionCheckResponseProtoUnmarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + datas := make([][]byte, 10000) + for i := 0; i < 10000; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedVersionCheckResponse(popr, false)) + if err != nil { + panic(err) + } + datas[i] = dAtA + } + msg := &VersionCheckResponse{} + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += len(datas[i%10000]) + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + panic(err) + } + } + b.SetBytes(int64(total / b.N)) +} + +func TestCheckRequestJSON(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedCheckRequest(popr, true) + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + jsondata, err := marshaler.MarshalToString(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &CheckRequest{} + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Json Equal %#v", seed, msg, p) + } +} +func TestHealthCheckResponseJSON(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedHealthCheckResponse(popr, true) + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + jsondata, err := marshaler.MarshalToString(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &HealthCheckResponse{} + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Json Equal %#v", seed, msg, p) + } +} +func TestVersionCheckResponseJSON(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedVersionCheckResponse(popr, true) + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + jsondata, err := marshaler.MarshalToString(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &VersionCheckResponse{} + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Json Equal %#v", seed, msg, p) + } +} +func TestCheckRequestProtoText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedCheckRequest(popr, true) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + msg := &CheckRequest{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestCheckRequestProtoCompactText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedCheckRequest(popr, true) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + msg := &CheckRequest{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestHealthCheckResponseProtoText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedHealthCheckResponse(popr, true) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + msg := &HealthCheckResponse{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestHealthCheckResponseProtoCompactText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedHealthCheckResponse(popr, true) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + msg := &HealthCheckResponse{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestVersionCheckResponseProtoText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedVersionCheckResponse(popr, true) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + msg := &VersionCheckResponse{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestVersionCheckResponseProtoCompactText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedVersionCheckResponse(popr, true) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + msg := &VersionCheckResponse{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestCheckRequestSize(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedCheckRequest(popr, true) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + size := p.Size() + if len(dAtA) != size { + t.Errorf("seed = %d, size %v != marshalled size %v", seed, size, len(dAtA)) + } + if size2 != size { + t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) + } + size3 := github_com_gogo_protobuf_proto.Size(p) + if size3 != size { + t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) + } +} + +func BenchmarkCheckRequestSize(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*CheckRequest, 1000) + for i := 0; i < 1000; i++ { + pops[i] = NewPopulatedCheckRequest(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += pops[i%1000].Size() + } + b.SetBytes(int64(total / b.N)) +} + +func TestHealthCheckResponseSize(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedHealthCheckResponse(popr, true) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + size := p.Size() + if len(dAtA) != size { + t.Errorf("seed = %d, size %v != marshalled size %v", seed, size, len(dAtA)) + } + if size2 != size { + t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) + } + size3 := github_com_gogo_protobuf_proto.Size(p) + if size3 != size { + t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) + } +} + +func BenchmarkHealthCheckResponseSize(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*HealthCheckResponse, 1000) + for i := 0; i < 1000; i++ { + pops[i] = NewPopulatedHealthCheckResponse(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += pops[i%1000].Size() + } + b.SetBytes(int64(total / b.N)) +} + +func TestVersionCheckResponseSize(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedVersionCheckResponse(popr, true) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + size := p.Size() + if len(dAtA) != size { + t.Errorf("seed = %d, size %v != marshalled size %v", seed, size, len(dAtA)) + } + if size2 != size { + t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) + } + size3 := github_com_gogo_protobuf_proto.Size(p) + if size3 != size { + t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) + } +} + +func BenchmarkVersionCheckResponseSize(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*VersionCheckResponse, 1000) + for i := 0; i < 1000; i++ { + pops[i] = NewPopulatedVersionCheckResponse(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += pops[i%1000].Size() + } + b.SetBytes(int64(total / b.N)) +} + +func TestCheckRequestStringer(t *testing.T) { + popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano())) + p := NewPopulatedCheckRequest(popr, false) + s1 := p.String() + s2 := fmt.Sprintf("%v", p) + if s1 != s2 { + t.Fatalf("String want %v got %v", s1, s2) + } +} +func TestHealthCheckResponseStringer(t *testing.T) { + popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano())) + p := NewPopulatedHealthCheckResponse(popr, false) + s1 := p.String() + s2 := fmt.Sprintf("%v", p) + if s1 != s2 { + t.Fatalf("String want %v got %v", s1, s2) + } +} +func TestVersionCheckResponseStringer(t *testing.T) { + popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano())) + p := NewPopulatedVersionCheckResponse(popr, false) + s1 := p.String() + s2 := fmt.Sprintf("%v", p) + if s1 != s2 { + t.Fatalf("String want %v got %v", s1, s2) + } +} + +//These tests are generated by github.com/gogo/protobuf/plugin/testgen diff --git a/src/runtime/vendor/github.com/kata-containers/agent/protocols/grpc/oci.pb.go b/src/runtime/vendor/github.com/kata-containers/agent/protocols/grpc/oci.pb.go index 5296a082f2..6f015d14bd 100644 --- a/src/runtime/vendor/github.com/kata-containers/agent/protocols/grpc/oci.pb.go +++ b/src/runtime/vendor/github.com/kata-containers/agent/protocols/grpc/oci.pb.go @@ -1,393 +1,333 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: oci.proto +// source: github.com/kata-containers/agent/protocols/grpc/oci.proto package grpc -import proto "github.com/gogo/protobuf/proto" -import fmt "fmt" -import math "math" -import _ "github.com/gogo/protobuf/gogoproto" -import _ "github.com/gogo/protobuf/types" - -import io "io" +import ( + bytes "bytes" + fmt "fmt" + _ "github.com/gogo/protobuf/gogoproto" + proto "github.com/gogo/protobuf/proto" + github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" + _ "github.com/gogo/protobuf/types" + io "io" + math "math" + math_bits "math/bits" + reflect "reflect" + strings "strings" +) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + type Spec struct { // Version of the Open Container Initiative Runtime Specification with which the bundle complies. - Version string `protobuf:"bytes,1,opt,name=Version,proto3" json:"Version,omitempty"` + Version string `protobuf:"bytes,1,opt,name=Version,json=version,proto3" json:"Version,omitempty"` // Process configures the container process. - Process *Process `protobuf:"bytes,2,opt,name=Process" json:"Process,omitempty"` + Process *Process `protobuf:"bytes,2,opt,name=Process,json=process,proto3" json:"Process,omitempty"` // Root configures the container's root filesystem. - Root *Root `protobuf:"bytes,3,opt,name=Root" json:"Root,omitempty"` + Root *Root `protobuf:"bytes,3,opt,name=Root,json=root,proto3" json:"Root,omitempty"` // Hostname configures the container's hostname. - Hostname string `protobuf:"bytes,4,opt,name=Hostname,proto3" json:"Hostname,omitempty"` + Hostname string `protobuf:"bytes,4,opt,name=Hostname,json=hostname,proto3" json:"Hostname,omitempty"` // Mounts configures additional mounts (on top of Root). - Mounts []Mount `protobuf:"bytes,5,rep,name=Mounts" json:"Mounts"` + Mounts []Mount `protobuf:"bytes,5,rep,name=Mounts,json=mounts,proto3" json:"Mounts"` // Hooks configures callbacks for container lifecycle events. - Hooks *Hooks `protobuf:"bytes,6,opt,name=Hooks" json:"Hooks,omitempty"` + Hooks *Hooks `protobuf:"bytes,6,opt,name=Hooks,json=hooks,proto3" json:"Hooks,omitempty"` // Annotations contains arbitrary metadata for the container. - Annotations map[string]string `protobuf:"bytes,7,rep,name=Annotations" json:"Annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Annotations map[string]string `protobuf:"bytes,7,rep,name=Annotations,json=annotations,proto3" json:"Annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Linux is platform-specific configuration for Linux based containers. - Linux *Linux `protobuf:"bytes,8,opt,name=Linux" json:"Linux,omitempty"` + Linux *Linux `protobuf:"bytes,8,opt,name=Linux,json=linux,proto3" json:"Linux,omitempty"` // Solaris is platform-specific configuration for Solaris based containers. - Solaris *Solaris `protobuf:"bytes,9,opt,name=Solaris" json:"Solaris,omitempty"` + Solaris *Solaris `protobuf:"bytes,9,opt,name=Solaris,json=solaris,proto3" json:"Solaris,omitempty"` // Windows is platform-specific configuration for Windows based containers. - Windows *Windows `protobuf:"bytes,10,opt,name=Windows" json:"Windows,omitempty"` + Windows *Windows `protobuf:"bytes,10,opt,name=Windows,json=windows,proto3" json:"Windows,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Spec) Reset() { *m = Spec{} } -func (m *Spec) String() string { return proto.CompactTextString(m) } -func (*Spec) ProtoMessage() {} -func (*Spec) Descriptor() ([]byte, []int) { return fileDescriptorOci, []int{0} } - -func (m *Spec) GetVersion() string { - if m != nil { - return m.Version +func (m *Spec) Reset() { *m = Spec{} } +func (*Spec) ProtoMessage() {} +func (*Spec) Descriptor() ([]byte, []int) { + return fileDescriptor_33eadcd217567f43, []int{0} +} +func (m *Spec) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Spec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Spec.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return "" +} +func (m *Spec) XXX_Merge(src proto.Message) { + xxx_messageInfo_Spec.Merge(m, src) +} +func (m *Spec) XXX_Size() int { + return m.Size() +} +func (m *Spec) XXX_DiscardUnknown() { + xxx_messageInfo_Spec.DiscardUnknown(m) } -func (m *Spec) GetProcess() *Process { - if m != nil { - return m.Process - } - return nil -} - -func (m *Spec) GetRoot() *Root { - if m != nil { - return m.Root - } - return nil -} - -func (m *Spec) GetHostname() string { - if m != nil { - return m.Hostname - } - return "" -} - -func (m *Spec) GetMounts() []Mount { - if m != nil { - return m.Mounts - } - return nil -} - -func (m *Spec) GetHooks() *Hooks { - if m != nil { - return m.Hooks - } - return nil -} - -func (m *Spec) GetAnnotations() map[string]string { - if m != nil { - return m.Annotations - } - return nil -} - -func (m *Spec) GetLinux() *Linux { - if m != nil { - return m.Linux - } - return nil -} - -func (m *Spec) GetSolaris() *Solaris { - if m != nil { - return m.Solaris - } - return nil -} - -func (m *Spec) GetWindows() *Windows { - if m != nil { - return m.Windows - } - return nil -} +var xxx_messageInfo_Spec proto.InternalMessageInfo type Process struct { // Terminal creates an interactive terminal for the container. - Terminal bool `protobuf:"varint,1,opt,name=Terminal,proto3" json:"Terminal,omitempty"` + Terminal bool `protobuf:"varint,1,opt,name=Terminal,json=terminal,proto3" json:"Terminal,omitempty"` // ConsoleSize specifies the size of the console. - ConsoleSize *Box `protobuf:"bytes,2,opt,name=ConsoleSize" json:"ConsoleSize,omitempty"` + ConsoleSize *Box `protobuf:"bytes,2,opt,name=ConsoleSize,json=consoleSize,proto3" json:"ConsoleSize,omitempty"` // User specifies user information for the process. - User User `protobuf:"bytes,3,opt,name=User" json:"User"` + User User `protobuf:"bytes,3,opt,name=User,json=user,proto3" json:"User"` // Args specifies the binary and arguments for the application to execute. - Args []string `protobuf:"bytes,4,rep,name=Args" json:"Args,omitempty"` + Args []string `protobuf:"bytes,4,rep,name=Args,json=args,proto3" json:"Args,omitempty"` // Env populates the process environment for the process. - Env []string `protobuf:"bytes,5,rep,name=Env" json:"Env,omitempty"` + Env []string `protobuf:"bytes,5,rep,name=Env,json=env,proto3" json:"Env,omitempty"` // Cwd is the current working directory for the process and must be // relative to the container's root. - Cwd string `protobuf:"bytes,6,opt,name=Cwd,proto3" json:"Cwd,omitempty"` + Cwd string `protobuf:"bytes,6,opt,name=Cwd,json=cwd,proto3" json:"Cwd,omitempty"` // Capabilities are Linux capabilities that are kept for the process. - Capabilities *LinuxCapabilities `protobuf:"bytes,7,opt,name=Capabilities" json:"Capabilities,omitempty"` + Capabilities *LinuxCapabilities `protobuf:"bytes,7,opt,name=Capabilities,json=capabilities,proto3" json:"Capabilities,omitempty"` // Rlimits specifies rlimit options to apply to the process. - Rlimits []POSIXRlimit `protobuf:"bytes,8,rep,name=Rlimits" json:"Rlimits"` + Rlimits []POSIXRlimit `protobuf:"bytes,8,rep,name=Rlimits,json=rlimits,proto3" json:"Rlimits"` // NoNewPrivileges controls whether additional privileges could be gained by processes in the container. - NoNewPrivileges bool `protobuf:"varint,9,opt,name=NoNewPrivileges,proto3" json:"NoNewPrivileges,omitempty"` + NoNewPrivileges bool `protobuf:"varint,9,opt,name=NoNewPrivileges,json=noNewPrivileges,proto3" json:"NoNewPrivileges,omitempty"` // ApparmorProfile specifies the apparmor profile for the container. - ApparmorProfile string `protobuf:"bytes,10,opt,name=ApparmorProfile,proto3" json:"ApparmorProfile,omitempty"` + ApparmorProfile string `protobuf:"bytes,10,opt,name=ApparmorProfile,json=apparmorProfile,proto3" json:"ApparmorProfile,omitempty"` // Specify an oom_score_adj for the container. - OOMScoreAdj int64 `protobuf:"varint,11,opt,name=OOMScoreAdj,proto3" json:"OOMScoreAdj,omitempty"` + OOMScoreAdj int64 `protobuf:"varint,11,opt,name=OOMScoreAdj,json=oOMScoreAdj,proto3" json:"OOMScoreAdj,omitempty"` // SelinuxLabel specifies the selinux context that the container process is run as. - SelinuxLabel string `protobuf:"bytes,12,opt,name=SelinuxLabel,proto3" json:"SelinuxLabel,omitempty"` + SelinuxLabel string `protobuf:"bytes,12,opt,name=SelinuxLabel,json=selinuxLabel,proto3" json:"SelinuxLabel,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Process) Reset() { *m = Process{} } -func (m *Process) String() string { return proto.CompactTextString(m) } -func (*Process) ProtoMessage() {} -func (*Process) Descriptor() ([]byte, []int) { return fileDescriptorOci, []int{1} } - -func (m *Process) GetTerminal() bool { - if m != nil { - return m.Terminal +func (m *Process) Reset() { *m = Process{} } +func (*Process) ProtoMessage() {} +func (*Process) Descriptor() ([]byte, []int) { + return fileDescriptor_33eadcd217567f43, []int{1} +} +func (m *Process) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Process) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Process.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return false +} +func (m *Process) XXX_Merge(src proto.Message) { + xxx_messageInfo_Process.Merge(m, src) +} +func (m *Process) XXX_Size() int { + return m.Size() +} +func (m *Process) XXX_DiscardUnknown() { + xxx_messageInfo_Process.DiscardUnknown(m) } -func (m *Process) GetConsoleSize() *Box { - if m != nil { - return m.ConsoleSize - } - return nil -} - -func (m *Process) GetUser() User { - if m != nil { - return m.User - } - return User{} -} - -func (m *Process) GetArgs() []string { - if m != nil { - return m.Args - } - return nil -} - -func (m *Process) GetEnv() []string { - if m != nil { - return m.Env - } - return nil -} - -func (m *Process) GetCwd() string { - if m != nil { - return m.Cwd - } - return "" -} - -func (m *Process) GetCapabilities() *LinuxCapabilities { - if m != nil { - return m.Capabilities - } - return nil -} - -func (m *Process) GetRlimits() []POSIXRlimit { - if m != nil { - return m.Rlimits - } - return nil -} - -func (m *Process) GetNoNewPrivileges() bool { - if m != nil { - return m.NoNewPrivileges - } - return false -} - -func (m *Process) GetApparmorProfile() string { - if m != nil { - return m.ApparmorProfile - } - return "" -} - -func (m *Process) GetOOMScoreAdj() int64 { - if m != nil { - return m.OOMScoreAdj - } - return 0 -} - -func (m *Process) GetSelinuxLabel() string { - if m != nil { - return m.SelinuxLabel - } - return "" -} +var xxx_messageInfo_Process proto.InternalMessageInfo type Box struct { // Height is the vertical dimension of a box. - Height uint32 `protobuf:"varint,1,opt,name=Height,proto3" json:"Height,omitempty"` + Height uint32 `protobuf:"varint,1,opt,name=Height,json=height,proto3" json:"Height,omitempty"` // Width is the horizontal dimension of a box. - Width uint32 `protobuf:"varint,2,opt,name=Width,proto3" json:"Width,omitempty"` + Width uint32 `protobuf:"varint,2,opt,name=Width,json=width,proto3" json:"Width,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Box) Reset() { *m = Box{} } -func (m *Box) String() string { return proto.CompactTextString(m) } -func (*Box) ProtoMessage() {} -func (*Box) Descriptor() ([]byte, []int) { return fileDescriptorOci, []int{2} } - -func (m *Box) GetHeight() uint32 { - if m != nil { - return m.Height +func (m *Box) Reset() { *m = Box{} } +func (*Box) ProtoMessage() {} +func (*Box) Descriptor() ([]byte, []int) { + return fileDescriptor_33eadcd217567f43, []int{2} +} +func (m *Box) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Box) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Box.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return 0 +} +func (m *Box) XXX_Merge(src proto.Message) { + xxx_messageInfo_Box.Merge(m, src) +} +func (m *Box) XXX_Size() int { + return m.Size() +} +func (m *Box) XXX_DiscardUnknown() { + xxx_messageInfo_Box.DiscardUnknown(m) } -func (m *Box) GetWidth() uint32 { - if m != nil { - return m.Width - } - return 0 -} +var xxx_messageInfo_Box proto.InternalMessageInfo type User struct { // UID is the user id. - UID uint32 `protobuf:"varint,1,opt,name=UID,proto3" json:"UID,omitempty"` + UID uint32 `protobuf:"varint,1,opt,name=UID,json=uID,proto3" json:"UID,omitempty"` // GID is the group id. - GID uint32 `protobuf:"varint,2,opt,name=GID,proto3" json:"GID,omitempty"` + GID uint32 `protobuf:"varint,2,opt,name=GID,json=gID,proto3" json:"GID,omitempty"` // AdditionalGids are additional group ids set for the container's process. - AdditionalGids []uint32 `protobuf:"varint,3,rep,packed,name=AdditionalGids" json:"AdditionalGids,omitempty"` + AdditionalGids []uint32 `protobuf:"varint,3,rep,packed,name=AdditionalGids,json=additionalGids,proto3" json:"AdditionalGids,omitempty"` // Username is the user name. - Username string `protobuf:"bytes,4,opt,name=Username,proto3" json:"Username,omitempty"` + Username string `protobuf:"bytes,4,opt,name=Username,json=username,proto3" json:"Username,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *User) Reset() { *m = User{} } -func (m *User) String() string { return proto.CompactTextString(m) } -func (*User) ProtoMessage() {} -func (*User) Descriptor() ([]byte, []int) { return fileDescriptorOci, []int{3} } - -func (m *User) GetUID() uint32 { - if m != nil { - return m.UID +func (m *User) Reset() { *m = User{} } +func (*User) ProtoMessage() {} +func (*User) Descriptor() ([]byte, []int) { + return fileDescriptor_33eadcd217567f43, []int{3} +} +func (m *User) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_User.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return 0 +} +func (m *User) XXX_Merge(src proto.Message) { + xxx_messageInfo_User.Merge(m, src) +} +func (m *User) XXX_Size() int { + return m.Size() +} +func (m *User) XXX_DiscardUnknown() { + xxx_messageInfo_User.DiscardUnknown(m) } -func (m *User) GetGID() uint32 { - if m != nil { - return m.GID - } - return 0 -} - -func (m *User) GetAdditionalGids() []uint32 { - if m != nil { - return m.AdditionalGids - } - return nil -} - -func (m *User) GetUsername() string { - if m != nil { - return m.Username - } - return "" -} +var xxx_messageInfo_User proto.InternalMessageInfo type LinuxCapabilities struct { // Bounding is the set of capabilities checked by the kernel. - Bounding []string `protobuf:"bytes,1,rep,name=Bounding" json:"Bounding,omitempty"` + Bounding []string `protobuf:"bytes,1,rep,name=Bounding,json=bounding,proto3" json:"Bounding,omitempty"` // Effective is the set of capabilities checked by the kernel. - Effective []string `protobuf:"bytes,2,rep,name=Effective" json:"Effective,omitempty"` + Effective []string `protobuf:"bytes,2,rep,name=Effective,json=effective,proto3" json:"Effective,omitempty"` // Inheritable is the capabilities preserved across execve. - Inheritable []string `protobuf:"bytes,3,rep,name=Inheritable" json:"Inheritable,omitempty"` + Inheritable []string `protobuf:"bytes,3,rep,name=Inheritable,json=inheritable,proto3" json:"Inheritable,omitempty"` // Permitted is the limiting superset for effective capabilities. - Permitted []string `protobuf:"bytes,4,rep,name=Permitted" json:"Permitted,omitempty"` + Permitted []string `protobuf:"bytes,4,rep,name=Permitted,json=permitted,proto3" json:"Permitted,omitempty"` // Ambient is the ambient set of capabilities that are kept. - Ambient []string `protobuf:"bytes,5,rep,name=Ambient" json:"Ambient,omitempty"` + Ambient []string `protobuf:"bytes,5,rep,name=Ambient,json=ambient,proto3" json:"Ambient,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *LinuxCapabilities) Reset() { *m = LinuxCapabilities{} } -func (m *LinuxCapabilities) String() string { return proto.CompactTextString(m) } -func (*LinuxCapabilities) ProtoMessage() {} -func (*LinuxCapabilities) Descriptor() ([]byte, []int) { return fileDescriptorOci, []int{4} } - -func (m *LinuxCapabilities) GetBounding() []string { - if m != nil { - return m.Bounding +func (m *LinuxCapabilities) Reset() { *m = LinuxCapabilities{} } +func (*LinuxCapabilities) ProtoMessage() {} +func (*LinuxCapabilities) Descriptor() ([]byte, []int) { + return fileDescriptor_33eadcd217567f43, []int{4} +} +func (m *LinuxCapabilities) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LinuxCapabilities) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LinuxCapabilities.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return nil +} +func (m *LinuxCapabilities) XXX_Merge(src proto.Message) { + xxx_messageInfo_LinuxCapabilities.Merge(m, src) +} +func (m *LinuxCapabilities) XXX_Size() int { + return m.Size() +} +func (m *LinuxCapabilities) XXX_DiscardUnknown() { + xxx_messageInfo_LinuxCapabilities.DiscardUnknown(m) } -func (m *LinuxCapabilities) GetEffective() []string { - if m != nil { - return m.Effective - } - return nil -} - -func (m *LinuxCapabilities) GetInheritable() []string { - if m != nil { - return m.Inheritable - } - return nil -} - -func (m *LinuxCapabilities) GetPermitted() []string { - if m != nil { - return m.Permitted - } - return nil -} - -func (m *LinuxCapabilities) GetAmbient() []string { - if m != nil { - return m.Ambient - } - return nil -} +var xxx_messageInfo_LinuxCapabilities proto.InternalMessageInfo type POSIXRlimit struct { // Type of the rlimit to set - Type string `protobuf:"bytes,1,opt,name=Type,proto3" json:"Type,omitempty"` + Type string `protobuf:"bytes,1,opt,name=Type,json=type,proto3" json:"Type,omitempty"` // Hard is the hard limit for the specified type - Hard uint64 `protobuf:"varint,2,opt,name=Hard,proto3" json:"Hard,omitempty"` + Hard uint64 `protobuf:"varint,2,opt,name=Hard,json=hard,proto3" json:"Hard,omitempty"` // Soft is the soft limit for the specified type - Soft uint64 `protobuf:"varint,3,opt,name=Soft,proto3" json:"Soft,omitempty"` + Soft uint64 `protobuf:"varint,3,opt,name=Soft,json=soft,proto3" json:"Soft,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *POSIXRlimit) Reset() { *m = POSIXRlimit{} } -func (m *POSIXRlimit) String() string { return proto.CompactTextString(m) } -func (*POSIXRlimit) ProtoMessage() {} -func (*POSIXRlimit) Descriptor() ([]byte, []int) { return fileDescriptorOci, []int{5} } - -func (m *POSIXRlimit) GetType() string { - if m != nil { - return m.Type +func (m *POSIXRlimit) Reset() { *m = POSIXRlimit{} } +func (*POSIXRlimit) ProtoMessage() {} +func (*POSIXRlimit) Descriptor() ([]byte, []int) { + return fileDescriptor_33eadcd217567f43, []int{5} +} +func (m *POSIXRlimit) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *POSIXRlimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_POSIXRlimit.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return "" +} +func (m *POSIXRlimit) XXX_Merge(src proto.Message) { + xxx_messageInfo_POSIXRlimit.Merge(m, src) +} +func (m *POSIXRlimit) XXX_Size() int { + return m.Size() +} +func (m *POSIXRlimit) XXX_DiscardUnknown() { + xxx_messageInfo_POSIXRlimit.DiscardUnknown(m) } -func (m *POSIXRlimit) GetHard() uint64 { - if m != nil { - return m.Hard - } - return 0 -} - -func (m *POSIXRlimit) GetSoft() uint64 { - if m != nil { - return m.Soft - } - return 0 -} +var xxx_messageInfo_POSIXRlimit proto.InternalMessageInfo type Mount struct { // destination is the path inside the container expect when it starts with "tmp:/" @@ -396,1076 +336,1141 @@ type Mount struct { // the path which starts with "vm:/dev/" refers the guest vm's "/dev", // especially, "vm:/dev/hostfs/" refers to the shared filesystem. // "tmp:/" is a temporary directory which is used for temporary mounts. - Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` - Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` - Options []string `protobuf:"bytes,4,rep,name=options" json:"options,omitempty"` + Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` + Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` + Options []string `protobuf:"bytes,4,rep,name=options,proto3" json:"options,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Mount) Reset() { *m = Mount{} } -func (m *Mount) String() string { return proto.CompactTextString(m) } -func (*Mount) ProtoMessage() {} -func (*Mount) Descriptor() ([]byte, []int) { return fileDescriptorOci, []int{6} } - -func (m *Mount) GetDestination() string { - if m != nil { - return m.Destination +func (m *Mount) Reset() { *m = Mount{} } +func (*Mount) ProtoMessage() {} +func (*Mount) Descriptor() ([]byte, []int) { + return fileDescriptor_33eadcd217567f43, []int{6} +} +func (m *Mount) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Mount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Mount.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return "" +} +func (m *Mount) XXX_Merge(src proto.Message) { + xxx_messageInfo_Mount.Merge(m, src) +} +func (m *Mount) XXX_Size() int { + return m.Size() +} +func (m *Mount) XXX_DiscardUnknown() { + xxx_messageInfo_Mount.DiscardUnknown(m) } -func (m *Mount) GetSource() string { - if m != nil { - return m.Source - } - return "" -} - -func (m *Mount) GetType() string { - if m != nil { - return m.Type - } - return "" -} - -func (m *Mount) GetOptions() []string { - if m != nil { - return m.Options - } - return nil -} +var xxx_messageInfo_Mount proto.InternalMessageInfo type Root struct { // Path is the absolute path to the container's root filesystem. - Path string `protobuf:"bytes,1,opt,name=Path,proto3" json:"Path,omitempty"` + Path string `protobuf:"bytes,1,opt,name=Path,json=path,proto3" json:"Path,omitempty"` // Readonly makes the root filesystem for the container readonly before the process is executed. - Readonly bool `protobuf:"varint,2,opt,name=Readonly,proto3" json:"Readonly,omitempty"` + Readonly bool `protobuf:"varint,2,opt,name=Readonly,json=readonly,proto3" json:"Readonly,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Root) Reset() { *m = Root{} } -func (m *Root) String() string { return proto.CompactTextString(m) } -func (*Root) ProtoMessage() {} -func (*Root) Descriptor() ([]byte, []int) { return fileDescriptorOci, []int{7} } - -func (m *Root) GetPath() string { - if m != nil { - return m.Path +func (m *Root) Reset() { *m = Root{} } +func (*Root) ProtoMessage() {} +func (*Root) Descriptor() ([]byte, []int) { + return fileDescriptor_33eadcd217567f43, []int{7} +} +func (m *Root) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Root) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Root.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return "" +} +func (m *Root) XXX_Merge(src proto.Message) { + xxx_messageInfo_Root.Merge(m, src) +} +func (m *Root) XXX_Size() int { + return m.Size() +} +func (m *Root) XXX_DiscardUnknown() { + xxx_messageInfo_Root.DiscardUnknown(m) } -func (m *Root) GetReadonly() bool { - if m != nil { - return m.Readonly - } - return false -} +var xxx_messageInfo_Root proto.InternalMessageInfo type Hooks struct { // Prestart is a list of hooks to be run before the container process is executed. - Prestart []Hook `protobuf:"bytes,1,rep,name=Prestart" json:"Prestart"` + Prestart []Hook `protobuf:"bytes,1,rep,name=Prestart,json=prestart,proto3" json:"Prestart"` // Poststart is a list of hooks to be run after the container process is started. - Poststart []Hook `protobuf:"bytes,2,rep,name=Poststart" json:"Poststart"` + Poststart []Hook `protobuf:"bytes,2,rep,name=Poststart,json=poststart,proto3" json:"Poststart"` // Poststop is a list of hooks to be run after the container process exits. - Poststop []Hook `protobuf:"bytes,3,rep,name=Poststop" json:"Poststop"` + Poststop []Hook `protobuf:"bytes,3,rep,name=Poststop,json=poststop,proto3" json:"Poststop"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Hooks) Reset() { *m = Hooks{} } -func (m *Hooks) String() string { return proto.CompactTextString(m) } -func (*Hooks) ProtoMessage() {} -func (*Hooks) Descriptor() ([]byte, []int) { return fileDescriptorOci, []int{8} } - -func (m *Hooks) GetPrestart() []Hook { - if m != nil { - return m.Prestart +func (m *Hooks) Reset() { *m = Hooks{} } +func (*Hooks) ProtoMessage() {} +func (*Hooks) Descriptor() ([]byte, []int) { + return fileDescriptor_33eadcd217567f43, []int{8} +} +func (m *Hooks) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Hooks) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Hooks.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return nil +} +func (m *Hooks) XXX_Merge(src proto.Message) { + xxx_messageInfo_Hooks.Merge(m, src) +} +func (m *Hooks) XXX_Size() int { + return m.Size() +} +func (m *Hooks) XXX_DiscardUnknown() { + xxx_messageInfo_Hooks.DiscardUnknown(m) } -func (m *Hooks) GetPoststart() []Hook { - if m != nil { - return m.Poststart - } - return nil -} - -func (m *Hooks) GetPoststop() []Hook { - if m != nil { - return m.Poststop - } - return nil -} +var xxx_messageInfo_Hooks proto.InternalMessageInfo type Hook struct { - Path string `protobuf:"bytes,1,opt,name=Path,proto3" json:"Path,omitempty"` - Args []string `protobuf:"bytes,2,rep,name=Args" json:"Args,omitempty"` - Env []string `protobuf:"bytes,3,rep,name=Env" json:"Env,omitempty"` - Timeout int64 `protobuf:"varint,4,opt,name=Timeout,proto3" json:"Timeout,omitempty"` + Path string `protobuf:"bytes,1,opt,name=Path,json=path,proto3" json:"Path,omitempty"` + Args []string `protobuf:"bytes,2,rep,name=Args,json=args,proto3" json:"Args,omitempty"` + Env []string `protobuf:"bytes,3,rep,name=Env,json=env,proto3" json:"Env,omitempty"` + Timeout int64 `protobuf:"varint,4,opt,name=Timeout,json=timeout,proto3" json:"Timeout,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Hook) Reset() { *m = Hook{} } -func (m *Hook) String() string { return proto.CompactTextString(m) } -func (*Hook) ProtoMessage() {} -func (*Hook) Descriptor() ([]byte, []int) { return fileDescriptorOci, []int{9} } - -func (m *Hook) GetPath() string { - if m != nil { - return m.Path +func (m *Hook) Reset() { *m = Hook{} } +func (*Hook) ProtoMessage() {} +func (*Hook) Descriptor() ([]byte, []int) { + return fileDescriptor_33eadcd217567f43, []int{9} +} +func (m *Hook) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Hook) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Hook.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return "" +} +func (m *Hook) XXX_Merge(src proto.Message) { + xxx_messageInfo_Hook.Merge(m, src) +} +func (m *Hook) XXX_Size() int { + return m.Size() +} +func (m *Hook) XXX_DiscardUnknown() { + xxx_messageInfo_Hook.DiscardUnknown(m) } -func (m *Hook) GetArgs() []string { - if m != nil { - return m.Args - } - return nil -} - -func (m *Hook) GetEnv() []string { - if m != nil { - return m.Env - } - return nil -} - -func (m *Hook) GetTimeout() int64 { - if m != nil { - return m.Timeout - } - return 0 -} +var xxx_messageInfo_Hook proto.InternalMessageInfo type Linux struct { // UIDMapping specifies user mappings for supporting user namespaces. - UIDMappings []LinuxIDMapping `protobuf:"bytes,1,rep,name=UIDMappings" json:"UIDMappings"` + UIDMappings []LinuxIDMapping `protobuf:"bytes,1,rep,name=UIDMappings,json=uIDMappings,proto3" json:"UIDMappings"` // GIDMapping specifies group mappings for supporting user namespaces. - GIDMappings []LinuxIDMapping `protobuf:"bytes,2,rep,name=GIDMappings" json:"GIDMappings"` + GIDMappings []LinuxIDMapping `protobuf:"bytes,2,rep,name=GIDMappings,json=gIDMappings,proto3" json:"GIDMappings"` // Sysctl are a set of key value pairs that are set for the container on start - Sysctl map[string]string `protobuf:"bytes,3,rep,name=Sysctl" json:"Sysctl,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Sysctl map[string]string `protobuf:"bytes,3,rep,name=Sysctl,json=sysctl,proto3" json:"Sysctl,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Resources contain cgroup information for handling resource constraints // for the container - Resources *LinuxResources `protobuf:"bytes,4,opt,name=Resources" json:"Resources,omitempty"` + Resources *LinuxResources `protobuf:"bytes,4,opt,name=Resources,json=resources,proto3" json:"Resources,omitempty"` // CgroupsPath specifies the path to cgroups that are created and/or joined by the container. // The path is expected to be relative to the cgroups mountpoint. // If resources are specified, the cgroups at CgroupsPath will be updated based on resources. - CgroupsPath string `protobuf:"bytes,5,opt,name=CgroupsPath,proto3" json:"CgroupsPath,omitempty"` + CgroupsPath string `protobuf:"bytes,5,opt,name=CgroupsPath,json=cgroupsPath,proto3" json:"CgroupsPath,omitempty"` // Namespaces contains the namespaces that are created and/or joined by the container - Namespaces []LinuxNamespace `protobuf:"bytes,6,rep,name=Namespaces" json:"Namespaces"` + Namespaces []LinuxNamespace `protobuf:"bytes,6,rep,name=Namespaces,json=namespaces,proto3" json:"Namespaces"` // Devices are a list of device nodes that are created for the container - Devices []LinuxDevice `protobuf:"bytes,7,rep,name=Devices" json:"Devices"` + Devices []LinuxDevice `protobuf:"bytes,7,rep,name=Devices,json=devices,proto3" json:"Devices"` // Seccomp specifies the seccomp security settings for the container. - Seccomp *LinuxSeccomp `protobuf:"bytes,8,opt,name=Seccomp" json:"Seccomp,omitempty"` + Seccomp *LinuxSeccomp `protobuf:"bytes,8,opt,name=Seccomp,json=seccomp,proto3" json:"Seccomp,omitempty"` // RootfsPropagation is the rootfs mount propagation mode for the container. - RootfsPropagation string `protobuf:"bytes,9,opt,name=RootfsPropagation,proto3" json:"RootfsPropagation,omitempty"` + RootfsPropagation string `protobuf:"bytes,9,opt,name=RootfsPropagation,json=rootfsPropagation,proto3" json:"RootfsPropagation,omitempty"` // MaskedPaths masks over the provided paths inside the container. - MaskedPaths []string `protobuf:"bytes,10,rep,name=MaskedPaths" json:"MaskedPaths,omitempty"` + MaskedPaths []string `protobuf:"bytes,10,rep,name=MaskedPaths,json=maskedPaths,proto3" json:"MaskedPaths,omitempty"` // ReadonlyPaths sets the provided paths as RO inside the container. - ReadonlyPaths []string `protobuf:"bytes,11,rep,name=ReadonlyPaths" json:"ReadonlyPaths,omitempty"` + ReadonlyPaths []string `protobuf:"bytes,11,rep,name=ReadonlyPaths,json=readonlyPaths,proto3" json:"ReadonlyPaths,omitempty"` // MountLabel specifies the selinux context for the mounts in the container. - MountLabel string `protobuf:"bytes,12,opt,name=MountLabel,proto3" json:"MountLabel,omitempty"` + MountLabel string `protobuf:"bytes,12,opt,name=MountLabel,json=mountLabel,proto3" json:"MountLabel,omitempty"` // IntelRdt contains Intel Resource Director Technology (RDT) information // for handling resource constraints (e.g., L3 cache) for the container - IntelRdt *LinuxIntelRdt `protobuf:"bytes,13,opt,name=IntelRdt" json:"IntelRdt,omitempty"` + IntelRdt *LinuxIntelRdt `protobuf:"bytes,13,opt,name=IntelRdt,json=intelRdt,proto3" json:"IntelRdt,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Linux) Reset() { *m = Linux{} } -func (m *Linux) String() string { return proto.CompactTextString(m) } -func (*Linux) ProtoMessage() {} -func (*Linux) Descriptor() ([]byte, []int) { return fileDescriptorOci, []int{10} } - -func (m *Linux) GetUIDMappings() []LinuxIDMapping { - if m != nil { - return m.UIDMappings +func (m *Linux) Reset() { *m = Linux{} } +func (*Linux) ProtoMessage() {} +func (*Linux) Descriptor() ([]byte, []int) { + return fileDescriptor_33eadcd217567f43, []int{10} +} +func (m *Linux) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Linux) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Linux.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return nil +} +func (m *Linux) XXX_Merge(src proto.Message) { + xxx_messageInfo_Linux.Merge(m, src) +} +func (m *Linux) XXX_Size() int { + return m.Size() +} +func (m *Linux) XXX_DiscardUnknown() { + xxx_messageInfo_Linux.DiscardUnknown(m) } -func (m *Linux) GetGIDMappings() []LinuxIDMapping { - if m != nil { - return m.GIDMappings - } - return nil -} - -func (m *Linux) GetSysctl() map[string]string { - if m != nil { - return m.Sysctl - } - return nil -} - -func (m *Linux) GetResources() *LinuxResources { - if m != nil { - return m.Resources - } - return nil -} - -func (m *Linux) GetCgroupsPath() string { - if m != nil { - return m.CgroupsPath - } - return "" -} - -func (m *Linux) GetNamespaces() []LinuxNamespace { - if m != nil { - return m.Namespaces - } - return nil -} - -func (m *Linux) GetDevices() []LinuxDevice { - if m != nil { - return m.Devices - } - return nil -} - -func (m *Linux) GetSeccomp() *LinuxSeccomp { - if m != nil { - return m.Seccomp - } - return nil -} - -func (m *Linux) GetRootfsPropagation() string { - if m != nil { - return m.RootfsPropagation - } - return "" -} - -func (m *Linux) GetMaskedPaths() []string { - if m != nil { - return m.MaskedPaths - } - return nil -} - -func (m *Linux) GetReadonlyPaths() []string { - if m != nil { - return m.ReadonlyPaths - } - return nil -} - -func (m *Linux) GetMountLabel() string { - if m != nil { - return m.MountLabel - } - return "" -} - -func (m *Linux) GetIntelRdt() *LinuxIntelRdt { - if m != nil { - return m.IntelRdt - } - return nil -} +var xxx_messageInfo_Linux proto.InternalMessageInfo type Windows struct { // Dummy string, never used. - Dummy string `protobuf:"bytes,1,opt,name=dummy,proto3" json:"dummy,omitempty"` + Dummy string `protobuf:"bytes,1,opt,name=dummy,proto3" json:"dummy,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Windows) Reset() { *m = Windows{} } -func (m *Windows) String() string { return proto.CompactTextString(m) } -func (*Windows) ProtoMessage() {} -func (*Windows) Descriptor() ([]byte, []int) { return fileDescriptorOci, []int{11} } - -func (m *Windows) GetDummy() string { - if m != nil { - return m.Dummy +func (m *Windows) Reset() { *m = Windows{} } +func (*Windows) ProtoMessage() {} +func (*Windows) Descriptor() ([]byte, []int) { + return fileDescriptor_33eadcd217567f43, []int{11} +} +func (m *Windows) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Windows) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Windows.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return "" } +func (m *Windows) XXX_Merge(src proto.Message) { + xxx_messageInfo_Windows.Merge(m, src) +} +func (m *Windows) XXX_Size() int { + return m.Size() +} +func (m *Windows) XXX_DiscardUnknown() { + xxx_messageInfo_Windows.DiscardUnknown(m) +} + +var xxx_messageInfo_Windows proto.InternalMessageInfo type Solaris struct { // Dummy string, never used. - Dummy string `protobuf:"bytes,1,opt,name=dummy,proto3" json:"dummy,omitempty"` + Dummy string `protobuf:"bytes,1,opt,name=dummy,proto3" json:"dummy,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Solaris) Reset() { *m = Solaris{} } -func (m *Solaris) String() string { return proto.CompactTextString(m) } -func (*Solaris) ProtoMessage() {} -func (*Solaris) Descriptor() ([]byte, []int) { return fileDescriptorOci, []int{12} } - -func (m *Solaris) GetDummy() string { - if m != nil { - return m.Dummy +func (m *Solaris) Reset() { *m = Solaris{} } +func (*Solaris) ProtoMessage() {} +func (*Solaris) Descriptor() ([]byte, []int) { + return fileDescriptor_33eadcd217567f43, []int{12} +} +func (m *Solaris) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Solaris) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Solaris.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return "" } +func (m *Solaris) XXX_Merge(src proto.Message) { + xxx_messageInfo_Solaris.Merge(m, src) +} +func (m *Solaris) XXX_Size() int { + return m.Size() +} +func (m *Solaris) XXX_DiscardUnknown() { + xxx_messageInfo_Solaris.DiscardUnknown(m) +} + +var xxx_messageInfo_Solaris proto.InternalMessageInfo type LinuxIDMapping struct { // HostID is the starting UID/GID on the host to be mapped to 'ContainerID' - HostID uint32 `protobuf:"varint,1,opt,name=HostID,proto3" json:"HostID,omitempty"` + HostID uint32 `protobuf:"varint,1,opt,name=HostID,json=hostID,proto3" json:"HostID,omitempty"` // ContainerID is the starting UID/GID in the container - ContainerID uint32 `protobuf:"varint,2,opt,name=ContainerID,proto3" json:"ContainerID,omitempty"` + ContainerID uint32 `protobuf:"varint,2,opt,name=ContainerID,json=containerID,proto3" json:"ContainerID,omitempty"` // Size is the number of IDs to be mapped - Size_ uint32 `protobuf:"varint,3,opt,name=Size,proto3" json:"Size,omitempty"` + Size_ uint32 `protobuf:"varint,3,opt,name=Size,json=size,proto3" json:"Size,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *LinuxIDMapping) Reset() { *m = LinuxIDMapping{} } -func (m *LinuxIDMapping) String() string { return proto.CompactTextString(m) } -func (*LinuxIDMapping) ProtoMessage() {} -func (*LinuxIDMapping) Descriptor() ([]byte, []int) { return fileDescriptorOci, []int{13} } - -func (m *LinuxIDMapping) GetHostID() uint32 { - if m != nil { - return m.HostID +func (m *LinuxIDMapping) Reset() { *m = LinuxIDMapping{} } +func (*LinuxIDMapping) ProtoMessage() {} +func (*LinuxIDMapping) Descriptor() ([]byte, []int) { + return fileDescriptor_33eadcd217567f43, []int{13} +} +func (m *LinuxIDMapping) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LinuxIDMapping) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LinuxIDMapping.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return 0 +} +func (m *LinuxIDMapping) XXX_Merge(src proto.Message) { + xxx_messageInfo_LinuxIDMapping.Merge(m, src) +} +func (m *LinuxIDMapping) XXX_Size() int { + return m.Size() +} +func (m *LinuxIDMapping) XXX_DiscardUnknown() { + xxx_messageInfo_LinuxIDMapping.DiscardUnknown(m) } -func (m *LinuxIDMapping) GetContainerID() uint32 { - if m != nil { - return m.ContainerID - } - return 0 -} - -func (m *LinuxIDMapping) GetSize_() uint32 { - if m != nil { - return m.Size_ - } - return 0 -} +var xxx_messageInfo_LinuxIDMapping proto.InternalMessageInfo type LinuxNamespace struct { // Type is the type of namespace - Type string `protobuf:"bytes,1,opt,name=Type,proto3" json:"Type,omitempty"` + Type string `protobuf:"bytes,1,opt,name=Type,json=type,proto3" json:"Type,omitempty"` // Path is a path to an existing namespace persisted on disk that can be joined // and is of the same type - Path string `protobuf:"bytes,2,opt,name=Path,proto3" json:"Path,omitempty"` + Path string `protobuf:"bytes,2,opt,name=Path,json=path,proto3" json:"Path,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *LinuxNamespace) Reset() { *m = LinuxNamespace{} } -func (m *LinuxNamespace) String() string { return proto.CompactTextString(m) } -func (*LinuxNamespace) ProtoMessage() {} -func (*LinuxNamespace) Descriptor() ([]byte, []int) { return fileDescriptorOci, []int{14} } - -func (m *LinuxNamespace) GetType() string { - if m != nil { - return m.Type +func (m *LinuxNamespace) Reset() { *m = LinuxNamespace{} } +func (*LinuxNamespace) ProtoMessage() {} +func (*LinuxNamespace) Descriptor() ([]byte, []int) { + return fileDescriptor_33eadcd217567f43, []int{14} +} +func (m *LinuxNamespace) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LinuxNamespace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LinuxNamespace.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return "" +} +func (m *LinuxNamespace) XXX_Merge(src proto.Message) { + xxx_messageInfo_LinuxNamespace.Merge(m, src) +} +func (m *LinuxNamespace) XXX_Size() int { + return m.Size() +} +func (m *LinuxNamespace) XXX_DiscardUnknown() { + xxx_messageInfo_LinuxNamespace.DiscardUnknown(m) } -func (m *LinuxNamespace) GetPath() string { - if m != nil { - return m.Path - } - return "" -} +var xxx_messageInfo_LinuxNamespace proto.InternalMessageInfo type LinuxDevice struct { // Path to the device. - Path string `protobuf:"bytes,1,opt,name=Path,proto3" json:"Path,omitempty"` + Path string `protobuf:"bytes,1,opt,name=Path,json=path,proto3" json:"Path,omitempty"` // Device type, block, char, etc. - Type string `protobuf:"bytes,2,opt,name=Type,proto3" json:"Type,omitempty"` + Type string `protobuf:"bytes,2,opt,name=Type,json=type,proto3" json:"Type,omitempty"` // Major is the device's major number. - Major int64 `protobuf:"varint,3,opt,name=Major,proto3" json:"Major,omitempty"` + Major int64 `protobuf:"varint,3,opt,name=Major,json=major,proto3" json:"Major,omitempty"` // Minor is the device's minor number. - Minor int64 `protobuf:"varint,4,opt,name=Minor,proto3" json:"Minor,omitempty"` + Minor int64 `protobuf:"varint,4,opt,name=Minor,json=minor,proto3" json:"Minor,omitempty"` // FileMode permission bits for the device. - FileMode uint32 `protobuf:"varint,5,opt,name=FileMode,proto3" json:"FileMode,omitempty"` + FileMode uint32 `protobuf:"varint,5,opt,name=FileMode,json=fileMode,proto3" json:"FileMode,omitempty"` // UID of the device. - UID uint32 `protobuf:"varint,6,opt,name=UID,proto3" json:"UID,omitempty"` + UID uint32 `protobuf:"varint,6,opt,name=UID,json=uID,proto3" json:"UID,omitempty"` // Gid of the device. - GID uint32 `protobuf:"varint,7,opt,name=GID,proto3" json:"GID,omitempty"` + GID uint32 `protobuf:"varint,7,opt,name=GID,json=gID,proto3" json:"GID,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *LinuxDevice) Reset() { *m = LinuxDevice{} } -func (m *LinuxDevice) String() string { return proto.CompactTextString(m) } -func (*LinuxDevice) ProtoMessage() {} -func (*LinuxDevice) Descriptor() ([]byte, []int) { return fileDescriptorOci, []int{15} } - -func (m *LinuxDevice) GetPath() string { - if m != nil { - return m.Path +func (m *LinuxDevice) Reset() { *m = LinuxDevice{} } +func (*LinuxDevice) ProtoMessage() {} +func (*LinuxDevice) Descriptor() ([]byte, []int) { + return fileDescriptor_33eadcd217567f43, []int{15} +} +func (m *LinuxDevice) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LinuxDevice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LinuxDevice.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return "" +} +func (m *LinuxDevice) XXX_Merge(src proto.Message) { + xxx_messageInfo_LinuxDevice.Merge(m, src) +} +func (m *LinuxDevice) XXX_Size() int { + return m.Size() +} +func (m *LinuxDevice) XXX_DiscardUnknown() { + xxx_messageInfo_LinuxDevice.DiscardUnknown(m) } -func (m *LinuxDevice) GetType() string { - if m != nil { - return m.Type - } - return "" -} - -func (m *LinuxDevice) GetMajor() int64 { - if m != nil { - return m.Major - } - return 0 -} - -func (m *LinuxDevice) GetMinor() int64 { - if m != nil { - return m.Minor - } - return 0 -} - -func (m *LinuxDevice) GetFileMode() uint32 { - if m != nil { - return m.FileMode - } - return 0 -} - -func (m *LinuxDevice) GetUID() uint32 { - if m != nil { - return m.UID - } - return 0 -} - -func (m *LinuxDevice) GetGID() uint32 { - if m != nil { - return m.GID - } - return 0 -} +var xxx_messageInfo_LinuxDevice proto.InternalMessageInfo type LinuxResources struct { // Devices configures the device whitelist. - Devices []LinuxDeviceCgroup `protobuf:"bytes,1,rep,name=Devices" json:"Devices"` + Devices []LinuxDeviceCgroup `protobuf:"bytes,1,rep,name=Devices,json=devices,proto3" json:"Devices"` // Memory restriction configuration - Memory *LinuxMemory `protobuf:"bytes,2,opt,name=Memory" json:"Memory,omitempty"` + Memory *LinuxMemory `protobuf:"bytes,2,opt,name=Memory,json=memory,proto3" json:"Memory,omitempty"` // CPU resource restriction configuration - CPU *LinuxCPU `protobuf:"bytes,3,opt,name=CPU" json:"CPU,omitempty"` + CPU *LinuxCPU `protobuf:"bytes,3,opt,name=CPU,json=cPU,proto3" json:"CPU,omitempty"` // Task resource restriction configuration. - Pids *LinuxPids `protobuf:"bytes,4,opt,name=Pids" json:"Pids,omitempty"` + Pids *LinuxPids `protobuf:"bytes,4,opt,name=Pids,json=pids,proto3" json:"Pids,omitempty"` // BlockIO restriction configuration - BlockIO *LinuxBlockIO `protobuf:"bytes,5,opt,name=BlockIO" json:"BlockIO,omitempty"` + BlockIO *LinuxBlockIO `protobuf:"bytes,5,opt,name=BlockIO,json=blockIO,proto3" json:"BlockIO,omitempty"` // Hugetlb limit (in bytes) - HugepageLimits []LinuxHugepageLimit `protobuf:"bytes,6,rep,name=HugepageLimits" json:"HugepageLimits"` + HugepageLimits []LinuxHugepageLimit `protobuf:"bytes,6,rep,name=HugepageLimits,json=hugepageLimits,proto3" json:"HugepageLimits"` // Network restriction configuration - Network *LinuxNetwork `protobuf:"bytes,7,opt,name=Network" json:"Network,omitempty"` + Network *LinuxNetwork `protobuf:"bytes,7,opt,name=Network,json=network,proto3" json:"Network,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *LinuxResources) Reset() { *m = LinuxResources{} } -func (m *LinuxResources) String() string { return proto.CompactTextString(m) } -func (*LinuxResources) ProtoMessage() {} -func (*LinuxResources) Descriptor() ([]byte, []int) { return fileDescriptorOci, []int{16} } - -func (m *LinuxResources) GetDevices() []LinuxDeviceCgroup { - if m != nil { - return m.Devices +func (m *LinuxResources) Reset() { *m = LinuxResources{} } +func (*LinuxResources) ProtoMessage() {} +func (*LinuxResources) Descriptor() ([]byte, []int) { + return fileDescriptor_33eadcd217567f43, []int{16} +} +func (m *LinuxResources) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LinuxResources) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LinuxResources.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return nil +} +func (m *LinuxResources) XXX_Merge(src proto.Message) { + xxx_messageInfo_LinuxResources.Merge(m, src) +} +func (m *LinuxResources) XXX_Size() int { + return m.Size() +} +func (m *LinuxResources) XXX_DiscardUnknown() { + xxx_messageInfo_LinuxResources.DiscardUnknown(m) } -func (m *LinuxResources) GetMemory() *LinuxMemory { - if m != nil { - return m.Memory - } - return nil -} - -func (m *LinuxResources) GetCPU() *LinuxCPU { - if m != nil { - return m.CPU - } - return nil -} - -func (m *LinuxResources) GetPids() *LinuxPids { - if m != nil { - return m.Pids - } - return nil -} - -func (m *LinuxResources) GetBlockIO() *LinuxBlockIO { - if m != nil { - return m.BlockIO - } - return nil -} - -func (m *LinuxResources) GetHugepageLimits() []LinuxHugepageLimit { - if m != nil { - return m.HugepageLimits - } - return nil -} - -func (m *LinuxResources) GetNetwork() *LinuxNetwork { - if m != nil { - return m.Network - } - return nil -} +var xxx_messageInfo_LinuxResources proto.InternalMessageInfo type LinuxMemory struct { // Memory limit (in bytes). - Limit int64 `protobuf:"varint,1,opt,name=Limit,proto3" json:"Limit,omitempty"` + Limit int64 `protobuf:"varint,1,opt,name=Limit,json=limit,proto3" json:"Limit,omitempty"` // Memory reservation or soft_limit (in bytes). - Reservation int64 `protobuf:"varint,2,opt,name=Reservation,proto3" json:"Reservation,omitempty"` + Reservation int64 `protobuf:"varint,2,opt,name=Reservation,json=reservation,proto3" json:"Reservation,omitempty"` // Total memory limit (memory + swap). - Swap int64 `protobuf:"varint,3,opt,name=Swap,proto3" json:"Swap,omitempty"` + Swap int64 `protobuf:"varint,3,opt,name=Swap,json=swap,proto3" json:"Swap,omitempty"` // Kernel memory limit (in bytes). - Kernel int64 `protobuf:"varint,4,opt,name=Kernel,proto3" json:"Kernel,omitempty"` + Kernel int64 `protobuf:"varint,4,opt,name=Kernel,json=kernel,proto3" json:"Kernel,omitempty"` // Kernel memory limit for tcp (in bytes) - KernelTCP int64 `protobuf:"varint,5,opt,name=KernelTCP,proto3" json:"KernelTCP,omitempty"` + KernelTCP int64 `protobuf:"varint,5,opt,name=KernelTCP,json=kernelTCP,proto3" json:"KernelTCP,omitempty"` // How aggressive the kernel will swap memory pages. - Swappiness uint64 `protobuf:"varint,6,opt,name=Swappiness,proto3" json:"Swappiness,omitempty"` + Swappiness uint64 `protobuf:"varint,6,opt,name=Swappiness,json=swappiness,proto3" json:"Swappiness,omitempty"` // DisableOOMKiller disables the OOM killer for out of memory conditions - DisableOOMKiller bool `protobuf:"varint,7,opt,name=DisableOOMKiller,proto3" json:"DisableOOMKiller,omitempty"` + DisableOOMKiller bool `protobuf:"varint,7,opt,name=DisableOOMKiller,json=disableOOMKiller,proto3" json:"DisableOOMKiller,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *LinuxMemory) Reset() { *m = LinuxMemory{} } -func (m *LinuxMemory) String() string { return proto.CompactTextString(m) } -func (*LinuxMemory) ProtoMessage() {} -func (*LinuxMemory) Descriptor() ([]byte, []int) { return fileDescriptorOci, []int{17} } - -func (m *LinuxMemory) GetLimit() int64 { - if m != nil { - return m.Limit +func (m *LinuxMemory) Reset() { *m = LinuxMemory{} } +func (*LinuxMemory) ProtoMessage() {} +func (*LinuxMemory) Descriptor() ([]byte, []int) { + return fileDescriptor_33eadcd217567f43, []int{17} +} +func (m *LinuxMemory) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LinuxMemory) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LinuxMemory.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return 0 +} +func (m *LinuxMemory) XXX_Merge(src proto.Message) { + xxx_messageInfo_LinuxMemory.Merge(m, src) +} +func (m *LinuxMemory) XXX_Size() int { + return m.Size() +} +func (m *LinuxMemory) XXX_DiscardUnknown() { + xxx_messageInfo_LinuxMemory.DiscardUnknown(m) } -func (m *LinuxMemory) GetReservation() int64 { - if m != nil { - return m.Reservation - } - return 0 -} - -func (m *LinuxMemory) GetSwap() int64 { - if m != nil { - return m.Swap - } - return 0 -} - -func (m *LinuxMemory) GetKernel() int64 { - if m != nil { - return m.Kernel - } - return 0 -} - -func (m *LinuxMemory) GetKernelTCP() int64 { - if m != nil { - return m.KernelTCP - } - return 0 -} - -func (m *LinuxMemory) GetSwappiness() uint64 { - if m != nil { - return m.Swappiness - } - return 0 -} - -func (m *LinuxMemory) GetDisableOOMKiller() bool { - if m != nil { - return m.DisableOOMKiller - } - return false -} +var xxx_messageInfo_LinuxMemory proto.InternalMessageInfo type LinuxCPU struct { // CPU shares (relative weight (ratio) vs. other cgroups with cpu shares). - Shares uint64 `protobuf:"varint,1,opt,name=Shares,proto3" json:"Shares,omitempty"` + Shares uint64 `protobuf:"varint,1,opt,name=Shares,json=shares,proto3" json:"Shares,omitempty"` // CPU hardcap limit (in usecs). Allowed cpu time in a given period. - Quota int64 `protobuf:"varint,2,opt,name=Quota,proto3" json:"Quota,omitempty"` + Quota int64 `protobuf:"varint,2,opt,name=Quota,json=quota,proto3" json:"Quota,omitempty"` // CPU period to be used for hardcapping (in usecs). - Period uint64 `protobuf:"varint,3,opt,name=Period,proto3" json:"Period,omitempty"` + Period uint64 `protobuf:"varint,3,opt,name=Period,json=period,proto3" json:"Period,omitempty"` // How much time realtime scheduling may use (in usecs). - RealtimeRuntime int64 `protobuf:"varint,4,opt,name=RealtimeRuntime,proto3" json:"RealtimeRuntime,omitempty"` + RealtimeRuntime int64 `protobuf:"varint,4,opt,name=RealtimeRuntime,json=realtimeRuntime,proto3" json:"RealtimeRuntime,omitempty"` // CPU period to be used for realtime scheduling (in usecs). - RealtimePeriod uint64 `protobuf:"varint,5,opt,name=RealtimePeriod,proto3" json:"RealtimePeriod,omitempty"` + RealtimePeriod uint64 `protobuf:"varint,5,opt,name=RealtimePeriod,json=realtimePeriod,proto3" json:"RealtimePeriod,omitempty"` // CPUs to use within the cpuset. Default is to use any CPU available. - Cpus string `protobuf:"bytes,6,opt,name=Cpus,proto3" json:"Cpus,omitempty"` + Cpus string `protobuf:"bytes,6,opt,name=Cpus,json=cpus,proto3" json:"Cpus,omitempty"` // List of memory nodes in the cpuset. Default is to use any available memory node. - Mems string `protobuf:"bytes,7,opt,name=Mems,proto3" json:"Mems,omitempty"` + Mems string `protobuf:"bytes,7,opt,name=Mems,json=mems,proto3" json:"Mems,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *LinuxCPU) Reset() { *m = LinuxCPU{} } -func (m *LinuxCPU) String() string { return proto.CompactTextString(m) } -func (*LinuxCPU) ProtoMessage() {} -func (*LinuxCPU) Descriptor() ([]byte, []int) { return fileDescriptorOci, []int{18} } - -func (m *LinuxCPU) GetShares() uint64 { - if m != nil { - return m.Shares +func (m *LinuxCPU) Reset() { *m = LinuxCPU{} } +func (*LinuxCPU) ProtoMessage() {} +func (*LinuxCPU) Descriptor() ([]byte, []int) { + return fileDescriptor_33eadcd217567f43, []int{18} +} +func (m *LinuxCPU) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LinuxCPU) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LinuxCPU.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return 0 +} +func (m *LinuxCPU) XXX_Merge(src proto.Message) { + xxx_messageInfo_LinuxCPU.Merge(m, src) +} +func (m *LinuxCPU) XXX_Size() int { + return m.Size() +} +func (m *LinuxCPU) XXX_DiscardUnknown() { + xxx_messageInfo_LinuxCPU.DiscardUnknown(m) } -func (m *LinuxCPU) GetQuota() int64 { - if m != nil { - return m.Quota - } - return 0 -} - -func (m *LinuxCPU) GetPeriod() uint64 { - if m != nil { - return m.Period - } - return 0 -} - -func (m *LinuxCPU) GetRealtimeRuntime() int64 { - if m != nil { - return m.RealtimeRuntime - } - return 0 -} - -func (m *LinuxCPU) GetRealtimePeriod() uint64 { - if m != nil { - return m.RealtimePeriod - } - return 0 -} - -func (m *LinuxCPU) GetCpus() string { - if m != nil { - return m.Cpus - } - return "" -} - -func (m *LinuxCPU) GetMems() string { - if m != nil { - return m.Mems - } - return "" -} +var xxx_messageInfo_LinuxCPU proto.InternalMessageInfo type LinuxWeightDevice struct { // Major is the device's major number. - Major int64 `protobuf:"varint,1,opt,name=Major,proto3" json:"Major,omitempty"` + Major int64 `protobuf:"varint,1,opt,name=Major,json=major,proto3" json:"Major,omitempty"` // Minor is the device's minor number. - Minor int64 `protobuf:"varint,2,opt,name=Minor,proto3" json:"Minor,omitempty"` + Minor int64 `protobuf:"varint,2,opt,name=Minor,json=minor,proto3" json:"Minor,omitempty"` // Weight is the bandwidth rate for the device. - Weight uint32 `protobuf:"varint,3,opt,name=Weight,proto3" json:"Weight,omitempty"` + Weight uint32 `protobuf:"varint,3,opt,name=Weight,json=weight,proto3" json:"Weight,omitempty"` // LeafWeight is the bandwidth rate for the device while competing with the cgroup's child cgroups, CFQ scheduler only - LeafWeight uint32 `protobuf:"varint,4,opt,name=LeafWeight,proto3" json:"LeafWeight,omitempty"` + LeafWeight uint32 `protobuf:"varint,4,opt,name=LeafWeight,json=leafWeight,proto3" json:"LeafWeight,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *LinuxWeightDevice) Reset() { *m = LinuxWeightDevice{} } -func (m *LinuxWeightDevice) String() string { return proto.CompactTextString(m) } -func (*LinuxWeightDevice) ProtoMessage() {} -func (*LinuxWeightDevice) Descriptor() ([]byte, []int) { return fileDescriptorOci, []int{19} } - -func (m *LinuxWeightDevice) GetMajor() int64 { - if m != nil { - return m.Major +func (m *LinuxWeightDevice) Reset() { *m = LinuxWeightDevice{} } +func (*LinuxWeightDevice) ProtoMessage() {} +func (*LinuxWeightDevice) Descriptor() ([]byte, []int) { + return fileDescriptor_33eadcd217567f43, []int{19} +} +func (m *LinuxWeightDevice) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LinuxWeightDevice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LinuxWeightDevice.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return 0 +} +func (m *LinuxWeightDevice) XXX_Merge(src proto.Message) { + xxx_messageInfo_LinuxWeightDevice.Merge(m, src) +} +func (m *LinuxWeightDevice) XXX_Size() int { + return m.Size() +} +func (m *LinuxWeightDevice) XXX_DiscardUnknown() { + xxx_messageInfo_LinuxWeightDevice.DiscardUnknown(m) } -func (m *LinuxWeightDevice) GetMinor() int64 { - if m != nil { - return m.Minor - } - return 0 -} - -func (m *LinuxWeightDevice) GetWeight() uint32 { - if m != nil { - return m.Weight - } - return 0 -} - -func (m *LinuxWeightDevice) GetLeafWeight() uint32 { - if m != nil { - return m.LeafWeight - } - return 0 -} +var xxx_messageInfo_LinuxWeightDevice proto.InternalMessageInfo type LinuxThrottleDevice struct { // Major is the device's major number. - Major int64 `protobuf:"varint,1,opt,name=Major,proto3" json:"Major,omitempty"` + Major int64 `protobuf:"varint,1,opt,name=Major,json=major,proto3" json:"Major,omitempty"` // Minor is the device's minor number. - Minor int64 `protobuf:"varint,2,opt,name=Minor,proto3" json:"Minor,omitempty"` + Minor int64 `protobuf:"varint,2,opt,name=Minor,json=minor,proto3" json:"Minor,omitempty"` // Rate is the IO rate limit per cgroup per device - Rate uint64 `protobuf:"varint,3,opt,name=Rate,proto3" json:"Rate,omitempty"` + Rate uint64 `protobuf:"varint,3,opt,name=Rate,json=rate,proto3" json:"Rate,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *LinuxThrottleDevice) Reset() { *m = LinuxThrottleDevice{} } -func (m *LinuxThrottleDevice) String() string { return proto.CompactTextString(m) } -func (*LinuxThrottleDevice) ProtoMessage() {} -func (*LinuxThrottleDevice) Descriptor() ([]byte, []int) { return fileDescriptorOci, []int{20} } - -func (m *LinuxThrottleDevice) GetMajor() int64 { - if m != nil { - return m.Major +func (m *LinuxThrottleDevice) Reset() { *m = LinuxThrottleDevice{} } +func (*LinuxThrottleDevice) ProtoMessage() {} +func (*LinuxThrottleDevice) Descriptor() ([]byte, []int) { + return fileDescriptor_33eadcd217567f43, []int{20} +} +func (m *LinuxThrottleDevice) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LinuxThrottleDevice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LinuxThrottleDevice.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return 0 +} +func (m *LinuxThrottleDevice) XXX_Merge(src proto.Message) { + xxx_messageInfo_LinuxThrottleDevice.Merge(m, src) +} +func (m *LinuxThrottleDevice) XXX_Size() int { + return m.Size() +} +func (m *LinuxThrottleDevice) XXX_DiscardUnknown() { + xxx_messageInfo_LinuxThrottleDevice.DiscardUnknown(m) } -func (m *LinuxThrottleDevice) GetMinor() int64 { - if m != nil { - return m.Minor - } - return 0 -} - -func (m *LinuxThrottleDevice) GetRate() uint64 { - if m != nil { - return m.Rate - } - return 0 -} +var xxx_messageInfo_LinuxThrottleDevice proto.InternalMessageInfo type LinuxBlockIO struct { // Specifies per cgroup weight - Weight uint32 `protobuf:"varint,1,opt,name=Weight,proto3" json:"Weight,omitempty"` + Weight uint32 `protobuf:"varint,1,opt,name=Weight,json=weight,proto3" json:"Weight,omitempty"` // Specifies tasks' weight in the given cgroup while competing with the cgroup's child cgroups, CFQ scheduler only - LeafWeight uint32 `protobuf:"varint,2,opt,name=LeafWeight,proto3" json:"LeafWeight,omitempty"` + LeafWeight uint32 `protobuf:"varint,2,opt,name=LeafWeight,json=leafWeight,proto3" json:"LeafWeight,omitempty"` // Weight per cgroup per device, can override BlkioWeight - WeightDevice []LinuxWeightDevice `protobuf:"bytes,3,rep,name=WeightDevice" json:"WeightDevice"` + WeightDevice []LinuxWeightDevice `protobuf:"bytes,3,rep,name=WeightDevice,json=weightDevice,proto3" json:"WeightDevice"` // IO read rate limit per cgroup per device, bytes per second - ThrottleReadBpsDevice []LinuxThrottleDevice `protobuf:"bytes,4,rep,name=ThrottleReadBpsDevice" json:"ThrottleReadBpsDevice"` + ThrottleReadBpsDevice []LinuxThrottleDevice `protobuf:"bytes,4,rep,name=ThrottleReadBpsDevice,json=throttleReadBpsDevice,proto3" json:"ThrottleReadBpsDevice"` // IO write rate limit per cgroup per device, bytes per second - ThrottleWriteBpsDevice []LinuxThrottleDevice `protobuf:"bytes,5,rep,name=ThrottleWriteBpsDevice" json:"ThrottleWriteBpsDevice"` + ThrottleWriteBpsDevice []LinuxThrottleDevice `protobuf:"bytes,5,rep,name=ThrottleWriteBpsDevice,json=throttleWriteBpsDevice,proto3" json:"ThrottleWriteBpsDevice"` // IO read rate limit per cgroup per device, IO per second - ThrottleReadIOPSDevice []LinuxThrottleDevice `protobuf:"bytes,6,rep,name=ThrottleReadIOPSDevice" json:"ThrottleReadIOPSDevice"` + ThrottleReadIOPSDevice []LinuxThrottleDevice `protobuf:"bytes,6,rep,name=ThrottleReadIOPSDevice,json=throttleReadIOPSDevice,proto3" json:"ThrottleReadIOPSDevice"` // IO write rate limit per cgroup per device, IO per second - ThrottleWriteIOPSDevice []LinuxThrottleDevice `protobuf:"bytes,7,rep,name=ThrottleWriteIOPSDevice" json:"ThrottleWriteIOPSDevice"` + ThrottleWriteIOPSDevice []LinuxThrottleDevice `protobuf:"bytes,7,rep,name=ThrottleWriteIOPSDevice,json=throttleWriteIOPSDevice,proto3" json:"ThrottleWriteIOPSDevice"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *LinuxBlockIO) Reset() { *m = LinuxBlockIO{} } -func (m *LinuxBlockIO) String() string { return proto.CompactTextString(m) } -func (*LinuxBlockIO) ProtoMessage() {} -func (*LinuxBlockIO) Descriptor() ([]byte, []int) { return fileDescriptorOci, []int{21} } - -func (m *LinuxBlockIO) GetWeight() uint32 { - if m != nil { - return m.Weight +func (m *LinuxBlockIO) Reset() { *m = LinuxBlockIO{} } +func (*LinuxBlockIO) ProtoMessage() {} +func (*LinuxBlockIO) Descriptor() ([]byte, []int) { + return fileDescriptor_33eadcd217567f43, []int{21} +} +func (m *LinuxBlockIO) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LinuxBlockIO) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LinuxBlockIO.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return 0 +} +func (m *LinuxBlockIO) XXX_Merge(src proto.Message) { + xxx_messageInfo_LinuxBlockIO.Merge(m, src) +} +func (m *LinuxBlockIO) XXX_Size() int { + return m.Size() +} +func (m *LinuxBlockIO) XXX_DiscardUnknown() { + xxx_messageInfo_LinuxBlockIO.DiscardUnknown(m) } -func (m *LinuxBlockIO) GetLeafWeight() uint32 { - if m != nil { - return m.LeafWeight - } - return 0 -} - -func (m *LinuxBlockIO) GetWeightDevice() []LinuxWeightDevice { - if m != nil { - return m.WeightDevice - } - return nil -} - -func (m *LinuxBlockIO) GetThrottleReadBpsDevice() []LinuxThrottleDevice { - if m != nil { - return m.ThrottleReadBpsDevice - } - return nil -} - -func (m *LinuxBlockIO) GetThrottleWriteBpsDevice() []LinuxThrottleDevice { - if m != nil { - return m.ThrottleWriteBpsDevice - } - return nil -} - -func (m *LinuxBlockIO) GetThrottleReadIOPSDevice() []LinuxThrottleDevice { - if m != nil { - return m.ThrottleReadIOPSDevice - } - return nil -} - -func (m *LinuxBlockIO) GetThrottleWriteIOPSDevice() []LinuxThrottleDevice { - if m != nil { - return m.ThrottleWriteIOPSDevice - } - return nil -} +var xxx_messageInfo_LinuxBlockIO proto.InternalMessageInfo type LinuxPids struct { // Maximum number of PIDs. Default is "no limit". - Limit int64 `protobuf:"varint,1,opt,name=Limit,proto3" json:"Limit,omitempty"` + Limit int64 `protobuf:"varint,1,opt,name=Limit,json=limit,proto3" json:"Limit,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *LinuxPids) Reset() { *m = LinuxPids{} } -func (m *LinuxPids) String() string { return proto.CompactTextString(m) } -func (*LinuxPids) ProtoMessage() {} -func (*LinuxPids) Descriptor() ([]byte, []int) { return fileDescriptorOci, []int{22} } - -func (m *LinuxPids) GetLimit() int64 { - if m != nil { - return m.Limit +func (m *LinuxPids) Reset() { *m = LinuxPids{} } +func (*LinuxPids) ProtoMessage() {} +func (*LinuxPids) Descriptor() ([]byte, []int) { + return fileDescriptor_33eadcd217567f43, []int{22} +} +func (m *LinuxPids) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LinuxPids) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LinuxPids.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return 0 } +func (m *LinuxPids) XXX_Merge(src proto.Message) { + xxx_messageInfo_LinuxPids.Merge(m, src) +} +func (m *LinuxPids) XXX_Size() int { + return m.Size() +} +func (m *LinuxPids) XXX_DiscardUnknown() { + xxx_messageInfo_LinuxPids.DiscardUnknown(m) +} + +var xxx_messageInfo_LinuxPids proto.InternalMessageInfo type LinuxDeviceCgroup struct { // Allow or deny - Allow bool `protobuf:"varint,1,opt,name=Allow,proto3" json:"Allow,omitempty"` + Allow bool `protobuf:"varint,1,opt,name=Allow,json=allow,proto3" json:"Allow,omitempty"` // Device type, block, char, etc. - Type string `protobuf:"bytes,2,opt,name=Type,proto3" json:"Type,omitempty"` + Type string `protobuf:"bytes,2,opt,name=Type,json=type,proto3" json:"Type,omitempty"` // Major is the device's major number. - Major int64 `protobuf:"varint,3,opt,name=Major,proto3" json:"Major,omitempty"` + Major int64 `protobuf:"varint,3,opt,name=Major,json=major,proto3" json:"Major,omitempty"` // Minor is the device's minor number. - Minor int64 `protobuf:"varint,4,opt,name=Minor,proto3" json:"Minor,omitempty"` + Minor int64 `protobuf:"varint,4,opt,name=Minor,json=minor,proto3" json:"Minor,omitempty"` // Cgroup access permissions format, rwm. - Access string `protobuf:"bytes,5,opt,name=Access,proto3" json:"Access,omitempty"` + Access string `protobuf:"bytes,5,opt,name=Access,json=access,proto3" json:"Access,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *LinuxDeviceCgroup) Reset() { *m = LinuxDeviceCgroup{} } -func (m *LinuxDeviceCgroup) String() string { return proto.CompactTextString(m) } -func (*LinuxDeviceCgroup) ProtoMessage() {} -func (*LinuxDeviceCgroup) Descriptor() ([]byte, []int) { return fileDescriptorOci, []int{23} } - -func (m *LinuxDeviceCgroup) GetAllow() bool { - if m != nil { - return m.Allow +func (m *LinuxDeviceCgroup) Reset() { *m = LinuxDeviceCgroup{} } +func (*LinuxDeviceCgroup) ProtoMessage() {} +func (*LinuxDeviceCgroup) Descriptor() ([]byte, []int) { + return fileDescriptor_33eadcd217567f43, []int{23} +} +func (m *LinuxDeviceCgroup) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LinuxDeviceCgroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LinuxDeviceCgroup.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return false +} +func (m *LinuxDeviceCgroup) XXX_Merge(src proto.Message) { + xxx_messageInfo_LinuxDeviceCgroup.Merge(m, src) +} +func (m *LinuxDeviceCgroup) XXX_Size() int { + return m.Size() +} +func (m *LinuxDeviceCgroup) XXX_DiscardUnknown() { + xxx_messageInfo_LinuxDeviceCgroup.DiscardUnknown(m) } -func (m *LinuxDeviceCgroup) GetType() string { - if m != nil { - return m.Type - } - return "" -} - -func (m *LinuxDeviceCgroup) GetMajor() int64 { - if m != nil { - return m.Major - } - return 0 -} - -func (m *LinuxDeviceCgroup) GetMinor() int64 { - if m != nil { - return m.Minor - } - return 0 -} - -func (m *LinuxDeviceCgroup) GetAccess() string { - if m != nil { - return m.Access - } - return "" -} +var xxx_messageInfo_LinuxDeviceCgroup proto.InternalMessageInfo type LinuxNetwork struct { // Set class identifier for container's network packets - ClassID uint32 `protobuf:"varint,1,opt,name=ClassID,proto3" json:"ClassID,omitempty"` + ClassID uint32 `protobuf:"varint,1,opt,name=ClassID,json=classID,proto3" json:"ClassID,omitempty"` // Set priority of network traffic for container - Priorities []LinuxInterfacePriority `protobuf:"bytes,2,rep,name=Priorities" json:"Priorities"` + Priorities []LinuxInterfacePriority `protobuf:"bytes,2,rep,name=Priorities,json=priorities,proto3" json:"Priorities"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *LinuxNetwork) Reset() { *m = LinuxNetwork{} } -func (m *LinuxNetwork) String() string { return proto.CompactTextString(m) } -func (*LinuxNetwork) ProtoMessage() {} -func (*LinuxNetwork) Descriptor() ([]byte, []int) { return fileDescriptorOci, []int{24} } - -func (m *LinuxNetwork) GetClassID() uint32 { - if m != nil { - return m.ClassID +func (m *LinuxNetwork) Reset() { *m = LinuxNetwork{} } +func (*LinuxNetwork) ProtoMessage() {} +func (*LinuxNetwork) Descriptor() ([]byte, []int) { + return fileDescriptor_33eadcd217567f43, []int{24} +} +func (m *LinuxNetwork) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LinuxNetwork) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LinuxNetwork.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return 0 +} +func (m *LinuxNetwork) XXX_Merge(src proto.Message) { + xxx_messageInfo_LinuxNetwork.Merge(m, src) +} +func (m *LinuxNetwork) XXX_Size() int { + return m.Size() +} +func (m *LinuxNetwork) XXX_DiscardUnknown() { + xxx_messageInfo_LinuxNetwork.DiscardUnknown(m) } -func (m *LinuxNetwork) GetPriorities() []LinuxInterfacePriority { - if m != nil { - return m.Priorities - } - return nil -} +var xxx_messageInfo_LinuxNetwork proto.InternalMessageInfo type LinuxHugepageLimit struct { // Pagesize is the hugepage size - Pagesize string `protobuf:"bytes,1,opt,name=Pagesize,proto3" json:"Pagesize,omitempty"` + Pagesize string `protobuf:"bytes,1,opt,name=Pagesize,json=pagesize,proto3" json:"Pagesize,omitempty"` // Limit is the limit of "hugepagesize" hugetlb usage - Limit uint64 `protobuf:"varint,2,opt,name=Limit,proto3" json:"Limit,omitempty"` + Limit uint64 `protobuf:"varint,2,opt,name=Limit,json=limit,proto3" json:"Limit,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *LinuxHugepageLimit) Reset() { *m = LinuxHugepageLimit{} } -func (m *LinuxHugepageLimit) String() string { return proto.CompactTextString(m) } -func (*LinuxHugepageLimit) ProtoMessage() {} -func (*LinuxHugepageLimit) Descriptor() ([]byte, []int) { return fileDescriptorOci, []int{25} } - -func (m *LinuxHugepageLimit) GetPagesize() string { - if m != nil { - return m.Pagesize +func (m *LinuxHugepageLimit) Reset() { *m = LinuxHugepageLimit{} } +func (*LinuxHugepageLimit) ProtoMessage() {} +func (*LinuxHugepageLimit) Descriptor() ([]byte, []int) { + return fileDescriptor_33eadcd217567f43, []int{25} +} +func (m *LinuxHugepageLimit) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LinuxHugepageLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LinuxHugepageLimit.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return "" +} +func (m *LinuxHugepageLimit) XXX_Merge(src proto.Message) { + xxx_messageInfo_LinuxHugepageLimit.Merge(m, src) +} +func (m *LinuxHugepageLimit) XXX_Size() int { + return m.Size() +} +func (m *LinuxHugepageLimit) XXX_DiscardUnknown() { + xxx_messageInfo_LinuxHugepageLimit.DiscardUnknown(m) } -func (m *LinuxHugepageLimit) GetLimit() uint64 { - if m != nil { - return m.Limit - } - return 0 -} +var xxx_messageInfo_LinuxHugepageLimit proto.InternalMessageInfo type LinuxInterfacePriority struct { // Name is the name of the network interface - Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` + Name string `protobuf:"bytes,1,opt,name=Name,json=name,proto3" json:"Name,omitempty"` // Priority for the interface - Priority uint32 `protobuf:"varint,2,opt,name=Priority,proto3" json:"Priority,omitempty"` + Priority uint32 `protobuf:"varint,2,opt,name=Priority,json=priority,proto3" json:"Priority,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *LinuxInterfacePriority) Reset() { *m = LinuxInterfacePriority{} } -func (m *LinuxInterfacePriority) String() string { return proto.CompactTextString(m) } -func (*LinuxInterfacePriority) ProtoMessage() {} -func (*LinuxInterfacePriority) Descriptor() ([]byte, []int) { return fileDescriptorOci, []int{26} } - -func (m *LinuxInterfacePriority) GetName() string { - if m != nil { - return m.Name +func (m *LinuxInterfacePriority) Reset() { *m = LinuxInterfacePriority{} } +func (*LinuxInterfacePriority) ProtoMessage() {} +func (*LinuxInterfacePriority) Descriptor() ([]byte, []int) { + return fileDescriptor_33eadcd217567f43, []int{26} +} +func (m *LinuxInterfacePriority) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LinuxInterfacePriority) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LinuxInterfacePriority.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return "" +} +func (m *LinuxInterfacePriority) XXX_Merge(src proto.Message) { + xxx_messageInfo_LinuxInterfacePriority.Merge(m, src) +} +func (m *LinuxInterfacePriority) XXX_Size() int { + return m.Size() +} +func (m *LinuxInterfacePriority) XXX_DiscardUnknown() { + xxx_messageInfo_LinuxInterfacePriority.DiscardUnknown(m) } -func (m *LinuxInterfacePriority) GetPriority() uint32 { - if m != nil { - return m.Priority - } - return 0 -} +var xxx_messageInfo_LinuxInterfacePriority proto.InternalMessageInfo type LinuxSeccomp struct { - DefaultAction string `protobuf:"bytes,1,opt,name=DefaultAction,proto3" json:"DefaultAction,omitempty"` - Architectures []string `protobuf:"bytes,2,rep,name=Architectures" json:"Architectures,omitempty"` - Syscalls []LinuxSyscall `protobuf:"bytes,3,rep,name=Syscalls" json:"Syscalls"` + DefaultAction string `protobuf:"bytes,1,opt,name=DefaultAction,json=defaultAction,proto3" json:"DefaultAction,omitempty"` + Architectures []string `protobuf:"bytes,2,rep,name=Architectures,json=architectures,proto3" json:"Architectures,omitempty"` + Syscalls []LinuxSyscall `protobuf:"bytes,3,rep,name=Syscalls,json=syscalls,proto3" json:"Syscalls"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *LinuxSeccomp) Reset() { *m = LinuxSeccomp{} } -func (m *LinuxSeccomp) String() string { return proto.CompactTextString(m) } -func (*LinuxSeccomp) ProtoMessage() {} -func (*LinuxSeccomp) Descriptor() ([]byte, []int) { return fileDescriptorOci, []int{27} } - -func (m *LinuxSeccomp) GetDefaultAction() string { - if m != nil { - return m.DefaultAction +func (m *LinuxSeccomp) Reset() { *m = LinuxSeccomp{} } +func (*LinuxSeccomp) ProtoMessage() {} +func (*LinuxSeccomp) Descriptor() ([]byte, []int) { + return fileDescriptor_33eadcd217567f43, []int{27} +} +func (m *LinuxSeccomp) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LinuxSeccomp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LinuxSeccomp.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return "" +} +func (m *LinuxSeccomp) XXX_Merge(src proto.Message) { + xxx_messageInfo_LinuxSeccomp.Merge(m, src) +} +func (m *LinuxSeccomp) XXX_Size() int { + return m.Size() +} +func (m *LinuxSeccomp) XXX_DiscardUnknown() { + xxx_messageInfo_LinuxSeccomp.DiscardUnknown(m) } -func (m *LinuxSeccomp) GetArchitectures() []string { - if m != nil { - return m.Architectures - } - return nil -} - -func (m *LinuxSeccomp) GetSyscalls() []LinuxSyscall { - if m != nil { - return m.Syscalls - } - return nil -} +var xxx_messageInfo_LinuxSeccomp proto.InternalMessageInfo type LinuxSeccompArg struct { - Index uint64 `protobuf:"varint,1,opt,name=Index,proto3" json:"Index,omitempty"` - Value uint64 `protobuf:"varint,2,opt,name=Value,proto3" json:"Value,omitempty"` - ValueTwo uint64 `protobuf:"varint,3,opt,name=ValueTwo,proto3" json:"ValueTwo,omitempty"` - Op string `protobuf:"bytes,4,opt,name=Op,proto3" json:"Op,omitempty"` + Index uint64 `protobuf:"varint,1,opt,name=Index,json=index,proto3" json:"Index,omitempty"` + Value uint64 `protobuf:"varint,2,opt,name=Value,json=value,proto3" json:"Value,omitempty"` + ValueTwo uint64 `protobuf:"varint,3,opt,name=ValueTwo,json=valueTwo,proto3" json:"ValueTwo,omitempty"` + Op string `protobuf:"bytes,4,opt,name=Op,json=op,proto3" json:"Op,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *LinuxSeccompArg) Reset() { *m = LinuxSeccompArg{} } -func (m *LinuxSeccompArg) String() string { return proto.CompactTextString(m) } -func (*LinuxSeccompArg) ProtoMessage() {} -func (*LinuxSeccompArg) Descriptor() ([]byte, []int) { return fileDescriptorOci, []int{28} } - -func (m *LinuxSeccompArg) GetIndex() uint64 { - if m != nil { - return m.Index +func (m *LinuxSeccompArg) Reset() { *m = LinuxSeccompArg{} } +func (*LinuxSeccompArg) ProtoMessage() {} +func (*LinuxSeccompArg) Descriptor() ([]byte, []int) { + return fileDescriptor_33eadcd217567f43, []int{28} +} +func (m *LinuxSeccompArg) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LinuxSeccompArg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LinuxSeccompArg.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return 0 +} +func (m *LinuxSeccompArg) XXX_Merge(src proto.Message) { + xxx_messageInfo_LinuxSeccompArg.Merge(m, src) +} +func (m *LinuxSeccompArg) XXX_Size() int { + return m.Size() +} +func (m *LinuxSeccompArg) XXX_DiscardUnknown() { + xxx_messageInfo_LinuxSeccompArg.DiscardUnknown(m) } -func (m *LinuxSeccompArg) GetValue() uint64 { - if m != nil { - return m.Value - } - return 0 -} - -func (m *LinuxSeccompArg) GetValueTwo() uint64 { - if m != nil { - return m.ValueTwo - } - return 0 -} - -func (m *LinuxSeccompArg) GetOp() string { - if m != nil { - return m.Op - } - return "" -} +var xxx_messageInfo_LinuxSeccompArg proto.InternalMessageInfo type LinuxSyscall struct { - Names []string `protobuf:"bytes,1,rep,name=Names" json:"Names,omitempty"` - Action string `protobuf:"bytes,2,opt,name=Action,proto3" json:"Action,omitempty"` - Args []LinuxSeccompArg `protobuf:"bytes,3,rep,name=Args" json:"Args"` + Names []string `protobuf:"bytes,1,rep,name=Names,json=names,proto3" json:"Names,omitempty"` + Action string `protobuf:"bytes,2,opt,name=Action,json=action,proto3" json:"Action,omitempty"` + Args []LinuxSeccompArg `protobuf:"bytes,3,rep,name=Args,json=args,proto3" json:"Args"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *LinuxSyscall) Reset() { *m = LinuxSyscall{} } -func (m *LinuxSyscall) String() string { return proto.CompactTextString(m) } -func (*LinuxSyscall) ProtoMessage() {} -func (*LinuxSyscall) Descriptor() ([]byte, []int) { return fileDescriptorOci, []int{29} } - -func (m *LinuxSyscall) GetNames() []string { - if m != nil { - return m.Names +func (m *LinuxSyscall) Reset() { *m = LinuxSyscall{} } +func (*LinuxSyscall) ProtoMessage() {} +func (*LinuxSyscall) Descriptor() ([]byte, []int) { + return fileDescriptor_33eadcd217567f43, []int{29} +} +func (m *LinuxSyscall) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LinuxSyscall) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LinuxSyscall.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return nil +} +func (m *LinuxSyscall) XXX_Merge(src proto.Message) { + xxx_messageInfo_LinuxSyscall.Merge(m, src) +} +func (m *LinuxSyscall) XXX_Size() int { + return m.Size() +} +func (m *LinuxSyscall) XXX_DiscardUnknown() { + xxx_messageInfo_LinuxSyscall.DiscardUnknown(m) } -func (m *LinuxSyscall) GetAction() string { - if m != nil { - return m.Action - } - return "" -} - -func (m *LinuxSyscall) GetArgs() []LinuxSeccompArg { - if m != nil { - return m.Args - } - return nil -} +var xxx_messageInfo_LinuxSyscall proto.InternalMessageInfo type LinuxIntelRdt struct { // The schema for L3 cache id and capacity bitmask (CBM) // Format: "L3:=;=;..." - L3CacheSchema string `protobuf:"bytes,1,opt,name=L3CacheSchema,proto3" json:"L3CacheSchema,omitempty"` + L3CacheSchema string `protobuf:"bytes,1,opt,name=L3CacheSchema,json=l3CacheSchema,proto3" json:"L3CacheSchema,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *LinuxIntelRdt) Reset() { *m = LinuxIntelRdt{} } -func (m *LinuxIntelRdt) String() string { return proto.CompactTextString(m) } -func (*LinuxIntelRdt) ProtoMessage() {} -func (*LinuxIntelRdt) Descriptor() ([]byte, []int) { return fileDescriptorOci, []int{30} } - -func (m *LinuxIntelRdt) GetL3CacheSchema() string { - if m != nil { - return m.L3CacheSchema +func (m *LinuxIntelRdt) Reset() { *m = LinuxIntelRdt{} } +func (*LinuxIntelRdt) ProtoMessage() {} +func (*LinuxIntelRdt) Descriptor() ([]byte, []int) { + return fileDescriptor_33eadcd217567f43, []int{30} +} +func (m *LinuxIntelRdt) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LinuxIntelRdt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LinuxIntelRdt.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return "" } +func (m *LinuxIntelRdt) XXX_Merge(src proto.Message) { + xxx_messageInfo_LinuxIntelRdt.Merge(m, src) +} +func (m *LinuxIntelRdt) XXX_Size() int { + return m.Size() +} +func (m *LinuxIntelRdt) XXX_DiscardUnknown() { + xxx_messageInfo_LinuxIntelRdt.DiscardUnknown(m) +} + +var xxx_messageInfo_LinuxIntelRdt proto.InternalMessageInfo func init() { proto.RegisterType((*Spec)(nil), "grpc.Spec") + proto.RegisterMapType((map[string]string)(nil), "grpc.Spec.AnnotationsEntry") proto.RegisterType((*Process)(nil), "grpc.Process") proto.RegisterType((*Box)(nil), "grpc.Box") proto.RegisterType((*User)(nil), "grpc.User") @@ -1476,6 +1481,7 @@ func init() { proto.RegisterType((*Hooks)(nil), "grpc.Hooks") proto.RegisterType((*Hook)(nil), "grpc.Hook") proto.RegisterType((*Linux)(nil), "grpc.Linux") + proto.RegisterMapType((map[string]string)(nil), "grpc.Linux.SysctlEntry") proto.RegisterType((*Windows)(nil), "grpc.Windows") proto.RegisterType((*Solaris)(nil), "grpc.Solaris") proto.RegisterType((*LinuxIDMapping)(nil), "grpc.LinuxIDMapping") @@ -1497,6 +1503,155 @@ func init() { proto.RegisterType((*LinuxSyscall)(nil), "grpc.LinuxSyscall") proto.RegisterType((*LinuxIntelRdt)(nil), "grpc.LinuxIntelRdt") } + +func init() { + proto.RegisterFile("github.com/kata-containers/agent/protocols/grpc/oci.proto", fileDescriptor_33eadcd217567f43) +} + +var fileDescriptor_33eadcd217567f43 = []byte{ + // 2236 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x58, 0xcd, 0x73, 0x1b, 0x49, + 0x15, 0x8f, 0x34, 0xa3, 0xaf, 0x96, 0x3f, 0x92, 0xde, 0xc4, 0x11, 0x61, 0x4b, 0xeb, 0x1d, 0xb6, + 0xc0, 0x40, 0xd6, 0x2e, 0x12, 0x3e, 0x76, 0x97, 0x8f, 0x2a, 0xd9, 0x4e, 0x62, 0xd5, 0xc6, 0xb1, + 0x68, 0xd9, 0x1b, 0xe0, 0x40, 0x55, 0x7b, 0xa6, 0x2d, 0xf5, 0x7a, 0x66, 0x7a, 0xe8, 0x6e, 0x59, + 0xf1, 0x9e, 0xe0, 0x3f, 0xa0, 0x8a, 0xbf, 0x80, 0x13, 0xf0, 0x1f, 0x50, 0x9c, 0xb8, 0x91, 0xe2, + 0xc4, 0x91, 0x2a, 0xaa, 0x80, 0xf8, 0xce, 0x9d, 0x23, 0xf5, 0xba, 0x7b, 0xa4, 0x96, 0xed, 0xc0, + 0x2e, 0x7b, 0xd2, 0xbc, 0xdf, 0x7b, 0xfd, 0xba, 0xfb, 0x7d, 0xb7, 0xd0, 0xfb, 0x23, 0xae, 0xc7, + 0x93, 0xe3, 0xcd, 0x58, 0x64, 0x5b, 0xa7, 0x54, 0xd3, 0x77, 0x63, 0x91, 0x6b, 0xca, 0x73, 0x26, + 0xd5, 0x16, 0x1d, 0xb1, 0x5c, 0x6f, 0x15, 0x52, 0x68, 0x11, 0x8b, 0x54, 0x6d, 0x8d, 0x64, 0x11, + 0x6f, 0x89, 0x98, 0x6f, 0x1a, 0x08, 0x87, 0x40, 0xdf, 0x7b, 0xd7, 0x53, 0x30, 0x12, 0x23, 0x61, + 0xe5, 0x8f, 0x27, 0x27, 0x86, 0x32, 0x84, 0xf9, 0xb2, 0x8b, 0xee, 0x75, 0x47, 0x42, 0x8c, 0x52, + 0x36, 0x97, 0x9a, 0x4a, 0x5a, 0x14, 0x4c, 0x2a, 0xcb, 0x8f, 0xfe, 0x14, 0xa0, 0x70, 0x58, 0xb0, + 0x18, 0x77, 0x50, 0xe3, 0x23, 0x26, 0x15, 0x17, 0x79, 0xa7, 0xb2, 0x5e, 0xd9, 0x68, 0x91, 0xc6, + 0x99, 0x25, 0xf1, 0x57, 0x50, 0x63, 0x20, 0x45, 0xcc, 0x94, 0xea, 0x54, 0xd7, 0x2b, 0x1b, 0xed, + 0x07, 0xcb, 0x9b, 0x70, 0x92, 0x4d, 0x07, 0x92, 0x46, 0x61, 0x3f, 0x70, 0x17, 0x85, 0x44, 0x08, + 0xdd, 0x09, 0x8c, 0x14, 0xb2, 0x52, 0x80, 0x90, 0x50, 0x0a, 0xa1, 0xf1, 0x3d, 0xd4, 0xdc, 0x13, + 0x4a, 0xe7, 0x34, 0x63, 0x9d, 0xd0, 0xec, 0xd1, 0x1c, 0x3b, 0x1a, 0x7f, 0x15, 0xd5, 0xf7, 0xc5, + 0x24, 0xd7, 0xaa, 0x53, 0x5b, 0x0f, 0x36, 0xda, 0x0f, 0xda, 0x76, 0xb5, 0xc1, 0xb6, 0xc3, 0x97, + 0x7f, 0x7f, 0xeb, 0x06, 0xa9, 0x67, 0x46, 0x00, 0xbf, 0x8d, 0x6a, 0x7b, 0x42, 0x9c, 0xaa, 0x4e, + 0xdd, 0xec, 0xe3, 0x24, 0x0d, 0x44, 0x6a, 0x63, 0xf8, 0xc1, 0xdf, 0x47, 0xed, 0x5e, 0x9e, 0x0b, + 0x4d, 0x35, 0x17, 0xb9, 0xea, 0x34, 0x8c, 0xca, 0x2f, 0x5a, 0x41, 0xb8, 0xed, 0xa6, 0xc7, 0x7d, + 0x94, 0x6b, 0x79, 0x4e, 0xda, 0x74, 0x8e, 0xc0, 0x0e, 0x4f, 0x79, 0x3e, 0x79, 0xd1, 0x69, 0xfa, + 0x3b, 0x18, 0x88, 0xd4, 0x52, 0xf8, 0x01, 0xa3, 0x0c, 0x45, 0x4a, 0x25, 0x57, 0x9d, 0x96, 0x6f, + 0x14, 0x07, 0x92, 0x86, 0xb2, 0x1f, 0x20, 0xf8, 0x9c, 0xe7, 0x89, 0x98, 0xaa, 0x0e, 0xf2, 0x05, + 0x1d, 0x48, 0x1a, 0x53, 0xfb, 0x71, 0xef, 0x07, 0xe8, 0xe6, 0xe5, 0x53, 0xe1, 0x9b, 0x28, 0x38, + 0x65, 0xe7, 0xce, 0x21, 0xf0, 0x89, 0x6f, 0xa3, 0xda, 0x19, 0x4d, 0x27, 0xcc, 0xb8, 0xa2, 0x45, + 0x2c, 0xf1, 0x41, 0xf5, 0xbd, 0x4a, 0xf4, 0x87, 0x60, 0xe6, 0x27, 0xb0, 0xf4, 0x21, 0x93, 0x19, + 0xcf, 0x69, 0x6a, 0x16, 0x37, 0x49, 0x53, 0x3b, 0x1a, 0x7f, 0x1d, 0xb5, 0x77, 0x44, 0xae, 0x44, + 0xca, 0x86, 0xfc, 0x13, 0xe6, 0x5c, 0xda, 0xb2, 0x87, 0xda, 0x16, 0x2f, 0x48, 0x3b, 0x9e, 0x73, + 0xf1, 0x3b, 0x28, 0x3c, 0x52, 0x4c, 0x2e, 0xba, 0x14, 0x10, 0xe7, 0x93, 0x70, 0xa2, 0x98, 0xc4, + 0x18, 0x85, 0x3d, 0x39, 0x52, 0x9d, 0x70, 0x3d, 0xd8, 0x68, 0x91, 0x90, 0xca, 0x91, 0x82, 0xa3, + 0x3f, 0xca, 0xcf, 0x8c, 0x37, 0x5b, 0x24, 0x60, 0xf9, 0x19, 0x20, 0x3b, 0xd3, 0xc4, 0x78, 0xad, + 0x45, 0x82, 0x78, 0x9a, 0xe0, 0xef, 0xa2, 0xa5, 0x1d, 0x5a, 0xd0, 0x63, 0x9e, 0x72, 0xcd, 0x19, + 0xf8, 0x09, 0x76, 0xb9, 0xeb, 0x99, 0xdb, 0x67, 0x93, 0xa5, 0xd8, 0xa3, 0xf0, 0x37, 0x50, 0x83, + 0xa4, 0x3c, 0xe3, 0x5a, 0x75, 0x9a, 0xc6, 0xbf, 0xb7, 0x5c, 0x58, 0x1e, 0x0c, 0xfb, 0x3f, 0xb2, + 0x1c, 0x77, 0xc8, 0x86, 0xb4, 0x72, 0x78, 0x03, 0xad, 0x3e, 0x13, 0xcf, 0xd8, 0x74, 0x20, 0xf9, + 0x19, 0x4f, 0xd9, 0x88, 0x59, 0xe7, 0x35, 0xc9, 0x6a, 0xbe, 0x08, 0x83, 0x64, 0xaf, 0x28, 0xa8, + 0xcc, 0x84, 0x1c, 0x48, 0x71, 0xc2, 0x53, 0x66, 0xbc, 0xd7, 0x22, 0xab, 0x74, 0x11, 0xc6, 0xeb, + 0xa8, 0x7d, 0x70, 0xb0, 0x3f, 0x8c, 0x85, 0x64, 0xbd, 0xe4, 0xe3, 0x4e, 0x7b, 0xbd, 0xb2, 0x11, + 0x90, 0xb6, 0x98, 0x43, 0x38, 0x42, 0x4b, 0x43, 0x66, 0xa2, 0xe6, 0x29, 0x3d, 0x66, 0x69, 0x67, + 0xc9, 0x28, 0x5a, 0x52, 0x1e, 0x16, 0x3d, 0x44, 0xc1, 0xb6, 0x78, 0x81, 0xd7, 0x50, 0x7d, 0x8f, + 0xf1, 0xd1, 0x58, 0x1b, 0xaf, 0x2d, 0x93, 0xfa, 0xd8, 0x50, 0xe0, 0xf5, 0xe7, 0x3c, 0xd1, 0x63, + 0xe3, 0xad, 0x65, 0x52, 0x9b, 0x02, 0x11, 0xe5, 0xd6, 0x39, 0x60, 0xd8, 0xa3, 0xfe, 0xae, 0x5b, + 0x12, 0x4c, 0xfa, 0xbb, 0x80, 0x3c, 0xe9, 0xef, 0x3a, 0xe9, 0x60, 0xd4, 0xdf, 0xc5, 0x5f, 0x46, + 0x2b, 0xbd, 0x24, 0xe1, 0x10, 0x5b, 0x34, 0x7d, 0xc2, 0x13, 0xd5, 0x09, 0xd6, 0x83, 0x8d, 0x65, + 0xb2, 0x42, 0x17, 0x50, 0x88, 0x1c, 0xd0, 0xe9, 0xe7, 0xe8, 0xc4, 0xd1, 0xd1, 0x6f, 0x2a, 0xe8, + 0xd6, 0x15, 0xaf, 0xc0, 0x8a, 0x6d, 0x31, 0xc9, 0x13, 0x9e, 0x8f, 0x3a, 0x15, 0xe3, 0xed, 0xe6, + 0xb1, 0xa3, 0xf1, 0x9b, 0xa8, 0xf5, 0xe8, 0xe4, 0x84, 0xc5, 0x9a, 0x9f, 0x41, 0xa4, 0x01, 0xb3, + 0xc5, 0x4a, 0x00, 0x4c, 0xd7, 0xcf, 0xc7, 0x4c, 0x72, 0x4d, 0x8f, 0x53, 0x66, 0x0e, 0xd4, 0x22, + 0x6d, 0x3e, 0x87, 0x60, 0xfd, 0x00, 0xe2, 0x56, 0x6b, 0x96, 0xb8, 0xe8, 0x6a, 0x15, 0x25, 0x00, + 0x25, 0xab, 0x97, 0x1d, 0x73, 0x96, 0x6b, 0x17, 0x66, 0x0d, 0x6a, 0xc9, 0xa8, 0x8f, 0xda, 0x5e, + 0x18, 0x40, 0x7c, 0x1e, 0x9e, 0x17, 0xcc, 0xe5, 0x51, 0xa8, 0xcf, 0x0b, 0x06, 0xd8, 0x1e, 0x95, + 0x89, 0xb1, 0x51, 0x48, 0xc2, 0x31, 0x95, 0x09, 0x60, 0x43, 0x71, 0x62, 0x0b, 0x58, 0x48, 0x42, + 0x25, 0x4e, 0x74, 0x24, 0x50, 0xcd, 0x14, 0x21, 0x38, 0x6d, 0xc2, 0x94, 0xe6, 0xb9, 0x49, 0x50, + 0xa7, 0xcb, 0x87, 0xc0, 0x7b, 0x4a, 0x4c, 0x64, 0x5c, 0x26, 0xa7, 0xa3, 0x40, 0x2d, 0x6c, 0x69, + 0xd4, 0x96, 0xdb, 0x77, 0x50, 0x43, 0x14, 0xb6, 0x3a, 0xd9, 0x7b, 0x95, 0x64, 0xf4, 0x6d, 0x5b, + 0x45, 0x61, 0xd5, 0x80, 0xea, 0x71, 0x79, 0xe8, 0x82, 0xea, 0x31, 0xd8, 0x9a, 0x30, 0x9a, 0x88, + 0x3c, 0x3d, 0x37, 0x7b, 0x34, 0x49, 0x53, 0x3a, 0x3a, 0xfa, 0x55, 0xc5, 0xd5, 0x45, 0x7c, 0x1f, + 0x35, 0x07, 0x92, 0x29, 0x4d, 0xa5, 0x36, 0x1e, 0x99, 0x25, 0x2e, 0xb0, 0x5d, 0x4e, 0x34, 0x0b, + 0x27, 0x81, 0x37, 0x51, 0x6b, 0x20, 0x94, 0xb6, 0xe2, 0xd5, 0xd7, 0x88, 0xb7, 0x8a, 0x52, 0xc4, + 0x68, 0x37, 0x84, 0x28, 0x8c, 0xcb, 0xae, 0xd7, 0xee, 0x24, 0xa2, 0x9f, 0xa0, 0x10, 0xf0, 0x6b, + 0x6f, 0x53, 0x96, 0x8d, 0xea, 0xd5, 0xb2, 0x11, 0xcc, 0xcb, 0x46, 0x07, 0x35, 0x0e, 0x79, 0xc6, + 0xc4, 0x44, 0x9b, 0x80, 0x0c, 0x48, 0x43, 0x5b, 0x32, 0xfa, 0x5d, 0xcd, 0xd5, 0x69, 0xfc, 0x3d, + 0xd4, 0x3e, 0xea, 0xef, 0xee, 0xd3, 0xa2, 0xe0, 0xf9, 0x48, 0xb9, 0x4b, 0xdf, 0xf6, 0xea, 0xc8, + 0x8c, 0xe9, 0x0e, 0xd8, 0x9e, 0xcc, 0xc5, 0x61, 0xf5, 0x13, 0x6f, 0x75, 0xf5, 0x7f, 0xaf, 0x1e, + 0x79, 0xab, 0xb7, 0x50, 0x7d, 0x78, 0xae, 0x62, 0x9d, 0x3a, 0x6b, 0xf8, 0xe5, 0x6b, 0xd3, 0x72, + 0x6c, 0x8b, 0xa9, 0x2b, 0x43, 0xe0, 0x07, 0xa8, 0x45, 0x98, 0x0d, 0x0d, 0x65, 0xae, 0xb4, 0xb8, + 0xd9, 0x8c, 0x47, 0x5a, 0xb2, 0xfc, 0x84, 0xe0, 0xdb, 0x19, 0x49, 0x31, 0x29, 0x94, 0xb1, 0x62, + 0xcd, 0x06, 0x5f, 0x3c, 0x87, 0xf0, 0x07, 0x08, 0x3d, 0xa3, 0x19, 0x53, 0x05, 0x05, 0xb5, 0xf5, + 0x2b, 0x77, 0x98, 0x31, 0xdd, 0x1d, 0x50, 0x3e, 0x93, 0x86, 0x52, 0xba, 0xcb, 0xce, 0x78, 0xcc, + 0xca, 0x56, 0x79, 0xcb, 0x5b, 0x68, 0x39, 0x65, 0x29, 0x4d, 0xac, 0x1c, 0xbe, 0x8f, 0x1a, 0x43, + 0x16, 0xc7, 0x22, 0x2b, 0x5c, 0x93, 0xc4, 0xde, 0x12, 0xc7, 0x21, 0x0d, 0x65, 0x3f, 0xf0, 0x7d, + 0x74, 0x0b, 0x62, 0xfa, 0x44, 0x0d, 0xa4, 0x28, 0xe8, 0xc8, 0x66, 0x50, 0xcb, 0x5c, 0xe2, 0x96, + 0xbc, 0xcc, 0x80, 0xcb, 0xee, 0x53, 0x75, 0xca, 0x12, 0xb8, 0x18, 0xb4, 0x4d, 0x53, 0x17, 0xb2, + 0x39, 0x84, 0xdf, 0x41, 0xcb, 0x65, 0x1e, 0x58, 0x99, 0xb6, 0x91, 0x59, 0x96, 0x3e, 0x88, 0xbb, + 0x08, 0x99, 0xd4, 0xf5, 0xcb, 0x2e, 0xca, 0x66, 0x08, 0xde, 0x42, 0xcd, 0x7e, 0xae, 0x59, 0x4a, + 0x12, 0xdd, 0x59, 0x36, 0x97, 0x78, 0xc3, 0x77, 0xba, 0x63, 0x91, 0x26, 0x77, 0x5f, 0xf7, 0xde, + 0x47, 0x6d, 0xcf, 0xa1, 0x9f, 0xa9, 0x3b, 0xbf, 0x35, 0x1b, 0x03, 0x40, 0x28, 0x99, 0x64, 0x59, + 0xb9, 0xd0, 0x12, 0x20, 0xe0, 0x66, 0x87, 0xd7, 0x08, 0xfc, 0x14, 0xad, 0x2c, 0x06, 0xa3, 0xe9, + 0x16, 0x42, 0xe9, 0x59, 0xe9, 0xaf, 0x8f, 0x0d, 0x65, 0x82, 0xa5, 0x9c, 0x2a, 0x67, 0x5d, 0xa0, + 0x1d, 0xcf, 0x21, 0x53, 0xe8, 0xa0, 0xf9, 0x07, 0x86, 0x15, 0x2a, 0xfe, 0x09, 0x8b, 0xde, 0x73, + 0xfa, 0x67, 0x81, 0xf2, 0xba, 0xb2, 0x69, 0x22, 0xb0, 0x3a, 0xcf, 0xe3, 0xe8, 0xd7, 0x15, 0xd4, + 0xf6, 0x42, 0xe5, 0x75, 0xb9, 0x6e, 0x74, 0x55, 0x3d, 0x5d, 0xb7, 0x51, 0x6d, 0x9f, 0x7e, 0x2c, + 0xec, 0x74, 0x11, 0x90, 0x5a, 0x06, 0x84, 0x41, 0x79, 0x2e, 0xa4, 0xcb, 0xf6, 0x5a, 0x06, 0x04, + 0x54, 0xbe, 0xc7, 0x3c, 0x65, 0xfb, 0x22, 0x61, 0x26, 0xfa, 0x97, 0x49, 0xf3, 0xc4, 0xd1, 0x65, + 0xff, 0xab, 0x5f, 0xe9, 0x7f, 0x8d, 0x59, 0xff, 0x8b, 0xfe, 0x51, 0x75, 0xd7, 0x9b, 0xa5, 0x17, + 0xfe, 0xce, 0x3c, 0xea, 0x2b, 0x57, 0x32, 0xd7, 0x72, 0x6c, 0xce, 0x5d, 0x8e, 0x7d, 0x98, 0x55, + 0x59, 0x26, 0xe4, 0xb9, 0x1b, 0x9e, 0xfc, 0x6c, 0xb1, 0x0c, 0x52, 0xcf, 0xcc, 0x2f, 0x5e, 0x47, + 0xc1, 0xce, 0xe0, 0xc8, 0x8d, 0x4f, 0x2b, 0xfe, 0x60, 0x33, 0x38, 0x22, 0x41, 0x3c, 0x38, 0xc2, + 0x5f, 0x42, 0xe1, 0x00, 0xda, 0xb1, 0x2d, 0x04, 0xab, 0x9e, 0x08, 0xc0, 0x24, 0x2c, 0xa0, 0x2b, + 0xdf, 0x47, 0x8d, 0xed, 0x54, 0xc4, 0xa7, 0xfd, 0x03, 0x73, 0xf9, 0xc5, 0x6c, 0x73, 0x1c, 0xd2, + 0x38, 0xb6, 0x1f, 0xf8, 0x31, 0x5a, 0xd9, 0x9b, 0x8c, 0x58, 0x41, 0x47, 0xec, 0xa9, 0x1d, 0x90, + 0x6c, 0x39, 0xe8, 0x78, 0x8b, 0x16, 0x04, 0xdc, 0x05, 0x57, 0xc6, 0x0b, 0xab, 0x60, 0xd7, 0x67, + 0x4c, 0x4f, 0x85, 0x3c, 0x75, 0x93, 0x99, 0xbf, 0xab, 0xe3, 0x90, 0x46, 0x6e, 0x3f, 0xa2, 0xbf, + 0x95, 0x51, 0x60, 0x4d, 0x00, 0x7e, 0x34, 0x7a, 0x4c, 0x18, 0x04, 0x30, 0x37, 0x43, 0x2b, 0x5e, + 0x47, 0x6d, 0xc2, 0x14, 0x93, 0x67, 0xb6, 0x06, 0x54, 0xed, 0xb8, 0x24, 0xe7, 0x90, 0x89, 0xcd, + 0x29, 0x2d, 0x5c, 0x50, 0x84, 0x6a, 0x4a, 0x0b, 0x88, 0xf4, 0x0f, 0x99, 0xcc, 0x59, 0xea, 0x82, + 0xa2, 0x7e, 0x6a, 0x28, 0x98, 0x0f, 0x2c, 0x7e, 0xb8, 0x33, 0x30, 0x96, 0x09, 0x48, 0xeb, 0xb4, + 0x04, 0x20, 0xff, 0x41, 0x53, 0xc1, 0x73, 0x78, 0xbb, 0xd4, 0x4d, 0x53, 0x47, 0x6a, 0x86, 0xe0, + 0xaf, 0xa1, 0x9b, 0xbb, 0x5c, 0xc1, 0xa0, 0x71, 0x70, 0xb0, 0xff, 0x21, 0x4f, 0x53, 0x26, 0xcd, + 0x45, 0x9b, 0xe4, 0x66, 0x72, 0x09, 0x8f, 0xfe, 0x5c, 0x41, 0xcd, 0xd2, 0x71, 0x70, 0x9c, 0xe1, + 0x98, 0x4a, 0x13, 0x38, 0xa0, 0xb4, 0xae, 0x0c, 0x05, 0x57, 0xfe, 0xe1, 0x44, 0x68, 0xea, 0xae, + 0x55, 0xfb, 0x19, 0x10, 0x20, 0x3d, 0x60, 0x92, 0x8b, 0xc4, 0xcd, 0x15, 0xf5, 0xc2, 0x50, 0x30, + 0x63, 0x12, 0x46, 0x53, 0xe8, 0x66, 0x64, 0x92, 0xc3, 0x8f, 0xbb, 0xdd, 0xaa, 0x5c, 0x84, 0x61, + 0x78, 0x2b, 0x25, 0x9d, 0xa6, 0x9a, 0xd1, 0xb4, 0x22, 0x17, 0x50, 0x30, 0xdd, 0x4e, 0x31, 0x51, + 0x6e, 0xc4, 0x0e, 0xe3, 0x62, 0xa2, 0x00, 0xdb, 0x67, 0x99, 0x9d, 0xad, 0x5b, 0x24, 0xcc, 0x58, + 0xa6, 0xa2, 0xa9, 0x9b, 0xe3, 0x9e, 0x9b, 0xe9, 0xd2, 0x65, 0xed, 0x2c, 0x1b, 0x2b, 0xd7, 0x66, + 0x63, 0xd5, 0xcf, 0xc6, 0x35, 0x54, 0xb7, 0x6b, 0x5d, 0x05, 0xa9, 0x4f, 0xed, 0x9c, 0xda, 0x45, + 0xe8, 0x29, 0xa3, 0x27, 0x8e, 0x17, 0x1a, 0x1e, 0x4a, 0x67, 0x48, 0x74, 0x84, 0xde, 0x30, 0x1b, + 0x1f, 0x8e, 0xa5, 0xd0, 0x3a, 0x65, 0xff, 0xc7, 0xd6, 0x18, 0x85, 0x84, 0x6a, 0x56, 0xce, 0x68, + 0x92, 0x6a, 0x16, 0xfd, 0x2b, 0x40, 0x4b, 0x7e, 0x2a, 0x78, 0xe7, 0xab, 0xfc, 0x97, 0xf3, 0x55, + 0x2f, 0x9f, 0x0f, 0xf7, 0xd0, 0x92, 0x6f, 0x93, 0x6b, 0x3a, 0xba, 0xcf, 0x76, 0x69, 0xb3, 0x34, + 0xf5, 0xcd, 0x78, 0x84, 0xee, 0x94, 0xb7, 0x83, 0x16, 0xb5, 0x5d, 0x28, 0xa7, 0x2b, 0x34, 0xba, + 0xbe, 0xe0, 0xe9, 0x5a, 0xb4, 0x82, 0xd3, 0x76, 0x47, 0x5f, 0xb7, 0x1a, 0x3f, 0x47, 0x6b, 0xa5, + 0xf8, 0x73, 0xc9, 0x35, 0x9b, 0xeb, 0xad, 0x7d, 0x3a, 0xbd, 0x6b, 0xfa, 0xda, 0xe5, 0xbe, 0x62, + 0xd8, 0xb1, 0x7f, 0x30, 0x18, 0x3a, 0xc5, 0xf5, 0xcf, 0xa8, 0x78, 0x71, 0x39, 0xfe, 0x31, 0xba, + 0xbb, 0x70, 0x62, 0x4f, 0x73, 0xe3, 0xd3, 0x69, 0xbe, 0xab, 0xaf, 0x5f, 0x1f, 0xbd, 0x8d, 0x5a, + 0xb3, 0x0a, 0x79, 0x7d, 0x9d, 0x89, 0x7e, 0x51, 0xbe, 0x55, 0xfc, 0x42, 0x0e, 0xb2, 0xbd, 0x34, + 0x15, 0x53, 0xf7, 0x28, 0xae, 0x51, 0x20, 0x3e, 0x77, 0x6f, 0x5a, 0x43, 0xf5, 0x5e, 0x6c, 0xfe, + 0x1f, 0xb1, 0x73, 0x59, 0x9d, 0x1a, 0x2a, 0x4a, 0x5d, 0x54, 0xba, 0x52, 0x09, 0x93, 0xec, 0x4e, + 0x4a, 0x95, 0x9a, 0x35, 0xec, 0x46, 0x6c, 0x49, 0xbc, 0x8d, 0xd0, 0x40, 0x72, 0x21, 0xed, 0x33, + 0xd8, 0x0e, 0xa0, 0x6f, 0x5e, 0x9a, 0x45, 0xe4, 0x09, 0x8d, 0x99, 0x93, 0x3a, 0x2f, 0x87, 0xb8, + 0x62, 0xb6, 0x2a, 0x7a, 0x8c, 0xf0, 0xd5, 0xca, 0x0e, 0x7d, 0x73, 0x40, 0x47, 0x0c, 0x3a, 0xbc, + 0xeb, 0xc7, 0xcd, 0xc2, 0xd1, 0x73, 0xcb, 0xd9, 0x37, 0x90, 0xb3, 0xdc, 0x1e, 0x5a, 0xbb, 0x7e, + 0x4f, 0xb0, 0x13, 0x0c, 0x07, 0x65, 0x5f, 0x37, 0xff, 0xdb, 0x80, 0x7e, 0xc7, 0x77, 0xf9, 0xd4, + 0x74, 0x67, 0x3a, 0x8f, 0x7e, 0x59, 0x71, 0x06, 0x70, 0xf3, 0x20, 0x8c, 0x6d, 0xbb, 0xec, 0x84, + 0x4e, 0x52, 0xdd, 0x8b, 0xbd, 0x47, 0xd4, 0x72, 0xe2, 0x83, 0x20, 0xd5, 0x93, 0xf1, 0x98, 0x6b, + 0x16, 0xeb, 0x89, 0x64, 0xe5, 0xfb, 0x60, 0x99, 0xfa, 0x20, 0xfe, 0x26, 0x6a, 0xc2, 0x2c, 0x46, + 0xd3, 0x54, 0xb9, 0x34, 0x5d, 0x98, 0x40, 0x2d, 0xab, 0x7c, 0x8e, 0x28, 0x27, 0x19, 0x71, 0xb4, + 0xea, 0x9f, 0xa8, 0x27, 0x47, 0x60, 0x85, 0x7e, 0x9e, 0xb0, 0x17, 0xae, 0x96, 0xd7, 0x38, 0x10, + 0x80, 0x7e, 0x34, 0x9b, 0xe4, 0x42, 0x37, 0xc9, 0xc1, 0x6d, 0x0d, 0x7a, 0x38, 0x15, 0xae, 0x00, + 0x35, 0xcf, 0x1c, 0x8d, 0x57, 0x50, 0xf5, 0xa0, 0x70, 0x6f, 0xe6, 0xaa, 0x28, 0xa2, 0xac, 0xbc, + 0xbc, 0xdd, 0x1b, 0x34, 0x9a, 0xd1, 0xca, 0x3d, 0x92, 0x6b, 0x66, 0xfe, 0xb6, 0xb1, 0x33, 0x6b, + 0x85, 0x26, 0x76, 0x8c, 0x11, 0xb6, 0xdc, 0xdb, 0xc8, 0x5e, 0xed, 0xce, 0xd5, 0xe1, 0xba, 0x27, + 0xcb, 0xd7, 0x88, 0x79, 0x38, 0x45, 0xdf, 0x42, 0xcb, 0x0b, 0x63, 0x2b, 0x98, 0xf1, 0xe9, 0xc3, + 0x1d, 0x1a, 0x8f, 0xd9, 0x30, 0x1e, 0xb3, 0x8c, 0x96, 0xc6, 0x4e, 0x7d, 0x70, 0x7b, 0xe3, 0xe5, + 0xab, 0xee, 0x8d, 0xbf, 0xbe, 0xea, 0xde, 0xf8, 0xf7, 0xab, 0x6e, 0xe5, 0xe7, 0x17, 0xdd, 0xca, + 0x6f, 0x2f, 0xba, 0x95, 0xdf, 0x5f, 0x74, 0x2b, 0x7f, 0xbc, 0xe8, 0x56, 0x5e, 0x5e, 0x74, 0x2b, + 0x7f, 0xb9, 0xe8, 0x56, 0xfe, 0x79, 0xd1, 0xad, 0x1c, 0xd7, 0xcd, 0x1f, 0x86, 0x0f, 0xff, 0x13, + 0x00, 0x00, 0xff, 0xff, 0x74, 0x94, 0x9b, 0x66, 0xc2, 0x14, 0x00, 0x00, +} + func (this *Spec) Equal(that interface{}) bool { if that == nil { return this == nil @@ -1556,6 +1711,9 @@ func (this *Spec) Equal(that interface{}) bool { if !this.Windows.Equal(that1.Windows) { return false } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } return true } func (this *Process) Equal(that interface{}) bool { @@ -1628,6 +1786,9 @@ func (this *Process) Equal(that interface{}) bool { if this.SelinuxLabel != that1.SelinuxLabel { return false } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } return true } func (this *Box) Equal(that interface{}) bool { @@ -1655,6 +1816,9 @@ func (this *Box) Equal(that interface{}) bool { if this.Width != that1.Width { return false } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } return true } func (this *User) Equal(that interface{}) bool { @@ -1693,6 +1857,9 @@ func (this *User) Equal(that interface{}) bool { if this.Username != that1.Username { return false } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } return true } func (this *LinuxCapabilities) Equal(that interface{}) bool { @@ -1754,6 +1921,9 @@ func (this *LinuxCapabilities) Equal(that interface{}) bool { return false } } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } return true } func (this *POSIXRlimit) Equal(that interface{}) bool { @@ -1784,6 +1954,9 @@ func (this *POSIXRlimit) Equal(that interface{}) bool { if this.Soft != that1.Soft { return false } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } return true } func (this *Mount) Equal(that interface{}) bool { @@ -1822,6 +1995,9 @@ func (this *Mount) Equal(that interface{}) bool { return false } } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } return true } func (this *Root) Equal(that interface{}) bool { @@ -1849,6 +2025,9 @@ func (this *Root) Equal(that interface{}) bool { if this.Readonly != that1.Readonly { return false } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } return true } func (this *Hooks) Equal(that interface{}) bool { @@ -1894,6 +2073,9 @@ func (this *Hooks) Equal(that interface{}) bool { return false } } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } return true } func (this *Hook) Equal(that interface{}) bool { @@ -1937,6 +2119,9 @@ func (this *Hook) Equal(that interface{}) bool { if this.Timeout != that1.Timeout { return false } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } return true } func (this *Linux) Equal(that interface{}) bool { @@ -2032,6 +2217,9 @@ func (this *Linux) Equal(that interface{}) bool { if !this.IntelRdt.Equal(that1.IntelRdt) { return false } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } return true } func (this *Windows) Equal(that interface{}) bool { @@ -2056,6 +2244,9 @@ func (this *Windows) Equal(that interface{}) bool { if this.Dummy != that1.Dummy { return false } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } return true } func (this *Solaris) Equal(that interface{}) bool { @@ -2080,6 +2271,9 @@ func (this *Solaris) Equal(that interface{}) bool { if this.Dummy != that1.Dummy { return false } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } return true } func (this *LinuxIDMapping) Equal(that interface{}) bool { @@ -2110,6 +2304,9 @@ func (this *LinuxIDMapping) Equal(that interface{}) bool { if this.Size_ != that1.Size_ { return false } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } return true } func (this *LinuxNamespace) Equal(that interface{}) bool { @@ -2137,6 +2334,9 @@ func (this *LinuxNamespace) Equal(that interface{}) bool { if this.Path != that1.Path { return false } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } return true } func (this *LinuxDevice) Equal(that interface{}) bool { @@ -2179,6 +2379,9 @@ func (this *LinuxDevice) Equal(that interface{}) bool { if this.GID != that1.GID { return false } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } return true } func (this *LinuxResources) Equal(that interface{}) bool { @@ -2231,6 +2434,9 @@ func (this *LinuxResources) Equal(that interface{}) bool { if !this.Network.Equal(that1.Network) { return false } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } return true } func (this *LinuxMemory) Equal(that interface{}) bool { @@ -2273,6 +2479,9 @@ func (this *LinuxMemory) Equal(that interface{}) bool { if this.DisableOOMKiller != that1.DisableOOMKiller { return false } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } return true } func (this *LinuxCPU) Equal(that interface{}) bool { @@ -2315,6 +2524,9 @@ func (this *LinuxCPU) Equal(that interface{}) bool { if this.Mems != that1.Mems { return false } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } return true } func (this *LinuxWeightDevice) Equal(that interface{}) bool { @@ -2348,6 +2560,9 @@ func (this *LinuxWeightDevice) Equal(that interface{}) bool { if this.LeafWeight != that1.LeafWeight { return false } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } return true } func (this *LinuxThrottleDevice) Equal(that interface{}) bool { @@ -2378,6 +2593,9 @@ func (this *LinuxThrottleDevice) Equal(that interface{}) bool { if this.Rate != that1.Rate { return false } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } return true } func (this *LinuxBlockIO) Equal(that interface{}) bool { @@ -2445,6 +2663,9 @@ func (this *LinuxBlockIO) Equal(that interface{}) bool { return false } } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } return true } func (this *LinuxPids) Equal(that interface{}) bool { @@ -2469,6 +2690,9 @@ func (this *LinuxPids) Equal(that interface{}) bool { if this.Limit != that1.Limit { return false } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } return true } func (this *LinuxDeviceCgroup) Equal(that interface{}) bool { @@ -2505,6 +2729,9 @@ func (this *LinuxDeviceCgroup) Equal(that interface{}) bool { if this.Access != that1.Access { return false } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } return true } func (this *LinuxNetwork) Equal(that interface{}) bool { @@ -2537,6 +2764,9 @@ func (this *LinuxNetwork) Equal(that interface{}) bool { return false } } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } return true } func (this *LinuxHugepageLimit) Equal(that interface{}) bool { @@ -2564,6 +2794,9 @@ func (this *LinuxHugepageLimit) Equal(that interface{}) bool { if this.Limit != that1.Limit { return false } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } return true } func (this *LinuxInterfacePriority) Equal(that interface{}) bool { @@ -2591,6 +2824,9 @@ func (this *LinuxInterfacePriority) Equal(that interface{}) bool { if this.Priority != that1.Priority { return false } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } return true } func (this *LinuxSeccomp) Equal(that interface{}) bool { @@ -2631,6 +2867,9 @@ func (this *LinuxSeccomp) Equal(that interface{}) bool { return false } } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } return true } func (this *LinuxSeccompArg) Equal(that interface{}) bool { @@ -2664,6 +2903,9 @@ func (this *LinuxSeccompArg) Equal(that interface{}) bool { if this.Op != that1.Op { return false } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } return true } func (this *LinuxSyscall) Equal(that interface{}) bool { @@ -2704,6 +2946,9 @@ func (this *LinuxSyscall) Equal(that interface{}) bool { return false } } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } return true } func (this *LinuxIntelRdt) Equal(that interface{}) bool { @@ -2728,12 +2973,15 @@ func (this *LinuxIntelRdt) Equal(that interface{}) bool { if this.L3CacheSchema != that1.L3CacheSchema { return false } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } return true } func (m *Spec) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2741,118 +2989,145 @@ func (m *Spec) Marshal() (dAtA []byte, err error) { } func (m *Spec) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Spec) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Version) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintOci(dAtA, i, uint64(len(m.Version))) - i += copy(dAtA[i:], m.Version) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.Process != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintOci(dAtA, i, uint64(m.Process.Size())) - n1, err := m.Process.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n1 - } - if m.Root != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintOci(dAtA, i, uint64(m.Root.Size())) - n2, err := m.Root.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n2 - } - if len(m.Hostname) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintOci(dAtA, i, uint64(len(m.Hostname))) - i += copy(dAtA[i:], m.Hostname) - } - if len(m.Mounts) > 0 { - for _, msg := range m.Mounts { - dAtA[i] = 0x2a - i++ - i = encodeVarintOci(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + if m.Windows != nil { + { + size, err := m.Windows.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintOci(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x52 + } + if m.Solaris != nil { + { + size, err := m.Solaris.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOci(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + } + if m.Linux != nil { + { + size, err := m.Linux.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOci(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + } + if len(m.Annotations) > 0 { + for k := range m.Annotations { + v := m.Annotations[k] + baseI := i + i -= len(v) + copy(dAtA[i:], v) + i = encodeVarintOci(dAtA, i, uint64(len(v))) + i-- + dAtA[i] = 0x12 + i -= len(k) + copy(dAtA[i:], k) + i = encodeVarintOci(dAtA, i, uint64(len(k))) + i-- + dAtA[i] = 0xa + i = encodeVarintOci(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x3a } } if m.Hooks != nil { + { + size, err := m.Hooks.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOci(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x32 - i++ - i = encodeVarintOci(dAtA, i, uint64(m.Hooks.Size())) - n3, err := m.Hooks.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n3 } - if len(m.Annotations) > 0 { - for k, _ := range m.Annotations { - dAtA[i] = 0x3a - i++ - v := m.Annotations[k] - mapSize := 1 + len(k) + sovOci(uint64(len(k))) + 1 + len(v) + sovOci(uint64(len(v))) - i = encodeVarintOci(dAtA, i, uint64(mapSize)) - dAtA[i] = 0xa - i++ - i = encodeVarintOci(dAtA, i, uint64(len(k))) - i += copy(dAtA[i:], k) - dAtA[i] = 0x12 - i++ - i = encodeVarintOci(dAtA, i, uint64(len(v))) - i += copy(dAtA[i:], v) + if len(m.Mounts) > 0 { + for iNdEx := len(m.Mounts) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Mounts[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOci(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a } } - if m.Linux != nil { - dAtA[i] = 0x42 - i++ - i = encodeVarintOci(dAtA, i, uint64(m.Linux.Size())) - n4, err := m.Linux.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n4 + if len(m.Hostname) > 0 { + i -= len(m.Hostname) + copy(dAtA[i:], m.Hostname) + i = encodeVarintOci(dAtA, i, uint64(len(m.Hostname))) + i-- + dAtA[i] = 0x22 } - if m.Solaris != nil { - dAtA[i] = 0x4a - i++ - i = encodeVarintOci(dAtA, i, uint64(m.Solaris.Size())) - n5, err := m.Solaris.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.Root != nil { + { + size, err := m.Root.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOci(dAtA, i, uint64(size)) } - i += n5 + i-- + dAtA[i] = 0x1a } - if m.Windows != nil { - dAtA[i] = 0x52 - i++ - i = encodeVarintOci(dAtA, i, uint64(m.Windows.Size())) - n6, err := m.Windows.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.Process != nil { + { + size, err := m.Process.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOci(dAtA, i, uint64(size)) } - i += n6 + i-- + dAtA[i] = 0x12 } - return i, nil + if len(m.Version) > 0 { + i -= len(m.Version) + copy(dAtA[i:], m.Version) + i = encodeVarintOci(dAtA, i, uint64(len(m.Version))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *Process) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2860,130 +3135,138 @@ func (m *Process) Marshal() (dAtA []byte, err error) { } func (m *Process) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Process) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Terminal { - dAtA[i] = 0x8 - i++ - if m.Terminal { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.ConsoleSize != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintOci(dAtA, i, uint64(m.ConsoleSize.Size())) - n7, err := m.ConsoleSize.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n7 + if len(m.SelinuxLabel) > 0 { + i -= len(m.SelinuxLabel) + copy(dAtA[i:], m.SelinuxLabel) + i = encodeVarintOci(dAtA, i, uint64(len(m.SelinuxLabel))) + i-- + dAtA[i] = 0x62 } - dAtA[i] = 0x1a - i++ - i = encodeVarintOci(dAtA, i, uint64(m.User.Size())) - n8, err := m.User.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.OOMScoreAdj != 0 { + i = encodeVarintOci(dAtA, i, uint64(m.OOMScoreAdj)) + i-- + dAtA[i] = 0x58 } - i += n8 - if len(m.Args) > 0 { - for _, s := range m.Args { - dAtA[i] = 0x22 - 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.Env) > 0 { - for _, s := range m.Env { - 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 len(m.Cwd) > 0 { - dAtA[i] = 0x32 - i++ - i = encodeVarintOci(dAtA, i, uint64(len(m.Cwd))) - i += copy(dAtA[i:], m.Cwd) - } - if m.Capabilities != nil { - dAtA[i] = 0x3a - i++ - i = encodeVarintOci(dAtA, i, uint64(m.Capabilities.Size())) - n9, err := m.Capabilities.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n9 - } - if len(m.Rlimits) > 0 { - for _, msg := range m.Rlimits { - dAtA[i] = 0x42 - i++ - i = encodeVarintOci(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } + if len(m.ApparmorProfile) > 0 { + i -= len(m.ApparmorProfile) + copy(dAtA[i:], m.ApparmorProfile) + i = encodeVarintOci(dAtA, i, uint64(len(m.ApparmorProfile))) + i-- + dAtA[i] = 0x52 } if m.NoNewPrivileges { - dAtA[i] = 0x48 - i++ + i-- if m.NoNewPrivileges { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x48 } - if len(m.ApparmorProfile) > 0 { - dAtA[i] = 0x52 - i++ - i = encodeVarintOci(dAtA, i, uint64(len(m.ApparmorProfile))) - i += copy(dAtA[i:], m.ApparmorProfile) + if len(m.Rlimits) > 0 { + for iNdEx := len(m.Rlimits) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Rlimits[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOci(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + } } - if m.OOMScoreAdj != 0 { - dAtA[i] = 0x58 - i++ - i = encodeVarintOci(dAtA, i, uint64(m.OOMScoreAdj)) + if m.Capabilities != nil { + { + size, err := m.Capabilities.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOci(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a } - if len(m.SelinuxLabel) > 0 { - dAtA[i] = 0x62 - i++ - i = encodeVarintOci(dAtA, i, uint64(len(m.SelinuxLabel))) - i += copy(dAtA[i:], m.SelinuxLabel) + if len(m.Cwd) > 0 { + i -= len(m.Cwd) + copy(dAtA[i:], m.Cwd) + i = encodeVarintOci(dAtA, i, uint64(len(m.Cwd))) + i-- + dAtA[i] = 0x32 } - return i, nil + if len(m.Env) > 0 { + for iNdEx := len(m.Env) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Env[iNdEx]) + copy(dAtA[i:], m.Env[iNdEx]) + i = encodeVarintOci(dAtA, i, uint64(len(m.Env[iNdEx]))) + i-- + dAtA[i] = 0x2a + } + } + if len(m.Args) > 0 { + for iNdEx := len(m.Args) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Args[iNdEx]) + copy(dAtA[i:], m.Args[iNdEx]) + i = encodeVarintOci(dAtA, i, uint64(len(m.Args[iNdEx]))) + i-- + dAtA[i] = 0x22 + } + } + { + size, err := m.User.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOci(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + if m.ConsoleSize != nil { + { + size, err := m.ConsoleSize.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOci(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.Terminal { + i-- + if m.Terminal { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *Box) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2991,27 +3274,36 @@ func (m *Box) Marshal() (dAtA []byte, err error) { } func (m *Box) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Box) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Height != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintOci(dAtA, i, uint64(m.Height)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.Width != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintOci(dAtA, i, uint64(m.Width)) + i-- + dAtA[i] = 0x10 } - return i, nil + if m.Height != 0 { + i = encodeVarintOci(dAtA, i, uint64(m.Height)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *User) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3019,19 +3311,25 @@ func (m *User) Marshal() (dAtA []byte, err error) { } func (m *User) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *User) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.UID != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintOci(dAtA, i, uint64(m.UID)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.GID != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintOci(dAtA, i, uint64(m.GID)) + if len(m.Username) > 0 { + i -= len(m.Username) + copy(dAtA[i:], m.Username) + i = encodeVarintOci(dAtA, i, uint64(len(m.Username))) + i-- + dAtA[i] = 0x22 } if len(m.AdditionalGids) > 0 { dAtA11 := make([]byte, len(m.AdditionalGids)*10) @@ -3045,24 +3343,29 @@ func (m *User) MarshalTo(dAtA []byte) (int, error) { dAtA11[j10] = uint8(num) j10++ } - dAtA[i] = 0x1a - i++ + i -= j10 + copy(dAtA[i:], dAtA11[:j10]) i = encodeVarintOci(dAtA, i, uint64(j10)) - i += copy(dAtA[i:], dAtA11[:j10]) + i-- + dAtA[i] = 0x1a } - if len(m.Username) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintOci(dAtA, i, uint64(len(m.Username))) - i += copy(dAtA[i:], m.Username) + if m.GID != 0 { + i = encodeVarintOci(dAtA, i, uint64(m.GID)) + i-- + dAtA[i] = 0x10 } - return i, nil + if m.UID != 0 { + i = encodeVarintOci(dAtA, i, uint64(m.UID)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *LinuxCapabilities) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3070,92 +3373,71 @@ func (m *LinuxCapabilities) Marshal() (dAtA []byte, err error) { } func (m *LinuxCapabilities) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LinuxCapabilities) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Bounding) > 0 { - for _, s := range m.Bounding { - dAtA[i] = 0xa - 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.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.Effective) > 0 { - for _, s := range m.Effective { - 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.Inheritable) > 0 { - for _, s := range m.Inheritable { - 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) + if len(m.Ambient) > 0 { + for iNdEx := len(m.Ambient) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Ambient[iNdEx]) + copy(dAtA[i:], m.Ambient[iNdEx]) + i = encodeVarintOci(dAtA, i, uint64(len(m.Ambient[iNdEx]))) + i-- + dAtA[i] = 0x2a } } if len(m.Permitted) > 0 { - for _, s := range m.Permitted { + for iNdEx := len(m.Permitted) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Permitted[iNdEx]) + copy(dAtA[i:], m.Permitted[iNdEx]) + i = encodeVarintOci(dAtA, i, uint64(len(m.Permitted[iNdEx]))) + i-- dAtA[i] = 0x22 - 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.Ambient) > 0 { - for _, s := range m.Ambient { - 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 len(m.Inheritable) > 0 { + for iNdEx := len(m.Inheritable) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Inheritable[iNdEx]) + copy(dAtA[i:], m.Inheritable[iNdEx]) + i = encodeVarintOci(dAtA, i, uint64(len(m.Inheritable[iNdEx]))) + i-- + dAtA[i] = 0x1a } } - return i, nil + if len(m.Effective) > 0 { + for iNdEx := len(m.Effective) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Effective[iNdEx]) + copy(dAtA[i:], m.Effective[iNdEx]) + i = encodeVarintOci(dAtA, i, uint64(len(m.Effective[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.Bounding) > 0 { + for iNdEx := len(m.Bounding) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Bounding[iNdEx]) + copy(dAtA[i:], m.Bounding[iNdEx]) + i = encodeVarintOci(dAtA, i, uint64(len(m.Bounding[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil } func (m *POSIXRlimit) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3163,33 +3445,43 @@ func (m *POSIXRlimit) Marshal() (dAtA []byte, err error) { } func (m *POSIXRlimit) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *POSIXRlimit) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Type) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintOci(dAtA, i, uint64(len(m.Type))) - i += copy(dAtA[i:], m.Type) - } - if m.Hard != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintOci(dAtA, i, uint64(m.Hard)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.Soft != 0 { - dAtA[i] = 0x18 - i++ i = encodeVarintOci(dAtA, i, uint64(m.Soft)) + i-- + dAtA[i] = 0x18 } - return i, nil + if m.Hard != 0 { + i = encodeVarintOci(dAtA, i, uint64(m.Hard)) + i-- + dAtA[i] = 0x10 + } + if len(m.Type) > 0 { + i -= len(m.Type) + copy(dAtA[i:], m.Type) + i = encodeVarintOci(dAtA, i, uint64(len(m.Type))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *Mount) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3197,50 +3489,56 @@ func (m *Mount) Marshal() (dAtA []byte, err error) { } func (m *Mount) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Mount) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Destination) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintOci(dAtA, i, uint64(len(m.Destination))) - i += copy(dAtA[i:], m.Destination) - } - if len(m.Source) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintOci(dAtA, i, uint64(len(m.Source))) - i += copy(dAtA[i:], m.Source) - } - if len(m.Type) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintOci(dAtA, i, uint64(len(m.Type))) - i += copy(dAtA[i:], m.Type) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Options) > 0 { - for _, s := range m.Options { + for iNdEx := len(m.Options) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Options[iNdEx]) + copy(dAtA[i:], m.Options[iNdEx]) + i = encodeVarintOci(dAtA, i, uint64(len(m.Options[iNdEx]))) + i-- dAtA[i] = 0x22 - 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 i, nil + if len(m.Type) > 0 { + i -= len(m.Type) + copy(dAtA[i:], m.Type) + i = encodeVarintOci(dAtA, i, uint64(len(m.Type))) + i-- + dAtA[i] = 0x1a + } + if len(m.Source) > 0 { + i -= len(m.Source) + copy(dAtA[i:], m.Source) + i = encodeVarintOci(dAtA, i, uint64(len(m.Source))) + i-- + dAtA[i] = 0x12 + } + if len(m.Destination) > 0 { + i -= len(m.Destination) + copy(dAtA[i:], m.Destination) + i = encodeVarintOci(dAtA, i, uint64(len(m.Destination))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *Root) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3248,33 +3546,43 @@ func (m *Root) Marshal() (dAtA []byte, err error) { } func (m *Root) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Root) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Path) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintOci(dAtA, i, uint64(len(m.Path))) - i += copy(dAtA[i:], m.Path) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.Readonly { - dAtA[i] = 0x10 - i++ + i-- if m.Readonly { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x10 } - return i, nil + if len(m.Path) > 0 { + i -= len(m.Path) + copy(dAtA[i:], m.Path) + i = encodeVarintOci(dAtA, i, uint64(len(m.Path))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *Hooks) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3282,53 +3590,68 @@ func (m *Hooks) Marshal() (dAtA []byte, err error) { } func (m *Hooks) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Hooks) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Prestart) > 0 { - for _, msg := range m.Prestart { - dAtA[i] = 0xa - i++ - i = encodeVarintOci(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Poststop) > 0 { + for iNdEx := len(m.Poststop) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Poststop[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOci(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x1a } } if len(m.Poststart) > 0 { - for _, msg := range m.Poststart { + for iNdEx := len(m.Poststart) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Poststart[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOci(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x12 - i++ - i = encodeVarintOci(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n } } - if len(m.Poststop) > 0 { - for _, msg := range m.Poststop { - dAtA[i] = 0x1a - i++ - i = encodeVarintOci(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if len(m.Prestart) > 0 { + for iNdEx := len(m.Prestart) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Prestart[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOci(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0xa } } - return i, nil + return len(dAtA) - i, nil } func (m *Hook) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3336,58 +3659,56 @@ func (m *Hook) Marshal() (dAtA []byte, err error) { } func (m *Hook) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Hook) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Path) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintOci(dAtA, i, uint64(len(m.Path))) - i += copy(dAtA[i:], m.Path) - } - if len(m.Args) > 0 { - for _, s := range m.Args { - 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.Env) > 0 { - for _, s := range m.Env { - 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) - } + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.Timeout != 0 { - dAtA[i] = 0x20 - i++ i = encodeVarintOci(dAtA, i, uint64(m.Timeout)) + i-- + dAtA[i] = 0x20 } - return i, nil + if len(m.Env) > 0 { + for iNdEx := len(m.Env) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Env[iNdEx]) + copy(dAtA[i:], m.Env[iNdEx]) + i = encodeVarintOci(dAtA, i, uint64(len(m.Env[iNdEx]))) + i-- + dAtA[i] = 0x1a + } + } + if len(m.Args) > 0 { + for iNdEx := len(m.Args) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Args[iNdEx]) + copy(dAtA[i:], m.Args[iNdEx]) + i = encodeVarintOci(dAtA, i, uint64(len(m.Args[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.Path) > 0 { + i -= len(m.Path) + copy(dAtA[i:], m.Path) + i = encodeVarintOci(dAtA, i, uint64(len(m.Path))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *Linux) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3395,160 +3716,176 @@ func (m *Linux) Marshal() (dAtA []byte, err error) { } func (m *Linux) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Linux) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.UIDMappings) > 0 { - for _, msg := range m.UIDMappings { - dAtA[i] = 0xa - i++ - i = encodeVarintOci(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.IntelRdt != nil { + { + size, err := m.IntelRdt.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintOci(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x6a + } + if len(m.MountLabel) > 0 { + i -= len(m.MountLabel) + copy(dAtA[i:], m.MountLabel) + i = encodeVarintOci(dAtA, i, uint64(len(m.MountLabel))) + i-- + dAtA[i] = 0x62 + } + if len(m.ReadonlyPaths) > 0 { + for iNdEx := len(m.ReadonlyPaths) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ReadonlyPaths[iNdEx]) + copy(dAtA[i:], m.ReadonlyPaths[iNdEx]) + i = encodeVarintOci(dAtA, i, uint64(len(m.ReadonlyPaths[iNdEx]))) + i-- + dAtA[i] = 0x5a + } + } + if len(m.MaskedPaths) > 0 { + for iNdEx := len(m.MaskedPaths) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.MaskedPaths[iNdEx]) + copy(dAtA[i:], m.MaskedPaths[iNdEx]) + i = encodeVarintOci(dAtA, i, uint64(len(m.MaskedPaths[iNdEx]))) + i-- + dAtA[i] = 0x52 + } + } + if len(m.RootfsPropagation) > 0 { + i -= len(m.RootfsPropagation) + copy(dAtA[i:], m.RootfsPropagation) + i = encodeVarintOci(dAtA, i, uint64(len(m.RootfsPropagation))) + i-- + dAtA[i] = 0x4a + } + if m.Seccomp != nil { + { + size, err := m.Seccomp.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOci(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + } + if len(m.Devices) > 0 { + for iNdEx := len(m.Devices) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Devices[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOci(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + } + if len(m.Namespaces) > 0 { + for iNdEx := len(m.Namespaces) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Namespaces[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOci(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + } + if len(m.CgroupsPath) > 0 { + i -= len(m.CgroupsPath) + copy(dAtA[i:], m.CgroupsPath) + i = encodeVarintOci(dAtA, i, uint64(len(m.CgroupsPath))) + i-- + dAtA[i] = 0x2a + } + if m.Resources != nil { + { + size, err := m.Resources.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOci(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if len(m.Sysctl) > 0 { + for k := range m.Sysctl { + v := m.Sysctl[k] + baseI := i + i -= len(v) + copy(dAtA[i:], v) + i = encodeVarintOci(dAtA, i, uint64(len(v))) + i-- + dAtA[i] = 0x12 + i -= len(k) + copy(dAtA[i:], k) + i = encodeVarintOci(dAtA, i, uint64(len(k))) + i-- + dAtA[i] = 0xa + i = encodeVarintOci(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x1a } } if len(m.GIDMappings) > 0 { - for _, msg := range m.GIDMappings { - dAtA[i] = 0x12 - i++ - i = encodeVarintOci(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + for iNdEx := len(m.GIDMappings) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.GIDMappings[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOci(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x12 } } - if len(m.Sysctl) > 0 { - for k, _ := range m.Sysctl { - dAtA[i] = 0x1a - i++ - v := m.Sysctl[k] - mapSize := 1 + len(k) + sovOci(uint64(len(k))) + 1 + len(v) + sovOci(uint64(len(v))) - i = encodeVarintOci(dAtA, i, uint64(mapSize)) + if len(m.UIDMappings) > 0 { + for iNdEx := len(m.UIDMappings) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.UIDMappings[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOci(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0xa - i++ - i = encodeVarintOci(dAtA, i, uint64(len(k))) - i += copy(dAtA[i:], k) - dAtA[i] = 0x12 - i++ - i = encodeVarintOci(dAtA, i, uint64(len(v))) - i += copy(dAtA[i:], v) } } - if m.Resources != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintOci(dAtA, i, uint64(m.Resources.Size())) - n12, err := m.Resources.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n12 - } - if len(m.CgroupsPath) > 0 { - dAtA[i] = 0x2a - i++ - i = encodeVarintOci(dAtA, i, uint64(len(m.CgroupsPath))) - i += copy(dAtA[i:], m.CgroupsPath) - } - if len(m.Namespaces) > 0 { - for _, msg := range m.Namespaces { - dAtA[i] = 0x32 - i++ - i = encodeVarintOci(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.Devices) > 0 { - for _, msg := range m.Devices { - dAtA[i] = 0x3a - i++ - i = encodeVarintOci(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if m.Seccomp != nil { - dAtA[i] = 0x42 - i++ - i = encodeVarintOci(dAtA, i, uint64(m.Seccomp.Size())) - n13, err := m.Seccomp.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n13 - } - if len(m.RootfsPropagation) > 0 { - dAtA[i] = 0x4a - i++ - i = encodeVarintOci(dAtA, i, uint64(len(m.RootfsPropagation))) - i += copy(dAtA[i:], m.RootfsPropagation) - } - if len(m.MaskedPaths) > 0 { - for _, s := range m.MaskedPaths { - dAtA[i] = 0x52 - 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.ReadonlyPaths) > 0 { - for _, s := range m.ReadonlyPaths { - dAtA[i] = 0x5a - 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.MountLabel) > 0 { - dAtA[i] = 0x62 - i++ - i = encodeVarintOci(dAtA, i, uint64(len(m.MountLabel))) - i += copy(dAtA[i:], m.MountLabel) - } - if m.IntelRdt != nil { - dAtA[i] = 0x6a - i++ - i = encodeVarintOci(dAtA, i, uint64(m.IntelRdt.Size())) - n14, err := m.IntelRdt.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n14 - } - return i, nil + return len(dAtA) - i, nil } func (m *Windows) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3556,23 +3893,33 @@ func (m *Windows) Marshal() (dAtA []byte, err error) { } func (m *Windows) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Windows) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Dummy) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintOci(dAtA, i, uint64(len(m.Dummy))) - i += copy(dAtA[i:], m.Dummy) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - return i, nil + if len(m.Dummy) > 0 { + i -= len(m.Dummy) + copy(dAtA[i:], m.Dummy) + i = encodeVarintOci(dAtA, i, uint64(len(m.Dummy))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *Solaris) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3580,23 +3927,33 @@ func (m *Solaris) Marshal() (dAtA []byte, err error) { } func (m *Solaris) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Solaris) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Dummy) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintOci(dAtA, i, uint64(len(m.Dummy))) - i += copy(dAtA[i:], m.Dummy) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - return i, nil + if len(m.Dummy) > 0 { + i -= len(m.Dummy) + copy(dAtA[i:], m.Dummy) + i = encodeVarintOci(dAtA, i, uint64(len(m.Dummy))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *LinuxIDMapping) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3604,32 +3961,41 @@ func (m *LinuxIDMapping) Marshal() (dAtA []byte, err error) { } func (m *LinuxIDMapping) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LinuxIDMapping) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.HostID != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintOci(dAtA, i, uint64(m.HostID)) - } - if m.ContainerID != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintOci(dAtA, i, uint64(m.ContainerID)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.Size_ != 0 { - dAtA[i] = 0x18 - i++ i = encodeVarintOci(dAtA, i, uint64(m.Size_)) + i-- + dAtA[i] = 0x18 } - return i, nil + if m.ContainerID != 0 { + i = encodeVarintOci(dAtA, i, uint64(m.ContainerID)) + i-- + dAtA[i] = 0x10 + } + if m.HostID != 0 { + i = encodeVarintOci(dAtA, i, uint64(m.HostID)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *LinuxNamespace) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3637,29 +4003,40 @@ func (m *LinuxNamespace) Marshal() (dAtA []byte, err error) { } func (m *LinuxNamespace) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LinuxNamespace) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Type) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintOci(dAtA, i, uint64(len(m.Type))) - i += copy(dAtA[i:], m.Type) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Path) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Path) + copy(dAtA[i:], m.Path) i = encodeVarintOci(dAtA, i, uint64(len(m.Path))) - i += copy(dAtA[i:], m.Path) + i-- + dAtA[i] = 0x12 } - return i, nil + if len(m.Type) > 0 { + i -= len(m.Type) + copy(dAtA[i:], m.Type) + i = encodeVarintOci(dAtA, i, uint64(len(m.Type))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *LinuxDevice) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3667,54 +4044,65 @@ func (m *LinuxDevice) Marshal() (dAtA []byte, err error) { } func (m *LinuxDevice) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LinuxDevice) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Path) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintOci(dAtA, i, uint64(len(m.Path))) - i += copy(dAtA[i:], m.Path) - } - if len(m.Type) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintOci(dAtA, i, uint64(len(m.Type))) - i += copy(dAtA[i:], m.Type) - } - if m.Major != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintOci(dAtA, i, uint64(m.Major)) - } - if m.Minor != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintOci(dAtA, i, uint64(m.Minor)) - } - if m.FileMode != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintOci(dAtA, i, uint64(m.FileMode)) - } - if m.UID != 0 { - dAtA[i] = 0x30 - i++ - i = encodeVarintOci(dAtA, i, uint64(m.UID)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.GID != 0 { - dAtA[i] = 0x38 - i++ i = encodeVarintOci(dAtA, i, uint64(m.GID)) + i-- + dAtA[i] = 0x38 } - return i, nil + if m.UID != 0 { + i = encodeVarintOci(dAtA, i, uint64(m.UID)) + i-- + dAtA[i] = 0x30 + } + if m.FileMode != 0 { + i = encodeVarintOci(dAtA, i, uint64(m.FileMode)) + i-- + dAtA[i] = 0x28 + } + if m.Minor != 0 { + i = encodeVarintOci(dAtA, i, uint64(m.Minor)) + i-- + dAtA[i] = 0x20 + } + if m.Major != 0 { + i = encodeVarintOci(dAtA, i, uint64(m.Major)) + i-- + dAtA[i] = 0x18 + } + if len(m.Type) > 0 { + i -= len(m.Type) + copy(dAtA[i:], m.Type) + i = encodeVarintOci(dAtA, i, uint64(len(m.Type))) + i-- + dAtA[i] = 0x12 + } + if len(m.Path) > 0 { + i -= len(m.Path) + copy(dAtA[i:], m.Path) + i = encodeVarintOci(dAtA, i, uint64(len(m.Path))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *LinuxResources) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3722,91 +4110,114 @@ func (m *LinuxResources) Marshal() (dAtA []byte, err error) { } func (m *LinuxResources) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LinuxResources) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Devices) > 0 { - for _, msg := range m.Devices { - dAtA[i] = 0xa - i++ - i = encodeVarintOci(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if m.Memory != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintOci(dAtA, i, uint64(m.Memory.Size())) - n15, err := m.Memory.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n15 - } - if m.CPU != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintOci(dAtA, i, uint64(m.CPU.Size())) - n16, err := m.CPU.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n16 - } - if m.Pids != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintOci(dAtA, i, uint64(m.Pids.Size())) - n17, err := m.Pids.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n17 - } - if m.BlockIO != nil { - dAtA[i] = 0x2a - i++ - i = encodeVarintOci(dAtA, i, uint64(m.BlockIO.Size())) - n18, err := m.BlockIO.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n18 - } - if len(m.HugepageLimits) > 0 { - for _, msg := range m.HugepageLimits { - dAtA[i] = 0x32 - i++ - i = encodeVarintOci(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.Network != nil { - dAtA[i] = 0x3a - i++ - i = encodeVarintOci(dAtA, i, uint64(m.Network.Size())) - n19, err := m.Network.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Network.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOci(dAtA, i, uint64(size)) } - i += n19 + i-- + dAtA[i] = 0x3a } - return i, nil + if len(m.HugepageLimits) > 0 { + for iNdEx := len(m.HugepageLimits) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.HugepageLimits[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOci(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + } + if m.BlockIO != nil { + { + size, err := m.BlockIO.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOci(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if m.Pids != nil { + { + size, err := m.Pids.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOci(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if m.CPU != nil { + { + size, err := m.CPU.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOci(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.Memory != nil { + { + size, err := m.Memory.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOci(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.Devices) > 0 { + for iNdEx := len(m.Devices) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Devices[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOci(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil } func (m *LinuxMemory) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3814,57 +4225,66 @@ func (m *LinuxMemory) Marshal() (dAtA []byte, err error) { } func (m *LinuxMemory) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LinuxMemory) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Limit != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintOci(dAtA, i, uint64(m.Limit)) - } - if m.Reservation != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintOci(dAtA, i, uint64(m.Reservation)) - } - if m.Swap != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintOci(dAtA, i, uint64(m.Swap)) - } - if m.Kernel != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintOci(dAtA, i, uint64(m.Kernel)) - } - if m.KernelTCP != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintOci(dAtA, i, uint64(m.KernelTCP)) - } - if m.Swappiness != 0 { - dAtA[i] = 0x30 - i++ - i = encodeVarintOci(dAtA, i, uint64(m.Swappiness)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.DisableOOMKiller { - dAtA[i] = 0x38 - i++ + i-- if m.DisableOOMKiller { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x38 } - return i, nil + if m.Swappiness != 0 { + i = encodeVarintOci(dAtA, i, uint64(m.Swappiness)) + i-- + dAtA[i] = 0x30 + } + if m.KernelTCP != 0 { + i = encodeVarintOci(dAtA, i, uint64(m.KernelTCP)) + i-- + dAtA[i] = 0x28 + } + if m.Kernel != 0 { + i = encodeVarintOci(dAtA, i, uint64(m.Kernel)) + i-- + dAtA[i] = 0x20 + } + if m.Swap != 0 { + i = encodeVarintOci(dAtA, i, uint64(m.Swap)) + i-- + dAtA[i] = 0x18 + } + if m.Reservation != 0 { + i = encodeVarintOci(dAtA, i, uint64(m.Reservation)) + i-- + dAtA[i] = 0x10 + } + if m.Limit != 0 { + i = encodeVarintOci(dAtA, i, uint64(m.Limit)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *LinuxCPU) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3872,54 +4292,65 @@ func (m *LinuxCPU) Marshal() (dAtA []byte, err error) { } func (m *LinuxCPU) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LinuxCPU) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Shares != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintOci(dAtA, i, uint64(m.Shares)) - } - if m.Quota != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintOci(dAtA, i, uint64(m.Quota)) - } - if m.Period != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintOci(dAtA, i, uint64(m.Period)) - } - if m.RealtimeRuntime != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintOci(dAtA, i, uint64(m.RealtimeRuntime)) - } - if m.RealtimePeriod != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintOci(dAtA, i, uint64(m.RealtimePeriod)) - } - if len(m.Cpus) > 0 { - dAtA[i] = 0x32 - i++ - i = encodeVarintOci(dAtA, i, uint64(len(m.Cpus))) - i += copy(dAtA[i:], m.Cpus) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Mems) > 0 { - dAtA[i] = 0x3a - i++ + i -= len(m.Mems) + copy(dAtA[i:], m.Mems) i = encodeVarintOci(dAtA, i, uint64(len(m.Mems))) - i += copy(dAtA[i:], m.Mems) + i-- + dAtA[i] = 0x3a } - return i, nil + if len(m.Cpus) > 0 { + i -= len(m.Cpus) + copy(dAtA[i:], m.Cpus) + i = encodeVarintOci(dAtA, i, uint64(len(m.Cpus))) + i-- + dAtA[i] = 0x32 + } + if m.RealtimePeriod != 0 { + i = encodeVarintOci(dAtA, i, uint64(m.RealtimePeriod)) + i-- + dAtA[i] = 0x28 + } + if m.RealtimeRuntime != 0 { + i = encodeVarintOci(dAtA, i, uint64(m.RealtimeRuntime)) + i-- + dAtA[i] = 0x20 + } + if m.Period != 0 { + i = encodeVarintOci(dAtA, i, uint64(m.Period)) + i-- + dAtA[i] = 0x18 + } + if m.Quota != 0 { + i = encodeVarintOci(dAtA, i, uint64(m.Quota)) + i-- + dAtA[i] = 0x10 + } + if m.Shares != 0 { + i = encodeVarintOci(dAtA, i, uint64(m.Shares)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *LinuxWeightDevice) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3927,37 +4358,46 @@ func (m *LinuxWeightDevice) Marshal() (dAtA []byte, err error) { } func (m *LinuxWeightDevice) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LinuxWeightDevice) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Major != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintOci(dAtA, i, uint64(m.Major)) - } - if m.Minor != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintOci(dAtA, i, uint64(m.Minor)) - } - if m.Weight != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintOci(dAtA, i, uint64(m.Weight)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.LeafWeight != 0 { - dAtA[i] = 0x20 - i++ i = encodeVarintOci(dAtA, i, uint64(m.LeafWeight)) + i-- + dAtA[i] = 0x20 } - return i, nil + if m.Weight != 0 { + i = encodeVarintOci(dAtA, i, uint64(m.Weight)) + i-- + dAtA[i] = 0x18 + } + if m.Minor != 0 { + i = encodeVarintOci(dAtA, i, uint64(m.Minor)) + i-- + dAtA[i] = 0x10 + } + if m.Major != 0 { + i = encodeVarintOci(dAtA, i, uint64(m.Major)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *LinuxThrottleDevice) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3965,32 +4405,41 @@ func (m *LinuxThrottleDevice) Marshal() (dAtA []byte, err error) { } func (m *LinuxThrottleDevice) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LinuxThrottleDevice) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Major != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintOci(dAtA, i, uint64(m.Major)) - } - if m.Minor != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintOci(dAtA, i, uint64(m.Minor)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.Rate != 0 { - dAtA[i] = 0x18 - i++ i = encodeVarintOci(dAtA, i, uint64(m.Rate)) + i-- + dAtA[i] = 0x18 } - return i, nil + if m.Minor != 0 { + i = encodeVarintOci(dAtA, i, uint64(m.Minor)) + i-- + dAtA[i] = 0x10 + } + if m.Major != 0 { + i = encodeVarintOci(dAtA, i, uint64(m.Major)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *LinuxBlockIO) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3998,87 +4447,106 @@ func (m *LinuxBlockIO) Marshal() (dAtA []byte, err error) { } func (m *LinuxBlockIO) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LinuxBlockIO) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Weight != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintOci(dAtA, i, uint64(m.Weight)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.LeafWeight != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintOci(dAtA, i, uint64(m.LeafWeight)) - } - if len(m.WeightDevice) > 0 { - for _, msg := range m.WeightDevice { - dAtA[i] = 0x1a - i++ - i = encodeVarintOci(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if len(m.ThrottleWriteIOPSDevice) > 0 { + for iNdEx := len(m.ThrottleWriteIOPSDevice) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ThrottleWriteIOPSDevice[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOci(dAtA, i, uint64(size)) } - i += n - } - } - if len(m.ThrottleReadBpsDevice) > 0 { - for _, msg := range m.ThrottleReadBpsDevice { - dAtA[i] = 0x22 - i++ - i = encodeVarintOci(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.ThrottleWriteBpsDevice) > 0 { - for _, msg := range m.ThrottleWriteBpsDevice { - dAtA[i] = 0x2a - i++ - i = encodeVarintOci(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n + i-- + dAtA[i] = 0x3a } } if len(m.ThrottleReadIOPSDevice) > 0 { - for _, msg := range m.ThrottleReadIOPSDevice { + for iNdEx := len(m.ThrottleReadIOPSDevice) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ThrottleReadIOPSDevice[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOci(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x32 - i++ - i = encodeVarintOci(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n } } - if len(m.ThrottleWriteIOPSDevice) > 0 { - for _, msg := range m.ThrottleWriteIOPSDevice { - dAtA[i] = 0x3a - i++ - i = encodeVarintOci(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if len(m.ThrottleWriteBpsDevice) > 0 { + for iNdEx := len(m.ThrottleWriteBpsDevice) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ThrottleWriteBpsDevice[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOci(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x2a } } - return i, nil + if len(m.ThrottleReadBpsDevice) > 0 { + for iNdEx := len(m.ThrottleReadBpsDevice) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ThrottleReadBpsDevice[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOci(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.WeightDevice) > 0 { + for iNdEx := len(m.WeightDevice) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.WeightDevice[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOci(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if m.LeafWeight != 0 { + i = encodeVarintOci(dAtA, i, uint64(m.LeafWeight)) + i-- + dAtA[i] = 0x10 + } + if m.Weight != 0 { + i = encodeVarintOci(dAtA, i, uint64(m.Weight)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *LinuxPids) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4086,22 +4554,31 @@ func (m *LinuxPids) Marshal() (dAtA []byte, err error) { } func (m *LinuxPids) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LinuxPids) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Limit != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintOci(dAtA, i, uint64(m.Limit)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - return i, nil + if m.Limit != 0 { + i = encodeVarintOci(dAtA, i, uint64(m.Limit)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *LinuxDeviceCgroup) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4109,49 +4586,60 @@ func (m *LinuxDeviceCgroup) Marshal() (dAtA []byte, err error) { } func (m *LinuxDeviceCgroup) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LinuxDeviceCgroup) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Access) > 0 { + i -= len(m.Access) + copy(dAtA[i:], m.Access) + i = encodeVarintOci(dAtA, i, uint64(len(m.Access))) + i-- + dAtA[i] = 0x2a + } + if m.Minor != 0 { + i = encodeVarintOci(dAtA, i, uint64(m.Minor)) + i-- + dAtA[i] = 0x20 + } + if m.Major != 0 { + i = encodeVarintOci(dAtA, i, uint64(m.Major)) + i-- + dAtA[i] = 0x18 + } + if len(m.Type) > 0 { + i -= len(m.Type) + copy(dAtA[i:], m.Type) + i = encodeVarintOci(dAtA, i, uint64(len(m.Type))) + i-- + dAtA[i] = 0x12 + } if m.Allow { - dAtA[i] = 0x8 - i++ + i-- if m.Allow { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x8 } - if len(m.Type) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintOci(dAtA, i, uint64(len(m.Type))) - i += copy(dAtA[i:], m.Type) - } - if m.Major != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintOci(dAtA, i, uint64(m.Major)) - } - if m.Minor != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintOci(dAtA, i, uint64(m.Minor)) - } - if len(m.Access) > 0 { - dAtA[i] = 0x2a - i++ - i = encodeVarintOci(dAtA, i, uint64(len(m.Access))) - i += copy(dAtA[i:], m.Access) - } - return i, nil + return len(dAtA) - i, nil } func (m *LinuxNetwork) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4159,34 +4647,45 @@ func (m *LinuxNetwork) Marshal() (dAtA []byte, err error) { } func (m *LinuxNetwork) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LinuxNetwork) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.ClassID != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintOci(dAtA, i, uint64(m.ClassID)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Priorities) > 0 { - for _, msg := range m.Priorities { - dAtA[i] = 0x12 - i++ - i = encodeVarintOci(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + for iNdEx := len(m.Priorities) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Priorities[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOci(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x12 } } - return i, nil + if m.ClassID != 0 { + i = encodeVarintOci(dAtA, i, uint64(m.ClassID)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *LinuxHugepageLimit) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4194,28 +4693,38 @@ func (m *LinuxHugepageLimit) Marshal() (dAtA []byte, err error) { } func (m *LinuxHugepageLimit) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LinuxHugepageLimit) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Pagesize) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintOci(dAtA, i, uint64(len(m.Pagesize))) - i += copy(dAtA[i:], m.Pagesize) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.Limit != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintOci(dAtA, i, uint64(m.Limit)) + i-- + dAtA[i] = 0x10 } - return i, nil + if len(m.Pagesize) > 0 { + i -= len(m.Pagesize) + copy(dAtA[i:], m.Pagesize) + i = encodeVarintOci(dAtA, i, uint64(len(m.Pagesize))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *LinuxInterfacePriority) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4223,28 +4732,38 @@ func (m *LinuxInterfacePriority) Marshal() (dAtA []byte, err error) { } func (m *LinuxInterfacePriority) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LinuxInterfacePriority) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Name) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintOci(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.Priority != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintOci(dAtA, i, uint64(m.Priority)) + i-- + dAtA[i] = 0x10 } - return i, nil + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintOci(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *LinuxSeccomp) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4252,50 +4771,56 @@ func (m *LinuxSeccomp) Marshal() (dAtA []byte, err error) { } func (m *LinuxSeccomp) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LinuxSeccomp) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.DefaultAction) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintOci(dAtA, i, uint64(len(m.DefaultAction))) - i += copy(dAtA[i:], m.DefaultAction) - } - if len(m.Architectures) > 0 { - for _, s := range m.Architectures { - 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.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Syscalls) > 0 { - for _, msg := range m.Syscalls { - dAtA[i] = 0x1a - i++ - i = encodeVarintOci(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + for iNdEx := len(m.Syscalls) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Syscalls[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOci(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x1a } } - return i, nil + if len(m.Architectures) > 0 { + for iNdEx := len(m.Architectures) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Architectures[iNdEx]) + copy(dAtA[i:], m.Architectures[iNdEx]) + i = encodeVarintOci(dAtA, i, uint64(len(m.Architectures[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.DefaultAction) > 0 { + i -= len(m.DefaultAction) + copy(dAtA[i:], m.DefaultAction) + i = encodeVarintOci(dAtA, i, uint64(len(m.DefaultAction))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *LinuxSeccompArg) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4303,38 +4828,48 @@ func (m *LinuxSeccompArg) Marshal() (dAtA []byte, err error) { } func (m *LinuxSeccompArg) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LinuxSeccompArg) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Index != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintOci(dAtA, i, uint64(m.Index)) - } - if m.Value != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintOci(dAtA, i, uint64(m.Value)) - } - if m.ValueTwo != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintOci(dAtA, i, uint64(m.ValueTwo)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Op) > 0 { - dAtA[i] = 0x22 - i++ + i -= len(m.Op) + copy(dAtA[i:], m.Op) i = encodeVarintOci(dAtA, i, uint64(len(m.Op))) - i += copy(dAtA[i:], m.Op) + i-- + dAtA[i] = 0x22 } - return i, nil + if m.ValueTwo != 0 { + i = encodeVarintOci(dAtA, i, uint64(m.ValueTwo)) + i-- + dAtA[i] = 0x18 + } + if m.Value != 0 { + i = encodeVarintOci(dAtA, i, uint64(m.Value)) + i-- + dAtA[i] = 0x10 + } + if m.Index != 0 { + i = encodeVarintOci(dAtA, i, uint64(m.Index)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *LinuxSyscall) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4342,50 +4877,56 @@ func (m *LinuxSyscall) Marshal() (dAtA []byte, err error) { } func (m *LinuxSyscall) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LinuxSyscall) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Names) > 0 { - for _, s := range m.Names { - dAtA[i] = 0xa - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Args) > 0 { + for iNdEx := len(m.Args) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Args[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOci(dAtA, i, uint64(size)) } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) + i-- + dAtA[i] = 0x1a } } if len(m.Action) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Action) + copy(dAtA[i:], m.Action) i = encodeVarintOci(dAtA, i, uint64(len(m.Action))) - i += copy(dAtA[i:], m.Action) + i-- + dAtA[i] = 0x12 } - if len(m.Args) > 0 { - for _, msg := range m.Args { - dAtA[i] = 0x1a - i++ - i = encodeVarintOci(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n + if len(m.Names) > 0 { + for iNdEx := len(m.Names) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Names[iNdEx]) + copy(dAtA[i:], m.Names[iNdEx]) + i = encodeVarintOci(dAtA, i, uint64(len(m.Names[iNdEx]))) + i-- + dAtA[i] = 0xa } } - return i, nil + return len(dAtA) - i, nil } func (m *LinuxIntelRdt) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4393,39 +4934,51 @@ func (m *LinuxIntelRdt) Marshal() (dAtA []byte, err error) { } func (m *LinuxIntelRdt) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LinuxIntelRdt) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.L3CacheSchema) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintOci(dAtA, i, uint64(len(m.L3CacheSchema))) - i += copy(dAtA[i:], m.L3CacheSchema) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - return i, nil + if len(m.L3CacheSchema) > 0 { + i -= len(m.L3CacheSchema) + copy(dAtA[i:], m.L3CacheSchema) + i = encodeVarintOci(dAtA, i, uint64(len(m.L3CacheSchema))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func encodeVarintOci(dAtA []byte, offset int, v uint64) int { + offset -= sovOci(v) + base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return offset + 1 + return base } func NewPopulatedSpec(r randyOci, easy bool) *Spec { this := &Spec{} this.Version = string(randStringOci(r)) - if r.Intn(10) != 0 { + if r.Intn(5) != 0 { this.Process = NewPopulatedProcess(r, easy) } - if r.Intn(10) != 0 { + if r.Intn(5) != 0 { this.Root = NewPopulatedRoot(r, easy) } this.Hostname = string(randStringOci(r)) - if r.Intn(10) != 0 { + if r.Intn(5) != 0 { v1 := r.Intn(5) this.Mounts = make([]Mount, v1) for i := 0; i < v1; i++ { @@ -4433,26 +4986,27 @@ func NewPopulatedSpec(r randyOci, easy bool) *Spec { this.Mounts[i] = *v2 } } - if r.Intn(10) != 0 { + if r.Intn(5) != 0 { this.Hooks = NewPopulatedHooks(r, easy) } - if r.Intn(10) != 0 { + if r.Intn(5) != 0 { v3 := r.Intn(10) this.Annotations = make(map[string]string) for i := 0; i < v3; i++ { this.Annotations[randStringOci(r)] = randStringOci(r) } } - if r.Intn(10) != 0 { + if r.Intn(5) != 0 { this.Linux = NewPopulatedLinux(r, easy) } - if r.Intn(10) != 0 { + if r.Intn(5) != 0 { this.Solaris = NewPopulatedSolaris(r, easy) } - if r.Intn(10) != 0 { + if r.Intn(5) != 0 { this.Windows = NewPopulatedWindows(r, easy) } if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedOci(r, 11) } return this } @@ -4460,7 +5014,7 @@ func NewPopulatedSpec(r randyOci, easy bool) *Spec { func NewPopulatedProcess(r randyOci, easy bool) *Process { this := &Process{} this.Terminal = bool(bool(r.Intn(2) == 0)) - if r.Intn(10) != 0 { + if r.Intn(5) != 0 { this.ConsoleSize = NewPopulatedBox(r, easy) } v4 := NewPopulatedUser(r, easy) @@ -4476,10 +5030,10 @@ func NewPopulatedProcess(r randyOci, easy bool) *Process { this.Env[i] = string(randStringOci(r)) } this.Cwd = string(randStringOci(r)) - if r.Intn(10) != 0 { + if r.Intn(5) != 0 { this.Capabilities = NewPopulatedLinuxCapabilities(r, easy) } - if r.Intn(10) != 0 { + if r.Intn(5) != 0 { v7 := r.Intn(5) this.Rlimits = make([]POSIXRlimit, v7) for i := 0; i < v7; i++ { @@ -4495,6 +5049,7 @@ func NewPopulatedProcess(r randyOci, easy bool) *Process { } this.SelinuxLabel = string(randStringOci(r)) if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedOci(r, 13) } return this } @@ -4504,6 +5059,7 @@ func NewPopulatedBox(r randyOci, easy bool) *Box { this.Height = uint32(r.Uint32()) this.Width = uint32(r.Uint32()) if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedOci(r, 3) } return this } @@ -4519,6 +5075,7 @@ func NewPopulatedUser(r randyOci, easy bool) *User { } this.Username = string(randStringOci(r)) if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedOci(r, 5) } return this } @@ -4551,6 +5108,7 @@ func NewPopulatedLinuxCapabilities(r randyOci, easy bool) *LinuxCapabilities { this.Ambient[i] = string(randStringOci(r)) } if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedOci(r, 6) } return this } @@ -4561,6 +5119,7 @@ func NewPopulatedPOSIXRlimit(r randyOci, easy bool) *POSIXRlimit { this.Hard = uint64(uint64(r.Uint32())) this.Soft = uint64(uint64(r.Uint32())) if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedOci(r, 4) } return this } @@ -4576,6 +5135,7 @@ func NewPopulatedMount(r randyOci, easy bool) *Mount { this.Options[i] = string(randStringOci(r)) } if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedOci(r, 5) } return this } @@ -4585,13 +5145,14 @@ func NewPopulatedRoot(r randyOci, easy bool) *Root { this.Path = string(randStringOci(r)) this.Readonly = bool(bool(r.Intn(2) == 0)) if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedOci(r, 3) } return this } func NewPopulatedHooks(r randyOci, easy bool) *Hooks { this := &Hooks{} - if r.Intn(10) != 0 { + if r.Intn(5) != 0 { v16 := r.Intn(5) this.Prestart = make([]Hook, v16) for i := 0; i < v16; i++ { @@ -4599,7 +5160,7 @@ func NewPopulatedHooks(r randyOci, easy bool) *Hooks { this.Prestart[i] = *v17 } } - if r.Intn(10) != 0 { + if r.Intn(5) != 0 { v18 := r.Intn(5) this.Poststart = make([]Hook, v18) for i := 0; i < v18; i++ { @@ -4607,7 +5168,7 @@ func NewPopulatedHooks(r randyOci, easy bool) *Hooks { this.Poststart[i] = *v19 } } - if r.Intn(10) != 0 { + if r.Intn(5) != 0 { v20 := r.Intn(5) this.Poststop = make([]Hook, v20) for i := 0; i < v20; i++ { @@ -4616,6 +5177,7 @@ func NewPopulatedHooks(r randyOci, easy bool) *Hooks { } } if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedOci(r, 4) } return this } @@ -4638,13 +5200,14 @@ func NewPopulatedHook(r randyOci, easy bool) *Hook { this.Timeout *= -1 } if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedOci(r, 5) } return this } func NewPopulatedLinux(r randyOci, easy bool) *Linux { this := &Linux{} - if r.Intn(10) != 0 { + if r.Intn(5) != 0 { v24 := r.Intn(5) this.UIDMappings = make([]LinuxIDMapping, v24) for i := 0; i < v24; i++ { @@ -4652,7 +5215,7 @@ func NewPopulatedLinux(r randyOci, easy bool) *Linux { this.UIDMappings[i] = *v25 } } - if r.Intn(10) != 0 { + if r.Intn(5) != 0 { v26 := r.Intn(5) this.GIDMappings = make([]LinuxIDMapping, v26) for i := 0; i < v26; i++ { @@ -4660,18 +5223,18 @@ func NewPopulatedLinux(r randyOci, easy bool) *Linux { this.GIDMappings[i] = *v27 } } - if r.Intn(10) != 0 { + if r.Intn(5) != 0 { v28 := r.Intn(10) this.Sysctl = make(map[string]string) for i := 0; i < v28; i++ { this.Sysctl[randStringOci(r)] = randStringOci(r) } } - if r.Intn(10) != 0 { + if r.Intn(5) != 0 { this.Resources = NewPopulatedLinuxResources(r, easy) } this.CgroupsPath = string(randStringOci(r)) - if r.Intn(10) != 0 { + if r.Intn(5) != 0 { v29 := r.Intn(5) this.Namespaces = make([]LinuxNamespace, v29) for i := 0; i < v29; i++ { @@ -4679,7 +5242,7 @@ func NewPopulatedLinux(r randyOci, easy bool) *Linux { this.Namespaces[i] = *v30 } } - if r.Intn(10) != 0 { + if r.Intn(5) != 0 { v31 := r.Intn(5) this.Devices = make([]LinuxDevice, v31) for i := 0; i < v31; i++ { @@ -4687,7 +5250,7 @@ func NewPopulatedLinux(r randyOci, easy bool) *Linux { this.Devices[i] = *v32 } } - if r.Intn(10) != 0 { + if r.Intn(5) != 0 { this.Seccomp = NewPopulatedLinuxSeccomp(r, easy) } this.RootfsPropagation = string(randStringOci(r)) @@ -4702,10 +5265,11 @@ func NewPopulatedLinux(r randyOci, easy bool) *Linux { this.ReadonlyPaths[i] = string(randStringOci(r)) } this.MountLabel = string(randStringOci(r)) - if r.Intn(10) != 0 { + if r.Intn(5) != 0 { this.IntelRdt = NewPopulatedLinuxIntelRdt(r, easy) } if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedOci(r, 14) } return this } @@ -4714,6 +5278,7 @@ func NewPopulatedWindows(r randyOci, easy bool) *Windows { this := &Windows{} this.Dummy = string(randStringOci(r)) if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedOci(r, 2) } return this } @@ -4722,6 +5287,7 @@ func NewPopulatedSolaris(r randyOci, easy bool) *Solaris { this := &Solaris{} this.Dummy = string(randStringOci(r)) if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedOci(r, 2) } return this } @@ -4732,6 +5298,7 @@ func NewPopulatedLinuxIDMapping(r randyOci, easy bool) *LinuxIDMapping { this.ContainerID = uint32(r.Uint32()) this.Size_ = uint32(r.Uint32()) if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedOci(r, 4) } return this } @@ -4741,6 +5308,7 @@ func NewPopulatedLinuxNamespace(r randyOci, easy bool) *LinuxNamespace { this.Type = string(randStringOci(r)) this.Path = string(randStringOci(r)) if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedOci(r, 3) } return this } @@ -4761,13 +5329,14 @@ func NewPopulatedLinuxDevice(r randyOci, easy bool) *LinuxDevice { this.UID = uint32(r.Uint32()) this.GID = uint32(r.Uint32()) if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedOci(r, 8) } return this } func NewPopulatedLinuxResources(r randyOci, easy bool) *LinuxResources { this := &LinuxResources{} - if r.Intn(10) != 0 { + if r.Intn(5) != 0 { v35 := r.Intn(5) this.Devices = make([]LinuxDeviceCgroup, v35) for i := 0; i < v35; i++ { @@ -4775,19 +5344,19 @@ func NewPopulatedLinuxResources(r randyOci, easy bool) *LinuxResources { this.Devices[i] = *v36 } } - if r.Intn(10) != 0 { + if r.Intn(5) != 0 { this.Memory = NewPopulatedLinuxMemory(r, easy) } - if r.Intn(10) != 0 { + if r.Intn(5) != 0 { this.CPU = NewPopulatedLinuxCPU(r, easy) } - if r.Intn(10) != 0 { + if r.Intn(5) != 0 { this.Pids = NewPopulatedLinuxPids(r, easy) } - if r.Intn(10) != 0 { + if r.Intn(5) != 0 { this.BlockIO = NewPopulatedLinuxBlockIO(r, easy) } - if r.Intn(10) != 0 { + if r.Intn(5) != 0 { v37 := r.Intn(5) this.HugepageLimits = make([]LinuxHugepageLimit, v37) for i := 0; i < v37; i++ { @@ -4795,10 +5364,11 @@ func NewPopulatedLinuxResources(r randyOci, easy bool) *LinuxResources { this.HugepageLimits[i] = *v38 } } - if r.Intn(10) != 0 { + if r.Intn(5) != 0 { this.Network = NewPopulatedLinuxNetwork(r, easy) } if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedOci(r, 8) } return this } @@ -4828,6 +5398,7 @@ func NewPopulatedLinuxMemory(r randyOci, easy bool) *LinuxMemory { this.Swappiness = uint64(uint64(r.Uint32())) this.DisableOOMKiller = bool(bool(r.Intn(2) == 0)) if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedOci(r, 8) } return this } @@ -4848,6 +5419,7 @@ func NewPopulatedLinuxCPU(r randyOci, easy bool) *LinuxCPU { this.Cpus = string(randStringOci(r)) this.Mems = string(randStringOci(r)) if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedOci(r, 8) } return this } @@ -4865,6 +5437,7 @@ func NewPopulatedLinuxWeightDevice(r randyOci, easy bool) *LinuxWeightDevice { this.Weight = uint32(r.Uint32()) this.LeafWeight = uint32(r.Uint32()) if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedOci(r, 5) } return this } @@ -4881,6 +5454,7 @@ func NewPopulatedLinuxThrottleDevice(r randyOci, easy bool) *LinuxThrottleDevice } this.Rate = uint64(uint64(r.Uint32())) if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedOci(r, 4) } return this } @@ -4889,7 +5463,7 @@ func NewPopulatedLinuxBlockIO(r randyOci, easy bool) *LinuxBlockIO { this := &LinuxBlockIO{} this.Weight = uint32(r.Uint32()) this.LeafWeight = uint32(r.Uint32()) - if r.Intn(10) != 0 { + if r.Intn(5) != 0 { v39 := r.Intn(5) this.WeightDevice = make([]LinuxWeightDevice, v39) for i := 0; i < v39; i++ { @@ -4897,7 +5471,7 @@ func NewPopulatedLinuxBlockIO(r randyOci, easy bool) *LinuxBlockIO { this.WeightDevice[i] = *v40 } } - if r.Intn(10) != 0 { + if r.Intn(5) != 0 { v41 := r.Intn(5) this.ThrottleReadBpsDevice = make([]LinuxThrottleDevice, v41) for i := 0; i < v41; i++ { @@ -4905,7 +5479,7 @@ func NewPopulatedLinuxBlockIO(r randyOci, easy bool) *LinuxBlockIO { this.ThrottleReadBpsDevice[i] = *v42 } } - if r.Intn(10) != 0 { + if r.Intn(5) != 0 { v43 := r.Intn(5) this.ThrottleWriteBpsDevice = make([]LinuxThrottleDevice, v43) for i := 0; i < v43; i++ { @@ -4913,7 +5487,7 @@ func NewPopulatedLinuxBlockIO(r randyOci, easy bool) *LinuxBlockIO { this.ThrottleWriteBpsDevice[i] = *v44 } } - if r.Intn(10) != 0 { + if r.Intn(5) != 0 { v45 := r.Intn(5) this.ThrottleReadIOPSDevice = make([]LinuxThrottleDevice, v45) for i := 0; i < v45; i++ { @@ -4921,7 +5495,7 @@ func NewPopulatedLinuxBlockIO(r randyOci, easy bool) *LinuxBlockIO { this.ThrottleReadIOPSDevice[i] = *v46 } } - if r.Intn(10) != 0 { + if r.Intn(5) != 0 { v47 := r.Intn(5) this.ThrottleWriteIOPSDevice = make([]LinuxThrottleDevice, v47) for i := 0; i < v47; i++ { @@ -4930,6 +5504,7 @@ func NewPopulatedLinuxBlockIO(r randyOci, easy bool) *LinuxBlockIO { } } if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedOci(r, 8) } return this } @@ -4941,6 +5516,7 @@ func NewPopulatedLinuxPids(r randyOci, easy bool) *LinuxPids { this.Limit *= -1 } if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedOci(r, 2) } return this } @@ -4959,6 +5535,7 @@ func NewPopulatedLinuxDeviceCgroup(r randyOci, easy bool) *LinuxDeviceCgroup { } this.Access = string(randStringOci(r)) if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedOci(r, 6) } return this } @@ -4966,7 +5543,7 @@ func NewPopulatedLinuxDeviceCgroup(r randyOci, easy bool) *LinuxDeviceCgroup { func NewPopulatedLinuxNetwork(r randyOci, easy bool) *LinuxNetwork { this := &LinuxNetwork{} this.ClassID = uint32(r.Uint32()) - if r.Intn(10) != 0 { + if r.Intn(5) != 0 { v49 := r.Intn(5) this.Priorities = make([]LinuxInterfacePriority, v49) for i := 0; i < v49; i++ { @@ -4975,6 +5552,7 @@ func NewPopulatedLinuxNetwork(r randyOci, easy bool) *LinuxNetwork { } } if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedOci(r, 3) } return this } @@ -4984,6 +5562,7 @@ func NewPopulatedLinuxHugepageLimit(r randyOci, easy bool) *LinuxHugepageLimit { this.Pagesize = string(randStringOci(r)) this.Limit = uint64(uint64(r.Uint32())) if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedOci(r, 3) } return this } @@ -4993,6 +5572,7 @@ func NewPopulatedLinuxInterfacePriority(r randyOci, easy bool) *LinuxInterfacePr this.Name = string(randStringOci(r)) this.Priority = uint32(r.Uint32()) if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedOci(r, 3) } return this } @@ -5005,7 +5585,7 @@ func NewPopulatedLinuxSeccomp(r randyOci, easy bool) *LinuxSeccomp { for i := 0; i < v51; i++ { this.Architectures[i] = string(randStringOci(r)) } - if r.Intn(10) != 0 { + if r.Intn(5) != 0 { v52 := r.Intn(5) this.Syscalls = make([]LinuxSyscall, v52) for i := 0; i < v52; i++ { @@ -5014,6 +5594,7 @@ func NewPopulatedLinuxSeccomp(r randyOci, easy bool) *LinuxSeccomp { } } if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedOci(r, 4) } return this } @@ -5025,6 +5606,7 @@ func NewPopulatedLinuxSeccompArg(r randyOci, easy bool) *LinuxSeccompArg { this.ValueTwo = uint64(uint64(r.Uint32())) this.Op = string(randStringOci(r)) if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedOci(r, 5) } return this } @@ -5037,7 +5619,7 @@ func NewPopulatedLinuxSyscall(r randyOci, easy bool) *LinuxSyscall { this.Names[i] = string(randStringOci(r)) } this.Action = string(randStringOci(r)) - if r.Intn(10) != 0 { + if r.Intn(5) != 0 { v55 := r.Intn(5) this.Args = make([]LinuxSeccompArg, v55) for i := 0; i < v55; i++ { @@ -5046,6 +5628,7 @@ func NewPopulatedLinuxSyscall(r randyOci, easy bool) *LinuxSyscall { } } if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedOci(r, 4) } return this } @@ -5054,6 +5637,7 @@ func NewPopulatedLinuxIntelRdt(r randyOci, easy bool) *LinuxIntelRdt { this := &LinuxIntelRdt{} this.L3CacheSchema = string(randStringOci(r)) if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedOci(r, 2) } return this } @@ -5131,6 +5715,9 @@ func encodeVarintPopulateOci(dAtA []byte, v uint64) []byte { return dAtA } func (m *Spec) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Version) @@ -5179,10 +5766,16 @@ func (m *Spec) Size() (n int) { l = m.Windows.Size() n += 1 + l + sovOci(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Process) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Terminal { @@ -5234,10 +5827,16 @@ func (m *Process) Size() (n int) { if l > 0 { n += 1 + l + sovOci(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Box) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Height != 0 { @@ -5246,10 +5845,16 @@ func (m *Box) Size() (n int) { if m.Width != 0 { n += 1 + sovOci(uint64(m.Width)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *User) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.UID != 0 { @@ -5269,10 +5874,16 @@ func (m *User) Size() (n int) { if l > 0 { n += 1 + l + sovOci(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *LinuxCapabilities) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.Bounding) > 0 { @@ -5305,10 +5916,16 @@ func (m *LinuxCapabilities) Size() (n int) { n += 1 + l + sovOci(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *POSIXRlimit) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Type) @@ -5321,10 +5938,16 @@ func (m *POSIXRlimit) Size() (n int) { if m.Soft != 0 { n += 1 + sovOci(uint64(m.Soft)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Mount) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Destination) @@ -5345,10 +5968,16 @@ func (m *Mount) Size() (n int) { n += 1 + l + sovOci(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Root) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Path) @@ -5358,10 +5987,16 @@ func (m *Root) Size() (n int) { if m.Readonly { n += 2 } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Hooks) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.Prestart) > 0 { @@ -5382,10 +6017,16 @@ func (m *Hooks) Size() (n int) { n += 1 + l + sovOci(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Hook) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Path) @@ -5407,10 +6048,16 @@ func (m *Hook) Size() (n int) { if m.Timeout != 0 { n += 1 + sovOci(uint64(m.Timeout)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Linux) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.UIDMappings) > 0 { @@ -5481,30 +6128,48 @@ func (m *Linux) Size() (n int) { l = m.IntelRdt.Size() n += 1 + l + sovOci(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Windows) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Dummy) if l > 0 { n += 1 + l + sovOci(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Solaris) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Dummy) if l > 0 { n += 1 + l + sovOci(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *LinuxIDMapping) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.HostID != 0 { @@ -5516,10 +6181,16 @@ func (m *LinuxIDMapping) Size() (n int) { if m.Size_ != 0 { n += 1 + sovOci(uint64(m.Size_)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *LinuxNamespace) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Type) @@ -5530,10 +6201,16 @@ func (m *LinuxNamespace) Size() (n int) { if l > 0 { n += 1 + l + sovOci(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *LinuxDevice) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Path) @@ -5559,10 +6236,16 @@ func (m *LinuxDevice) Size() (n int) { if m.GID != 0 { n += 1 + sovOci(uint64(m.GID)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *LinuxResources) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.Devices) > 0 { @@ -5597,10 +6280,16 @@ func (m *LinuxResources) Size() (n int) { l = m.Network.Size() n += 1 + l + sovOci(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *LinuxMemory) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Limit != 0 { @@ -5624,10 +6313,16 @@ func (m *LinuxMemory) Size() (n int) { if m.DisableOOMKiller { n += 2 } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *LinuxCPU) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Shares != 0 { @@ -5653,10 +6348,16 @@ func (m *LinuxCPU) Size() (n int) { if l > 0 { n += 1 + l + sovOci(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *LinuxWeightDevice) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Major != 0 { @@ -5671,10 +6372,16 @@ func (m *LinuxWeightDevice) Size() (n int) { if m.LeafWeight != 0 { n += 1 + sovOci(uint64(m.LeafWeight)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *LinuxThrottleDevice) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Major != 0 { @@ -5686,10 +6393,16 @@ func (m *LinuxThrottleDevice) Size() (n int) { if m.Rate != 0 { n += 1 + sovOci(uint64(m.Rate)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *LinuxBlockIO) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Weight != 0 { @@ -5728,19 +6441,31 @@ func (m *LinuxBlockIO) Size() (n int) { n += 1 + l + sovOci(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *LinuxPids) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Limit != 0 { n += 1 + sovOci(uint64(m.Limit)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *LinuxDeviceCgroup) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Allow { @@ -5760,10 +6485,16 @@ func (m *LinuxDeviceCgroup) Size() (n int) { if l > 0 { n += 1 + l + sovOci(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *LinuxNetwork) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.ClassID != 0 { @@ -5775,10 +6506,16 @@ func (m *LinuxNetwork) Size() (n int) { n += 1 + l + sovOci(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *LinuxHugepageLimit) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Pagesize) @@ -5788,10 +6525,16 @@ func (m *LinuxHugepageLimit) Size() (n int) { if m.Limit != 0 { n += 1 + sovOci(uint64(m.Limit)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *LinuxInterfacePriority) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Name) @@ -5801,10 +6544,16 @@ func (m *LinuxInterfacePriority) Size() (n int) { if m.Priority != 0 { n += 1 + sovOci(uint64(m.Priority)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *LinuxSeccomp) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.DefaultAction) @@ -5823,10 +6572,16 @@ func (m *LinuxSeccomp) Size() (n int) { n += 1 + l + sovOci(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *LinuxSeccompArg) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Index != 0 { @@ -5842,10 +6597,16 @@ func (m *LinuxSeccompArg) Size() (n int) { if l > 0 { n += 1 + l + sovOci(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *LinuxSyscall) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.Names) > 0 { @@ -5864,32 +6625,601 @@ func (m *LinuxSyscall) Size() (n int) { n += 1 + l + sovOci(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *LinuxIntelRdt) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.L3CacheSchema) if l > 0 { n += 1 + l + sovOci(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func sovOci(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n + return (math_bits.Len64(x|1) + 6) / 7 } func sozOci(x uint64) (n int) { return sovOci(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } +func (this *Spec) String() string { + if this == nil { + return "nil" + } + repeatedStringForMounts := "[]Mount{" + for _, f := range this.Mounts { + repeatedStringForMounts += strings.Replace(strings.Replace(f.String(), "Mount", "Mount", 1), `&`, ``, 1) + "," + } + repeatedStringForMounts += "}" + keysForAnnotations := make([]string, 0, len(this.Annotations)) + for k, _ := range this.Annotations { + keysForAnnotations = append(keysForAnnotations, k) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForAnnotations) + mapStringForAnnotations := "map[string]string{" + for _, k := range keysForAnnotations { + mapStringForAnnotations += fmt.Sprintf("%v: %v,", k, this.Annotations[k]) + } + mapStringForAnnotations += "}" + s := strings.Join([]string{`&Spec{`, + `Version:` + fmt.Sprintf("%v", this.Version) + `,`, + `Process:` + strings.Replace(this.Process.String(), "Process", "Process", 1) + `,`, + `Root:` + strings.Replace(this.Root.String(), "Root", "Root", 1) + `,`, + `Hostname:` + fmt.Sprintf("%v", this.Hostname) + `,`, + `Mounts:` + repeatedStringForMounts + `,`, + `Hooks:` + strings.Replace(this.Hooks.String(), "Hooks", "Hooks", 1) + `,`, + `Annotations:` + mapStringForAnnotations + `,`, + `Linux:` + strings.Replace(this.Linux.String(), "Linux", "Linux", 1) + `,`, + `Solaris:` + strings.Replace(this.Solaris.String(), "Solaris", "Solaris", 1) + `,`, + `Windows:` + strings.Replace(this.Windows.String(), "Windows", "Windows", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *Process) String() string { + if this == nil { + return "nil" + } + repeatedStringForRlimits := "[]POSIXRlimit{" + for _, f := range this.Rlimits { + repeatedStringForRlimits += strings.Replace(strings.Replace(f.String(), "POSIXRlimit", "POSIXRlimit", 1), `&`, ``, 1) + "," + } + repeatedStringForRlimits += "}" + s := strings.Join([]string{`&Process{`, + `Terminal:` + fmt.Sprintf("%v", this.Terminal) + `,`, + `ConsoleSize:` + strings.Replace(this.ConsoleSize.String(), "Box", "Box", 1) + `,`, + `User:` + strings.Replace(strings.Replace(this.User.String(), "User", "User", 1), `&`, ``, 1) + `,`, + `Args:` + fmt.Sprintf("%v", this.Args) + `,`, + `Env:` + fmt.Sprintf("%v", this.Env) + `,`, + `Cwd:` + fmt.Sprintf("%v", this.Cwd) + `,`, + `Capabilities:` + strings.Replace(this.Capabilities.String(), "LinuxCapabilities", "LinuxCapabilities", 1) + `,`, + `Rlimits:` + repeatedStringForRlimits + `,`, + `NoNewPrivileges:` + fmt.Sprintf("%v", this.NoNewPrivileges) + `,`, + `ApparmorProfile:` + fmt.Sprintf("%v", this.ApparmorProfile) + `,`, + `OOMScoreAdj:` + fmt.Sprintf("%v", this.OOMScoreAdj) + `,`, + `SelinuxLabel:` + fmt.Sprintf("%v", this.SelinuxLabel) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *Box) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Box{`, + `Height:` + fmt.Sprintf("%v", this.Height) + `,`, + `Width:` + fmt.Sprintf("%v", this.Width) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *User) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&User{`, + `UID:` + fmt.Sprintf("%v", this.UID) + `,`, + `GID:` + fmt.Sprintf("%v", this.GID) + `,`, + `AdditionalGids:` + fmt.Sprintf("%v", this.AdditionalGids) + `,`, + `Username:` + fmt.Sprintf("%v", this.Username) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *LinuxCapabilities) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&LinuxCapabilities{`, + `Bounding:` + fmt.Sprintf("%v", this.Bounding) + `,`, + `Effective:` + fmt.Sprintf("%v", this.Effective) + `,`, + `Inheritable:` + fmt.Sprintf("%v", this.Inheritable) + `,`, + `Permitted:` + fmt.Sprintf("%v", this.Permitted) + `,`, + `Ambient:` + fmt.Sprintf("%v", this.Ambient) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *POSIXRlimit) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&POSIXRlimit{`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `Hard:` + fmt.Sprintf("%v", this.Hard) + `,`, + `Soft:` + fmt.Sprintf("%v", this.Soft) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *Mount) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Mount{`, + `Destination:` + fmt.Sprintf("%v", this.Destination) + `,`, + `Source:` + fmt.Sprintf("%v", this.Source) + `,`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `Options:` + fmt.Sprintf("%v", this.Options) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *Root) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Root{`, + `Path:` + fmt.Sprintf("%v", this.Path) + `,`, + `Readonly:` + fmt.Sprintf("%v", this.Readonly) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *Hooks) String() string { + if this == nil { + return "nil" + } + repeatedStringForPrestart := "[]Hook{" + for _, f := range this.Prestart { + repeatedStringForPrestart += strings.Replace(strings.Replace(f.String(), "Hook", "Hook", 1), `&`, ``, 1) + "," + } + repeatedStringForPrestart += "}" + repeatedStringForPoststart := "[]Hook{" + for _, f := range this.Poststart { + repeatedStringForPoststart += strings.Replace(strings.Replace(f.String(), "Hook", "Hook", 1), `&`, ``, 1) + "," + } + repeatedStringForPoststart += "}" + repeatedStringForPoststop := "[]Hook{" + for _, f := range this.Poststop { + repeatedStringForPoststop += strings.Replace(strings.Replace(f.String(), "Hook", "Hook", 1), `&`, ``, 1) + "," + } + repeatedStringForPoststop += "}" + s := strings.Join([]string{`&Hooks{`, + `Prestart:` + repeatedStringForPrestart + `,`, + `Poststart:` + repeatedStringForPoststart + `,`, + `Poststop:` + repeatedStringForPoststop + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *Hook) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Hook{`, + `Path:` + fmt.Sprintf("%v", this.Path) + `,`, + `Args:` + fmt.Sprintf("%v", this.Args) + `,`, + `Env:` + fmt.Sprintf("%v", this.Env) + `,`, + `Timeout:` + fmt.Sprintf("%v", this.Timeout) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *Linux) String() string { + if this == nil { + return "nil" + } + repeatedStringForUIDMappings := "[]LinuxIDMapping{" + for _, f := range this.UIDMappings { + repeatedStringForUIDMappings += strings.Replace(strings.Replace(f.String(), "LinuxIDMapping", "LinuxIDMapping", 1), `&`, ``, 1) + "," + } + repeatedStringForUIDMappings += "}" + repeatedStringForGIDMappings := "[]LinuxIDMapping{" + for _, f := range this.GIDMappings { + repeatedStringForGIDMappings += strings.Replace(strings.Replace(f.String(), "LinuxIDMapping", "LinuxIDMapping", 1), `&`, ``, 1) + "," + } + repeatedStringForGIDMappings += "}" + repeatedStringForNamespaces := "[]LinuxNamespace{" + for _, f := range this.Namespaces { + repeatedStringForNamespaces += strings.Replace(strings.Replace(f.String(), "LinuxNamespace", "LinuxNamespace", 1), `&`, ``, 1) + "," + } + repeatedStringForNamespaces += "}" + repeatedStringForDevices := "[]LinuxDevice{" + for _, f := range this.Devices { + repeatedStringForDevices += strings.Replace(strings.Replace(f.String(), "LinuxDevice", "LinuxDevice", 1), `&`, ``, 1) + "," + } + repeatedStringForDevices += "}" + keysForSysctl := make([]string, 0, len(this.Sysctl)) + for k, _ := range this.Sysctl { + keysForSysctl = append(keysForSysctl, k) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForSysctl) + mapStringForSysctl := "map[string]string{" + for _, k := range keysForSysctl { + mapStringForSysctl += fmt.Sprintf("%v: %v,", k, this.Sysctl[k]) + } + mapStringForSysctl += "}" + s := strings.Join([]string{`&Linux{`, + `UIDMappings:` + repeatedStringForUIDMappings + `,`, + `GIDMappings:` + repeatedStringForGIDMappings + `,`, + `Sysctl:` + mapStringForSysctl + `,`, + `Resources:` + strings.Replace(this.Resources.String(), "LinuxResources", "LinuxResources", 1) + `,`, + `CgroupsPath:` + fmt.Sprintf("%v", this.CgroupsPath) + `,`, + `Namespaces:` + repeatedStringForNamespaces + `,`, + `Devices:` + repeatedStringForDevices + `,`, + `Seccomp:` + strings.Replace(this.Seccomp.String(), "LinuxSeccomp", "LinuxSeccomp", 1) + `,`, + `RootfsPropagation:` + fmt.Sprintf("%v", this.RootfsPropagation) + `,`, + `MaskedPaths:` + fmt.Sprintf("%v", this.MaskedPaths) + `,`, + `ReadonlyPaths:` + fmt.Sprintf("%v", this.ReadonlyPaths) + `,`, + `MountLabel:` + fmt.Sprintf("%v", this.MountLabel) + `,`, + `IntelRdt:` + strings.Replace(this.IntelRdt.String(), "LinuxIntelRdt", "LinuxIntelRdt", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *Windows) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Windows{`, + `Dummy:` + fmt.Sprintf("%v", this.Dummy) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *Solaris) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Solaris{`, + `Dummy:` + fmt.Sprintf("%v", this.Dummy) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *LinuxIDMapping) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&LinuxIDMapping{`, + `HostID:` + fmt.Sprintf("%v", this.HostID) + `,`, + `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`, + `Size_:` + fmt.Sprintf("%v", this.Size_) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *LinuxNamespace) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&LinuxNamespace{`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `Path:` + fmt.Sprintf("%v", this.Path) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *LinuxDevice) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&LinuxDevice{`, + `Path:` + fmt.Sprintf("%v", this.Path) + `,`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `Major:` + fmt.Sprintf("%v", this.Major) + `,`, + `Minor:` + fmt.Sprintf("%v", this.Minor) + `,`, + `FileMode:` + fmt.Sprintf("%v", this.FileMode) + `,`, + `UID:` + fmt.Sprintf("%v", this.UID) + `,`, + `GID:` + fmt.Sprintf("%v", this.GID) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *LinuxResources) String() string { + if this == nil { + return "nil" + } + repeatedStringForDevices := "[]LinuxDeviceCgroup{" + for _, f := range this.Devices { + repeatedStringForDevices += strings.Replace(strings.Replace(f.String(), "LinuxDeviceCgroup", "LinuxDeviceCgroup", 1), `&`, ``, 1) + "," + } + repeatedStringForDevices += "}" + repeatedStringForHugepageLimits := "[]LinuxHugepageLimit{" + for _, f := range this.HugepageLimits { + repeatedStringForHugepageLimits += strings.Replace(strings.Replace(f.String(), "LinuxHugepageLimit", "LinuxHugepageLimit", 1), `&`, ``, 1) + "," + } + repeatedStringForHugepageLimits += "}" + s := strings.Join([]string{`&LinuxResources{`, + `Devices:` + repeatedStringForDevices + `,`, + `Memory:` + strings.Replace(this.Memory.String(), "LinuxMemory", "LinuxMemory", 1) + `,`, + `CPU:` + strings.Replace(this.CPU.String(), "LinuxCPU", "LinuxCPU", 1) + `,`, + `Pids:` + strings.Replace(this.Pids.String(), "LinuxPids", "LinuxPids", 1) + `,`, + `BlockIO:` + strings.Replace(this.BlockIO.String(), "LinuxBlockIO", "LinuxBlockIO", 1) + `,`, + `HugepageLimits:` + repeatedStringForHugepageLimits + `,`, + `Network:` + strings.Replace(this.Network.String(), "LinuxNetwork", "LinuxNetwork", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *LinuxMemory) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&LinuxMemory{`, + `Limit:` + fmt.Sprintf("%v", this.Limit) + `,`, + `Reservation:` + fmt.Sprintf("%v", this.Reservation) + `,`, + `Swap:` + fmt.Sprintf("%v", this.Swap) + `,`, + `Kernel:` + fmt.Sprintf("%v", this.Kernel) + `,`, + `KernelTCP:` + fmt.Sprintf("%v", this.KernelTCP) + `,`, + `Swappiness:` + fmt.Sprintf("%v", this.Swappiness) + `,`, + `DisableOOMKiller:` + fmt.Sprintf("%v", this.DisableOOMKiller) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *LinuxCPU) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&LinuxCPU{`, + `Shares:` + fmt.Sprintf("%v", this.Shares) + `,`, + `Quota:` + fmt.Sprintf("%v", this.Quota) + `,`, + `Period:` + fmt.Sprintf("%v", this.Period) + `,`, + `RealtimeRuntime:` + fmt.Sprintf("%v", this.RealtimeRuntime) + `,`, + `RealtimePeriod:` + fmt.Sprintf("%v", this.RealtimePeriod) + `,`, + `Cpus:` + fmt.Sprintf("%v", this.Cpus) + `,`, + `Mems:` + fmt.Sprintf("%v", this.Mems) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *LinuxWeightDevice) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&LinuxWeightDevice{`, + `Major:` + fmt.Sprintf("%v", this.Major) + `,`, + `Minor:` + fmt.Sprintf("%v", this.Minor) + `,`, + `Weight:` + fmt.Sprintf("%v", this.Weight) + `,`, + `LeafWeight:` + fmt.Sprintf("%v", this.LeafWeight) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *LinuxThrottleDevice) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&LinuxThrottleDevice{`, + `Major:` + fmt.Sprintf("%v", this.Major) + `,`, + `Minor:` + fmt.Sprintf("%v", this.Minor) + `,`, + `Rate:` + fmt.Sprintf("%v", this.Rate) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *LinuxBlockIO) String() string { + if this == nil { + return "nil" + } + repeatedStringForWeightDevice := "[]LinuxWeightDevice{" + for _, f := range this.WeightDevice { + repeatedStringForWeightDevice += strings.Replace(strings.Replace(f.String(), "LinuxWeightDevice", "LinuxWeightDevice", 1), `&`, ``, 1) + "," + } + repeatedStringForWeightDevice += "}" + repeatedStringForThrottleReadBpsDevice := "[]LinuxThrottleDevice{" + for _, f := range this.ThrottleReadBpsDevice { + repeatedStringForThrottleReadBpsDevice += strings.Replace(strings.Replace(f.String(), "LinuxThrottleDevice", "LinuxThrottleDevice", 1), `&`, ``, 1) + "," + } + repeatedStringForThrottleReadBpsDevice += "}" + repeatedStringForThrottleWriteBpsDevice := "[]LinuxThrottleDevice{" + for _, f := range this.ThrottleWriteBpsDevice { + repeatedStringForThrottleWriteBpsDevice += strings.Replace(strings.Replace(f.String(), "LinuxThrottleDevice", "LinuxThrottleDevice", 1), `&`, ``, 1) + "," + } + repeatedStringForThrottleWriteBpsDevice += "}" + repeatedStringForThrottleReadIOPSDevice := "[]LinuxThrottleDevice{" + for _, f := range this.ThrottleReadIOPSDevice { + repeatedStringForThrottleReadIOPSDevice += strings.Replace(strings.Replace(f.String(), "LinuxThrottleDevice", "LinuxThrottleDevice", 1), `&`, ``, 1) + "," + } + repeatedStringForThrottleReadIOPSDevice += "}" + repeatedStringForThrottleWriteIOPSDevice := "[]LinuxThrottleDevice{" + for _, f := range this.ThrottleWriteIOPSDevice { + repeatedStringForThrottleWriteIOPSDevice += strings.Replace(strings.Replace(f.String(), "LinuxThrottleDevice", "LinuxThrottleDevice", 1), `&`, ``, 1) + "," + } + repeatedStringForThrottleWriteIOPSDevice += "}" + s := strings.Join([]string{`&LinuxBlockIO{`, + `Weight:` + fmt.Sprintf("%v", this.Weight) + `,`, + `LeafWeight:` + fmt.Sprintf("%v", this.LeafWeight) + `,`, + `WeightDevice:` + repeatedStringForWeightDevice + `,`, + `ThrottleReadBpsDevice:` + repeatedStringForThrottleReadBpsDevice + `,`, + `ThrottleWriteBpsDevice:` + repeatedStringForThrottleWriteBpsDevice + `,`, + `ThrottleReadIOPSDevice:` + repeatedStringForThrottleReadIOPSDevice + `,`, + `ThrottleWriteIOPSDevice:` + repeatedStringForThrottleWriteIOPSDevice + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *LinuxPids) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&LinuxPids{`, + `Limit:` + fmt.Sprintf("%v", this.Limit) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *LinuxDeviceCgroup) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&LinuxDeviceCgroup{`, + `Allow:` + fmt.Sprintf("%v", this.Allow) + `,`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `Major:` + fmt.Sprintf("%v", this.Major) + `,`, + `Minor:` + fmt.Sprintf("%v", this.Minor) + `,`, + `Access:` + fmt.Sprintf("%v", this.Access) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *LinuxNetwork) String() string { + if this == nil { + return "nil" + } + repeatedStringForPriorities := "[]LinuxInterfacePriority{" + for _, f := range this.Priorities { + repeatedStringForPriorities += strings.Replace(strings.Replace(f.String(), "LinuxInterfacePriority", "LinuxInterfacePriority", 1), `&`, ``, 1) + "," + } + repeatedStringForPriorities += "}" + s := strings.Join([]string{`&LinuxNetwork{`, + `ClassID:` + fmt.Sprintf("%v", this.ClassID) + `,`, + `Priorities:` + repeatedStringForPriorities + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *LinuxHugepageLimit) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&LinuxHugepageLimit{`, + `Pagesize:` + fmt.Sprintf("%v", this.Pagesize) + `,`, + `Limit:` + fmt.Sprintf("%v", this.Limit) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *LinuxInterfacePriority) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&LinuxInterfacePriority{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Priority:` + fmt.Sprintf("%v", this.Priority) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *LinuxSeccomp) String() string { + if this == nil { + return "nil" + } + repeatedStringForSyscalls := "[]LinuxSyscall{" + for _, f := range this.Syscalls { + repeatedStringForSyscalls += strings.Replace(strings.Replace(f.String(), "LinuxSyscall", "LinuxSyscall", 1), `&`, ``, 1) + "," + } + repeatedStringForSyscalls += "}" + s := strings.Join([]string{`&LinuxSeccomp{`, + `DefaultAction:` + fmt.Sprintf("%v", this.DefaultAction) + `,`, + `Architectures:` + fmt.Sprintf("%v", this.Architectures) + `,`, + `Syscalls:` + repeatedStringForSyscalls + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *LinuxSeccompArg) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&LinuxSeccompArg{`, + `Index:` + fmt.Sprintf("%v", this.Index) + `,`, + `Value:` + fmt.Sprintf("%v", this.Value) + `,`, + `ValueTwo:` + fmt.Sprintf("%v", this.ValueTwo) + `,`, + `Op:` + fmt.Sprintf("%v", this.Op) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *LinuxSyscall) String() string { + if this == nil { + return "nil" + } + repeatedStringForArgs := "[]LinuxSeccompArg{" + for _, f := range this.Args { + repeatedStringForArgs += strings.Replace(strings.Replace(f.String(), "LinuxSeccompArg", "LinuxSeccompArg", 1), `&`, ``, 1) + "," + } + repeatedStringForArgs += "}" + s := strings.Join([]string{`&LinuxSyscall{`, + `Names:` + fmt.Sprintf("%v", this.Names) + `,`, + `Action:` + fmt.Sprintf("%v", this.Action) + `,`, + `Args:` + repeatedStringForArgs + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *LinuxIntelRdt) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&LinuxIntelRdt{`, + `L3CacheSchema:` + fmt.Sprintf("%v", this.L3CacheSchema) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func valueToStringOci(v interface{}) string { + rv := reflect.ValueOf(v) + if rv.IsNil() { + return "nil" + } + pv := reflect.Indirect(rv).Interface() + return fmt.Sprintf("*%v", pv) +} func (m *Spec) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -5905,7 +7235,7 @@ func (m *Spec) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5933,7 +7263,7 @@ func (m *Spec) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5943,6 +7273,9 @@ func (m *Spec) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5962,7 +7295,7 @@ func (m *Spec) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -5971,6 +7304,9 @@ func (m *Spec) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5995,7 +7331,7 @@ func (m *Spec) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6004,6 +7340,9 @@ func (m *Spec) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6028,7 +7367,7 @@ func (m *Spec) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6038,6 +7377,9 @@ func (m *Spec) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6057,7 +7399,7 @@ func (m *Spec) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6066,6 +7408,9 @@ func (m *Spec) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6088,7 +7433,7 @@ func (m *Spec) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6097,6 +7442,9 @@ func (m *Spec) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6121,7 +7469,7 @@ func (m *Spec) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6130,6 +7478,9 @@ func (m *Spec) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6150,7 +7501,7 @@ func (m *Spec) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6167,7 +7518,7 @@ func (m *Spec) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLenmapkey |= (uint64(b) & 0x7F) << shift + stringLenmapkey |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6177,6 +7528,9 @@ func (m *Spec) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthOci + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -6193,7 +7547,7 @@ func (m *Spec) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLenmapvalue |= (uint64(b) & 0x7F) << shift + stringLenmapvalue |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6203,6 +7557,9 @@ func (m *Spec) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return ErrInvalidLengthOci + } if postStringIndexmapvalue > l { return io.ErrUnexpectedEOF } @@ -6239,7 +7596,7 @@ func (m *Spec) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6248,6 +7605,9 @@ func (m *Spec) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6272,7 +7632,7 @@ func (m *Spec) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6281,6 +7641,9 @@ func (m *Spec) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6305,7 +7668,7 @@ func (m *Spec) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6314,6 +7677,9 @@ func (m *Spec) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6333,9 +7699,13 @@ func (m *Spec) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthOci } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthOci + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6360,7 +7730,7 @@ func (m *Process) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6388,7 +7758,7 @@ func (m *Process) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6408,7 +7778,7 @@ func (m *Process) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6417,6 +7787,9 @@ func (m *Process) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6441,7 +7814,7 @@ func (m *Process) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6450,6 +7823,9 @@ func (m *Process) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6471,7 +7847,7 @@ func (m *Process) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6481,6 +7857,9 @@ func (m *Process) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6500,7 +7879,7 @@ func (m *Process) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6510,6 +7889,9 @@ func (m *Process) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6529,7 +7911,7 @@ func (m *Process) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6539,6 +7921,9 @@ func (m *Process) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6558,7 +7943,7 @@ func (m *Process) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6567,6 +7952,9 @@ func (m *Process) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6591,7 +7979,7 @@ func (m *Process) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6600,6 +7988,9 @@ func (m *Process) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6622,7 +8013,7 @@ func (m *Process) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6642,7 +8033,7 @@ func (m *Process) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6652,6 +8043,9 @@ func (m *Process) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6671,7 +8065,7 @@ func (m *Process) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.OOMScoreAdj |= (int64(b) & 0x7F) << shift + m.OOMScoreAdj |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -6690,7 +8084,7 @@ func (m *Process) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6700,6 +8094,9 @@ func (m *Process) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6714,9 +8111,13 @@ func (m *Process) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthOci } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthOci + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6741,7 +8142,7 @@ func (m *Box) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6769,7 +8170,7 @@ func (m *Box) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Height |= (uint32(b) & 0x7F) << shift + m.Height |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -6788,7 +8189,7 @@ func (m *Box) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Width |= (uint32(b) & 0x7F) << shift + m.Width |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -6802,9 +8203,13 @@ func (m *Box) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthOci } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthOci + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6829,7 +8234,7 @@ func (m *User) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6857,7 +8262,7 @@ func (m *User) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.UID |= (uint32(b) & 0x7F) << shift + m.UID |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -6876,7 +8281,7 @@ func (m *User) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.GID |= (uint32(b) & 0x7F) << shift + m.GID |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -6893,7 +8298,7 @@ func (m *User) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint32(b) & 0x7F) << shift + v |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -6910,7 +8315,7 @@ func (m *User) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6919,9 +8324,23 @@ func (m *User) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.AdditionalGids) == 0 { + m.AdditionalGids = make([]uint32, 0, elementCount) + } for iNdEx < postIndex { var v uint32 for shift := uint(0); ; shift += 7 { @@ -6933,7 +8352,7 @@ func (m *User) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint32(b) & 0x7F) << shift + v |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -6957,7 +8376,7 @@ func (m *User) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6967,6 +8386,9 @@ func (m *User) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6981,9 +8403,13 @@ func (m *User) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthOci } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthOci + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7008,7 +8434,7 @@ func (m *LinuxCapabilities) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7036,7 +8462,7 @@ func (m *LinuxCapabilities) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7046,6 +8472,9 @@ func (m *LinuxCapabilities) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7065,7 +8494,7 @@ func (m *LinuxCapabilities) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7075,6 +8504,9 @@ func (m *LinuxCapabilities) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7094,7 +8526,7 @@ func (m *LinuxCapabilities) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7104,6 +8536,9 @@ func (m *LinuxCapabilities) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7123,7 +8558,7 @@ func (m *LinuxCapabilities) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7133,6 +8568,9 @@ func (m *LinuxCapabilities) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7152,7 +8590,7 @@ func (m *LinuxCapabilities) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7162,6 +8600,9 @@ func (m *LinuxCapabilities) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7176,9 +8617,13 @@ func (m *LinuxCapabilities) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthOci } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthOci + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7203,7 +8648,7 @@ func (m *POSIXRlimit) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7231,7 +8676,7 @@ func (m *POSIXRlimit) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7241,6 +8686,9 @@ func (m *POSIXRlimit) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7260,7 +8708,7 @@ func (m *POSIXRlimit) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Hard |= (uint64(b) & 0x7F) << shift + m.Hard |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7279,7 +8727,7 @@ func (m *POSIXRlimit) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Soft |= (uint64(b) & 0x7F) << shift + m.Soft |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7293,9 +8741,13 @@ func (m *POSIXRlimit) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthOci } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthOci + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7320,7 +8772,7 @@ func (m *Mount) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7348,7 +8800,7 @@ func (m *Mount) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7358,6 +8810,9 @@ func (m *Mount) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7377,7 +8832,7 @@ func (m *Mount) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7387,6 +8842,9 @@ func (m *Mount) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7406,7 +8864,7 @@ func (m *Mount) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7416,6 +8874,9 @@ func (m *Mount) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7435,7 +8896,7 @@ func (m *Mount) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7445,6 +8906,9 @@ func (m *Mount) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7459,9 +8923,13 @@ func (m *Mount) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthOci } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthOci + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7486,7 +8954,7 @@ func (m *Root) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7514,7 +8982,7 @@ func (m *Root) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7524,6 +8992,9 @@ func (m *Root) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7543,7 +9014,7 @@ func (m *Root) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7558,9 +9029,13 @@ func (m *Root) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthOci } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthOci + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7585,7 +9060,7 @@ func (m *Hooks) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7613,7 +9088,7 @@ func (m *Hooks) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7622,6 +9097,9 @@ func (m *Hooks) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7644,7 +9122,7 @@ func (m *Hooks) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7653,6 +9131,9 @@ func (m *Hooks) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7675,7 +9156,7 @@ func (m *Hooks) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7684,6 +9165,9 @@ func (m *Hooks) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7701,9 +9185,13 @@ func (m *Hooks) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthOci } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthOci + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7728,7 +9216,7 @@ func (m *Hook) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7756,7 +9244,7 @@ func (m *Hook) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7766,6 +9254,9 @@ func (m *Hook) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7785,7 +9276,7 @@ func (m *Hook) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7795,6 +9286,9 @@ func (m *Hook) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7814,7 +9308,7 @@ func (m *Hook) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7824,6 +9318,9 @@ func (m *Hook) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7843,7 +9340,7 @@ func (m *Hook) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Timeout |= (int64(b) & 0x7F) << shift + m.Timeout |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -7857,9 +9354,13 @@ func (m *Hook) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthOci } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthOci + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7884,7 +9385,7 @@ func (m *Linux) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7912,7 +9413,7 @@ func (m *Linux) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7921,6 +9422,9 @@ func (m *Linux) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7943,7 +9447,7 @@ func (m *Linux) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7952,6 +9456,9 @@ func (m *Linux) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7974,7 +9481,7 @@ func (m *Linux) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7983,6 +9490,9 @@ func (m *Linux) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8003,7 +9513,7 @@ func (m *Linux) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8020,7 +9530,7 @@ func (m *Linux) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLenmapkey |= (uint64(b) & 0x7F) << shift + stringLenmapkey |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8030,6 +9540,9 @@ func (m *Linux) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthOci + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -8046,7 +9559,7 @@ func (m *Linux) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLenmapvalue |= (uint64(b) & 0x7F) << shift + stringLenmapvalue |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8056,6 +9569,9 @@ func (m *Linux) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return ErrInvalidLengthOci + } if postStringIndexmapvalue > l { return io.ErrUnexpectedEOF } @@ -8092,7 +9608,7 @@ func (m *Linux) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8101,6 +9617,9 @@ func (m *Linux) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8125,7 +9644,7 @@ func (m *Linux) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8135,6 +9654,9 @@ func (m *Linux) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8154,7 +9676,7 @@ func (m *Linux) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8163,6 +9685,9 @@ func (m *Linux) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8185,7 +9710,7 @@ func (m *Linux) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8194,6 +9719,9 @@ func (m *Linux) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8216,7 +9744,7 @@ func (m *Linux) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8225,6 +9753,9 @@ func (m *Linux) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8249,7 +9780,7 @@ func (m *Linux) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8259,6 +9790,9 @@ func (m *Linux) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8278,7 +9812,7 @@ func (m *Linux) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8288,6 +9822,9 @@ func (m *Linux) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8307,7 +9844,7 @@ func (m *Linux) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8317,6 +9854,9 @@ func (m *Linux) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8336,7 +9876,7 @@ func (m *Linux) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8346,6 +9886,9 @@ func (m *Linux) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8365,7 +9908,7 @@ func (m *Linux) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8374,6 +9917,9 @@ func (m *Linux) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8393,9 +9939,13 @@ func (m *Linux) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthOci } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthOci + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8420,7 +9970,7 @@ func (m *Windows) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8448,7 +9998,7 @@ func (m *Windows) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8458,6 +10008,9 @@ func (m *Windows) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8472,9 +10025,13 @@ func (m *Windows) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthOci } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthOci + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8499,7 +10056,7 @@ func (m *Solaris) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8527,7 +10084,7 @@ func (m *Solaris) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8537,6 +10094,9 @@ func (m *Solaris) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8551,9 +10111,13 @@ func (m *Solaris) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthOci } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthOci + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8578,7 +10142,7 @@ func (m *LinuxIDMapping) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8606,7 +10170,7 @@ func (m *LinuxIDMapping) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.HostID |= (uint32(b) & 0x7F) << shift + m.HostID |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -8625,7 +10189,7 @@ func (m *LinuxIDMapping) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ContainerID |= (uint32(b) & 0x7F) << shift + m.ContainerID |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -8644,7 +10208,7 @@ func (m *LinuxIDMapping) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Size_ |= (uint32(b) & 0x7F) << shift + m.Size_ |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -8658,9 +10222,13 @@ func (m *LinuxIDMapping) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthOci } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthOci + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8685,7 +10253,7 @@ func (m *LinuxNamespace) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8713,7 +10281,7 @@ func (m *LinuxNamespace) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8723,6 +10291,9 @@ func (m *LinuxNamespace) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8742,7 +10313,7 @@ func (m *LinuxNamespace) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8752,6 +10323,9 @@ func (m *LinuxNamespace) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8766,9 +10340,13 @@ func (m *LinuxNamespace) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthOci } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthOci + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8793,7 +10371,7 @@ func (m *LinuxDevice) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8821,7 +10399,7 @@ func (m *LinuxDevice) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8831,6 +10409,9 @@ func (m *LinuxDevice) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8850,7 +10431,7 @@ func (m *LinuxDevice) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8860,6 +10441,9 @@ func (m *LinuxDevice) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8879,7 +10463,7 @@ func (m *LinuxDevice) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Major |= (int64(b) & 0x7F) << shift + m.Major |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -8898,7 +10482,7 @@ func (m *LinuxDevice) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Minor |= (int64(b) & 0x7F) << shift + m.Minor |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -8917,7 +10501,7 @@ func (m *LinuxDevice) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.FileMode |= (uint32(b) & 0x7F) << shift + m.FileMode |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -8936,7 +10520,7 @@ func (m *LinuxDevice) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.UID |= (uint32(b) & 0x7F) << shift + m.UID |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -8955,7 +10539,7 @@ func (m *LinuxDevice) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.GID |= (uint32(b) & 0x7F) << shift + m.GID |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -8969,9 +10553,13 @@ func (m *LinuxDevice) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthOci } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthOci + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8996,7 +10584,7 @@ func (m *LinuxResources) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9024,7 +10612,7 @@ func (m *LinuxResources) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9033,6 +10621,9 @@ func (m *LinuxResources) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9055,7 +10646,7 @@ func (m *LinuxResources) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9064,6 +10655,9 @@ func (m *LinuxResources) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9088,7 +10682,7 @@ func (m *LinuxResources) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9097,6 +10691,9 @@ func (m *LinuxResources) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9121,7 +10718,7 @@ func (m *LinuxResources) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9130,6 +10727,9 @@ func (m *LinuxResources) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9154,7 +10754,7 @@ func (m *LinuxResources) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9163,6 +10763,9 @@ func (m *LinuxResources) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9187,7 +10790,7 @@ func (m *LinuxResources) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9196,6 +10799,9 @@ func (m *LinuxResources) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9218,7 +10824,7 @@ func (m *LinuxResources) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9227,6 +10833,9 @@ func (m *LinuxResources) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9246,9 +10855,13 @@ func (m *LinuxResources) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthOci } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthOci + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9273,7 +10886,7 @@ func (m *LinuxMemory) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9301,7 +10914,7 @@ func (m *LinuxMemory) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Limit |= (int64(b) & 0x7F) << shift + m.Limit |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -9320,7 +10933,7 @@ func (m *LinuxMemory) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Reservation |= (int64(b) & 0x7F) << shift + m.Reservation |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -9339,7 +10952,7 @@ func (m *LinuxMemory) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Swap |= (int64(b) & 0x7F) << shift + m.Swap |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -9358,7 +10971,7 @@ func (m *LinuxMemory) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Kernel |= (int64(b) & 0x7F) << shift + m.Kernel |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -9377,7 +10990,7 @@ func (m *LinuxMemory) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KernelTCP |= (int64(b) & 0x7F) << shift + m.KernelTCP |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -9396,7 +11009,7 @@ func (m *LinuxMemory) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Swappiness |= (uint64(b) & 0x7F) << shift + m.Swappiness |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9415,7 +11028,7 @@ func (m *LinuxMemory) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9430,9 +11043,13 @@ func (m *LinuxMemory) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthOci } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthOci + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9457,7 +11074,7 @@ func (m *LinuxCPU) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9485,7 +11102,7 @@ func (m *LinuxCPU) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Shares |= (uint64(b) & 0x7F) << shift + m.Shares |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9504,7 +11121,7 @@ func (m *LinuxCPU) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Quota |= (int64(b) & 0x7F) << shift + m.Quota |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -9523,7 +11140,7 @@ func (m *LinuxCPU) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Period |= (uint64(b) & 0x7F) << shift + m.Period |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9542,7 +11159,7 @@ func (m *LinuxCPU) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RealtimeRuntime |= (int64(b) & 0x7F) << shift + m.RealtimeRuntime |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -9561,7 +11178,7 @@ func (m *LinuxCPU) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RealtimePeriod |= (uint64(b) & 0x7F) << shift + m.RealtimePeriod |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9580,7 +11197,7 @@ func (m *LinuxCPU) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9590,6 +11207,9 @@ func (m *LinuxCPU) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9609,7 +11229,7 @@ func (m *LinuxCPU) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9619,6 +11239,9 @@ func (m *LinuxCPU) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9633,9 +11256,13 @@ func (m *LinuxCPU) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthOci } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthOci + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9660,7 +11287,7 @@ func (m *LinuxWeightDevice) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9688,7 +11315,7 @@ func (m *LinuxWeightDevice) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Major |= (int64(b) & 0x7F) << shift + m.Major |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -9707,7 +11334,7 @@ func (m *LinuxWeightDevice) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Minor |= (int64(b) & 0x7F) << shift + m.Minor |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -9726,7 +11353,7 @@ func (m *LinuxWeightDevice) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Weight |= (uint32(b) & 0x7F) << shift + m.Weight |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -9745,7 +11372,7 @@ func (m *LinuxWeightDevice) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LeafWeight |= (uint32(b) & 0x7F) << shift + m.LeafWeight |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -9759,9 +11386,13 @@ func (m *LinuxWeightDevice) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthOci } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthOci + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9786,7 +11417,7 @@ func (m *LinuxThrottleDevice) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9814,7 +11445,7 @@ func (m *LinuxThrottleDevice) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Major |= (int64(b) & 0x7F) << shift + m.Major |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -9833,7 +11464,7 @@ func (m *LinuxThrottleDevice) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Minor |= (int64(b) & 0x7F) << shift + m.Minor |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -9852,7 +11483,7 @@ func (m *LinuxThrottleDevice) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Rate |= (uint64(b) & 0x7F) << shift + m.Rate |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9866,9 +11497,13 @@ func (m *LinuxThrottleDevice) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthOci } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthOci + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9893,7 +11528,7 @@ func (m *LinuxBlockIO) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9921,7 +11556,7 @@ func (m *LinuxBlockIO) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Weight |= (uint32(b) & 0x7F) << shift + m.Weight |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -9940,7 +11575,7 @@ func (m *LinuxBlockIO) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LeafWeight |= (uint32(b) & 0x7F) << shift + m.LeafWeight |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -9959,7 +11594,7 @@ func (m *LinuxBlockIO) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9968,6 +11603,9 @@ func (m *LinuxBlockIO) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9990,7 +11628,7 @@ func (m *LinuxBlockIO) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9999,6 +11637,9 @@ func (m *LinuxBlockIO) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10021,7 +11662,7 @@ func (m *LinuxBlockIO) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -10030,6 +11671,9 @@ func (m *LinuxBlockIO) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10052,7 +11696,7 @@ func (m *LinuxBlockIO) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -10061,6 +11705,9 @@ func (m *LinuxBlockIO) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10083,7 +11730,7 @@ func (m *LinuxBlockIO) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -10092,6 +11739,9 @@ func (m *LinuxBlockIO) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10109,9 +11759,13 @@ func (m *LinuxBlockIO) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthOci } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthOci + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -10136,7 +11790,7 @@ func (m *LinuxPids) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10164,7 +11818,7 @@ func (m *LinuxPids) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Limit |= (int64(b) & 0x7F) << shift + m.Limit |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -10178,9 +11832,13 @@ func (m *LinuxPids) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthOci } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthOci + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -10205,7 +11863,7 @@ func (m *LinuxDeviceCgroup) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10233,7 +11891,7 @@ func (m *LinuxDeviceCgroup) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -10253,7 +11911,7 @@ func (m *LinuxDeviceCgroup) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10263,6 +11921,9 @@ func (m *LinuxDeviceCgroup) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10282,7 +11943,7 @@ func (m *LinuxDeviceCgroup) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Major |= (int64(b) & 0x7F) << shift + m.Major |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -10301,7 +11962,7 @@ func (m *LinuxDeviceCgroup) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Minor |= (int64(b) & 0x7F) << shift + m.Minor |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -10320,7 +11981,7 @@ func (m *LinuxDeviceCgroup) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10330,6 +11991,9 @@ func (m *LinuxDeviceCgroup) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10344,9 +12008,13 @@ func (m *LinuxDeviceCgroup) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthOci } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthOci + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -10371,7 +12039,7 @@ func (m *LinuxNetwork) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10399,7 +12067,7 @@ func (m *LinuxNetwork) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ClassID |= (uint32(b) & 0x7F) << shift + m.ClassID |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -10418,7 +12086,7 @@ func (m *LinuxNetwork) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -10427,6 +12095,9 @@ func (m *LinuxNetwork) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10444,9 +12115,13 @@ func (m *LinuxNetwork) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthOci } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthOci + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -10471,7 +12146,7 @@ func (m *LinuxHugepageLimit) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10499,7 +12174,7 @@ func (m *LinuxHugepageLimit) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10509,6 +12184,9 @@ func (m *LinuxHugepageLimit) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10528,7 +12206,7 @@ func (m *LinuxHugepageLimit) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Limit |= (uint64(b) & 0x7F) << shift + m.Limit |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10542,9 +12220,13 @@ func (m *LinuxHugepageLimit) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthOci } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthOci + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -10569,7 +12251,7 @@ func (m *LinuxInterfacePriority) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10597,7 +12279,7 @@ func (m *LinuxInterfacePriority) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10607,6 +12289,9 @@ func (m *LinuxInterfacePriority) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10626,7 +12311,7 @@ func (m *LinuxInterfacePriority) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Priority |= (uint32(b) & 0x7F) << shift + m.Priority |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -10640,9 +12325,13 @@ func (m *LinuxInterfacePriority) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthOci } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthOci + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -10667,7 +12356,7 @@ func (m *LinuxSeccomp) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10695,7 +12384,7 @@ func (m *LinuxSeccomp) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10705,6 +12394,9 @@ func (m *LinuxSeccomp) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10724,7 +12416,7 @@ func (m *LinuxSeccomp) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10734,6 +12426,9 @@ func (m *LinuxSeccomp) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10753,7 +12448,7 @@ func (m *LinuxSeccomp) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -10762,6 +12457,9 @@ func (m *LinuxSeccomp) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10779,9 +12477,13 @@ func (m *LinuxSeccomp) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthOci } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthOci + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -10806,7 +12508,7 @@ func (m *LinuxSeccompArg) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10834,7 +12536,7 @@ func (m *LinuxSeccompArg) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Index |= (uint64(b) & 0x7F) << shift + m.Index |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10853,7 +12555,7 @@ func (m *LinuxSeccompArg) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Value |= (uint64(b) & 0x7F) << shift + m.Value |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10872,7 +12574,7 @@ func (m *LinuxSeccompArg) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ValueTwo |= (uint64(b) & 0x7F) << shift + m.ValueTwo |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10891,7 +12593,7 @@ func (m *LinuxSeccompArg) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10901,6 +12603,9 @@ func (m *LinuxSeccompArg) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10915,9 +12620,13 @@ func (m *LinuxSeccompArg) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthOci } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthOci + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -10942,7 +12651,7 @@ func (m *LinuxSyscall) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10970,7 +12679,7 @@ func (m *LinuxSyscall) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10980,6 +12689,9 @@ func (m *LinuxSyscall) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10999,7 +12711,7 @@ func (m *LinuxSyscall) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11009,6 +12721,9 @@ func (m *LinuxSyscall) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11028,7 +12743,7 @@ func (m *LinuxSyscall) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -11037,6 +12752,9 @@ func (m *LinuxSyscall) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11054,9 +12772,13 @@ func (m *LinuxSyscall) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthOci } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthOci + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -11081,7 +12803,7 @@ func (m *LinuxIntelRdt) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11109,7 +12831,7 @@ func (m *LinuxIntelRdt) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11119,6 +12841,9 @@ func (m *LinuxIntelRdt) Unmarshal(dAtA []byte) error { return ErrInvalidLengthOci } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOci + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11133,9 +12858,13 @@ func (m *LinuxIntelRdt) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthOci } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthOci + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -11148,6 +12877,7 @@ func (m *LinuxIntelRdt) Unmarshal(dAtA []byte) error { func skipOci(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -11179,10 +12909,8 @@ func skipOci(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -11199,187 +12927,34 @@ func skipOci(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthOci } - return iNdEx, nil + iNdEx += length case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowOci - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipOci(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupOci + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthOci + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthOci = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowOci = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthOci = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowOci = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupOci = fmt.Errorf("proto: unexpected end of group") ) - -func init() { proto.RegisterFile("oci.proto", fileDescriptorOci) } - -var fileDescriptorOci = []byte{ - // 2035 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x18, 0x4b, 0x6f, 0x23, 0x49, - 0x99, 0xb6, 0x1d, 0xc7, 0x2e, 0x27, 0x99, 0x99, 0xda, 0xd9, 0x6c, 0x13, 0x46, 0xde, 0x6c, 0x33, - 0x82, 0x00, 0x43, 0x22, 0x66, 0x78, 0x2c, 0xcb, 0x43, 0x72, 0x92, 0x99, 0x89, 0xb5, 0xc9, 0xc4, - 0x94, 0x93, 0x0d, 0x70, 0x40, 0xea, 0xb4, 0x2b, 0x76, 0x6d, 0xda, 0x5d, 0xad, 0xea, 0x72, 0x32, - 0xe1, 0xc6, 0x3f, 0x40, 0xe2, 0x17, 0x70, 0x02, 0xfe, 0x01, 0xe2, 0xc4, 0x8d, 0x15, 0x27, 0xee, - 0x48, 0x3c, 0x72, 0xe7, 0xce, 0x11, 0x7d, 0x55, 0x5f, 0xb5, 0xcb, 0x4e, 0x02, 0x3b, 0xec, 0xc9, - 0xf5, 0x3d, 0xab, 0xbe, 0xf7, 0xd7, 0x26, 0x4d, 0x99, 0x88, 0xcd, 0x5c, 0x49, 0x2d, 0x69, 0x6d, - 0xa8, 0xf2, 0x64, 0xed, 0xeb, 0x43, 0xa1, 0x47, 0x93, 0xd3, 0xcd, 0x44, 0x8e, 0xb7, 0x86, 0x72, - 0x28, 0xb7, 0x0c, 0xf1, 0x74, 0x72, 0x66, 0x20, 0x03, 0x98, 0x93, 0x15, 0x5a, 0x6b, 0x0f, 0xa5, - 0x1c, 0xa6, 0x7c, 0xca, 0x75, 0xa9, 0xe2, 0x3c, 0xe7, 0xaa, 0xb0, 0xf4, 0xe8, 0x4f, 0x55, 0x52, - 0xeb, 0xe7, 0x3c, 0xa1, 0x21, 0x59, 0xfc, 0x88, 0xab, 0x42, 0xc8, 0x2c, 0x0c, 0xd6, 0x83, 0x8d, - 0x26, 0x73, 0x20, 0xfd, 0x32, 0x59, 0xec, 0x29, 0x99, 0xf0, 0xa2, 0x08, 0x2b, 0xeb, 0xc1, 0x46, - 0xeb, 0xe9, 0xf2, 0x26, 0xbc, 0x64, 0x13, 0x91, 0xcc, 0x51, 0x69, 0x9b, 0xd4, 0x98, 0x94, 0x3a, - 0xac, 0x1a, 0x2e, 0x62, 0xb9, 0x00, 0xc3, 0x0c, 0x9e, 0xae, 0x91, 0xc6, 0x9e, 0x2c, 0x74, 0x16, - 0x8f, 0x79, 0x58, 0x33, 0x77, 0x94, 0x30, 0xfd, 0x0a, 0xa9, 0x1f, 0xc8, 0x49, 0xa6, 0x8b, 0x70, - 0x61, 0xbd, 0xba, 0xd1, 0x7a, 0xda, 0xb2, 0xd2, 0x06, 0xb7, 0x5d, 0xfb, 0xe4, 0x6f, 0xef, 0x7e, - 0x8e, 0x21, 0x03, 0x7d, 0x8f, 0x2c, 0xec, 0x49, 0x79, 0x5e, 0x84, 0x75, 0x73, 0x0f, 0x72, 0x1a, - 0x14, 0xb3, 0x14, 0xfa, 0x03, 0xd2, 0xea, 0x64, 0x99, 0xd4, 0xb1, 0x16, 0x32, 0x2b, 0xc2, 0x45, - 0xa3, 0xf2, 0x0b, 0x96, 0x11, 0xac, 0xdd, 0xf4, 0xa8, 0xcf, 0x33, 0xad, 0xae, 0x98, 0xcf, 0x0f, - 0x37, 0xec, 0x8b, 0x6c, 0xf2, 0x3a, 0x6c, 0xf8, 0x37, 0x18, 0x14, 0xb3, 0x14, 0x70, 0x4a, 0x5f, - 0xa6, 0xb1, 0x12, 0x45, 0xd8, 0xf4, 0x9d, 0x82, 0x48, 0xe6, 0xa8, 0xc0, 0x78, 0x22, 0xb2, 0x81, - 0xbc, 0x2c, 0x42, 0xe2, 0x33, 0x22, 0x92, 0x39, 0xea, 0xda, 0x0f, 0xc9, 0xfd, 0xf9, 0x57, 0xd1, - 0xfb, 0xa4, 0x7a, 0xce, 0xaf, 0x30, 0x20, 0x70, 0xa4, 0x0f, 0xc9, 0xc2, 0x45, 0x9c, 0x4e, 0xb8, - 0x09, 0x45, 0x93, 0x59, 0xe0, 0x83, 0xca, 0xfb, 0x41, 0xf4, 0x87, 0x6a, 0x19, 0x27, 0xf0, 0xf4, - 0x11, 0x57, 0x63, 0x91, 0xc5, 0xa9, 0x11, 0x6e, 0xb0, 0x12, 0xa6, 0x5f, 0x23, 0xad, 0x1d, 0x99, - 0x15, 0x32, 0xe5, 0x7d, 0xf1, 0x73, 0x8e, 0x21, 0x6d, 0xda, 0x47, 0x6d, 0xcb, 0xd7, 0xcc, 0xa7, - 0xd2, 0xc7, 0xa4, 0x76, 0x5c, 0x70, 0x35, 0x1b, 0x52, 0xc0, 0x60, 0x4c, 0x0c, 0x95, 0x52, 0x52, - 0xeb, 0xa8, 0x61, 0x11, 0xd6, 0xd6, 0xab, 0x1b, 0x4d, 0x66, 0xce, 0xf0, 0xf4, 0xe7, 0xd9, 0x85, - 0x89, 0x66, 0x93, 0xc1, 0x11, 0x30, 0x3b, 0x97, 0x03, 0x13, 0xb5, 0x26, 0x83, 0x23, 0xfd, 0x1e, - 0x59, 0xda, 0x89, 0xf3, 0xf8, 0x54, 0xa4, 0x42, 0x0b, 0x0e, 0x71, 0x82, 0x5b, 0xde, 0xf1, 0xdc, - 0xed, 0x93, 0xd9, 0x0c, 0x33, 0xfd, 0x06, 0x59, 0x64, 0xa9, 0x18, 0x0b, 0x5d, 0x84, 0x0d, 0x13, - 0xdf, 0x07, 0x98, 0x96, 0x87, 0xfd, 0xee, 0x8f, 0x2d, 0x05, 0x1f, 0xe9, 0xf8, 0xe8, 0x06, 0xb9, - 0xf7, 0x4a, 0xbe, 0xe2, 0x97, 0x3d, 0x25, 0x2e, 0x44, 0xca, 0x87, 0xdc, 0x06, 0xaf, 0xc1, 0xe6, - 0xd1, 0xc0, 0xd9, 0xc9, 0xf3, 0x58, 0x8d, 0xa5, 0xea, 0x29, 0x79, 0x26, 0x52, 0x6e, 0xa2, 0xd7, - 0x64, 0xf3, 0x68, 0xba, 0x4e, 0x5a, 0x87, 0x87, 0x07, 0xfd, 0x44, 0x2a, 0xde, 0x19, 0x7c, 0x1c, - 0xb6, 0xd6, 0x83, 0x8d, 0x2a, 0xf3, 0x51, 0x34, 0x22, 0x4b, 0x7d, 0x9e, 0x82, 0x35, 0xfb, 0xf1, - 0x29, 0x4f, 0xc3, 0x25, 0xa3, 0x68, 0x06, 0x17, 0x3d, 0x23, 0xd5, 0x6d, 0xf9, 0x9a, 0xae, 0x92, - 0xfa, 0x1e, 0x17, 0xc3, 0x91, 0x36, 0x51, 0x5b, 0x66, 0x08, 0x41, 0xd4, 0x4f, 0xc4, 0x40, 0x8f, - 0x4c, 0xb4, 0x96, 0x99, 0x05, 0xa2, 0xcc, 0x06, 0x07, 0x1c, 0x7b, 0xdc, 0xdd, 0x45, 0x11, 0x38, - 0x02, 0xe6, 0x65, 0x77, 0x17, 0xb9, 0xe1, 0x48, 0xbf, 0x44, 0x56, 0x3a, 0x83, 0x81, 0x80, 0xdc, - 0x8a, 0xd3, 0x97, 0x62, 0x50, 0x84, 0xd5, 0xf5, 0xea, 0xc6, 0x32, 0x9b, 0xc3, 0x42, 0xe6, 0x80, - 0x4e, 0xbf, 0x46, 0x1d, 0x1c, 0xfd, 0x26, 0x20, 0x0f, 0x6e, 0x44, 0x05, 0x24, 0xb6, 0xe5, 0x24, - 0x1b, 0x88, 0x6c, 0x18, 0x06, 0x26, 0xda, 0x25, 0x4c, 0x1f, 0x91, 0xe6, 0xf3, 0xb3, 0x33, 0x9e, - 0x68, 0x71, 0x01, 0x99, 0x06, 0xc4, 0x29, 0x02, 0x5c, 0xd7, 0xcd, 0x46, 0x5c, 0x09, 0x1d, 0x9f, - 0xa6, 0xdc, 0x3c, 0xa8, 0xc9, 0x7c, 0x14, 0xc8, 0xf7, 0x20, 0x6f, 0xb5, 0xe6, 0x03, 0xcc, 0xae, - 0x29, 0x02, 0x5a, 0x56, 0x67, 0x7c, 0x2a, 0x78, 0xa6, 0x31, 0xcd, 0x1c, 0x18, 0x75, 0x49, 0xcb, - 0x4b, 0x03, 0xc8, 0xcf, 0xa3, 0xab, 0x9c, 0x63, 0x1d, 0x99, 0x33, 0xe0, 0xf6, 0x62, 0x35, 0x30, - 0x3e, 0xaa, 0x31, 0x73, 0x06, 0x5c, 0x5f, 0x9e, 0xd9, 0x06, 0x56, 0x63, 0xe6, 0x1c, 0x49, 0xb2, - 0x60, 0xfa, 0x0e, 0xbc, 0x76, 0xc0, 0x0b, 0x2d, 0x32, 0x53, 0xa0, 0xa8, 0xcb, 0x47, 0x41, 0xf4, - 0x0a, 0x39, 0x51, 0x89, 0x2b, 0x4e, 0x84, 0x40, 0xad, 0x86, 0xeb, 0xab, 0xf6, 0x7a, 0x38, 0xc3, - 0xdb, 0x65, 0x6e, 0xbb, 0x93, 0xb5, 0xcb, 0x81, 0xd1, 0xb7, 0x6d, 0x17, 0x05, 0xa9, 0x5e, 0xac, - 0x47, 0xee, 0xd1, 0x70, 0x06, 0x5f, 0x33, 0x1e, 0x0f, 0x64, 0x96, 0x5e, 0x99, 0x3b, 0x1a, 0xac, - 0x84, 0xa3, 0x5f, 0x05, 0xd8, 0x17, 0xe9, 0x13, 0xd2, 0xe8, 0x29, 0x5e, 0xe8, 0x58, 0x69, 0x13, - 0x91, 0xb2, 0x70, 0x81, 0x8c, 0x35, 0x51, 0x72, 0xd0, 0x4d, 0xd2, 0xec, 0xc9, 0x42, 0x5b, 0xf6, - 0xca, 0x1d, 0xec, 0x53, 0x16, 0xa3, 0xdd, 0x00, 0x32, 0x37, 0x21, 0xbb, 0x5d, 0x3b, 0x72, 0x44, - 0x3f, 0x25, 0x35, 0xc0, 0xdf, 0x6a, 0x8d, 0x6b, 0x1b, 0x95, 0x9b, 0x6d, 0xa3, 0x3a, 0x6d, 0x1b, - 0x21, 0x59, 0x3c, 0x12, 0x63, 0x2e, 0x27, 0xda, 0x24, 0x64, 0x95, 0x39, 0x30, 0xfa, 0xdd, 0x02, - 0xf6, 0x69, 0xfa, 0x7d, 0xd2, 0x3a, 0xee, 0xee, 0x1e, 0xc4, 0x79, 0x2e, 0xb2, 0x61, 0x81, 0x46, - 0x3f, 0xf4, 0xfa, 0x48, 0x49, 0xc4, 0x07, 0xfa, 0xec, 0x20, 0xfd, 0xd2, 0x93, 0xae, 0xfc, 0x6f, - 0x69, 0x8f, 0x9d, 0x6e, 0x91, 0x7a, 0xff, 0xaa, 0x48, 0x74, 0x8a, 0xde, 0xf0, 0xdb, 0xd7, 0xa6, - 0xa5, 0xd8, 0x11, 0x83, 0x6c, 0xf4, 0x29, 0x69, 0x32, 0x6e, 0x53, 0xa3, 0x30, 0x26, 0xcd, 0x5e, - 0x56, 0xd2, 0xd8, 0x94, 0x0d, 0x92, 0x6f, 0x67, 0xa8, 0xe4, 0x24, 0x2f, 0x8c, 0x17, 0x17, 0x6c, - 0xf2, 0x79, 0x28, 0xfa, 0x01, 0x21, 0xaf, 0xe2, 0x31, 0x2f, 0xf2, 0x18, 0xd4, 0xd6, 0x6f, 0xd8, - 0x50, 0x12, 0xd1, 0x06, 0x8f, 0x1b, 0x5a, 0xe9, 0x2e, 0xbf, 0x10, 0x09, 0x77, 0xa3, 0xf2, 0x81, - 0x27, 0x68, 0x29, 0xae, 0x95, 0x22, 0x1f, 0x7d, 0x42, 0x16, 0xfb, 0x3c, 0x49, 0xe4, 0x38, 0xc7, - 0x21, 0x49, 0x3d, 0x11, 0xa4, 0x30, 0xc7, 0x42, 0x9f, 0x90, 0x07, 0x90, 0xd3, 0x67, 0x45, 0x4f, - 0xc9, 0x3c, 0x1e, 0xda, 0x0a, 0x6a, 0x1a, 0x23, 0x6e, 0x12, 0xc0, 0xd8, 0x83, 0xb8, 0x38, 0xe7, - 0x03, 0x30, 0x0c, 0xc6, 0xa6, 0xe9, 0x0b, 0x1e, 0x8a, 0x3e, 0x26, 0xcb, 0x2e, 0xef, 0x2d, 0x4f, - 0xcb, 0xf0, 0xcc, 0x22, 0x69, 0x9b, 0x10, 0x53, 0xba, 0x7e, 0xdb, 0xf5, 0x30, 0x74, 0x8b, 0x34, - 0xba, 0x99, 0xe6, 0x29, 0x1b, 0xe8, 0x70, 0xd9, 0x18, 0xf1, 0x96, 0x1f, 0x74, 0x24, 0xb1, 0x92, - 0x69, 0xed, 0xbb, 0xa4, 0xe5, 0x05, 0xf4, 0x8d, 0xa6, 0xf3, 0xbb, 0xe5, 0x1a, 0x00, 0x4c, 0x83, - 0xc9, 0x78, 0xec, 0x04, 0x2d, 0x00, 0x0c, 0x6e, 0x65, 0xb8, 0x9d, 0xe1, 0x67, 0x64, 0x65, 0x36, - 0x19, 0xcd, 0xb4, 0x90, 0x85, 0x2e, 0x5b, 0x3f, 0x42, 0x26, 0x59, 0x64, 0xa6, 0x63, 0x91, 0x71, - 0x55, 0x4e, 0x01, 0x1f, 0x65, 0x1a, 0x1d, 0x0c, 0xff, 0xaa, 0x21, 0x99, 0x73, 0xf4, 0x3e, 0xea, - 0x2f, 0xf3, 0xe2, 0xae, 0xb6, 0x69, 0x32, 0xb0, 0x32, 0xad, 0xe3, 0xe8, 0xd7, 0x01, 0x69, 0x79, - 0xa9, 0x72, 0x57, 0xad, 0x1b, 0x5d, 0x15, 0x4f, 0xd7, 0x43, 0xb2, 0x70, 0x10, 0x7f, 0x2c, 0xed, - 0x76, 0x51, 0x65, 0x16, 0x30, 0x58, 0x91, 0x49, 0x85, 0xd5, 0x6e, 0x01, 0xe8, 0x7c, 0x2f, 0x44, - 0xca, 0x0f, 0xe4, 0x80, 0x9b, 0xec, 0x5f, 0x66, 0x25, 0xec, 0xe6, 0x5f, 0xfd, 0xc6, 0xfc, 0x5b, - 0x2c, 0xe7, 0x5f, 0xf4, 0xf7, 0x0a, 0x9a, 0x37, 0xad, 0xa9, 0xef, 0x4c, 0xb3, 0x3e, 0xb8, 0x51, - 0xb9, 0x96, 0x62, 0x0b, 0x6c, 0x3e, 0xf7, 0x61, 0x57, 0xe5, 0x63, 0xa9, 0xae, 0x70, 0x79, 0xf2, - 0xab, 0xc5, 0x12, 0x18, 0x32, 0xd0, 0x75, 0x52, 0xdd, 0xe9, 0x1d, 0xe3, 0xfa, 0xb4, 0xe2, 0x2f, - 0x36, 0xbd, 0x63, 0x06, 0x24, 0xfa, 0x45, 0x52, 0xeb, 0xc1, 0x38, 0xb6, 0x8d, 0xe0, 0x9e, 0xc7, - 0x02, 0x68, 0x66, 0x88, 0x50, 0x6d, 0xdb, 0xa9, 0x4c, 0xce, 0xbb, 0x87, 0xc6, 0xf8, 0xd9, 0x6a, - 0x43, 0x0a, 0x73, 0x2c, 0xf4, 0x05, 0x59, 0xd9, 0x9b, 0x0c, 0x79, 0x1e, 0x0f, 0xf9, 0xbe, 0x5d, - 0x90, 0x6c, 0x3b, 0x08, 0x3d, 0xa1, 0x19, 0x06, 0x34, 0x70, 0x4e, 0x0a, 0x6e, 0x7d, 0xc5, 0xf5, - 0xa5, 0x54, 0xe7, 0xb8, 0x99, 0xf9, 0xb7, 0x22, 0x85, 0x39, 0x96, 0xe8, 0xaf, 0x2e, 0x0b, 0xd0, - 0xf4, 0x87, 0xd0, 0x9c, 0xc7, 0xc2, 0xae, 0x32, 0x55, 0x66, 0x01, 0xc8, 0x4d, 0xc6, 0x0b, 0xae, - 0x2e, 0x6c, 0x0f, 0xa8, 0xd8, 0x75, 0xc9, 0x43, 0x99, 0xdc, 0xbc, 0x8c, 0x73, 0x4c, 0x0a, 0x73, - 0x86, 0x4c, 0xff, 0x90, 0xab, 0x8c, 0xa7, 0x98, 0x14, 0x08, 0xc1, 0x7e, 0x60, 0x4f, 0x47, 0x3b, - 0x3d, 0xe3, 0x99, 0x2a, 0x9b, 0x22, 0xa0, 0xfe, 0x41, 0x3a, 0x17, 0x19, 0x7c, 0xbb, 0xd4, 0xcd, - 0x50, 0xf7, 0x30, 0xf4, 0xab, 0xe4, 0xfe, 0xae, 0x28, 0x60, 0xd1, 0x38, 0x3c, 0x3c, 0xf8, 0x50, - 0xa4, 0x29, 0x57, 0xc6, 0xd0, 0x06, 0xbb, 0x81, 0x8f, 0xfe, 0x1c, 0x90, 0x86, 0x0b, 0x1c, 0x3c, - 0xa7, 0x3f, 0x8a, 0x95, 0x49, 0x1c, 0x50, 0x8a, 0x10, 0x98, 0xfc, 0xa3, 0x89, 0xd4, 0x31, 0x9a, - 0x65, 0x01, 0xe0, 0xee, 0x71, 0x25, 0xe4, 0x00, 0xf7, 0x0a, 0x84, 0x60, 0xc7, 0x64, 0x3c, 0x4e, - 0xb5, 0x18, 0x73, 0x36, 0xc9, 0xe0, 0x07, 0xad, 0x9b, 0x47, 0xc3, 0xf2, 0xe6, 0x50, 0xa8, 0x69, - 0xc1, 0x68, 0x9a, 0xc3, 0x82, 0xeb, 0x76, 0xf2, 0x49, 0x81, 0x2b, 0xb6, 0x39, 0x03, 0xee, 0x80, - 0x8f, 0xed, 0x6e, 0xdd, 0x64, 0xe6, 0x1c, 0x5d, 0xe2, 0x1e, 0x77, 0x62, 0xb6, 0x4b, 0xac, 0xda, - 0xb2, 0x1a, 0x83, 0x5b, 0xab, 0xb1, 0xe2, 0x57, 0xe3, 0x2a, 0xa9, 0x5b, 0x59, 0xec, 0x20, 0x08, - 0x81, 0xc7, 0xf7, 0x79, 0x7c, 0x86, 0xb4, 0x9a, 0xa1, 0x79, 0x98, 0xe8, 0x98, 0xbc, 0x65, 0x2e, - 0x3e, 0x1a, 0x29, 0xa9, 0x75, 0xca, 0xff, 0x8f, 0xab, 0x29, 0xa9, 0xb1, 0x58, 0x73, 0xb7, 0xa3, - 0xc1, 0x39, 0xfa, 0x57, 0x95, 0x2c, 0xf9, 0xa5, 0xe0, 0xbd, 0x2f, 0xf8, 0x2f, 0xef, 0xab, 0xcc, - 0xbf, 0x8f, 0x76, 0xc8, 0x92, 0xef, 0x93, 0x5b, 0x26, 0xba, 0x4f, 0xc6, 0xb2, 0x99, 0x11, 0xa1, - 0xc7, 0xe4, 0x6d, 0x67, 0x1d, 0x4c, 0xa3, 0xed, 0xbc, 0x40, 0x5d, 0x35, 0xa3, 0xeb, 0xf3, 0x9e, - 0xae, 0x59, 0x2f, 0xa0, 0xb6, 0xdb, 0xa5, 0xe9, 0x09, 0x59, 0x75, 0x84, 0x13, 0x25, 0x34, 0x9f, - 0xea, 0x5d, 0xf8, 0x74, 0x7a, 0xef, 0x10, 0xf7, 0x15, 0xc3, 0x8d, 0xdd, 0xc3, 0x5e, 0x1f, 0x15, - 0xd7, 0xdf, 0x50, 0xf1, 0xac, 0x38, 0xfd, 0x09, 0x79, 0x67, 0xe6, 0x4a, 0x4f, 0xf3, 0xe2, 0xa7, - 0xd3, 0x7c, 0x97, 0x7c, 0xf4, 0x1e, 0x69, 0x96, 0x1d, 0xf2, 0xf6, 0x3e, 0x13, 0xfd, 0xc2, 0x7d, - 0xab, 0xf8, 0x8d, 0x1c, 0x78, 0x3b, 0x69, 0x2a, 0x2f, 0xf1, 0xa3, 0xd8, 0x02, 0x9f, 0x79, 0x36, - 0xad, 0x92, 0x7a, 0x27, 0x31, 0xff, 0x8f, 0xd8, 0xbd, 0x0c, 0xa1, 0x28, 0xc5, 0xac, 0xc4, 0x0e, - 0x09, 0x9b, 0xec, 0x4e, 0x1a, 0x17, 0x45, 0x39, 0xb0, 0x1d, 0x48, 0xb7, 0x09, 0xe9, 0x29, 0x21, - 0x95, 0xfd, 0x0c, 0xb6, 0x0b, 0xe8, 0xa3, 0xb9, 0x5d, 0x44, 0x9d, 0xc5, 0x09, 0x47, 0xae, 0x2b, - 0xb7, 0xc4, 0x4d, 0xa5, 0xa2, 0x17, 0x84, 0xde, 0xec, 0xec, 0x30, 0x37, 0x7b, 0xf1, 0x90, 0x17, - 0x30, 0xed, 0xed, 0x3c, 0x2e, 0xe1, 0xa9, 0xe7, 0xec, 0x37, 0x10, 0x7a, 0x6e, 0x8f, 0xac, 0xde, - 0x7e, 0x27, 0xf8, 0x09, 0x96, 0x03, 0x37, 0xd7, 0xe1, 0x6c, 0xf4, 0x23, 0x1d, 0xeb, 0xa9, 0x84, - 0xa3, 0x5f, 0x06, 0xe8, 0x00, 0xb7, 0x06, 0x3e, 0x26, 0xcb, 0xbb, 0xfc, 0x2c, 0x9e, 0xa4, 0xba, - 0x93, 0x78, 0x1f, 0x51, 0xb3, 0x48, 0xe0, 0xea, 0xa8, 0x64, 0x24, 0x34, 0x4f, 0xf4, 0x44, 0x71, - 0xf7, 0x7d, 0x30, 0x8b, 0xa4, 0xdf, 0x24, 0x0d, 0xd8, 0xc5, 0xe2, 0x34, 0x2d, 0xb0, 0x4c, 0x67, - 0x36, 0x50, 0x4b, 0x72, 0x9f, 0x23, 0x8e, 0x33, 0x12, 0xe4, 0x9e, 0xff, 0xa2, 0x8e, 0x1a, 0x82, - 0x17, 0xba, 0xd9, 0x80, 0xbf, 0xc6, 0x5e, 0x6e, 0x01, 0xc0, 0x7e, 0x54, 0x6e, 0x72, 0x35, 0x66, - 0x01, 0xb0, 0xd6, 0x1c, 0x8e, 0x2e, 0x25, 0x36, 0xa0, 0x12, 0xa6, 0x2b, 0xa4, 0x72, 0x98, 0xe3, - 0x37, 0x73, 0xe5, 0x30, 0x8f, 0xc6, 0xce, 0x78, 0x7b, 0x37, 0x68, 0x34, 0xab, 0x15, 0x7e, 0x24, - 0x5b, 0xc0, 0xe6, 0x4e, 0x39, 0x0a, 0x4d, 0xee, 0x18, 0x27, 0x6c, 0xe1, 0xb7, 0x91, 0x35, 0xed, - 0xed, 0x9b, 0xcb, 0x75, 0x47, 0xb9, 0xaf, 0x11, 0xc3, 0x18, 0x7d, 0x8b, 0x2c, 0xcf, 0xac, 0xad, - 0xe0, 0xc6, 0xfd, 0x67, 0x3b, 0x71, 0x32, 0xe2, 0xfd, 0x64, 0xc4, 0xc7, 0xb1, 0x73, 0xf6, 0x0c, - 0x72, 0xfb, 0xd1, 0xbf, 0xff, 0xd9, 0x0e, 0x7e, 0x7b, 0xdd, 0x0e, 0x7e, 0x7f, 0xdd, 0x0e, 0xfe, - 0x78, 0xdd, 0x0e, 0x3e, 0xb9, 0x6e, 0x07, 0x7f, 0xb9, 0x6e, 0x07, 0xff, 0xb8, 0x6e, 0x07, 0xa7, - 0x75, 0xf3, 0x27, 0xe1, 0xb3, 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, 0x0e, 0x40, 0x5d, 0x0f, 0x86, - 0x14, 0x00, 0x00, -} diff --git a/src/runtime/vendor/github.com/kata-containers/agent/protocols/grpc/ocipb_test.go b/src/runtime/vendor/github.com/kata-containers/agent/protocols/grpc/ocipb_test.go new file mode 100644 index 0000000000..bad64179bc --- /dev/null +++ b/src/runtime/vendor/github.com/kata-containers/agent/protocols/grpc/ocipb_test.go @@ -0,0 +1,5822 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: github.com/kata-containers/agent/protocols/grpc/oci.proto + +package grpc + +import ( + fmt "fmt" + _ "github.com/gogo/protobuf/gogoproto" + github_com_gogo_protobuf_jsonpb "github.com/gogo/protobuf/jsonpb" + github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto" + proto "github.com/gogo/protobuf/proto" + _ "github.com/gogo/protobuf/types" + math "math" + math_rand "math/rand" + testing "testing" + time "time" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +func TestSpecProto(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedSpec(popr, false) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &Spec{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + littlefuzz := make([]byte, len(dAtA)) + copy(littlefuzz, dAtA) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } + if len(littlefuzz) > 0 { + fuzzamount := 100 + for i := 0; i < fuzzamount; i++ { + littlefuzz[popr.Intn(len(littlefuzz))] = byte(popr.Intn(256)) + littlefuzz = append(littlefuzz, byte(popr.Intn(256))) + } + // shouldn't panic + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + } +} + +func TestSpecMarshalTo(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedSpec(popr, false) + size := p.Size() + dAtA := make([]byte, size) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + _, err := p.MarshalTo(dAtA) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &Spec{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func BenchmarkSpecProtoMarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*Spec, 10000) + for i := 0; i < 10000; i++ { + pops[i] = NewPopulatedSpec(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + if err != nil { + panic(err) + } + total += len(dAtA) + } + b.SetBytes(int64(total / b.N)) +} + +func BenchmarkSpecProtoUnmarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + datas := make([][]byte, 10000) + for i := 0; i < 10000; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedSpec(popr, false)) + if err != nil { + panic(err) + } + datas[i] = dAtA + } + msg := &Spec{} + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += len(datas[i%10000]) + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + panic(err) + } + } + b.SetBytes(int64(total / b.N)) +} + +func TestProcessProto(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedProcess(popr, false) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &Process{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + littlefuzz := make([]byte, len(dAtA)) + copy(littlefuzz, dAtA) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } + if len(littlefuzz) > 0 { + fuzzamount := 100 + for i := 0; i < fuzzamount; i++ { + littlefuzz[popr.Intn(len(littlefuzz))] = byte(popr.Intn(256)) + littlefuzz = append(littlefuzz, byte(popr.Intn(256))) + } + // shouldn't panic + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + } +} + +func TestProcessMarshalTo(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedProcess(popr, false) + size := p.Size() + dAtA := make([]byte, size) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + _, err := p.MarshalTo(dAtA) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &Process{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func BenchmarkProcessProtoMarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*Process, 10000) + for i := 0; i < 10000; i++ { + pops[i] = NewPopulatedProcess(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + if err != nil { + panic(err) + } + total += len(dAtA) + } + b.SetBytes(int64(total / b.N)) +} + +func BenchmarkProcessProtoUnmarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + datas := make([][]byte, 10000) + for i := 0; i < 10000; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedProcess(popr, false)) + if err != nil { + panic(err) + } + datas[i] = dAtA + } + msg := &Process{} + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += len(datas[i%10000]) + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + panic(err) + } + } + b.SetBytes(int64(total / b.N)) +} + +func TestBoxProto(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedBox(popr, false) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &Box{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + littlefuzz := make([]byte, len(dAtA)) + copy(littlefuzz, dAtA) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } + if len(littlefuzz) > 0 { + fuzzamount := 100 + for i := 0; i < fuzzamount; i++ { + littlefuzz[popr.Intn(len(littlefuzz))] = byte(popr.Intn(256)) + littlefuzz = append(littlefuzz, byte(popr.Intn(256))) + } + // shouldn't panic + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + } +} + +func TestBoxMarshalTo(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedBox(popr, false) + size := p.Size() + dAtA := make([]byte, size) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + _, err := p.MarshalTo(dAtA) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &Box{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func BenchmarkBoxProtoMarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*Box, 10000) + for i := 0; i < 10000; i++ { + pops[i] = NewPopulatedBox(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + if err != nil { + panic(err) + } + total += len(dAtA) + } + b.SetBytes(int64(total / b.N)) +} + +func BenchmarkBoxProtoUnmarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + datas := make([][]byte, 10000) + for i := 0; i < 10000; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedBox(popr, false)) + if err != nil { + panic(err) + } + datas[i] = dAtA + } + msg := &Box{} + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += len(datas[i%10000]) + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + panic(err) + } + } + b.SetBytes(int64(total / b.N)) +} + +func TestUserProto(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedUser(popr, false) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &User{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + littlefuzz := make([]byte, len(dAtA)) + copy(littlefuzz, dAtA) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } + if len(littlefuzz) > 0 { + fuzzamount := 100 + for i := 0; i < fuzzamount; i++ { + littlefuzz[popr.Intn(len(littlefuzz))] = byte(popr.Intn(256)) + littlefuzz = append(littlefuzz, byte(popr.Intn(256))) + } + // shouldn't panic + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + } +} + +func TestUserMarshalTo(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedUser(popr, false) + size := p.Size() + dAtA := make([]byte, size) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + _, err := p.MarshalTo(dAtA) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &User{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func BenchmarkUserProtoMarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*User, 10000) + for i := 0; i < 10000; i++ { + pops[i] = NewPopulatedUser(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + if err != nil { + panic(err) + } + total += len(dAtA) + } + b.SetBytes(int64(total / b.N)) +} + +func BenchmarkUserProtoUnmarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + datas := make([][]byte, 10000) + for i := 0; i < 10000; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedUser(popr, false)) + if err != nil { + panic(err) + } + datas[i] = dAtA + } + msg := &User{} + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += len(datas[i%10000]) + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + panic(err) + } + } + b.SetBytes(int64(total / b.N)) +} + +func TestLinuxCapabilitiesProto(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxCapabilities(popr, false) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &LinuxCapabilities{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + littlefuzz := make([]byte, len(dAtA)) + copy(littlefuzz, dAtA) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } + if len(littlefuzz) > 0 { + fuzzamount := 100 + for i := 0; i < fuzzamount; i++ { + littlefuzz[popr.Intn(len(littlefuzz))] = byte(popr.Intn(256)) + littlefuzz = append(littlefuzz, byte(popr.Intn(256))) + } + // shouldn't panic + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + } +} + +func TestLinuxCapabilitiesMarshalTo(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxCapabilities(popr, false) + size := p.Size() + dAtA := make([]byte, size) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + _, err := p.MarshalTo(dAtA) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &LinuxCapabilities{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func BenchmarkLinuxCapabilitiesProtoMarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*LinuxCapabilities, 10000) + for i := 0; i < 10000; i++ { + pops[i] = NewPopulatedLinuxCapabilities(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + if err != nil { + panic(err) + } + total += len(dAtA) + } + b.SetBytes(int64(total / b.N)) +} + +func BenchmarkLinuxCapabilitiesProtoUnmarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + datas := make([][]byte, 10000) + for i := 0; i < 10000; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedLinuxCapabilities(popr, false)) + if err != nil { + panic(err) + } + datas[i] = dAtA + } + msg := &LinuxCapabilities{} + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += len(datas[i%10000]) + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + panic(err) + } + } + b.SetBytes(int64(total / b.N)) +} + +func TestPOSIXRlimitProto(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedPOSIXRlimit(popr, false) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &POSIXRlimit{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + littlefuzz := make([]byte, len(dAtA)) + copy(littlefuzz, dAtA) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } + if len(littlefuzz) > 0 { + fuzzamount := 100 + for i := 0; i < fuzzamount; i++ { + littlefuzz[popr.Intn(len(littlefuzz))] = byte(popr.Intn(256)) + littlefuzz = append(littlefuzz, byte(popr.Intn(256))) + } + // shouldn't panic + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + } +} + +func TestPOSIXRlimitMarshalTo(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedPOSIXRlimit(popr, false) + size := p.Size() + dAtA := make([]byte, size) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + _, err := p.MarshalTo(dAtA) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &POSIXRlimit{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func BenchmarkPOSIXRlimitProtoMarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*POSIXRlimit, 10000) + for i := 0; i < 10000; i++ { + pops[i] = NewPopulatedPOSIXRlimit(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + if err != nil { + panic(err) + } + total += len(dAtA) + } + b.SetBytes(int64(total / b.N)) +} + +func BenchmarkPOSIXRlimitProtoUnmarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + datas := make([][]byte, 10000) + for i := 0; i < 10000; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedPOSIXRlimit(popr, false)) + if err != nil { + panic(err) + } + datas[i] = dAtA + } + msg := &POSIXRlimit{} + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += len(datas[i%10000]) + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + panic(err) + } + } + b.SetBytes(int64(total / b.N)) +} + +func TestMountProto(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedMount(popr, false) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &Mount{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + littlefuzz := make([]byte, len(dAtA)) + copy(littlefuzz, dAtA) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } + if len(littlefuzz) > 0 { + fuzzamount := 100 + for i := 0; i < fuzzamount; i++ { + littlefuzz[popr.Intn(len(littlefuzz))] = byte(popr.Intn(256)) + littlefuzz = append(littlefuzz, byte(popr.Intn(256))) + } + // shouldn't panic + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + } +} + +func TestMountMarshalTo(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedMount(popr, false) + size := p.Size() + dAtA := make([]byte, size) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + _, err := p.MarshalTo(dAtA) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &Mount{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func BenchmarkMountProtoMarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*Mount, 10000) + for i := 0; i < 10000; i++ { + pops[i] = NewPopulatedMount(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + if err != nil { + panic(err) + } + total += len(dAtA) + } + b.SetBytes(int64(total / b.N)) +} + +func BenchmarkMountProtoUnmarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + datas := make([][]byte, 10000) + for i := 0; i < 10000; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedMount(popr, false)) + if err != nil { + panic(err) + } + datas[i] = dAtA + } + msg := &Mount{} + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += len(datas[i%10000]) + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + panic(err) + } + } + b.SetBytes(int64(total / b.N)) +} + +func TestRootProto(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedRoot(popr, false) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &Root{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + littlefuzz := make([]byte, len(dAtA)) + copy(littlefuzz, dAtA) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } + if len(littlefuzz) > 0 { + fuzzamount := 100 + for i := 0; i < fuzzamount; i++ { + littlefuzz[popr.Intn(len(littlefuzz))] = byte(popr.Intn(256)) + littlefuzz = append(littlefuzz, byte(popr.Intn(256))) + } + // shouldn't panic + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + } +} + +func TestRootMarshalTo(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedRoot(popr, false) + size := p.Size() + dAtA := make([]byte, size) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + _, err := p.MarshalTo(dAtA) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &Root{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func BenchmarkRootProtoMarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*Root, 10000) + for i := 0; i < 10000; i++ { + pops[i] = NewPopulatedRoot(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + if err != nil { + panic(err) + } + total += len(dAtA) + } + b.SetBytes(int64(total / b.N)) +} + +func BenchmarkRootProtoUnmarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + datas := make([][]byte, 10000) + for i := 0; i < 10000; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedRoot(popr, false)) + if err != nil { + panic(err) + } + datas[i] = dAtA + } + msg := &Root{} + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += len(datas[i%10000]) + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + panic(err) + } + } + b.SetBytes(int64(total / b.N)) +} + +func TestHooksProto(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedHooks(popr, false) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &Hooks{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + littlefuzz := make([]byte, len(dAtA)) + copy(littlefuzz, dAtA) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } + if len(littlefuzz) > 0 { + fuzzamount := 100 + for i := 0; i < fuzzamount; i++ { + littlefuzz[popr.Intn(len(littlefuzz))] = byte(popr.Intn(256)) + littlefuzz = append(littlefuzz, byte(popr.Intn(256))) + } + // shouldn't panic + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + } +} + +func TestHooksMarshalTo(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedHooks(popr, false) + size := p.Size() + dAtA := make([]byte, size) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + _, err := p.MarshalTo(dAtA) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &Hooks{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func BenchmarkHooksProtoMarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*Hooks, 10000) + for i := 0; i < 10000; i++ { + pops[i] = NewPopulatedHooks(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + if err != nil { + panic(err) + } + total += len(dAtA) + } + b.SetBytes(int64(total / b.N)) +} + +func BenchmarkHooksProtoUnmarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + datas := make([][]byte, 10000) + for i := 0; i < 10000; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedHooks(popr, false)) + if err != nil { + panic(err) + } + datas[i] = dAtA + } + msg := &Hooks{} + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += len(datas[i%10000]) + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + panic(err) + } + } + b.SetBytes(int64(total / b.N)) +} + +func TestHookProto(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedHook(popr, false) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &Hook{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + littlefuzz := make([]byte, len(dAtA)) + copy(littlefuzz, dAtA) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } + if len(littlefuzz) > 0 { + fuzzamount := 100 + for i := 0; i < fuzzamount; i++ { + littlefuzz[popr.Intn(len(littlefuzz))] = byte(popr.Intn(256)) + littlefuzz = append(littlefuzz, byte(popr.Intn(256))) + } + // shouldn't panic + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + } +} + +func TestHookMarshalTo(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedHook(popr, false) + size := p.Size() + dAtA := make([]byte, size) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + _, err := p.MarshalTo(dAtA) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &Hook{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func BenchmarkHookProtoMarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*Hook, 10000) + for i := 0; i < 10000; i++ { + pops[i] = NewPopulatedHook(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + if err != nil { + panic(err) + } + total += len(dAtA) + } + b.SetBytes(int64(total / b.N)) +} + +func BenchmarkHookProtoUnmarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + datas := make([][]byte, 10000) + for i := 0; i < 10000; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedHook(popr, false)) + if err != nil { + panic(err) + } + datas[i] = dAtA + } + msg := &Hook{} + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += len(datas[i%10000]) + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + panic(err) + } + } + b.SetBytes(int64(total / b.N)) +} + +func TestLinuxProto(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinux(popr, false) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &Linux{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + littlefuzz := make([]byte, len(dAtA)) + copy(littlefuzz, dAtA) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } + if len(littlefuzz) > 0 { + fuzzamount := 100 + for i := 0; i < fuzzamount; i++ { + littlefuzz[popr.Intn(len(littlefuzz))] = byte(popr.Intn(256)) + littlefuzz = append(littlefuzz, byte(popr.Intn(256))) + } + // shouldn't panic + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + } +} + +func TestLinuxMarshalTo(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinux(popr, false) + size := p.Size() + dAtA := make([]byte, size) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + _, err := p.MarshalTo(dAtA) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &Linux{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func BenchmarkLinuxProtoMarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*Linux, 10000) + for i := 0; i < 10000; i++ { + pops[i] = NewPopulatedLinux(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + if err != nil { + panic(err) + } + total += len(dAtA) + } + b.SetBytes(int64(total / b.N)) +} + +func BenchmarkLinuxProtoUnmarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + datas := make([][]byte, 10000) + for i := 0; i < 10000; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedLinux(popr, false)) + if err != nil { + panic(err) + } + datas[i] = dAtA + } + msg := &Linux{} + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += len(datas[i%10000]) + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + panic(err) + } + } + b.SetBytes(int64(total / b.N)) +} + +func TestWindowsProto(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedWindows(popr, false) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &Windows{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + littlefuzz := make([]byte, len(dAtA)) + copy(littlefuzz, dAtA) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } + if len(littlefuzz) > 0 { + fuzzamount := 100 + for i := 0; i < fuzzamount; i++ { + littlefuzz[popr.Intn(len(littlefuzz))] = byte(popr.Intn(256)) + littlefuzz = append(littlefuzz, byte(popr.Intn(256))) + } + // shouldn't panic + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + } +} + +func TestWindowsMarshalTo(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedWindows(popr, false) + size := p.Size() + dAtA := make([]byte, size) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + _, err := p.MarshalTo(dAtA) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &Windows{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func BenchmarkWindowsProtoMarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*Windows, 10000) + for i := 0; i < 10000; i++ { + pops[i] = NewPopulatedWindows(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + if err != nil { + panic(err) + } + total += len(dAtA) + } + b.SetBytes(int64(total / b.N)) +} + +func BenchmarkWindowsProtoUnmarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + datas := make([][]byte, 10000) + for i := 0; i < 10000; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedWindows(popr, false)) + if err != nil { + panic(err) + } + datas[i] = dAtA + } + msg := &Windows{} + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += len(datas[i%10000]) + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + panic(err) + } + } + b.SetBytes(int64(total / b.N)) +} + +func TestSolarisProto(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedSolaris(popr, false) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &Solaris{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + littlefuzz := make([]byte, len(dAtA)) + copy(littlefuzz, dAtA) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } + if len(littlefuzz) > 0 { + fuzzamount := 100 + for i := 0; i < fuzzamount; i++ { + littlefuzz[popr.Intn(len(littlefuzz))] = byte(popr.Intn(256)) + littlefuzz = append(littlefuzz, byte(popr.Intn(256))) + } + // shouldn't panic + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + } +} + +func TestSolarisMarshalTo(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedSolaris(popr, false) + size := p.Size() + dAtA := make([]byte, size) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + _, err := p.MarshalTo(dAtA) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &Solaris{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func BenchmarkSolarisProtoMarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*Solaris, 10000) + for i := 0; i < 10000; i++ { + pops[i] = NewPopulatedSolaris(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + if err != nil { + panic(err) + } + total += len(dAtA) + } + b.SetBytes(int64(total / b.N)) +} + +func BenchmarkSolarisProtoUnmarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + datas := make([][]byte, 10000) + for i := 0; i < 10000; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedSolaris(popr, false)) + if err != nil { + panic(err) + } + datas[i] = dAtA + } + msg := &Solaris{} + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += len(datas[i%10000]) + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + panic(err) + } + } + b.SetBytes(int64(total / b.N)) +} + +func TestLinuxIDMappingProto(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxIDMapping(popr, false) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &LinuxIDMapping{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + littlefuzz := make([]byte, len(dAtA)) + copy(littlefuzz, dAtA) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } + if len(littlefuzz) > 0 { + fuzzamount := 100 + for i := 0; i < fuzzamount; i++ { + littlefuzz[popr.Intn(len(littlefuzz))] = byte(popr.Intn(256)) + littlefuzz = append(littlefuzz, byte(popr.Intn(256))) + } + // shouldn't panic + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + } +} + +func TestLinuxIDMappingMarshalTo(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxIDMapping(popr, false) + size := p.Size() + dAtA := make([]byte, size) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + _, err := p.MarshalTo(dAtA) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &LinuxIDMapping{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func BenchmarkLinuxIDMappingProtoMarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*LinuxIDMapping, 10000) + for i := 0; i < 10000; i++ { + pops[i] = NewPopulatedLinuxIDMapping(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + if err != nil { + panic(err) + } + total += len(dAtA) + } + b.SetBytes(int64(total / b.N)) +} + +func BenchmarkLinuxIDMappingProtoUnmarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + datas := make([][]byte, 10000) + for i := 0; i < 10000; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedLinuxIDMapping(popr, false)) + if err != nil { + panic(err) + } + datas[i] = dAtA + } + msg := &LinuxIDMapping{} + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += len(datas[i%10000]) + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + panic(err) + } + } + b.SetBytes(int64(total / b.N)) +} + +func TestLinuxNamespaceProto(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxNamespace(popr, false) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &LinuxNamespace{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + littlefuzz := make([]byte, len(dAtA)) + copy(littlefuzz, dAtA) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } + if len(littlefuzz) > 0 { + fuzzamount := 100 + for i := 0; i < fuzzamount; i++ { + littlefuzz[popr.Intn(len(littlefuzz))] = byte(popr.Intn(256)) + littlefuzz = append(littlefuzz, byte(popr.Intn(256))) + } + // shouldn't panic + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + } +} + +func TestLinuxNamespaceMarshalTo(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxNamespace(popr, false) + size := p.Size() + dAtA := make([]byte, size) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + _, err := p.MarshalTo(dAtA) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &LinuxNamespace{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func BenchmarkLinuxNamespaceProtoMarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*LinuxNamespace, 10000) + for i := 0; i < 10000; i++ { + pops[i] = NewPopulatedLinuxNamespace(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + if err != nil { + panic(err) + } + total += len(dAtA) + } + b.SetBytes(int64(total / b.N)) +} + +func BenchmarkLinuxNamespaceProtoUnmarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + datas := make([][]byte, 10000) + for i := 0; i < 10000; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedLinuxNamespace(popr, false)) + if err != nil { + panic(err) + } + datas[i] = dAtA + } + msg := &LinuxNamespace{} + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += len(datas[i%10000]) + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + panic(err) + } + } + b.SetBytes(int64(total / b.N)) +} + +func TestLinuxDeviceProto(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxDevice(popr, false) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &LinuxDevice{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + littlefuzz := make([]byte, len(dAtA)) + copy(littlefuzz, dAtA) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } + if len(littlefuzz) > 0 { + fuzzamount := 100 + for i := 0; i < fuzzamount; i++ { + littlefuzz[popr.Intn(len(littlefuzz))] = byte(popr.Intn(256)) + littlefuzz = append(littlefuzz, byte(popr.Intn(256))) + } + // shouldn't panic + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + } +} + +func TestLinuxDeviceMarshalTo(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxDevice(popr, false) + size := p.Size() + dAtA := make([]byte, size) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + _, err := p.MarshalTo(dAtA) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &LinuxDevice{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func BenchmarkLinuxDeviceProtoMarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*LinuxDevice, 10000) + for i := 0; i < 10000; i++ { + pops[i] = NewPopulatedLinuxDevice(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + if err != nil { + panic(err) + } + total += len(dAtA) + } + b.SetBytes(int64(total / b.N)) +} + +func BenchmarkLinuxDeviceProtoUnmarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + datas := make([][]byte, 10000) + for i := 0; i < 10000; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedLinuxDevice(popr, false)) + if err != nil { + panic(err) + } + datas[i] = dAtA + } + msg := &LinuxDevice{} + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += len(datas[i%10000]) + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + panic(err) + } + } + b.SetBytes(int64(total / b.N)) +} + +func TestLinuxResourcesProto(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxResources(popr, false) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &LinuxResources{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + littlefuzz := make([]byte, len(dAtA)) + copy(littlefuzz, dAtA) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } + if len(littlefuzz) > 0 { + fuzzamount := 100 + for i := 0; i < fuzzamount; i++ { + littlefuzz[popr.Intn(len(littlefuzz))] = byte(popr.Intn(256)) + littlefuzz = append(littlefuzz, byte(popr.Intn(256))) + } + // shouldn't panic + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + } +} + +func TestLinuxResourcesMarshalTo(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxResources(popr, false) + size := p.Size() + dAtA := make([]byte, size) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + _, err := p.MarshalTo(dAtA) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &LinuxResources{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func BenchmarkLinuxResourcesProtoMarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*LinuxResources, 10000) + for i := 0; i < 10000; i++ { + pops[i] = NewPopulatedLinuxResources(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + if err != nil { + panic(err) + } + total += len(dAtA) + } + b.SetBytes(int64(total / b.N)) +} + +func BenchmarkLinuxResourcesProtoUnmarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + datas := make([][]byte, 10000) + for i := 0; i < 10000; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedLinuxResources(popr, false)) + if err != nil { + panic(err) + } + datas[i] = dAtA + } + msg := &LinuxResources{} + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += len(datas[i%10000]) + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + panic(err) + } + } + b.SetBytes(int64(total / b.N)) +} + +func TestLinuxMemoryProto(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxMemory(popr, false) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &LinuxMemory{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + littlefuzz := make([]byte, len(dAtA)) + copy(littlefuzz, dAtA) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } + if len(littlefuzz) > 0 { + fuzzamount := 100 + for i := 0; i < fuzzamount; i++ { + littlefuzz[popr.Intn(len(littlefuzz))] = byte(popr.Intn(256)) + littlefuzz = append(littlefuzz, byte(popr.Intn(256))) + } + // shouldn't panic + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + } +} + +func TestLinuxMemoryMarshalTo(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxMemory(popr, false) + size := p.Size() + dAtA := make([]byte, size) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + _, err := p.MarshalTo(dAtA) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &LinuxMemory{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func BenchmarkLinuxMemoryProtoMarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*LinuxMemory, 10000) + for i := 0; i < 10000; i++ { + pops[i] = NewPopulatedLinuxMemory(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + if err != nil { + panic(err) + } + total += len(dAtA) + } + b.SetBytes(int64(total / b.N)) +} + +func BenchmarkLinuxMemoryProtoUnmarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + datas := make([][]byte, 10000) + for i := 0; i < 10000; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedLinuxMemory(popr, false)) + if err != nil { + panic(err) + } + datas[i] = dAtA + } + msg := &LinuxMemory{} + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += len(datas[i%10000]) + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + panic(err) + } + } + b.SetBytes(int64(total / b.N)) +} + +func TestLinuxCPUProto(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxCPU(popr, false) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &LinuxCPU{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + littlefuzz := make([]byte, len(dAtA)) + copy(littlefuzz, dAtA) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } + if len(littlefuzz) > 0 { + fuzzamount := 100 + for i := 0; i < fuzzamount; i++ { + littlefuzz[popr.Intn(len(littlefuzz))] = byte(popr.Intn(256)) + littlefuzz = append(littlefuzz, byte(popr.Intn(256))) + } + // shouldn't panic + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + } +} + +func TestLinuxCPUMarshalTo(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxCPU(popr, false) + size := p.Size() + dAtA := make([]byte, size) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + _, err := p.MarshalTo(dAtA) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &LinuxCPU{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func BenchmarkLinuxCPUProtoMarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*LinuxCPU, 10000) + for i := 0; i < 10000; i++ { + pops[i] = NewPopulatedLinuxCPU(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + if err != nil { + panic(err) + } + total += len(dAtA) + } + b.SetBytes(int64(total / b.N)) +} + +func BenchmarkLinuxCPUProtoUnmarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + datas := make([][]byte, 10000) + for i := 0; i < 10000; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedLinuxCPU(popr, false)) + if err != nil { + panic(err) + } + datas[i] = dAtA + } + msg := &LinuxCPU{} + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += len(datas[i%10000]) + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + panic(err) + } + } + b.SetBytes(int64(total / b.N)) +} + +func TestLinuxWeightDeviceProto(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxWeightDevice(popr, false) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &LinuxWeightDevice{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + littlefuzz := make([]byte, len(dAtA)) + copy(littlefuzz, dAtA) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } + if len(littlefuzz) > 0 { + fuzzamount := 100 + for i := 0; i < fuzzamount; i++ { + littlefuzz[popr.Intn(len(littlefuzz))] = byte(popr.Intn(256)) + littlefuzz = append(littlefuzz, byte(popr.Intn(256))) + } + // shouldn't panic + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + } +} + +func TestLinuxWeightDeviceMarshalTo(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxWeightDevice(popr, false) + size := p.Size() + dAtA := make([]byte, size) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + _, err := p.MarshalTo(dAtA) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &LinuxWeightDevice{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func BenchmarkLinuxWeightDeviceProtoMarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*LinuxWeightDevice, 10000) + for i := 0; i < 10000; i++ { + pops[i] = NewPopulatedLinuxWeightDevice(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + if err != nil { + panic(err) + } + total += len(dAtA) + } + b.SetBytes(int64(total / b.N)) +} + +func BenchmarkLinuxWeightDeviceProtoUnmarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + datas := make([][]byte, 10000) + for i := 0; i < 10000; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedLinuxWeightDevice(popr, false)) + if err != nil { + panic(err) + } + datas[i] = dAtA + } + msg := &LinuxWeightDevice{} + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += len(datas[i%10000]) + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + panic(err) + } + } + b.SetBytes(int64(total / b.N)) +} + +func TestLinuxThrottleDeviceProto(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxThrottleDevice(popr, false) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &LinuxThrottleDevice{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + littlefuzz := make([]byte, len(dAtA)) + copy(littlefuzz, dAtA) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } + if len(littlefuzz) > 0 { + fuzzamount := 100 + for i := 0; i < fuzzamount; i++ { + littlefuzz[popr.Intn(len(littlefuzz))] = byte(popr.Intn(256)) + littlefuzz = append(littlefuzz, byte(popr.Intn(256))) + } + // shouldn't panic + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + } +} + +func TestLinuxThrottleDeviceMarshalTo(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxThrottleDevice(popr, false) + size := p.Size() + dAtA := make([]byte, size) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + _, err := p.MarshalTo(dAtA) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &LinuxThrottleDevice{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func BenchmarkLinuxThrottleDeviceProtoMarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*LinuxThrottleDevice, 10000) + for i := 0; i < 10000; i++ { + pops[i] = NewPopulatedLinuxThrottleDevice(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + if err != nil { + panic(err) + } + total += len(dAtA) + } + b.SetBytes(int64(total / b.N)) +} + +func BenchmarkLinuxThrottleDeviceProtoUnmarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + datas := make([][]byte, 10000) + for i := 0; i < 10000; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedLinuxThrottleDevice(popr, false)) + if err != nil { + panic(err) + } + datas[i] = dAtA + } + msg := &LinuxThrottleDevice{} + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += len(datas[i%10000]) + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + panic(err) + } + } + b.SetBytes(int64(total / b.N)) +} + +func TestLinuxBlockIOProto(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxBlockIO(popr, false) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &LinuxBlockIO{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + littlefuzz := make([]byte, len(dAtA)) + copy(littlefuzz, dAtA) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } + if len(littlefuzz) > 0 { + fuzzamount := 100 + for i := 0; i < fuzzamount; i++ { + littlefuzz[popr.Intn(len(littlefuzz))] = byte(popr.Intn(256)) + littlefuzz = append(littlefuzz, byte(popr.Intn(256))) + } + // shouldn't panic + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + } +} + +func TestLinuxBlockIOMarshalTo(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxBlockIO(popr, false) + size := p.Size() + dAtA := make([]byte, size) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + _, err := p.MarshalTo(dAtA) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &LinuxBlockIO{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func BenchmarkLinuxBlockIOProtoMarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*LinuxBlockIO, 10000) + for i := 0; i < 10000; i++ { + pops[i] = NewPopulatedLinuxBlockIO(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + if err != nil { + panic(err) + } + total += len(dAtA) + } + b.SetBytes(int64(total / b.N)) +} + +func BenchmarkLinuxBlockIOProtoUnmarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + datas := make([][]byte, 10000) + for i := 0; i < 10000; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedLinuxBlockIO(popr, false)) + if err != nil { + panic(err) + } + datas[i] = dAtA + } + msg := &LinuxBlockIO{} + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += len(datas[i%10000]) + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + panic(err) + } + } + b.SetBytes(int64(total / b.N)) +} + +func TestLinuxPidsProto(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxPids(popr, false) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &LinuxPids{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + littlefuzz := make([]byte, len(dAtA)) + copy(littlefuzz, dAtA) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } + if len(littlefuzz) > 0 { + fuzzamount := 100 + for i := 0; i < fuzzamount; i++ { + littlefuzz[popr.Intn(len(littlefuzz))] = byte(popr.Intn(256)) + littlefuzz = append(littlefuzz, byte(popr.Intn(256))) + } + // shouldn't panic + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + } +} + +func TestLinuxPidsMarshalTo(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxPids(popr, false) + size := p.Size() + dAtA := make([]byte, size) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + _, err := p.MarshalTo(dAtA) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &LinuxPids{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func BenchmarkLinuxPidsProtoMarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*LinuxPids, 10000) + for i := 0; i < 10000; i++ { + pops[i] = NewPopulatedLinuxPids(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + if err != nil { + panic(err) + } + total += len(dAtA) + } + b.SetBytes(int64(total / b.N)) +} + +func BenchmarkLinuxPidsProtoUnmarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + datas := make([][]byte, 10000) + for i := 0; i < 10000; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedLinuxPids(popr, false)) + if err != nil { + panic(err) + } + datas[i] = dAtA + } + msg := &LinuxPids{} + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += len(datas[i%10000]) + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + panic(err) + } + } + b.SetBytes(int64(total / b.N)) +} + +func TestLinuxDeviceCgroupProto(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxDeviceCgroup(popr, false) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &LinuxDeviceCgroup{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + littlefuzz := make([]byte, len(dAtA)) + copy(littlefuzz, dAtA) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } + if len(littlefuzz) > 0 { + fuzzamount := 100 + for i := 0; i < fuzzamount; i++ { + littlefuzz[popr.Intn(len(littlefuzz))] = byte(popr.Intn(256)) + littlefuzz = append(littlefuzz, byte(popr.Intn(256))) + } + // shouldn't panic + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + } +} + +func TestLinuxDeviceCgroupMarshalTo(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxDeviceCgroup(popr, false) + size := p.Size() + dAtA := make([]byte, size) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + _, err := p.MarshalTo(dAtA) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &LinuxDeviceCgroup{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func BenchmarkLinuxDeviceCgroupProtoMarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*LinuxDeviceCgroup, 10000) + for i := 0; i < 10000; i++ { + pops[i] = NewPopulatedLinuxDeviceCgroup(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + if err != nil { + panic(err) + } + total += len(dAtA) + } + b.SetBytes(int64(total / b.N)) +} + +func BenchmarkLinuxDeviceCgroupProtoUnmarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + datas := make([][]byte, 10000) + for i := 0; i < 10000; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedLinuxDeviceCgroup(popr, false)) + if err != nil { + panic(err) + } + datas[i] = dAtA + } + msg := &LinuxDeviceCgroup{} + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += len(datas[i%10000]) + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + panic(err) + } + } + b.SetBytes(int64(total / b.N)) +} + +func TestLinuxNetworkProto(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxNetwork(popr, false) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &LinuxNetwork{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + littlefuzz := make([]byte, len(dAtA)) + copy(littlefuzz, dAtA) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } + if len(littlefuzz) > 0 { + fuzzamount := 100 + for i := 0; i < fuzzamount; i++ { + littlefuzz[popr.Intn(len(littlefuzz))] = byte(popr.Intn(256)) + littlefuzz = append(littlefuzz, byte(popr.Intn(256))) + } + // shouldn't panic + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + } +} + +func TestLinuxNetworkMarshalTo(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxNetwork(popr, false) + size := p.Size() + dAtA := make([]byte, size) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + _, err := p.MarshalTo(dAtA) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &LinuxNetwork{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func BenchmarkLinuxNetworkProtoMarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*LinuxNetwork, 10000) + for i := 0; i < 10000; i++ { + pops[i] = NewPopulatedLinuxNetwork(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + if err != nil { + panic(err) + } + total += len(dAtA) + } + b.SetBytes(int64(total / b.N)) +} + +func BenchmarkLinuxNetworkProtoUnmarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + datas := make([][]byte, 10000) + for i := 0; i < 10000; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedLinuxNetwork(popr, false)) + if err != nil { + panic(err) + } + datas[i] = dAtA + } + msg := &LinuxNetwork{} + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += len(datas[i%10000]) + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + panic(err) + } + } + b.SetBytes(int64(total / b.N)) +} + +func TestLinuxHugepageLimitProto(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxHugepageLimit(popr, false) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &LinuxHugepageLimit{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + littlefuzz := make([]byte, len(dAtA)) + copy(littlefuzz, dAtA) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } + if len(littlefuzz) > 0 { + fuzzamount := 100 + for i := 0; i < fuzzamount; i++ { + littlefuzz[popr.Intn(len(littlefuzz))] = byte(popr.Intn(256)) + littlefuzz = append(littlefuzz, byte(popr.Intn(256))) + } + // shouldn't panic + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + } +} + +func TestLinuxHugepageLimitMarshalTo(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxHugepageLimit(popr, false) + size := p.Size() + dAtA := make([]byte, size) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + _, err := p.MarshalTo(dAtA) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &LinuxHugepageLimit{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func BenchmarkLinuxHugepageLimitProtoMarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*LinuxHugepageLimit, 10000) + for i := 0; i < 10000; i++ { + pops[i] = NewPopulatedLinuxHugepageLimit(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + if err != nil { + panic(err) + } + total += len(dAtA) + } + b.SetBytes(int64(total / b.N)) +} + +func BenchmarkLinuxHugepageLimitProtoUnmarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + datas := make([][]byte, 10000) + for i := 0; i < 10000; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedLinuxHugepageLimit(popr, false)) + if err != nil { + panic(err) + } + datas[i] = dAtA + } + msg := &LinuxHugepageLimit{} + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += len(datas[i%10000]) + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + panic(err) + } + } + b.SetBytes(int64(total / b.N)) +} + +func TestLinuxInterfacePriorityProto(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxInterfacePriority(popr, false) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &LinuxInterfacePriority{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + littlefuzz := make([]byte, len(dAtA)) + copy(littlefuzz, dAtA) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } + if len(littlefuzz) > 0 { + fuzzamount := 100 + for i := 0; i < fuzzamount; i++ { + littlefuzz[popr.Intn(len(littlefuzz))] = byte(popr.Intn(256)) + littlefuzz = append(littlefuzz, byte(popr.Intn(256))) + } + // shouldn't panic + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + } +} + +func TestLinuxInterfacePriorityMarshalTo(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxInterfacePriority(popr, false) + size := p.Size() + dAtA := make([]byte, size) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + _, err := p.MarshalTo(dAtA) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &LinuxInterfacePriority{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func BenchmarkLinuxInterfacePriorityProtoMarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*LinuxInterfacePriority, 10000) + for i := 0; i < 10000; i++ { + pops[i] = NewPopulatedLinuxInterfacePriority(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + if err != nil { + panic(err) + } + total += len(dAtA) + } + b.SetBytes(int64(total / b.N)) +} + +func BenchmarkLinuxInterfacePriorityProtoUnmarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + datas := make([][]byte, 10000) + for i := 0; i < 10000; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedLinuxInterfacePriority(popr, false)) + if err != nil { + panic(err) + } + datas[i] = dAtA + } + msg := &LinuxInterfacePriority{} + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += len(datas[i%10000]) + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + panic(err) + } + } + b.SetBytes(int64(total / b.N)) +} + +func TestLinuxSeccompProto(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxSeccomp(popr, false) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &LinuxSeccomp{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + littlefuzz := make([]byte, len(dAtA)) + copy(littlefuzz, dAtA) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } + if len(littlefuzz) > 0 { + fuzzamount := 100 + for i := 0; i < fuzzamount; i++ { + littlefuzz[popr.Intn(len(littlefuzz))] = byte(popr.Intn(256)) + littlefuzz = append(littlefuzz, byte(popr.Intn(256))) + } + // shouldn't panic + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + } +} + +func TestLinuxSeccompMarshalTo(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxSeccomp(popr, false) + size := p.Size() + dAtA := make([]byte, size) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + _, err := p.MarshalTo(dAtA) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &LinuxSeccomp{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func BenchmarkLinuxSeccompProtoMarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*LinuxSeccomp, 10000) + for i := 0; i < 10000; i++ { + pops[i] = NewPopulatedLinuxSeccomp(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + if err != nil { + panic(err) + } + total += len(dAtA) + } + b.SetBytes(int64(total / b.N)) +} + +func BenchmarkLinuxSeccompProtoUnmarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + datas := make([][]byte, 10000) + for i := 0; i < 10000; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedLinuxSeccomp(popr, false)) + if err != nil { + panic(err) + } + datas[i] = dAtA + } + msg := &LinuxSeccomp{} + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += len(datas[i%10000]) + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + panic(err) + } + } + b.SetBytes(int64(total / b.N)) +} + +func TestLinuxSeccompArgProto(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxSeccompArg(popr, false) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &LinuxSeccompArg{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + littlefuzz := make([]byte, len(dAtA)) + copy(littlefuzz, dAtA) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } + if len(littlefuzz) > 0 { + fuzzamount := 100 + for i := 0; i < fuzzamount; i++ { + littlefuzz[popr.Intn(len(littlefuzz))] = byte(popr.Intn(256)) + littlefuzz = append(littlefuzz, byte(popr.Intn(256))) + } + // shouldn't panic + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + } +} + +func TestLinuxSeccompArgMarshalTo(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxSeccompArg(popr, false) + size := p.Size() + dAtA := make([]byte, size) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + _, err := p.MarshalTo(dAtA) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &LinuxSeccompArg{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func BenchmarkLinuxSeccompArgProtoMarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*LinuxSeccompArg, 10000) + for i := 0; i < 10000; i++ { + pops[i] = NewPopulatedLinuxSeccompArg(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + if err != nil { + panic(err) + } + total += len(dAtA) + } + b.SetBytes(int64(total / b.N)) +} + +func BenchmarkLinuxSeccompArgProtoUnmarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + datas := make([][]byte, 10000) + for i := 0; i < 10000; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedLinuxSeccompArg(popr, false)) + if err != nil { + panic(err) + } + datas[i] = dAtA + } + msg := &LinuxSeccompArg{} + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += len(datas[i%10000]) + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + panic(err) + } + } + b.SetBytes(int64(total / b.N)) +} + +func TestLinuxSyscallProto(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxSyscall(popr, false) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &LinuxSyscall{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + littlefuzz := make([]byte, len(dAtA)) + copy(littlefuzz, dAtA) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } + if len(littlefuzz) > 0 { + fuzzamount := 100 + for i := 0; i < fuzzamount; i++ { + littlefuzz[popr.Intn(len(littlefuzz))] = byte(popr.Intn(256)) + littlefuzz = append(littlefuzz, byte(popr.Intn(256))) + } + // shouldn't panic + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + } +} + +func TestLinuxSyscallMarshalTo(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxSyscall(popr, false) + size := p.Size() + dAtA := make([]byte, size) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + _, err := p.MarshalTo(dAtA) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &LinuxSyscall{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func BenchmarkLinuxSyscallProtoMarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*LinuxSyscall, 10000) + for i := 0; i < 10000; i++ { + pops[i] = NewPopulatedLinuxSyscall(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + if err != nil { + panic(err) + } + total += len(dAtA) + } + b.SetBytes(int64(total / b.N)) +} + +func BenchmarkLinuxSyscallProtoUnmarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + datas := make([][]byte, 10000) + for i := 0; i < 10000; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedLinuxSyscall(popr, false)) + if err != nil { + panic(err) + } + datas[i] = dAtA + } + msg := &LinuxSyscall{} + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += len(datas[i%10000]) + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + panic(err) + } + } + b.SetBytes(int64(total / b.N)) +} + +func TestLinuxIntelRdtProto(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxIntelRdt(popr, false) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &LinuxIntelRdt{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + littlefuzz := make([]byte, len(dAtA)) + copy(littlefuzz, dAtA) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } + if len(littlefuzz) > 0 { + fuzzamount := 100 + for i := 0; i < fuzzamount; i++ { + littlefuzz[popr.Intn(len(littlefuzz))] = byte(popr.Intn(256)) + littlefuzz = append(littlefuzz, byte(popr.Intn(256))) + } + // shouldn't panic + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + } +} + +func TestLinuxIntelRdtMarshalTo(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxIntelRdt(popr, false) + size := p.Size() + dAtA := make([]byte, size) + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + _, err := p.MarshalTo(dAtA) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &LinuxIntelRdt{} + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + for i := range dAtA { + dAtA[i] = byte(popr.Intn(256)) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func BenchmarkLinuxIntelRdtProtoMarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*LinuxIntelRdt, 10000) + for i := 0; i < 10000; i++ { + pops[i] = NewPopulatedLinuxIntelRdt(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + if err != nil { + panic(err) + } + total += len(dAtA) + } + b.SetBytes(int64(total / b.N)) +} + +func BenchmarkLinuxIntelRdtProtoUnmarshal(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + datas := make([][]byte, 10000) + for i := 0; i < 10000; i++ { + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedLinuxIntelRdt(popr, false)) + if err != nil { + panic(err) + } + datas[i] = dAtA + } + msg := &LinuxIntelRdt{} + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += len(datas[i%10000]) + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + panic(err) + } + } + b.SetBytes(int64(total / b.N)) +} + +func TestSpecJSON(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedSpec(popr, true) + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + jsondata, err := marshaler.MarshalToString(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &Spec{} + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Json Equal %#v", seed, msg, p) + } +} +func TestProcessJSON(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedProcess(popr, true) + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + jsondata, err := marshaler.MarshalToString(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &Process{} + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Json Equal %#v", seed, msg, p) + } +} +func TestBoxJSON(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedBox(popr, true) + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + jsondata, err := marshaler.MarshalToString(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &Box{} + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Json Equal %#v", seed, msg, p) + } +} +func TestUserJSON(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedUser(popr, true) + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + jsondata, err := marshaler.MarshalToString(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &User{} + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Json Equal %#v", seed, msg, p) + } +} +func TestLinuxCapabilitiesJSON(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxCapabilities(popr, true) + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + jsondata, err := marshaler.MarshalToString(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &LinuxCapabilities{} + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Json Equal %#v", seed, msg, p) + } +} +func TestPOSIXRlimitJSON(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedPOSIXRlimit(popr, true) + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + jsondata, err := marshaler.MarshalToString(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &POSIXRlimit{} + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Json Equal %#v", seed, msg, p) + } +} +func TestMountJSON(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedMount(popr, true) + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + jsondata, err := marshaler.MarshalToString(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &Mount{} + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Json Equal %#v", seed, msg, p) + } +} +func TestRootJSON(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedRoot(popr, true) + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + jsondata, err := marshaler.MarshalToString(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &Root{} + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Json Equal %#v", seed, msg, p) + } +} +func TestHooksJSON(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedHooks(popr, true) + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + jsondata, err := marshaler.MarshalToString(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &Hooks{} + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Json Equal %#v", seed, msg, p) + } +} +func TestHookJSON(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedHook(popr, true) + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + jsondata, err := marshaler.MarshalToString(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &Hook{} + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Json Equal %#v", seed, msg, p) + } +} +func TestLinuxJSON(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinux(popr, true) + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + jsondata, err := marshaler.MarshalToString(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &Linux{} + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Json Equal %#v", seed, msg, p) + } +} +func TestWindowsJSON(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedWindows(popr, true) + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + jsondata, err := marshaler.MarshalToString(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &Windows{} + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Json Equal %#v", seed, msg, p) + } +} +func TestSolarisJSON(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedSolaris(popr, true) + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + jsondata, err := marshaler.MarshalToString(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &Solaris{} + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Json Equal %#v", seed, msg, p) + } +} +func TestLinuxIDMappingJSON(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxIDMapping(popr, true) + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + jsondata, err := marshaler.MarshalToString(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &LinuxIDMapping{} + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Json Equal %#v", seed, msg, p) + } +} +func TestLinuxNamespaceJSON(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxNamespace(popr, true) + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + jsondata, err := marshaler.MarshalToString(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &LinuxNamespace{} + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Json Equal %#v", seed, msg, p) + } +} +func TestLinuxDeviceJSON(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxDevice(popr, true) + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + jsondata, err := marshaler.MarshalToString(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &LinuxDevice{} + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Json Equal %#v", seed, msg, p) + } +} +func TestLinuxResourcesJSON(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxResources(popr, true) + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + jsondata, err := marshaler.MarshalToString(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &LinuxResources{} + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Json Equal %#v", seed, msg, p) + } +} +func TestLinuxMemoryJSON(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxMemory(popr, true) + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + jsondata, err := marshaler.MarshalToString(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &LinuxMemory{} + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Json Equal %#v", seed, msg, p) + } +} +func TestLinuxCPUJSON(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxCPU(popr, true) + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + jsondata, err := marshaler.MarshalToString(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &LinuxCPU{} + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Json Equal %#v", seed, msg, p) + } +} +func TestLinuxWeightDeviceJSON(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxWeightDevice(popr, true) + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + jsondata, err := marshaler.MarshalToString(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &LinuxWeightDevice{} + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Json Equal %#v", seed, msg, p) + } +} +func TestLinuxThrottleDeviceJSON(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxThrottleDevice(popr, true) + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + jsondata, err := marshaler.MarshalToString(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &LinuxThrottleDevice{} + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Json Equal %#v", seed, msg, p) + } +} +func TestLinuxBlockIOJSON(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxBlockIO(popr, true) + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + jsondata, err := marshaler.MarshalToString(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &LinuxBlockIO{} + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Json Equal %#v", seed, msg, p) + } +} +func TestLinuxPidsJSON(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxPids(popr, true) + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + jsondata, err := marshaler.MarshalToString(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &LinuxPids{} + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Json Equal %#v", seed, msg, p) + } +} +func TestLinuxDeviceCgroupJSON(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxDeviceCgroup(popr, true) + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + jsondata, err := marshaler.MarshalToString(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &LinuxDeviceCgroup{} + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Json Equal %#v", seed, msg, p) + } +} +func TestLinuxNetworkJSON(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxNetwork(popr, true) + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + jsondata, err := marshaler.MarshalToString(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &LinuxNetwork{} + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Json Equal %#v", seed, msg, p) + } +} +func TestLinuxHugepageLimitJSON(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxHugepageLimit(popr, true) + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + jsondata, err := marshaler.MarshalToString(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &LinuxHugepageLimit{} + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Json Equal %#v", seed, msg, p) + } +} +func TestLinuxInterfacePriorityJSON(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxInterfacePriority(popr, true) + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + jsondata, err := marshaler.MarshalToString(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &LinuxInterfacePriority{} + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Json Equal %#v", seed, msg, p) + } +} +func TestLinuxSeccompJSON(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxSeccomp(popr, true) + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + jsondata, err := marshaler.MarshalToString(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &LinuxSeccomp{} + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Json Equal %#v", seed, msg, p) + } +} +func TestLinuxSeccompArgJSON(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxSeccompArg(popr, true) + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + jsondata, err := marshaler.MarshalToString(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &LinuxSeccompArg{} + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Json Equal %#v", seed, msg, p) + } +} +func TestLinuxSyscallJSON(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxSyscall(popr, true) + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + jsondata, err := marshaler.MarshalToString(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &LinuxSyscall{} + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Json Equal %#v", seed, msg, p) + } +} +func TestLinuxIntelRdtJSON(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxIntelRdt(popr, true) + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + jsondata, err := marshaler.MarshalToString(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + msg := &LinuxIntelRdt{} + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Json Equal %#v", seed, msg, p) + } +} +func TestSpecProtoText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedSpec(popr, true) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + msg := &Spec{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestSpecProtoCompactText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedSpec(popr, true) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + msg := &Spec{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestProcessProtoText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedProcess(popr, true) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + msg := &Process{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestProcessProtoCompactText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedProcess(popr, true) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + msg := &Process{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestBoxProtoText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedBox(popr, true) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + msg := &Box{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestBoxProtoCompactText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedBox(popr, true) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + msg := &Box{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestUserProtoText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedUser(popr, true) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + msg := &User{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestUserProtoCompactText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedUser(popr, true) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + msg := &User{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestLinuxCapabilitiesProtoText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxCapabilities(popr, true) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + msg := &LinuxCapabilities{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestLinuxCapabilitiesProtoCompactText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxCapabilities(popr, true) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + msg := &LinuxCapabilities{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestPOSIXRlimitProtoText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedPOSIXRlimit(popr, true) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + msg := &POSIXRlimit{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestPOSIXRlimitProtoCompactText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedPOSIXRlimit(popr, true) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + msg := &POSIXRlimit{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestMountProtoText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedMount(popr, true) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + msg := &Mount{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestMountProtoCompactText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedMount(popr, true) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + msg := &Mount{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestRootProtoText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedRoot(popr, true) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + msg := &Root{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestRootProtoCompactText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedRoot(popr, true) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + msg := &Root{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestHooksProtoText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedHooks(popr, true) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + msg := &Hooks{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestHooksProtoCompactText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedHooks(popr, true) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + msg := &Hooks{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestHookProtoText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedHook(popr, true) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + msg := &Hook{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestHookProtoCompactText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedHook(popr, true) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + msg := &Hook{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestLinuxProtoText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinux(popr, true) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + msg := &Linux{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestLinuxProtoCompactText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinux(popr, true) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + msg := &Linux{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestWindowsProtoText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedWindows(popr, true) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + msg := &Windows{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestWindowsProtoCompactText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedWindows(popr, true) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + msg := &Windows{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestSolarisProtoText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedSolaris(popr, true) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + msg := &Solaris{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestSolarisProtoCompactText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedSolaris(popr, true) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + msg := &Solaris{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestLinuxIDMappingProtoText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxIDMapping(popr, true) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + msg := &LinuxIDMapping{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestLinuxIDMappingProtoCompactText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxIDMapping(popr, true) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + msg := &LinuxIDMapping{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestLinuxNamespaceProtoText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxNamespace(popr, true) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + msg := &LinuxNamespace{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestLinuxNamespaceProtoCompactText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxNamespace(popr, true) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + msg := &LinuxNamespace{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestLinuxDeviceProtoText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxDevice(popr, true) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + msg := &LinuxDevice{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestLinuxDeviceProtoCompactText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxDevice(popr, true) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + msg := &LinuxDevice{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestLinuxResourcesProtoText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxResources(popr, true) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + msg := &LinuxResources{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestLinuxResourcesProtoCompactText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxResources(popr, true) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + msg := &LinuxResources{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestLinuxMemoryProtoText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxMemory(popr, true) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + msg := &LinuxMemory{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestLinuxMemoryProtoCompactText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxMemory(popr, true) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + msg := &LinuxMemory{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestLinuxCPUProtoText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxCPU(popr, true) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + msg := &LinuxCPU{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestLinuxCPUProtoCompactText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxCPU(popr, true) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + msg := &LinuxCPU{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestLinuxWeightDeviceProtoText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxWeightDevice(popr, true) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + msg := &LinuxWeightDevice{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestLinuxWeightDeviceProtoCompactText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxWeightDevice(popr, true) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + msg := &LinuxWeightDevice{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestLinuxThrottleDeviceProtoText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxThrottleDevice(popr, true) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + msg := &LinuxThrottleDevice{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestLinuxThrottleDeviceProtoCompactText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxThrottleDevice(popr, true) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + msg := &LinuxThrottleDevice{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestLinuxBlockIOProtoText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxBlockIO(popr, true) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + msg := &LinuxBlockIO{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestLinuxBlockIOProtoCompactText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxBlockIO(popr, true) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + msg := &LinuxBlockIO{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestLinuxPidsProtoText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxPids(popr, true) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + msg := &LinuxPids{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestLinuxPidsProtoCompactText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxPids(popr, true) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + msg := &LinuxPids{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestLinuxDeviceCgroupProtoText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxDeviceCgroup(popr, true) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + msg := &LinuxDeviceCgroup{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestLinuxDeviceCgroupProtoCompactText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxDeviceCgroup(popr, true) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + msg := &LinuxDeviceCgroup{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestLinuxNetworkProtoText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxNetwork(popr, true) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + msg := &LinuxNetwork{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestLinuxNetworkProtoCompactText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxNetwork(popr, true) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + msg := &LinuxNetwork{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestLinuxHugepageLimitProtoText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxHugepageLimit(popr, true) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + msg := &LinuxHugepageLimit{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestLinuxHugepageLimitProtoCompactText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxHugepageLimit(popr, true) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + msg := &LinuxHugepageLimit{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestLinuxInterfacePriorityProtoText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxInterfacePriority(popr, true) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + msg := &LinuxInterfacePriority{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestLinuxInterfacePriorityProtoCompactText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxInterfacePriority(popr, true) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + msg := &LinuxInterfacePriority{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestLinuxSeccompProtoText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxSeccomp(popr, true) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + msg := &LinuxSeccomp{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestLinuxSeccompProtoCompactText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxSeccomp(popr, true) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + msg := &LinuxSeccomp{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestLinuxSeccompArgProtoText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxSeccompArg(popr, true) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + msg := &LinuxSeccompArg{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestLinuxSeccompArgProtoCompactText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxSeccompArg(popr, true) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + msg := &LinuxSeccompArg{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestLinuxSyscallProtoText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxSyscall(popr, true) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + msg := &LinuxSyscall{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestLinuxSyscallProtoCompactText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxSyscall(popr, true) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + msg := &LinuxSyscall{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestLinuxIntelRdtProtoText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxIntelRdt(popr, true) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + msg := &LinuxIntelRdt{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestLinuxIntelRdtProtoCompactText(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxIntelRdt(popr, true) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + msg := &LinuxIntelRdt{} + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + if !p.Equal(msg) { + t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p) + } +} + +func TestSpecSize(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedSpec(popr, true) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + size := p.Size() + if len(dAtA) != size { + t.Errorf("seed = %d, size %v != marshalled size %v", seed, size, len(dAtA)) + } + if size2 != size { + t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) + } + size3 := github_com_gogo_protobuf_proto.Size(p) + if size3 != size { + t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) + } +} + +func BenchmarkSpecSize(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*Spec, 1000) + for i := 0; i < 1000; i++ { + pops[i] = NewPopulatedSpec(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += pops[i%1000].Size() + } + b.SetBytes(int64(total / b.N)) +} + +func TestProcessSize(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedProcess(popr, true) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + size := p.Size() + if len(dAtA) != size { + t.Errorf("seed = %d, size %v != marshalled size %v", seed, size, len(dAtA)) + } + if size2 != size { + t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) + } + size3 := github_com_gogo_protobuf_proto.Size(p) + if size3 != size { + t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) + } +} + +func BenchmarkProcessSize(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*Process, 1000) + for i := 0; i < 1000; i++ { + pops[i] = NewPopulatedProcess(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += pops[i%1000].Size() + } + b.SetBytes(int64(total / b.N)) +} + +func TestBoxSize(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedBox(popr, true) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + size := p.Size() + if len(dAtA) != size { + t.Errorf("seed = %d, size %v != marshalled size %v", seed, size, len(dAtA)) + } + if size2 != size { + t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) + } + size3 := github_com_gogo_protobuf_proto.Size(p) + if size3 != size { + t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) + } +} + +func BenchmarkBoxSize(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*Box, 1000) + for i := 0; i < 1000; i++ { + pops[i] = NewPopulatedBox(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += pops[i%1000].Size() + } + b.SetBytes(int64(total / b.N)) +} + +func TestUserSize(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedUser(popr, true) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + size := p.Size() + if len(dAtA) != size { + t.Errorf("seed = %d, size %v != marshalled size %v", seed, size, len(dAtA)) + } + if size2 != size { + t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) + } + size3 := github_com_gogo_protobuf_proto.Size(p) + if size3 != size { + t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) + } +} + +func BenchmarkUserSize(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*User, 1000) + for i := 0; i < 1000; i++ { + pops[i] = NewPopulatedUser(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += pops[i%1000].Size() + } + b.SetBytes(int64(total / b.N)) +} + +func TestLinuxCapabilitiesSize(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxCapabilities(popr, true) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + size := p.Size() + if len(dAtA) != size { + t.Errorf("seed = %d, size %v != marshalled size %v", seed, size, len(dAtA)) + } + if size2 != size { + t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) + } + size3 := github_com_gogo_protobuf_proto.Size(p) + if size3 != size { + t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) + } +} + +func BenchmarkLinuxCapabilitiesSize(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*LinuxCapabilities, 1000) + for i := 0; i < 1000; i++ { + pops[i] = NewPopulatedLinuxCapabilities(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += pops[i%1000].Size() + } + b.SetBytes(int64(total / b.N)) +} + +func TestPOSIXRlimitSize(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedPOSIXRlimit(popr, true) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + size := p.Size() + if len(dAtA) != size { + t.Errorf("seed = %d, size %v != marshalled size %v", seed, size, len(dAtA)) + } + if size2 != size { + t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) + } + size3 := github_com_gogo_protobuf_proto.Size(p) + if size3 != size { + t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) + } +} + +func BenchmarkPOSIXRlimitSize(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*POSIXRlimit, 1000) + for i := 0; i < 1000; i++ { + pops[i] = NewPopulatedPOSIXRlimit(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += pops[i%1000].Size() + } + b.SetBytes(int64(total / b.N)) +} + +func TestMountSize(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedMount(popr, true) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + size := p.Size() + if len(dAtA) != size { + t.Errorf("seed = %d, size %v != marshalled size %v", seed, size, len(dAtA)) + } + if size2 != size { + t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) + } + size3 := github_com_gogo_protobuf_proto.Size(p) + if size3 != size { + t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) + } +} + +func BenchmarkMountSize(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*Mount, 1000) + for i := 0; i < 1000; i++ { + pops[i] = NewPopulatedMount(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += pops[i%1000].Size() + } + b.SetBytes(int64(total / b.N)) +} + +func TestRootSize(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedRoot(popr, true) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + size := p.Size() + if len(dAtA) != size { + t.Errorf("seed = %d, size %v != marshalled size %v", seed, size, len(dAtA)) + } + if size2 != size { + t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) + } + size3 := github_com_gogo_protobuf_proto.Size(p) + if size3 != size { + t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) + } +} + +func BenchmarkRootSize(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*Root, 1000) + for i := 0; i < 1000; i++ { + pops[i] = NewPopulatedRoot(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += pops[i%1000].Size() + } + b.SetBytes(int64(total / b.N)) +} + +func TestHooksSize(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedHooks(popr, true) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + size := p.Size() + if len(dAtA) != size { + t.Errorf("seed = %d, size %v != marshalled size %v", seed, size, len(dAtA)) + } + if size2 != size { + t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) + } + size3 := github_com_gogo_protobuf_proto.Size(p) + if size3 != size { + t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) + } +} + +func BenchmarkHooksSize(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*Hooks, 1000) + for i := 0; i < 1000; i++ { + pops[i] = NewPopulatedHooks(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += pops[i%1000].Size() + } + b.SetBytes(int64(total / b.N)) +} + +func TestHookSize(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedHook(popr, true) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + size := p.Size() + if len(dAtA) != size { + t.Errorf("seed = %d, size %v != marshalled size %v", seed, size, len(dAtA)) + } + if size2 != size { + t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) + } + size3 := github_com_gogo_protobuf_proto.Size(p) + if size3 != size { + t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) + } +} + +func BenchmarkHookSize(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*Hook, 1000) + for i := 0; i < 1000; i++ { + pops[i] = NewPopulatedHook(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += pops[i%1000].Size() + } + b.SetBytes(int64(total / b.N)) +} + +func TestLinuxSize(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinux(popr, true) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + size := p.Size() + if len(dAtA) != size { + t.Errorf("seed = %d, size %v != marshalled size %v", seed, size, len(dAtA)) + } + if size2 != size { + t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) + } + size3 := github_com_gogo_protobuf_proto.Size(p) + if size3 != size { + t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) + } +} + +func BenchmarkLinuxSize(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*Linux, 1000) + for i := 0; i < 1000; i++ { + pops[i] = NewPopulatedLinux(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += pops[i%1000].Size() + } + b.SetBytes(int64(total / b.N)) +} + +func TestWindowsSize(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedWindows(popr, true) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + size := p.Size() + if len(dAtA) != size { + t.Errorf("seed = %d, size %v != marshalled size %v", seed, size, len(dAtA)) + } + if size2 != size { + t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) + } + size3 := github_com_gogo_protobuf_proto.Size(p) + if size3 != size { + t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) + } +} + +func BenchmarkWindowsSize(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*Windows, 1000) + for i := 0; i < 1000; i++ { + pops[i] = NewPopulatedWindows(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += pops[i%1000].Size() + } + b.SetBytes(int64(total / b.N)) +} + +func TestSolarisSize(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedSolaris(popr, true) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + size := p.Size() + if len(dAtA) != size { + t.Errorf("seed = %d, size %v != marshalled size %v", seed, size, len(dAtA)) + } + if size2 != size { + t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) + } + size3 := github_com_gogo_protobuf_proto.Size(p) + if size3 != size { + t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) + } +} + +func BenchmarkSolarisSize(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*Solaris, 1000) + for i := 0; i < 1000; i++ { + pops[i] = NewPopulatedSolaris(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += pops[i%1000].Size() + } + b.SetBytes(int64(total / b.N)) +} + +func TestLinuxIDMappingSize(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxIDMapping(popr, true) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + size := p.Size() + if len(dAtA) != size { + t.Errorf("seed = %d, size %v != marshalled size %v", seed, size, len(dAtA)) + } + if size2 != size { + t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) + } + size3 := github_com_gogo_protobuf_proto.Size(p) + if size3 != size { + t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) + } +} + +func BenchmarkLinuxIDMappingSize(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*LinuxIDMapping, 1000) + for i := 0; i < 1000; i++ { + pops[i] = NewPopulatedLinuxIDMapping(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += pops[i%1000].Size() + } + b.SetBytes(int64(total / b.N)) +} + +func TestLinuxNamespaceSize(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxNamespace(popr, true) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + size := p.Size() + if len(dAtA) != size { + t.Errorf("seed = %d, size %v != marshalled size %v", seed, size, len(dAtA)) + } + if size2 != size { + t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) + } + size3 := github_com_gogo_protobuf_proto.Size(p) + if size3 != size { + t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) + } +} + +func BenchmarkLinuxNamespaceSize(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*LinuxNamespace, 1000) + for i := 0; i < 1000; i++ { + pops[i] = NewPopulatedLinuxNamespace(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += pops[i%1000].Size() + } + b.SetBytes(int64(total / b.N)) +} + +func TestLinuxDeviceSize(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxDevice(popr, true) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + size := p.Size() + if len(dAtA) != size { + t.Errorf("seed = %d, size %v != marshalled size %v", seed, size, len(dAtA)) + } + if size2 != size { + t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) + } + size3 := github_com_gogo_protobuf_proto.Size(p) + if size3 != size { + t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) + } +} + +func BenchmarkLinuxDeviceSize(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*LinuxDevice, 1000) + for i := 0; i < 1000; i++ { + pops[i] = NewPopulatedLinuxDevice(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += pops[i%1000].Size() + } + b.SetBytes(int64(total / b.N)) +} + +func TestLinuxResourcesSize(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxResources(popr, true) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + size := p.Size() + if len(dAtA) != size { + t.Errorf("seed = %d, size %v != marshalled size %v", seed, size, len(dAtA)) + } + if size2 != size { + t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) + } + size3 := github_com_gogo_protobuf_proto.Size(p) + if size3 != size { + t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) + } +} + +func BenchmarkLinuxResourcesSize(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*LinuxResources, 1000) + for i := 0; i < 1000; i++ { + pops[i] = NewPopulatedLinuxResources(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += pops[i%1000].Size() + } + b.SetBytes(int64(total / b.N)) +} + +func TestLinuxMemorySize(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxMemory(popr, true) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + size := p.Size() + if len(dAtA) != size { + t.Errorf("seed = %d, size %v != marshalled size %v", seed, size, len(dAtA)) + } + if size2 != size { + t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) + } + size3 := github_com_gogo_protobuf_proto.Size(p) + if size3 != size { + t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) + } +} + +func BenchmarkLinuxMemorySize(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*LinuxMemory, 1000) + for i := 0; i < 1000; i++ { + pops[i] = NewPopulatedLinuxMemory(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += pops[i%1000].Size() + } + b.SetBytes(int64(total / b.N)) +} + +func TestLinuxCPUSize(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxCPU(popr, true) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + size := p.Size() + if len(dAtA) != size { + t.Errorf("seed = %d, size %v != marshalled size %v", seed, size, len(dAtA)) + } + if size2 != size { + t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) + } + size3 := github_com_gogo_protobuf_proto.Size(p) + if size3 != size { + t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) + } +} + +func BenchmarkLinuxCPUSize(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*LinuxCPU, 1000) + for i := 0; i < 1000; i++ { + pops[i] = NewPopulatedLinuxCPU(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += pops[i%1000].Size() + } + b.SetBytes(int64(total / b.N)) +} + +func TestLinuxWeightDeviceSize(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxWeightDevice(popr, true) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + size := p.Size() + if len(dAtA) != size { + t.Errorf("seed = %d, size %v != marshalled size %v", seed, size, len(dAtA)) + } + if size2 != size { + t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) + } + size3 := github_com_gogo_protobuf_proto.Size(p) + if size3 != size { + t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) + } +} + +func BenchmarkLinuxWeightDeviceSize(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*LinuxWeightDevice, 1000) + for i := 0; i < 1000; i++ { + pops[i] = NewPopulatedLinuxWeightDevice(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += pops[i%1000].Size() + } + b.SetBytes(int64(total / b.N)) +} + +func TestLinuxThrottleDeviceSize(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxThrottleDevice(popr, true) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + size := p.Size() + if len(dAtA) != size { + t.Errorf("seed = %d, size %v != marshalled size %v", seed, size, len(dAtA)) + } + if size2 != size { + t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) + } + size3 := github_com_gogo_protobuf_proto.Size(p) + if size3 != size { + t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) + } +} + +func BenchmarkLinuxThrottleDeviceSize(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*LinuxThrottleDevice, 1000) + for i := 0; i < 1000; i++ { + pops[i] = NewPopulatedLinuxThrottleDevice(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += pops[i%1000].Size() + } + b.SetBytes(int64(total / b.N)) +} + +func TestLinuxBlockIOSize(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxBlockIO(popr, true) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + size := p.Size() + if len(dAtA) != size { + t.Errorf("seed = %d, size %v != marshalled size %v", seed, size, len(dAtA)) + } + if size2 != size { + t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) + } + size3 := github_com_gogo_protobuf_proto.Size(p) + if size3 != size { + t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) + } +} + +func BenchmarkLinuxBlockIOSize(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*LinuxBlockIO, 1000) + for i := 0; i < 1000; i++ { + pops[i] = NewPopulatedLinuxBlockIO(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += pops[i%1000].Size() + } + b.SetBytes(int64(total / b.N)) +} + +func TestLinuxPidsSize(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxPids(popr, true) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + size := p.Size() + if len(dAtA) != size { + t.Errorf("seed = %d, size %v != marshalled size %v", seed, size, len(dAtA)) + } + if size2 != size { + t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) + } + size3 := github_com_gogo_protobuf_proto.Size(p) + if size3 != size { + t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) + } +} + +func BenchmarkLinuxPidsSize(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*LinuxPids, 1000) + for i := 0; i < 1000; i++ { + pops[i] = NewPopulatedLinuxPids(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += pops[i%1000].Size() + } + b.SetBytes(int64(total / b.N)) +} + +func TestLinuxDeviceCgroupSize(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxDeviceCgroup(popr, true) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + size := p.Size() + if len(dAtA) != size { + t.Errorf("seed = %d, size %v != marshalled size %v", seed, size, len(dAtA)) + } + if size2 != size { + t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) + } + size3 := github_com_gogo_protobuf_proto.Size(p) + if size3 != size { + t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) + } +} + +func BenchmarkLinuxDeviceCgroupSize(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*LinuxDeviceCgroup, 1000) + for i := 0; i < 1000; i++ { + pops[i] = NewPopulatedLinuxDeviceCgroup(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += pops[i%1000].Size() + } + b.SetBytes(int64(total / b.N)) +} + +func TestLinuxNetworkSize(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxNetwork(popr, true) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + size := p.Size() + if len(dAtA) != size { + t.Errorf("seed = %d, size %v != marshalled size %v", seed, size, len(dAtA)) + } + if size2 != size { + t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) + } + size3 := github_com_gogo_protobuf_proto.Size(p) + if size3 != size { + t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) + } +} + +func BenchmarkLinuxNetworkSize(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*LinuxNetwork, 1000) + for i := 0; i < 1000; i++ { + pops[i] = NewPopulatedLinuxNetwork(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += pops[i%1000].Size() + } + b.SetBytes(int64(total / b.N)) +} + +func TestLinuxHugepageLimitSize(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxHugepageLimit(popr, true) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + size := p.Size() + if len(dAtA) != size { + t.Errorf("seed = %d, size %v != marshalled size %v", seed, size, len(dAtA)) + } + if size2 != size { + t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) + } + size3 := github_com_gogo_protobuf_proto.Size(p) + if size3 != size { + t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) + } +} + +func BenchmarkLinuxHugepageLimitSize(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*LinuxHugepageLimit, 1000) + for i := 0; i < 1000; i++ { + pops[i] = NewPopulatedLinuxHugepageLimit(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += pops[i%1000].Size() + } + b.SetBytes(int64(total / b.N)) +} + +func TestLinuxInterfacePrioritySize(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxInterfacePriority(popr, true) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + size := p.Size() + if len(dAtA) != size { + t.Errorf("seed = %d, size %v != marshalled size %v", seed, size, len(dAtA)) + } + if size2 != size { + t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) + } + size3 := github_com_gogo_protobuf_proto.Size(p) + if size3 != size { + t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) + } +} + +func BenchmarkLinuxInterfacePrioritySize(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*LinuxInterfacePriority, 1000) + for i := 0; i < 1000; i++ { + pops[i] = NewPopulatedLinuxInterfacePriority(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += pops[i%1000].Size() + } + b.SetBytes(int64(total / b.N)) +} + +func TestLinuxSeccompSize(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxSeccomp(popr, true) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + size := p.Size() + if len(dAtA) != size { + t.Errorf("seed = %d, size %v != marshalled size %v", seed, size, len(dAtA)) + } + if size2 != size { + t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) + } + size3 := github_com_gogo_protobuf_proto.Size(p) + if size3 != size { + t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) + } +} + +func BenchmarkLinuxSeccompSize(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*LinuxSeccomp, 1000) + for i := 0; i < 1000; i++ { + pops[i] = NewPopulatedLinuxSeccomp(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += pops[i%1000].Size() + } + b.SetBytes(int64(total / b.N)) +} + +func TestLinuxSeccompArgSize(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxSeccompArg(popr, true) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + size := p.Size() + if len(dAtA) != size { + t.Errorf("seed = %d, size %v != marshalled size %v", seed, size, len(dAtA)) + } + if size2 != size { + t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) + } + size3 := github_com_gogo_protobuf_proto.Size(p) + if size3 != size { + t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) + } +} + +func BenchmarkLinuxSeccompArgSize(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*LinuxSeccompArg, 1000) + for i := 0; i < 1000; i++ { + pops[i] = NewPopulatedLinuxSeccompArg(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += pops[i%1000].Size() + } + b.SetBytes(int64(total / b.N)) +} + +func TestLinuxSyscallSize(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxSyscall(popr, true) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + size := p.Size() + if len(dAtA) != size { + t.Errorf("seed = %d, size %v != marshalled size %v", seed, size, len(dAtA)) + } + if size2 != size { + t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) + } + size3 := github_com_gogo_protobuf_proto.Size(p) + if size3 != size { + t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) + } +} + +func BenchmarkLinuxSyscallSize(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*LinuxSyscall, 1000) + for i := 0; i < 1000; i++ { + pops[i] = NewPopulatedLinuxSyscall(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += pops[i%1000].Size() + } + b.SetBytes(int64(total / b.N)) +} + +func TestLinuxIntelRdtSize(t *testing.T) { + seed := time.Now().UnixNano() + popr := math_rand.New(math_rand.NewSource(seed)) + p := NewPopulatedLinuxIntelRdt(popr, true) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + if err != nil { + t.Fatalf("seed = %d, err = %v", seed, err) + } + size := p.Size() + if len(dAtA) != size { + t.Errorf("seed = %d, size %v != marshalled size %v", seed, size, len(dAtA)) + } + if size2 != size { + t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) + } + size3 := github_com_gogo_protobuf_proto.Size(p) + if size3 != size { + t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) + } +} + +func BenchmarkLinuxIntelRdtSize(b *testing.B) { + popr := math_rand.New(math_rand.NewSource(616)) + total := 0 + pops := make([]*LinuxIntelRdt, 1000) + for i := 0; i < 1000; i++ { + pops[i] = NewPopulatedLinuxIntelRdt(popr, false) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + total += pops[i%1000].Size() + } + b.SetBytes(int64(total / b.N)) +} + +func TestSpecStringer(t *testing.T) { + popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano())) + p := NewPopulatedSpec(popr, false) + s1 := p.String() + s2 := fmt.Sprintf("%v", p) + if s1 != s2 { + t.Fatalf("String want %v got %v", s1, s2) + } +} +func TestProcessStringer(t *testing.T) { + popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano())) + p := NewPopulatedProcess(popr, false) + s1 := p.String() + s2 := fmt.Sprintf("%v", p) + if s1 != s2 { + t.Fatalf("String want %v got %v", s1, s2) + } +} +func TestBoxStringer(t *testing.T) { + popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano())) + p := NewPopulatedBox(popr, false) + s1 := p.String() + s2 := fmt.Sprintf("%v", p) + if s1 != s2 { + t.Fatalf("String want %v got %v", s1, s2) + } +} +func TestUserStringer(t *testing.T) { + popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano())) + p := NewPopulatedUser(popr, false) + s1 := p.String() + s2 := fmt.Sprintf("%v", p) + if s1 != s2 { + t.Fatalf("String want %v got %v", s1, s2) + } +} +func TestLinuxCapabilitiesStringer(t *testing.T) { + popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano())) + p := NewPopulatedLinuxCapabilities(popr, false) + s1 := p.String() + s2 := fmt.Sprintf("%v", p) + if s1 != s2 { + t.Fatalf("String want %v got %v", s1, s2) + } +} +func TestPOSIXRlimitStringer(t *testing.T) { + popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano())) + p := NewPopulatedPOSIXRlimit(popr, false) + s1 := p.String() + s2 := fmt.Sprintf("%v", p) + if s1 != s2 { + t.Fatalf("String want %v got %v", s1, s2) + } +} +func TestMountStringer(t *testing.T) { + popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano())) + p := NewPopulatedMount(popr, false) + s1 := p.String() + s2 := fmt.Sprintf("%v", p) + if s1 != s2 { + t.Fatalf("String want %v got %v", s1, s2) + } +} +func TestRootStringer(t *testing.T) { + popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano())) + p := NewPopulatedRoot(popr, false) + s1 := p.String() + s2 := fmt.Sprintf("%v", p) + if s1 != s2 { + t.Fatalf("String want %v got %v", s1, s2) + } +} +func TestHooksStringer(t *testing.T) { + popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano())) + p := NewPopulatedHooks(popr, false) + s1 := p.String() + s2 := fmt.Sprintf("%v", p) + if s1 != s2 { + t.Fatalf("String want %v got %v", s1, s2) + } +} +func TestHookStringer(t *testing.T) { + popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano())) + p := NewPopulatedHook(popr, false) + s1 := p.String() + s2 := fmt.Sprintf("%v", p) + if s1 != s2 { + t.Fatalf("String want %v got %v", s1, s2) + } +} +func TestLinuxStringer(t *testing.T) { + popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano())) + p := NewPopulatedLinux(popr, false) + s1 := p.String() + s2 := fmt.Sprintf("%v", p) + if s1 != s2 { + t.Fatalf("String want %v got %v", s1, s2) + } +} +func TestWindowsStringer(t *testing.T) { + popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano())) + p := NewPopulatedWindows(popr, false) + s1 := p.String() + s2 := fmt.Sprintf("%v", p) + if s1 != s2 { + t.Fatalf("String want %v got %v", s1, s2) + } +} +func TestSolarisStringer(t *testing.T) { + popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano())) + p := NewPopulatedSolaris(popr, false) + s1 := p.String() + s2 := fmt.Sprintf("%v", p) + if s1 != s2 { + t.Fatalf("String want %v got %v", s1, s2) + } +} +func TestLinuxIDMappingStringer(t *testing.T) { + popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano())) + p := NewPopulatedLinuxIDMapping(popr, false) + s1 := p.String() + s2 := fmt.Sprintf("%v", p) + if s1 != s2 { + t.Fatalf("String want %v got %v", s1, s2) + } +} +func TestLinuxNamespaceStringer(t *testing.T) { + popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano())) + p := NewPopulatedLinuxNamespace(popr, false) + s1 := p.String() + s2 := fmt.Sprintf("%v", p) + if s1 != s2 { + t.Fatalf("String want %v got %v", s1, s2) + } +} +func TestLinuxDeviceStringer(t *testing.T) { + popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano())) + p := NewPopulatedLinuxDevice(popr, false) + s1 := p.String() + s2 := fmt.Sprintf("%v", p) + if s1 != s2 { + t.Fatalf("String want %v got %v", s1, s2) + } +} +func TestLinuxResourcesStringer(t *testing.T) { + popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano())) + p := NewPopulatedLinuxResources(popr, false) + s1 := p.String() + s2 := fmt.Sprintf("%v", p) + if s1 != s2 { + t.Fatalf("String want %v got %v", s1, s2) + } +} +func TestLinuxMemoryStringer(t *testing.T) { + popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano())) + p := NewPopulatedLinuxMemory(popr, false) + s1 := p.String() + s2 := fmt.Sprintf("%v", p) + if s1 != s2 { + t.Fatalf("String want %v got %v", s1, s2) + } +} +func TestLinuxCPUStringer(t *testing.T) { + popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano())) + p := NewPopulatedLinuxCPU(popr, false) + s1 := p.String() + s2 := fmt.Sprintf("%v", p) + if s1 != s2 { + t.Fatalf("String want %v got %v", s1, s2) + } +} +func TestLinuxWeightDeviceStringer(t *testing.T) { + popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano())) + p := NewPopulatedLinuxWeightDevice(popr, false) + s1 := p.String() + s2 := fmt.Sprintf("%v", p) + if s1 != s2 { + t.Fatalf("String want %v got %v", s1, s2) + } +} +func TestLinuxThrottleDeviceStringer(t *testing.T) { + popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano())) + p := NewPopulatedLinuxThrottleDevice(popr, false) + s1 := p.String() + s2 := fmt.Sprintf("%v", p) + if s1 != s2 { + t.Fatalf("String want %v got %v", s1, s2) + } +} +func TestLinuxBlockIOStringer(t *testing.T) { + popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano())) + p := NewPopulatedLinuxBlockIO(popr, false) + s1 := p.String() + s2 := fmt.Sprintf("%v", p) + if s1 != s2 { + t.Fatalf("String want %v got %v", s1, s2) + } +} +func TestLinuxPidsStringer(t *testing.T) { + popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano())) + p := NewPopulatedLinuxPids(popr, false) + s1 := p.String() + s2 := fmt.Sprintf("%v", p) + if s1 != s2 { + t.Fatalf("String want %v got %v", s1, s2) + } +} +func TestLinuxDeviceCgroupStringer(t *testing.T) { + popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano())) + p := NewPopulatedLinuxDeviceCgroup(popr, false) + s1 := p.String() + s2 := fmt.Sprintf("%v", p) + if s1 != s2 { + t.Fatalf("String want %v got %v", s1, s2) + } +} +func TestLinuxNetworkStringer(t *testing.T) { + popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano())) + p := NewPopulatedLinuxNetwork(popr, false) + s1 := p.String() + s2 := fmt.Sprintf("%v", p) + if s1 != s2 { + t.Fatalf("String want %v got %v", s1, s2) + } +} +func TestLinuxHugepageLimitStringer(t *testing.T) { + popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano())) + p := NewPopulatedLinuxHugepageLimit(popr, false) + s1 := p.String() + s2 := fmt.Sprintf("%v", p) + if s1 != s2 { + t.Fatalf("String want %v got %v", s1, s2) + } +} +func TestLinuxInterfacePriorityStringer(t *testing.T) { + popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano())) + p := NewPopulatedLinuxInterfacePriority(popr, false) + s1 := p.String() + s2 := fmt.Sprintf("%v", p) + if s1 != s2 { + t.Fatalf("String want %v got %v", s1, s2) + } +} +func TestLinuxSeccompStringer(t *testing.T) { + popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano())) + p := NewPopulatedLinuxSeccomp(popr, false) + s1 := p.String() + s2 := fmt.Sprintf("%v", p) + if s1 != s2 { + t.Fatalf("String want %v got %v", s1, s2) + } +} +func TestLinuxSeccompArgStringer(t *testing.T) { + popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano())) + p := NewPopulatedLinuxSeccompArg(popr, false) + s1 := p.String() + s2 := fmt.Sprintf("%v", p) + if s1 != s2 { + t.Fatalf("String want %v got %v", s1, s2) + } +} +func TestLinuxSyscallStringer(t *testing.T) { + popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano())) + p := NewPopulatedLinuxSyscall(popr, false) + s1 := p.String() + s2 := fmt.Sprintf("%v", p) + if s1 != s2 { + t.Fatalf("String want %v got %v", s1, s2) + } +} +func TestLinuxIntelRdtStringer(t *testing.T) { + popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano())) + p := NewPopulatedLinuxIntelRdt(popr, false) + s1 := p.String() + s2 := fmt.Sprintf("%v", p) + if s1 != s2 { + t.Fatalf("String want %v got %v", s1, s2) + } +} + +//These tests are generated by github.com/gogo/protobuf/plugin/testgen diff --git a/src/runtime/vendor/github.com/kata-containers/agent/protocols/grpc/utils_test.go b/src/runtime/vendor/github.com/kata-containers/agent/protocols/grpc/utils_test.go new file mode 100644 index 0000000000..3fe3e51cdb --- /dev/null +++ b/src/runtime/vendor/github.com/kata-containers/agent/protocols/grpc/utils_test.go @@ -0,0 +1,196 @@ +// +// Copyright (c) 2017 Intel Corporation +// +// SPDX-License-Identifier: Apache-2.0 +// + +package grpc + +import ( + "encoding/json" + "io/ioutil" + "reflect" + "testing" + + "github.com/opencontainers/runtime-spec/specs-go" + "github.com/stretchr/testify/assert" +) + +const ociConfigFile = "config.json" + +func assertProcessIsEqual(t *testing.T, ociProcess *specs.Process, grpcProcess *Process) { + assert := assert.New(t) + + // Process checks: User + assert.Equal(grpcProcess.User.UID, ociProcess.User.UID) + assert.Equal(grpcProcess.User.GID, ociProcess.User.GID) + + // Process checks: Capabilities + assert.Equal(grpcProcess.Capabilities.Bounding, ociProcess.Capabilities.Bounding) + assert.Equal(grpcProcess.Capabilities.Effective, ociProcess.Capabilities.Effective) + assert.Equal(grpcProcess.Capabilities.Inheritable, ociProcess.Capabilities.Inheritable) + assert.Equal(grpcProcess.Capabilities.Permitted, ociProcess.Capabilities.Permitted) + assert.Equal(grpcProcess.Capabilities.Ambient, ociProcess.Capabilities.Ambient) +} + +func assertIsEqual(t *testing.T, ociSpec *specs.Spec, grpcSpec *Spec) { + assert := assert.New(t) + + // Version check + assert.Equal(grpcSpec.Version, ociSpec.Version) + + // Process checks: + assertProcessIsEqual(t, ociSpec.Process, grpcSpec.Process) + + // Annotations checks: Annotations + assert.Equal(len(grpcSpec.Annotations), len(ociSpec.Annotations)) + + for k := range grpcSpec.Annotations { + assert.Equal(grpcSpec.Annotations[k], ociSpec.Annotations[k]) + } + + // Linux checks: Devices + assert.Equal(len(grpcSpec.Linux.Resources.Devices), len(ociSpec.Linux.Resources.Devices)) + assert.Equal(len(grpcSpec.Linux.Resources.Devices), 1) + assert.Equal(grpcSpec.Linux.Resources.Devices[0].Access, "rwm") + + // Linux checks: Block IO, for checking embedded structures copy + assert.NotNil(ociSpec.Linux.Resources.BlockIO.LeafWeight) + assert.NotNil(ociSpec.Linux.Resources.BlockIO.Weight) + assert.EqualValues(grpcSpec.Linux.Resources.BlockIO.Weight, *ociSpec.Linux.Resources.BlockIO.Weight) + assert.EqualValues(grpcSpec.Linux.Resources.BlockIO.LeafWeight, *ociSpec.Linux.Resources.BlockIO.LeafWeight) + assert.NotEqual(len(grpcSpec.Linux.Resources.BlockIO.WeightDevice), 0) + assert.Equal(len(grpcSpec.Linux.Resources.BlockIO.WeightDevice), len(grpcSpec.Linux.Resources.BlockIO.WeightDevice)) + assert.EqualValues(grpcSpec.Linux.Resources.BlockIO.WeightDevice[0].Major, ociSpec.Linux.Resources.BlockIO.WeightDevice[0].Major) + assert.EqualValues(grpcSpec.Linux.Resources.BlockIO.WeightDevice[0].Minor, ociSpec.Linux.Resources.BlockIO.WeightDevice[0].Minor) + assert.NotNil(ociSpec.Linux.Resources.BlockIO.WeightDevice[0].LeafWeight) + assert.NotNil(ociSpec.Linux.Resources.BlockIO.WeightDevice[0].Weight) + assert.EqualValues(grpcSpec.Linux.Resources.BlockIO.WeightDevice[0].Weight, *ociSpec.Linux.Resources.BlockIO.WeightDevice[0].Weight) + assert.EqualValues(grpcSpec.Linux.Resources.BlockIO.WeightDevice[0].LeafWeight, *ociSpec.Linux.Resources.BlockIO.WeightDevice[0].LeafWeight) + + // Linux checks: Namespaces + assert.Equal(len(grpcSpec.Linux.Namespaces), len(ociSpec.Linux.Namespaces)) + assert.Equal(len(grpcSpec.Linux.Namespaces), 5) + + for i := range grpcSpec.Linux.Namespaces { + assert.Equal(grpcSpec.Linux.Namespaces[i].Type, (string)(ociSpec.Linux.Namespaces[i].Type)) //nolint:unconvert + assert.Equal(grpcSpec.Linux.Namespaces[i].Path, (string)(ociSpec.Linux.Namespaces[i].Path)) //nolint:unconvert + } +} + +func TestOCItoGRPC(t *testing.T) { + assert := assert.New(t) + var ociSpec specs.Spec + + configJSONBytes, err := ioutil.ReadFile(ociConfigFile) + assert.NoError(err, "Could not open OCI config file") + + err = json.Unmarshal(configJSONBytes, &ociSpec) + assert.NoError(err, "Could not unmarshall OCI config file") + + spec, err := OCItoGRPC(&ociSpec) + assert.NoError(err, "Could not convert OCI config file") + assertIsEqual(t, &ociSpec, spec) +} + +func TestGRPCtoOCI(t *testing.T) { + assert := assert.New(t) + + var ociSpec specs.Spec + + configJSONBytes, err := ioutil.ReadFile(ociConfigFile) + assert.NoError(err, "Could not open OCI config file") + + err = json.Unmarshal(configJSONBytes, &ociSpec) + assert.NoError(err, "Could not unmarshall OCI config file") + + grpcSpec, err := OCItoGRPC(&ociSpec) + assert.NoError(err, "Could not convert OCI config file") + + newOciSpec, err := GRPCtoOCI(grpcSpec) + assert.NoError(err, "Could not convert gRPC structure") + + assertIsEqual(t, newOciSpec, grpcSpec) +} + +func TestProcessOCItoGRPC(t *testing.T) { + assert := assert.New(t) + var ociSpec specs.Spec + + configJSONBytes, err := ioutil.ReadFile(ociConfigFile) + assert.NoError(err, "Could not open OCI config file") + + err = json.Unmarshal(configJSONBytes, &ociSpec) + assert.NoError(err, "Could not unmarshall OCI config file") + + process, err := ProcessOCItoGRPC(ociSpec.Process) + assert.NoError(err, "Could not convert OCI config file") + assertProcessIsEqual(t, ociSpec.Process, process) +} + +func TestProcessGRPCtoOCI(t *testing.T) { + assert := assert.New(t) + + var ociSpec specs.Spec + + configJSONBytes, err := ioutil.ReadFile(ociConfigFile) + assert.NoError(err, "Could not open OCI config file") + + err = json.Unmarshal(configJSONBytes, &ociSpec) + assert.NoError(err, "Could not unmarshall OCI config file") + + grpcProcess, err := ProcessOCItoGRPC(ociSpec.Process) + assert.NoError(err, "Could not convert OCI config file") + + newOciProcess, err := ProcessGRPCtoOCI(grpcProcess) + assert.NoError(err, "Could not convert gRPC structure") + + assertProcessIsEqual(t, newOciProcess, grpcProcess) +} + +func testCopyValue(t *testing.T, to, from interface{}) { + assert := assert.New(t) + + err := copyValue(reflect.ValueOf(to).Elem(), reflect.ValueOf(from)) + assert.NoError(err, "Could not copy to %v", reflect.ValueOf(from).Kind()) + assert.Equal(reflect.ValueOf(to).Elem().Interface(), reflect.ValueOf(from).Interface()) +} + +func TestCopyValueString(t *testing.T) { + from := "foobar" + to := new(string) + + testCopyValue(t, to, from) +} + +func TestCopyValueSlice(t *testing.T) { + from := []string{"foobar", "barfoo"} + to := new([]string) + + testCopyValue(t, to, from) +} + +func TestCopyValueStruc(t *testing.T) { + type dummyStruct struct { + S string + I int + } + + from := dummyStruct{ + S: "foobar", + I: 18, + } + to := new(dummyStruct) + + testCopyValue(t, to, from) +} + +func TestCopyValueMap(t *testing.T) { + from := map[string]string{ + "key1": "value1", + "key2": "value2", + } + to := new(map[string]string) + + testCopyValue(t, to, from) +}