github.com/pwn-term/docker@v0.0.0-20210616085119-6e977cce2565/libnetwork/drivers/overlay/overlay.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: drivers/overlay/overlay.proto
     3  
     4  /*
     5  	Package overlay is a generated protocol buffer package.
     6  
     7  	It is generated from these files:
     8  		drivers/overlay/overlay.proto
     9  
    10  	It has these top-level messages:
    11  		PeerRecord
    12  */
    13  package overlay
    14  
    15  import proto "github.com/gogo/protobuf/proto"
    16  import fmt "fmt"
    17  import math "math"
    18  import _ "github.com/gogo/protobuf/gogoproto"
    19  
    20  import strings "strings"
    21  import reflect "reflect"
    22  
    23  import io "io"
    24  
    25  // Reference imports to suppress errors if they are not otherwise used.
    26  var _ = proto.Marshal
    27  var _ = fmt.Errorf
    28  var _ = math.Inf
    29  
    30  // This is a compile-time assertion to ensure that this generated file
    31  // is compatible with the proto package it is being compiled against.
    32  // A compilation error at this line likely means your copy of the
    33  // proto package needs to be updated.
    34  const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
    35  
    36  // PeerRecord defines the information corresponding to a peer
    37  // container in the overlay network.
    38  type PeerRecord struct {
    39  	// Endpoint IP is the IP of the container attachment on the
    40  	// given overlay network.
    41  	EndpointIP string `protobuf:"bytes,1,opt,name=endpoint_ip,json=endpointIp,proto3" json:"endpoint_ip,omitempty"`
    42  	// Endpoint MAC is the mac address of the container attachment
    43  	// on the given overlay network.
    44  	EndpointMAC string `protobuf:"bytes,2,opt,name=endpoint_mac,json=endpointMac,proto3" json:"endpoint_mac,omitempty"`
    45  	// Tunnel Endpoint IP defines the host IP for the host in
    46  	// which this container is running and can be reached by
    47  	// building a tunnel to that host IP.
    48  	TunnelEndpointIP string `protobuf:"bytes,3,opt,name=tunnel_endpoint_ip,json=tunnelEndpointIp,proto3" json:"tunnel_endpoint_ip,omitempty"`
    49  }
    50  
    51  func (m *PeerRecord) Reset()                    { *m = PeerRecord{} }
    52  func (*PeerRecord) ProtoMessage()               {}
    53  func (*PeerRecord) Descriptor() ([]byte, []int) { return fileDescriptorOverlay, []int{0} }
    54  
    55  func (m *PeerRecord) GetEndpointIP() string {
    56  	if m != nil {
    57  		return m.EndpointIP
    58  	}
    59  	return ""
    60  }
    61  
    62  func (m *PeerRecord) GetEndpointMAC() string {
    63  	if m != nil {
    64  		return m.EndpointMAC
    65  	}
    66  	return ""
    67  }
    68  
    69  func (m *PeerRecord) GetTunnelEndpointIP() string {
    70  	if m != nil {
    71  		return m.TunnelEndpointIP
    72  	}
    73  	return ""
    74  }
    75  
    76  func init() {
    77  	proto.RegisterType((*PeerRecord)(nil), "overlay.PeerRecord")
    78  }
    79  func (this *PeerRecord) GoString() string {
    80  	if this == nil {
    81  		return "nil"
    82  	}
    83  	s := make([]string, 0, 7)
    84  	s = append(s, "&overlay.PeerRecord{")
    85  	s = append(s, "EndpointIP: "+fmt.Sprintf("%#v", this.EndpointIP)+",\n")
    86  	s = append(s, "EndpointMAC: "+fmt.Sprintf("%#v", this.EndpointMAC)+",\n")
    87  	s = append(s, "TunnelEndpointIP: "+fmt.Sprintf("%#v", this.TunnelEndpointIP)+",\n")
    88  	s = append(s, "}")
    89  	return strings.Join(s, "")
    90  }
    91  func valueToGoStringOverlay(v interface{}, typ string) string {
    92  	rv := reflect.ValueOf(v)
    93  	if rv.IsNil() {
    94  		return "nil"
    95  	}
    96  	pv := reflect.Indirect(rv).Interface()
    97  	return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv)
    98  }
    99  func (m *PeerRecord) Marshal() (dAtA []byte, err error) {
   100  	size := m.Size()
   101  	dAtA = make([]byte, size)
   102  	n, err := m.MarshalTo(dAtA)
   103  	if err != nil {
   104  		return nil, err
   105  	}
   106  	return dAtA[:n], nil
   107  }
   108  
   109  func (m *PeerRecord) MarshalTo(dAtA []byte) (int, error) {
   110  	var i int
   111  	_ = i
   112  	var l int
   113  	_ = l
   114  	if len(m.EndpointIP) > 0 {
   115  		dAtA[i] = 0xa
   116  		i++
   117  		i = encodeVarintOverlay(dAtA, i, uint64(len(m.EndpointIP)))
   118  		i += copy(dAtA[i:], m.EndpointIP)
   119  	}
   120  	if len(m.EndpointMAC) > 0 {
   121  		dAtA[i] = 0x12
   122  		i++
   123  		i = encodeVarintOverlay(dAtA, i, uint64(len(m.EndpointMAC)))
   124  		i += copy(dAtA[i:], m.EndpointMAC)
   125  	}
   126  	if len(m.TunnelEndpointIP) > 0 {
   127  		dAtA[i] = 0x1a
   128  		i++
   129  		i = encodeVarintOverlay(dAtA, i, uint64(len(m.TunnelEndpointIP)))
   130  		i += copy(dAtA[i:], m.TunnelEndpointIP)
   131  	}
   132  	return i, nil
   133  }
   134  
   135  func encodeVarintOverlay(dAtA []byte, offset int, v uint64) int {
   136  	for v >= 1<<7 {
   137  		dAtA[offset] = uint8(v&0x7f | 0x80)
   138  		v >>= 7
   139  		offset++
   140  	}
   141  	dAtA[offset] = uint8(v)
   142  	return offset + 1
   143  }
   144  func (m *PeerRecord) Size() (n int) {
   145  	var l int
   146  	_ = l
   147  	l = len(m.EndpointIP)
   148  	if l > 0 {
   149  		n += 1 + l + sovOverlay(uint64(l))
   150  	}
   151  	l = len(m.EndpointMAC)
   152  	if l > 0 {
   153  		n += 1 + l + sovOverlay(uint64(l))
   154  	}
   155  	l = len(m.TunnelEndpointIP)
   156  	if l > 0 {
   157  		n += 1 + l + sovOverlay(uint64(l))
   158  	}
   159  	return n
   160  }
   161  
   162  func sovOverlay(x uint64) (n int) {
   163  	for {
   164  		n++
   165  		x >>= 7
   166  		if x == 0 {
   167  			break
   168  		}
   169  	}
   170  	return n
   171  }
   172  func sozOverlay(x uint64) (n int) {
   173  	return sovOverlay(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   174  }
   175  func (this *PeerRecord) String() string {
   176  	if this == nil {
   177  		return "nil"
   178  	}
   179  	s := strings.Join([]string{`&PeerRecord{`,
   180  		`EndpointIP:` + fmt.Sprintf("%v", this.EndpointIP) + `,`,
   181  		`EndpointMAC:` + fmt.Sprintf("%v", this.EndpointMAC) + `,`,
   182  		`TunnelEndpointIP:` + fmt.Sprintf("%v", this.TunnelEndpointIP) + `,`,
   183  		`}`,
   184  	}, "")
   185  	return s
   186  }
   187  func valueToStringOverlay(v interface{}) string {
   188  	rv := reflect.ValueOf(v)
   189  	if rv.IsNil() {
   190  		return "nil"
   191  	}
   192  	pv := reflect.Indirect(rv).Interface()
   193  	return fmt.Sprintf("*%v", pv)
   194  }
   195  func (m *PeerRecord) Unmarshal(dAtA []byte) error {
   196  	l := len(dAtA)
   197  	iNdEx := 0
   198  	for iNdEx < l {
   199  		preIndex := iNdEx
   200  		var wire uint64
   201  		for shift := uint(0); ; shift += 7 {
   202  			if shift >= 64 {
   203  				return ErrIntOverflowOverlay
   204  			}
   205  			if iNdEx >= l {
   206  				return io.ErrUnexpectedEOF
   207  			}
   208  			b := dAtA[iNdEx]
   209  			iNdEx++
   210  			wire |= (uint64(b) & 0x7F) << shift
   211  			if b < 0x80 {
   212  				break
   213  			}
   214  		}
   215  		fieldNum := int32(wire >> 3)
   216  		wireType := int(wire & 0x7)
   217  		if wireType == 4 {
   218  			return fmt.Errorf("proto: PeerRecord: wiretype end group for non-group")
   219  		}
   220  		if fieldNum <= 0 {
   221  			return fmt.Errorf("proto: PeerRecord: illegal tag %d (wire type %d)", fieldNum, wire)
   222  		}
   223  		switch fieldNum {
   224  		case 1:
   225  			if wireType != 2 {
   226  				return fmt.Errorf("proto: wrong wireType = %d for field EndpointIP", wireType)
   227  			}
   228  			var stringLen uint64
   229  			for shift := uint(0); ; shift += 7 {
   230  				if shift >= 64 {
   231  					return ErrIntOverflowOverlay
   232  				}
   233  				if iNdEx >= l {
   234  					return io.ErrUnexpectedEOF
   235  				}
   236  				b := dAtA[iNdEx]
   237  				iNdEx++
   238  				stringLen |= (uint64(b) & 0x7F) << shift
   239  				if b < 0x80 {
   240  					break
   241  				}
   242  			}
   243  			intStringLen := int(stringLen)
   244  			if intStringLen < 0 {
   245  				return ErrInvalidLengthOverlay
   246  			}
   247  			postIndex := iNdEx + intStringLen
   248  			if postIndex > l {
   249  				return io.ErrUnexpectedEOF
   250  			}
   251  			m.EndpointIP = string(dAtA[iNdEx:postIndex])
   252  			iNdEx = postIndex
   253  		case 2:
   254  			if wireType != 2 {
   255  				return fmt.Errorf("proto: wrong wireType = %d for field EndpointMAC", wireType)
   256  			}
   257  			var stringLen uint64
   258  			for shift := uint(0); ; shift += 7 {
   259  				if shift >= 64 {
   260  					return ErrIntOverflowOverlay
   261  				}
   262  				if iNdEx >= l {
   263  					return io.ErrUnexpectedEOF
   264  				}
   265  				b := dAtA[iNdEx]
   266  				iNdEx++
   267  				stringLen |= (uint64(b) & 0x7F) << shift
   268  				if b < 0x80 {
   269  					break
   270  				}
   271  			}
   272  			intStringLen := int(stringLen)
   273  			if intStringLen < 0 {
   274  				return ErrInvalidLengthOverlay
   275  			}
   276  			postIndex := iNdEx + intStringLen
   277  			if postIndex > l {
   278  				return io.ErrUnexpectedEOF
   279  			}
   280  			m.EndpointMAC = string(dAtA[iNdEx:postIndex])
   281  			iNdEx = postIndex
   282  		case 3:
   283  			if wireType != 2 {
   284  				return fmt.Errorf("proto: wrong wireType = %d for field TunnelEndpointIP", wireType)
   285  			}
   286  			var stringLen uint64
   287  			for shift := uint(0); ; shift += 7 {
   288  				if shift >= 64 {
   289  					return ErrIntOverflowOverlay
   290  				}
   291  				if iNdEx >= l {
   292  					return io.ErrUnexpectedEOF
   293  				}
   294  				b := dAtA[iNdEx]
   295  				iNdEx++
   296  				stringLen |= (uint64(b) & 0x7F) << shift
   297  				if b < 0x80 {
   298  					break
   299  				}
   300  			}
   301  			intStringLen := int(stringLen)
   302  			if intStringLen < 0 {
   303  				return ErrInvalidLengthOverlay
   304  			}
   305  			postIndex := iNdEx + intStringLen
   306  			if postIndex > l {
   307  				return io.ErrUnexpectedEOF
   308  			}
   309  			m.TunnelEndpointIP = string(dAtA[iNdEx:postIndex])
   310  			iNdEx = postIndex
   311  		default:
   312  			iNdEx = preIndex
   313  			skippy, err := skipOverlay(dAtA[iNdEx:])
   314  			if err != nil {
   315  				return err
   316  			}
   317  			if skippy < 0 {
   318  				return ErrInvalidLengthOverlay
   319  			}
   320  			if (iNdEx + skippy) > l {
   321  				return io.ErrUnexpectedEOF
   322  			}
   323  			iNdEx += skippy
   324  		}
   325  	}
   326  
   327  	if iNdEx > l {
   328  		return io.ErrUnexpectedEOF
   329  	}
   330  	return nil
   331  }
   332  func skipOverlay(dAtA []byte) (n int, err error) {
   333  	l := len(dAtA)
   334  	iNdEx := 0
   335  	for iNdEx < l {
   336  		var wire uint64
   337  		for shift := uint(0); ; shift += 7 {
   338  			if shift >= 64 {
   339  				return 0, ErrIntOverflowOverlay
   340  			}
   341  			if iNdEx >= l {
   342  				return 0, io.ErrUnexpectedEOF
   343  			}
   344  			b := dAtA[iNdEx]
   345  			iNdEx++
   346  			wire |= (uint64(b) & 0x7F) << shift
   347  			if b < 0x80 {
   348  				break
   349  			}
   350  		}
   351  		wireType := int(wire & 0x7)
   352  		switch wireType {
   353  		case 0:
   354  			for shift := uint(0); ; shift += 7 {
   355  				if shift >= 64 {
   356  					return 0, ErrIntOverflowOverlay
   357  				}
   358  				if iNdEx >= l {
   359  					return 0, io.ErrUnexpectedEOF
   360  				}
   361  				iNdEx++
   362  				if dAtA[iNdEx-1] < 0x80 {
   363  					break
   364  				}
   365  			}
   366  			return iNdEx, nil
   367  		case 1:
   368  			iNdEx += 8
   369  			return iNdEx, nil
   370  		case 2:
   371  			var length int
   372  			for shift := uint(0); ; shift += 7 {
   373  				if shift >= 64 {
   374  					return 0, ErrIntOverflowOverlay
   375  				}
   376  				if iNdEx >= l {
   377  					return 0, io.ErrUnexpectedEOF
   378  				}
   379  				b := dAtA[iNdEx]
   380  				iNdEx++
   381  				length |= (int(b) & 0x7F) << shift
   382  				if b < 0x80 {
   383  					break
   384  				}
   385  			}
   386  			iNdEx += length
   387  			if length < 0 {
   388  				return 0, ErrInvalidLengthOverlay
   389  			}
   390  			return iNdEx, nil
   391  		case 3:
   392  			for {
   393  				var innerWire uint64
   394  				var start int = iNdEx
   395  				for shift := uint(0); ; shift += 7 {
   396  					if shift >= 64 {
   397  						return 0, ErrIntOverflowOverlay
   398  					}
   399  					if iNdEx >= l {
   400  						return 0, io.ErrUnexpectedEOF
   401  					}
   402  					b := dAtA[iNdEx]
   403  					iNdEx++
   404  					innerWire |= (uint64(b) & 0x7F) << shift
   405  					if b < 0x80 {
   406  						break
   407  					}
   408  				}
   409  				innerWireType := int(innerWire & 0x7)
   410  				if innerWireType == 4 {
   411  					break
   412  				}
   413  				next, err := skipOverlay(dAtA[start:])
   414  				if err != nil {
   415  					return 0, err
   416  				}
   417  				iNdEx = start + next
   418  			}
   419  			return iNdEx, nil
   420  		case 4:
   421  			return iNdEx, nil
   422  		case 5:
   423  			iNdEx += 4
   424  			return iNdEx, nil
   425  		default:
   426  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
   427  		}
   428  	}
   429  	panic("unreachable")
   430  }
   431  
   432  var (
   433  	ErrInvalidLengthOverlay = fmt.Errorf("proto: negative length found during unmarshaling")
   434  	ErrIntOverflowOverlay   = fmt.Errorf("proto: integer overflow")
   435  )
   436  
   437  func init() { proto.RegisterFile("drivers/overlay/overlay.proto", fileDescriptorOverlay) }
   438  
   439  var fileDescriptorOverlay = []byte{
   440  	// 212 bytes of a gzipped FileDescriptorProto
   441  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4d, 0x29, 0xca, 0x2c,
   442  	0x4b, 0x2d, 0x2a, 0xd6, 0xcf, 0x2f, 0x4b, 0x2d, 0xca, 0x49, 0xac, 0x84, 0xd1, 0x7a, 0x05, 0x45,
   443  	0xf9, 0x25, 0xf9, 0x42, 0xec, 0x50, 0xae, 0x94, 0x48, 0x7a, 0x7e, 0x7a, 0x3e, 0x58, 0x4c, 0x1f,
   444  	0xc4, 0x82, 0x48, 0x2b, 0x6d, 0x65, 0xe4, 0xe2, 0x0a, 0x48, 0x4d, 0x2d, 0x0a, 0x4a, 0x4d, 0xce,
   445  	0x2f, 0x4a, 0x11, 0xd2, 0xe7, 0xe2, 0x4e, 0xcd, 0x4b, 0x29, 0xc8, 0xcf, 0xcc, 0x2b, 0x89, 0xcf,
   446  	0x2c, 0x90, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x74, 0xe2, 0x7b, 0x74, 0x4f, 0x9e, 0xcb, 0x15, 0x2a,
   447  	0xec, 0x19, 0x10, 0xc4, 0x05, 0x53, 0xe2, 0x59, 0x20, 0x64, 0xc4, 0xc5, 0x03, 0xd7, 0x90, 0x9b,
   448  	0x98, 0x2c, 0xc1, 0x04, 0xd6, 0xc1, 0xff, 0xe8, 0x9e, 0x3c, 0x37, 0x4c, 0x87, 0xaf, 0xa3, 0x73,
   449  	0x10, 0xdc, 0x54, 0xdf, 0xc4, 0x64, 0x21, 0x27, 0x2e, 0xa1, 0x92, 0xd2, 0xbc, 0xbc, 0xd4, 0x9c,
   450  	0x78, 0x64, 0xbb, 0x98, 0xc1, 0x3a, 0x45, 0x1e, 0xdd, 0x93, 0x17, 0x08, 0x01, 0xcb, 0x22, 0xd9,
   451  	0x28, 0x50, 0x82, 0x2a, 0x52, 0xe0, 0x24, 0x71, 0xe3, 0xa1, 0x1c, 0xc3, 0x87, 0x87, 0x72, 0x8c,
   452  	0x0d, 0x8f, 0xe4, 0x18, 0x4f, 0x3c, 0x92, 0x63, 0xbc, 0xf0, 0x48, 0x8e, 0xf1, 0xc1, 0x23, 0x39,
   453  	0xc6, 0x24, 0x36, 0xb0, 0xc7, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0x48, 0x07, 0xf6, 0xf3,
   454  	0x18, 0x01, 0x00, 0x00,
   455  }