// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: ioproxy.proto package ioproxy import ( context "context" fmt "fmt" github_com_containerd_ttrpc "github.com/containerd/ttrpc" proto "github.com/gogo/protobuf/proto" types "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 StateRequest struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` ExecID string `protobuf:"bytes,2,opt,name=ExecID,proto3" json:"ExecID,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *StateRequest) Reset() { *m = StateRequest{} } func (*StateRequest) ProtoMessage() {} func (*StateRequest) Descriptor() ([]byte, []int) { return fileDescriptor_a68f88b69e0dca75, []int{0} } func (m *StateRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *StateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_StateRequest.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 *StateRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_StateRequest.Merge(m, src) } func (m *StateRequest) XXX_Size() int { return m.Size() } func (m *StateRequest) XXX_DiscardUnknown() { xxx_messageInfo_StateRequest.DiscardUnknown(m) } var xxx_messageInfo_StateRequest proto.InternalMessageInfo type StateResponse struct { IsOpen bool `protobuf:"varint,1,opt,name=IsOpen,proto3" json:"IsOpen,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *StateResponse) Reset() { *m = StateResponse{} } func (*StateResponse) ProtoMessage() {} func (*StateResponse) Descriptor() ([]byte, []int) { return fileDescriptor_a68f88b69e0dca75, []int{1} } func (m *StateResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *StateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_StateResponse.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 *StateResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_StateResponse.Merge(m, src) } func (m *StateResponse) XXX_Size() int { return m.Size() } func (m *StateResponse) XXX_DiscardUnknown() { xxx_messageInfo_StateResponse.DiscardUnknown(m) } var xxx_messageInfo_StateResponse proto.InternalMessageInfo type AttachRequest struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` ExecID string `protobuf:"bytes,2,opt,name=ExecID,proto3" json:"ExecID,omitempty"` StdinPort uint32 `protobuf:"varint,3,opt,name=StdinPort,proto3" json:"StdinPort,omitempty"` StdoutPort uint32 `protobuf:"varint,4,opt,name=StdoutPort,proto3" json:"StdoutPort,omitempty"` StderrPort uint32 `protobuf:"varint,5,opt,name=StderrPort,proto3" json:"StderrPort,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *AttachRequest) Reset() { *m = AttachRequest{} } func (*AttachRequest) ProtoMessage() {} func (*AttachRequest) Descriptor() ([]byte, []int) { return fileDescriptor_a68f88b69e0dca75, []int{2} } func (m *AttachRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *AttachRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_AttachRequest.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 *AttachRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_AttachRequest.Merge(m, src) } func (m *AttachRequest) XXX_Size() int { return m.Size() } func (m *AttachRequest) XXX_DiscardUnknown() { xxx_messageInfo_AttachRequest.DiscardUnknown(m) } var xxx_messageInfo_AttachRequest proto.InternalMessageInfo func init() { proto.RegisterType((*StateRequest)(nil), "StateRequest") proto.RegisterType((*StateResponse)(nil), "StateResponse") proto.RegisterType((*AttachRequest)(nil), "AttachRequest") } func init() { proto.RegisterFile("ioproxy.proto", fileDescriptor_a68f88b69e0dca75) } var fileDescriptor_a68f88b69e0dca75 = []byte{ // 283 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x91, 0xb1, 0x4e, 0xc3, 0x30, 0x18, 0x84, 0xeb, 0x40, 0x53, 0xfa, 0x8b, 0x64, 0xf0, 0x50, 0x45, 0x01, 0x59, 0x25, 0x03, 0x74, 0x72, 0x11, 0x48, 0xec, 0xa0, 0x74, 0xc8, 0xd4, 0x2a, 0xd9, 0xd8, 0xda, 0xd4, 0x94, 0x4a, 0x10, 0x1b, 0xe7, 0x8f, 0x54, 0x36, 0x5e, 0x82, 0x77, 0xea, 0xc8, 0xc8, 0x48, 0xf3, 0x24, 0x28, 0xae, 0x81, 0x76, 0x64, 0xbc, 0xfb, 0x7c, 0xb2, 0xee, 0x7e, 0xf0, 0x96, 0x52, 0x69, 0xb9, 0x7a, 0xe5, 0x4a, 0x4b, 0x94, 0xe1, 0xc9, 0x42, 0xca, 0xc5, 0x93, 0x18, 0x1a, 0x35, 0xab, 0x1e, 0x86, 0xe2, 0x59, 0xa1, 0x85, 0xd1, 0x0d, 0x1c, 0x67, 0x38, 0x45, 0x91, 0x8a, 0x97, 0x4a, 0x94, 0x48, 0x7d, 0x70, 0x92, 0x38, 0x20, 0x7d, 0x32, 0xe8, 0xa6, 0x4e, 0x12, 0xd3, 0x1e, 0xb8, 0xa3, 0x95, 0xc8, 0x93, 0x38, 0x70, 0x8c, 0x67, 0x55, 0x74, 0x01, 0x9e, 0xcd, 0x95, 0x4a, 0x16, 0xa5, 0x68, 0x1e, 0x26, 0xe5, 0x58, 0x89, 0xc2, 0x84, 0x8f, 0x52, 0xab, 0xa2, 0x77, 0x02, 0xde, 0x2d, 0xe2, 0x34, 0x7f, 0xfc, 0xe7, 0x17, 0xf4, 0x14, 0xba, 0x19, 0xce, 0x97, 0xc5, 0x44, 0x6a, 0x0c, 0x0e, 0xfa, 0x64, 0xe0, 0xa5, 0x7f, 0x06, 0x65, 0x00, 0x19, 0xce, 0x65, 0x85, 0x06, 0x1f, 0x1a, 0xbc, 0xe3, 0x58, 0x2e, 0xb4, 0x36, 0xbc, 0xfd, 0xcb, 0xad, 0x73, 0x95, 0x43, 0x27, 0x19, 0x4f, 0x9a, 0x99, 0xe8, 0x39, 0xb4, 0x4d, 0x17, 0xea, 0xf1, 0xdd, 0x2d, 0x42, 0x9f, 0xef, 0x57, 0xbc, 0x04, 0x77, 0xdb, 0x84, 0xfa, 0x7c, 0xaf, 0x52, 0xd8, 0xe3, 0xdb, 0x8d, 0xf9, 0xcf, 0xc6, 0x7c, 0xd4, 0x6c, 0x7c, 0x77, 0xb6, 0xde, 0xb0, 0xd6, 0xe7, 0x86, 0xb5, 0xde, 0x6a, 0x46, 0xd6, 0x35, 0x23, 0x1f, 0x35, 0x23, 0x5f, 0x35, 0x23, 0xf7, 0x1d, 0x7b, 0xa3, 0x99, 0x6b, 0x22, 0xd7, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x11, 0x45, 0x6b, 0x4b, 0xb5, 0x01, 0x00, 0x00, } func (m *StateRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *StateRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *StateRequest) 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.ExecID) > 0 { i -= len(m.ExecID) copy(dAtA[i:], m.ExecID) i = encodeVarintIoproxy(dAtA, i, uint64(len(m.ExecID))) i-- dAtA[i] = 0x12 } if len(m.ID) > 0 { i -= len(m.ID) copy(dAtA[i:], m.ID) i = encodeVarintIoproxy(dAtA, i, uint64(len(m.ID))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *StateResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *StateResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *StateResponse) 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 m.IsOpen { i-- if m.IsOpen { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- dAtA[i] = 0x8 } return len(dAtA) - i, nil } func (m *AttachRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *AttachRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *AttachRequest) 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 m.StderrPort != 0 { i = encodeVarintIoproxy(dAtA, i, uint64(m.StderrPort)) i-- dAtA[i] = 0x28 } if m.StdoutPort != 0 { i = encodeVarintIoproxy(dAtA, i, uint64(m.StdoutPort)) i-- dAtA[i] = 0x20 } if m.StdinPort != 0 { i = encodeVarintIoproxy(dAtA, i, uint64(m.StdinPort)) i-- dAtA[i] = 0x18 } if len(m.ExecID) > 0 { i -= len(m.ExecID) copy(dAtA[i:], m.ExecID) i = encodeVarintIoproxy(dAtA, i, uint64(len(m.ExecID))) i-- dAtA[i] = 0x12 } if len(m.ID) > 0 { i -= len(m.ID) copy(dAtA[i:], m.ID) i = encodeVarintIoproxy(dAtA, i, uint64(len(m.ID))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func encodeVarintIoproxy(dAtA []byte, offset int, v uint64) int { offset -= sovIoproxy(v) base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) return base } func (m *StateRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.ID) if l > 0 { n += 1 + l + sovIoproxy(uint64(l)) } l = len(m.ExecID) if l > 0 { n += 1 + l + sovIoproxy(uint64(l)) } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } return n } func (m *StateResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.IsOpen { n += 2 } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } return n } func (m *AttachRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.ID) if l > 0 { n += 1 + l + sovIoproxy(uint64(l)) } l = len(m.ExecID) if l > 0 { n += 1 + l + sovIoproxy(uint64(l)) } if m.StdinPort != 0 { n += 1 + sovIoproxy(uint64(m.StdinPort)) } if m.StdoutPort != 0 { n += 1 + sovIoproxy(uint64(m.StdoutPort)) } if m.StderrPort != 0 { n += 1 + sovIoproxy(uint64(m.StderrPort)) } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } return n } func sovIoproxy(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } func sozIoproxy(x uint64) (n int) { return sovIoproxy(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } func (this *StateRequest) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&StateRequest{`, `ID:` + fmt.Sprintf("%v", this.ID) + `,`, `ExecID:` + fmt.Sprintf("%v", this.ExecID) + `,`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") return s } func (this *StateResponse) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&StateResponse{`, `IsOpen:` + fmt.Sprintf("%v", this.IsOpen) + `,`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") return s } func (this *AttachRequest) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&AttachRequest{`, `ID:` + fmt.Sprintf("%v", this.ID) + `,`, `ExecID:` + fmt.Sprintf("%v", this.ExecID) + `,`, `StdinPort:` + fmt.Sprintf("%v", this.StdinPort) + `,`, `StdoutPort:` + fmt.Sprintf("%v", this.StdoutPort) + `,`, `StderrPort:` + fmt.Sprintf("%v", this.StderrPort) + `,`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") return s } func valueToStringIoproxy(v interface{}) string { rv := reflect.ValueOf(v) if rv.IsNil() { return "nil" } pv := reflect.Indirect(rv).Interface() return fmt.Sprintf("*%v", pv) } type IOProxyService interface { State(ctx context.Context, req *StateRequest) (*StateResponse, error) Attach(ctx context.Context, req *AttachRequest) (*types.Empty, error) } func RegisterIOProxyService(srv *github_com_containerd_ttrpc.Server, svc IOProxyService) { srv.Register("IOProxy", map[string]github_com_containerd_ttrpc.Method{ "State": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { var req StateRequest if err := unmarshal(&req); err != nil { return nil, err } return svc.State(ctx, &req) }, "Attach": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { var req AttachRequest if err := unmarshal(&req); err != nil { return nil, err } return svc.Attach(ctx, &req) }, }) } type iOProxyClient struct { client *github_com_containerd_ttrpc.Client } func NewIOProxyClient(client *github_com_containerd_ttrpc.Client) IOProxyService { return &iOProxyClient{ client: client, } } func (c *iOProxyClient) State(ctx context.Context, req *StateRequest) (*StateResponse, error) { var resp StateResponse if err := c.client.Call(ctx, "IOProxy", "State", req, &resp); err != nil { return nil, err } return &resp, nil } func (c *iOProxyClient) Attach(ctx context.Context, req *AttachRequest) (*types.Empty, error) { var resp types.Empty if err := c.client.Call(ctx, "IOProxy", "Attach", req, &resp); err != nil { return nil, err } return &resp, nil } func (m *StateRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowIoproxy } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: StateRequest: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: StateRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowIoproxy } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthIoproxy } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthIoproxy } if postIndex > l { return io.ErrUnexpectedEOF } m.ID = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ExecID", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowIoproxy } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthIoproxy } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthIoproxy } if postIndex > l { return io.ErrUnexpectedEOF } m.ExecID = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipIoproxy(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthIoproxy } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *StateResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowIoproxy } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: StateResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: StateResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field IsOpen", wireType) } var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowIoproxy } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ v |= int(b&0x7F) << shift if b < 0x80 { break } } m.IsOpen = bool(v != 0) default: iNdEx = preIndex skippy, err := skipIoproxy(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthIoproxy } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *AttachRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowIoproxy } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: AttachRequest: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: AttachRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowIoproxy } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthIoproxy } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthIoproxy } if postIndex > l { return io.ErrUnexpectedEOF } m.ID = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ExecID", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowIoproxy } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthIoproxy } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthIoproxy } if postIndex > l { return io.ErrUnexpectedEOF } m.ExecID = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field StdinPort", wireType) } m.StdinPort = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowIoproxy } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.StdinPort |= uint32(b&0x7F) << shift if b < 0x80 { break } } case 4: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field StdoutPort", wireType) } m.StdoutPort = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowIoproxy } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.StdoutPort |= uint32(b&0x7F) << shift if b < 0x80 { break } } case 5: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field StderrPort", wireType) } m.StderrPort = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowIoproxy } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.StderrPort |= uint32(b&0x7F) << shift if b < 0x80 { break } } default: iNdEx = preIndex skippy, err := skipIoproxy(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthIoproxy } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func skipIoproxy(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 { if shift >= 64 { return 0, ErrIntOverflowIoproxy } if iNdEx >= l { return 0, io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } wireType := int(wire & 0x7) switch wireType { case 0: for shift := uint(0); ; shift += 7 { if shift >= 64 { return 0, ErrIntOverflowIoproxy } if iNdEx >= l { return 0, io.ErrUnexpectedEOF } iNdEx++ if dAtA[iNdEx-1] < 0x80 { break } } case 1: iNdEx += 8 case 2: var length int for shift := uint(0); ; shift += 7 { if shift >= 64 { return 0, ErrIntOverflowIoproxy } if iNdEx >= l { return 0, io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ length |= (int(b) & 0x7F) << shift if b < 0x80 { break } } if length < 0 { return 0, ErrInvalidLengthIoproxy } iNdEx += length case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupIoproxy } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthIoproxy } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthIoproxy = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowIoproxy = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupIoproxy = fmt.Errorf("proto: unexpected end of group") )