overlay.pb.go 11 KB

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