1// Code generated by protoc-gen-gogo. DO NOT EDIT. 2// source: github.com/docker/swarmkit/protobuf/plugin/plugin.proto 3 4/* 5 Package plugin is a generated protocol buffer package. 6 7 It is generated from these files: 8 github.com/docker/swarmkit/protobuf/plugin/plugin.proto 9 10 It has these top-level messages: 11 WatchSelectors 12 StoreObject 13 TLSAuthorization 14*/ 15package plugin 16 17import proto "github.com/gogo/protobuf/proto" 18import fmt "fmt" 19import math "math" 20import google_protobuf "github.com/gogo/protobuf/protoc-gen-gogo/descriptor" 21 22import deepcopy "github.com/docker/swarmkit/api/deepcopy" 23 24import strings "strings" 25import reflect "reflect" 26 27import io "io" 28 29// Reference imports to suppress errors if they are not otherwise used. 30var _ = proto.Marshal 31var _ = fmt.Errorf 32var _ = math.Inf 33 34// This is a compile-time assertion to ensure that this generated file 35// is compatible with the proto package it is being compiled against. 36// A compilation error at this line likely means your copy of the 37// proto package needs to be updated. 38const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package 39 40type WatchSelectors struct { 41 // supported by all object types 42 ID *bool `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` 43 IDPrefix *bool `protobuf:"varint,2,opt,name=id_prefix,json=idPrefix" json:"id_prefix,omitempty"` 44 Name *bool `protobuf:"varint,3,opt,name=name" json:"name,omitempty"` 45 NamePrefix *bool `protobuf:"varint,4,opt,name=name_prefix,json=namePrefix" json:"name_prefix,omitempty"` 46 Custom *bool `protobuf:"varint,5,opt,name=custom" json:"custom,omitempty"` 47 CustomPrefix *bool `protobuf:"varint,6,opt,name=custom_prefix,json=customPrefix" json:"custom_prefix,omitempty"` 48 // supported by tasks only 49 ServiceID *bool `protobuf:"varint,7,opt,name=service_id,json=serviceId" json:"service_id,omitempty"` 50 NodeID *bool `protobuf:"varint,8,opt,name=node_id,json=nodeId" json:"node_id,omitempty"` 51 Slot *bool `protobuf:"varint,9,opt,name=slot" json:"slot,omitempty"` 52 DesiredState *bool `protobuf:"varint,10,opt,name=desired_state,json=desiredState" json:"desired_state,omitempty"` 53 // supported by nodes only 54 Role *bool `protobuf:"varint,11,opt,name=role" json:"role,omitempty"` 55 Membership *bool `protobuf:"varint,12,opt,name=membership" json:"membership,omitempty"` 56 // supported by: resource 57 Kind *bool `protobuf:"varint,13,opt,name=kind" json:"kind,omitempty"` 58 XXX_unrecognized []byte `json:"-"` 59} 60 61func (m *WatchSelectors) Reset() { *m = WatchSelectors{} } 62func (*WatchSelectors) ProtoMessage() {} 63func (*WatchSelectors) Descriptor() ([]byte, []int) { return fileDescriptorPlugin, []int{0} } 64 65type StoreObject struct { 66 WatchSelectors *WatchSelectors `protobuf:"bytes,1,req,name=watch_selectors,json=watchSelectors" json:"watch_selectors,omitempty"` 67 XXX_unrecognized []byte `json:"-"` 68} 69 70func (m *StoreObject) Reset() { *m = StoreObject{} } 71func (*StoreObject) ProtoMessage() {} 72func (*StoreObject) Descriptor() ([]byte, []int) { return fileDescriptorPlugin, []int{1} } 73 74type TLSAuthorization struct { 75 // Roles contains the acceptable TLS OU roles for the handler. 76 Roles []string `protobuf:"bytes,1,rep,name=roles" json:"roles,omitempty"` 77 // Insecure is set to true if this method does not require 78 // authorization. NOTE: Specifying both "insecure" and a nonempty 79 // list of roles is invalid. This would fail at codegen time. 80 Insecure *bool `protobuf:"varint,2,opt,name=insecure" json:"insecure,omitempty"` 81 XXX_unrecognized []byte `json:"-"` 82} 83 84func (m *TLSAuthorization) Reset() { *m = TLSAuthorization{} } 85func (*TLSAuthorization) ProtoMessage() {} 86func (*TLSAuthorization) Descriptor() ([]byte, []int) { return fileDescriptorPlugin, []int{2} } 87 88var E_Deepcopy = &proto.ExtensionDesc{ 89 ExtendedType: (*google_protobuf.MessageOptions)(nil), 90 ExtensionType: (*bool)(nil), 91 Field: 70000, 92 Name: "docker.protobuf.plugin.deepcopy", 93 Tag: "varint,70000,opt,name=deepcopy,def=1", 94 Filename: "github.com/docker/swarmkit/protobuf/plugin/plugin.proto", 95} 96 97var E_StoreObject = &proto.ExtensionDesc{ 98 ExtendedType: (*google_protobuf.MessageOptions)(nil), 99 ExtensionType: (*StoreObject)(nil), 100 Field: 70001, 101 Name: "docker.protobuf.plugin.store_object", 102 Tag: "bytes,70001,opt,name=store_object,json=storeObject", 103 Filename: "github.com/docker/swarmkit/protobuf/plugin/plugin.proto", 104} 105 106var E_TlsAuthorization = &proto.ExtensionDesc{ 107 ExtendedType: (*google_protobuf.MethodOptions)(nil), 108 ExtensionType: (*TLSAuthorization)(nil), 109 Field: 73626345, 110 Name: "docker.protobuf.plugin.tls_authorization", 111 Tag: "bytes,73626345,opt,name=tls_authorization,json=tlsAuthorization", 112 Filename: "github.com/docker/swarmkit/protobuf/plugin/plugin.proto", 113} 114 115func init() { 116 proto.RegisterType((*WatchSelectors)(nil), "docker.protobuf.plugin.WatchSelectors") 117 proto.RegisterType((*StoreObject)(nil), "docker.protobuf.plugin.StoreObject") 118 proto.RegisterType((*TLSAuthorization)(nil), "docker.protobuf.plugin.TLSAuthorization") 119 proto.RegisterExtension(E_Deepcopy) 120 proto.RegisterExtension(E_StoreObject) 121 proto.RegisterExtension(E_TlsAuthorization) 122} 123 124func (m *WatchSelectors) Copy() *WatchSelectors { 125 if m == nil { 126 return nil 127 } 128 o := &WatchSelectors{} 129 o.CopyFrom(m) 130 return o 131} 132 133func (m *WatchSelectors) CopyFrom(src interface{}) { 134 135 o := src.(*WatchSelectors) 136 *m = *o 137} 138 139func (m *StoreObject) Copy() *StoreObject { 140 if m == nil { 141 return nil 142 } 143 o := &StoreObject{} 144 o.CopyFrom(m) 145 return o 146} 147 148func (m *StoreObject) CopyFrom(src interface{}) { 149 150 o := src.(*StoreObject) 151 *m = *o 152 if o.WatchSelectors != nil { 153 m.WatchSelectors = &WatchSelectors{} 154 deepcopy.Copy(m.WatchSelectors, o.WatchSelectors) 155 } 156} 157 158func (m *TLSAuthorization) Copy() *TLSAuthorization { 159 if m == nil { 160 return nil 161 } 162 o := &TLSAuthorization{} 163 o.CopyFrom(m) 164 return o 165} 166 167func (m *TLSAuthorization) CopyFrom(src interface{}) { 168 169 o := src.(*TLSAuthorization) 170 *m = *o 171 if o.Roles != nil { 172 m.Roles = make([]string, len(o.Roles)) 173 copy(m.Roles, o.Roles) 174 } 175 176} 177 178func (m *WatchSelectors) Marshal() (dAtA []byte, err error) { 179 size := m.Size() 180 dAtA = make([]byte, size) 181 n, err := m.MarshalTo(dAtA) 182 if err != nil { 183 return nil, err 184 } 185 return dAtA[:n], nil 186} 187 188func (m *WatchSelectors) MarshalTo(dAtA []byte) (int, error) { 189 var i int 190 _ = i 191 var l int 192 _ = l 193 if m.ID != nil { 194 dAtA[i] = 0x8 195 i++ 196 if *m.ID { 197 dAtA[i] = 1 198 } else { 199 dAtA[i] = 0 200 } 201 i++ 202 } 203 if m.IDPrefix != nil { 204 dAtA[i] = 0x10 205 i++ 206 if *m.IDPrefix { 207 dAtA[i] = 1 208 } else { 209 dAtA[i] = 0 210 } 211 i++ 212 } 213 if m.Name != nil { 214 dAtA[i] = 0x18 215 i++ 216 if *m.Name { 217 dAtA[i] = 1 218 } else { 219 dAtA[i] = 0 220 } 221 i++ 222 } 223 if m.NamePrefix != nil { 224 dAtA[i] = 0x20 225 i++ 226 if *m.NamePrefix { 227 dAtA[i] = 1 228 } else { 229 dAtA[i] = 0 230 } 231 i++ 232 } 233 if m.Custom != nil { 234 dAtA[i] = 0x28 235 i++ 236 if *m.Custom { 237 dAtA[i] = 1 238 } else { 239 dAtA[i] = 0 240 } 241 i++ 242 } 243 if m.CustomPrefix != nil { 244 dAtA[i] = 0x30 245 i++ 246 if *m.CustomPrefix { 247 dAtA[i] = 1 248 } else { 249 dAtA[i] = 0 250 } 251 i++ 252 } 253 if m.ServiceID != nil { 254 dAtA[i] = 0x38 255 i++ 256 if *m.ServiceID { 257 dAtA[i] = 1 258 } else { 259 dAtA[i] = 0 260 } 261 i++ 262 } 263 if m.NodeID != nil { 264 dAtA[i] = 0x40 265 i++ 266 if *m.NodeID { 267 dAtA[i] = 1 268 } else { 269 dAtA[i] = 0 270 } 271 i++ 272 } 273 if m.Slot != nil { 274 dAtA[i] = 0x48 275 i++ 276 if *m.Slot { 277 dAtA[i] = 1 278 } else { 279 dAtA[i] = 0 280 } 281 i++ 282 } 283 if m.DesiredState != nil { 284 dAtA[i] = 0x50 285 i++ 286 if *m.DesiredState { 287 dAtA[i] = 1 288 } else { 289 dAtA[i] = 0 290 } 291 i++ 292 } 293 if m.Role != nil { 294 dAtA[i] = 0x58 295 i++ 296 if *m.Role { 297 dAtA[i] = 1 298 } else { 299 dAtA[i] = 0 300 } 301 i++ 302 } 303 if m.Membership != nil { 304 dAtA[i] = 0x60 305 i++ 306 if *m.Membership { 307 dAtA[i] = 1 308 } else { 309 dAtA[i] = 0 310 } 311 i++ 312 } 313 if m.Kind != nil { 314 dAtA[i] = 0x68 315 i++ 316 if *m.Kind { 317 dAtA[i] = 1 318 } else { 319 dAtA[i] = 0 320 } 321 i++ 322 } 323 if m.XXX_unrecognized != nil { 324 i += copy(dAtA[i:], m.XXX_unrecognized) 325 } 326 return i, nil 327} 328 329func (m *StoreObject) Marshal() (dAtA []byte, err error) { 330 size := m.Size() 331 dAtA = make([]byte, size) 332 n, err := m.MarshalTo(dAtA) 333 if err != nil { 334 return nil, err 335 } 336 return dAtA[:n], nil 337} 338 339func (m *StoreObject) MarshalTo(dAtA []byte) (int, error) { 340 var i int 341 _ = i 342 var l int 343 _ = l 344 if m.WatchSelectors == nil { 345 return 0, proto.NewRequiredNotSetError("watch_selectors") 346 } else { 347 dAtA[i] = 0xa 348 i++ 349 i = encodeVarintPlugin(dAtA, i, uint64(m.WatchSelectors.Size())) 350 n1, err := m.WatchSelectors.MarshalTo(dAtA[i:]) 351 if err != nil { 352 return 0, err 353 } 354 i += n1 355 } 356 if m.XXX_unrecognized != nil { 357 i += copy(dAtA[i:], m.XXX_unrecognized) 358 } 359 return i, nil 360} 361 362func (m *TLSAuthorization) Marshal() (dAtA []byte, err error) { 363 size := m.Size() 364 dAtA = make([]byte, size) 365 n, err := m.MarshalTo(dAtA) 366 if err != nil { 367 return nil, err 368 } 369 return dAtA[:n], nil 370} 371 372func (m *TLSAuthorization) MarshalTo(dAtA []byte) (int, error) { 373 var i int 374 _ = i 375 var l int 376 _ = l 377 if len(m.Roles) > 0 { 378 for _, s := range m.Roles { 379 dAtA[i] = 0xa 380 i++ 381 l = len(s) 382 for l >= 1<<7 { 383 dAtA[i] = uint8(uint64(l)&0x7f | 0x80) 384 l >>= 7 385 i++ 386 } 387 dAtA[i] = uint8(l) 388 i++ 389 i += copy(dAtA[i:], s) 390 } 391 } 392 if m.Insecure != nil { 393 dAtA[i] = 0x10 394 i++ 395 if *m.Insecure { 396 dAtA[i] = 1 397 } else { 398 dAtA[i] = 0 399 } 400 i++ 401 } 402 if m.XXX_unrecognized != nil { 403 i += copy(dAtA[i:], m.XXX_unrecognized) 404 } 405 return i, nil 406} 407 408func encodeVarintPlugin(dAtA []byte, offset int, v uint64) int { 409 for v >= 1<<7 { 410 dAtA[offset] = uint8(v&0x7f | 0x80) 411 v >>= 7 412 offset++ 413 } 414 dAtA[offset] = uint8(v) 415 return offset + 1 416} 417 418func (m *WatchSelectors) Size() (n int) { 419 var l int 420 _ = l 421 if m.ID != nil { 422 n += 2 423 } 424 if m.IDPrefix != nil { 425 n += 2 426 } 427 if m.Name != nil { 428 n += 2 429 } 430 if m.NamePrefix != nil { 431 n += 2 432 } 433 if m.Custom != nil { 434 n += 2 435 } 436 if m.CustomPrefix != nil { 437 n += 2 438 } 439 if m.ServiceID != nil { 440 n += 2 441 } 442 if m.NodeID != nil { 443 n += 2 444 } 445 if m.Slot != nil { 446 n += 2 447 } 448 if m.DesiredState != nil { 449 n += 2 450 } 451 if m.Role != nil { 452 n += 2 453 } 454 if m.Membership != nil { 455 n += 2 456 } 457 if m.Kind != nil { 458 n += 2 459 } 460 if m.XXX_unrecognized != nil { 461 n += len(m.XXX_unrecognized) 462 } 463 return n 464} 465 466func (m *StoreObject) Size() (n int) { 467 var l int 468 _ = l 469 if m.WatchSelectors != nil { 470 l = m.WatchSelectors.Size() 471 n += 1 + l + sovPlugin(uint64(l)) 472 } 473 if m.XXX_unrecognized != nil { 474 n += len(m.XXX_unrecognized) 475 } 476 return n 477} 478 479func (m *TLSAuthorization) Size() (n int) { 480 var l int 481 _ = l 482 if len(m.Roles) > 0 { 483 for _, s := range m.Roles { 484 l = len(s) 485 n += 1 + l + sovPlugin(uint64(l)) 486 } 487 } 488 if m.Insecure != nil { 489 n += 2 490 } 491 if m.XXX_unrecognized != nil { 492 n += len(m.XXX_unrecognized) 493 } 494 return n 495} 496 497func sovPlugin(x uint64) (n int) { 498 for { 499 n++ 500 x >>= 7 501 if x == 0 { 502 break 503 } 504 } 505 return n 506} 507func sozPlugin(x uint64) (n int) { 508 return sovPlugin(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 509} 510func (this *WatchSelectors) String() string { 511 if this == nil { 512 return "nil" 513 } 514 s := strings.Join([]string{`&WatchSelectors{`, 515 `ID:` + valueToStringPlugin(this.ID) + `,`, 516 `IDPrefix:` + valueToStringPlugin(this.IDPrefix) + `,`, 517 `Name:` + valueToStringPlugin(this.Name) + `,`, 518 `NamePrefix:` + valueToStringPlugin(this.NamePrefix) + `,`, 519 `Custom:` + valueToStringPlugin(this.Custom) + `,`, 520 `CustomPrefix:` + valueToStringPlugin(this.CustomPrefix) + `,`, 521 `ServiceID:` + valueToStringPlugin(this.ServiceID) + `,`, 522 `NodeID:` + valueToStringPlugin(this.NodeID) + `,`, 523 `Slot:` + valueToStringPlugin(this.Slot) + `,`, 524 `DesiredState:` + valueToStringPlugin(this.DesiredState) + `,`, 525 `Role:` + valueToStringPlugin(this.Role) + `,`, 526 `Membership:` + valueToStringPlugin(this.Membership) + `,`, 527 `Kind:` + valueToStringPlugin(this.Kind) + `,`, 528 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 529 `}`, 530 }, "") 531 return s 532} 533func (this *StoreObject) String() string { 534 if this == nil { 535 return "nil" 536 } 537 s := strings.Join([]string{`&StoreObject{`, 538 `WatchSelectors:` + strings.Replace(fmt.Sprintf("%v", this.WatchSelectors), "WatchSelectors", "WatchSelectors", 1) + `,`, 539 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 540 `}`, 541 }, "") 542 return s 543} 544func (this *TLSAuthorization) String() string { 545 if this == nil { 546 return "nil" 547 } 548 s := strings.Join([]string{`&TLSAuthorization{`, 549 `Roles:` + fmt.Sprintf("%v", this.Roles) + `,`, 550 `Insecure:` + valueToStringPlugin(this.Insecure) + `,`, 551 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 552 `}`, 553 }, "") 554 return s 555} 556func valueToStringPlugin(v interface{}) string { 557 rv := reflect.ValueOf(v) 558 if rv.IsNil() { 559 return "nil" 560 } 561 pv := reflect.Indirect(rv).Interface() 562 return fmt.Sprintf("*%v", pv) 563} 564func (m *WatchSelectors) Unmarshal(dAtA []byte) error { 565 l := len(dAtA) 566 iNdEx := 0 567 for iNdEx < l { 568 preIndex := iNdEx 569 var wire uint64 570 for shift := uint(0); ; shift += 7 { 571 if shift >= 64 { 572 return ErrIntOverflowPlugin 573 } 574 if iNdEx >= l { 575 return io.ErrUnexpectedEOF 576 } 577 b := dAtA[iNdEx] 578 iNdEx++ 579 wire |= (uint64(b) & 0x7F) << shift 580 if b < 0x80 { 581 break 582 } 583 } 584 fieldNum := int32(wire >> 3) 585 wireType := int(wire & 0x7) 586 if wireType == 4 { 587 return fmt.Errorf("proto: WatchSelectors: wiretype end group for non-group") 588 } 589 if fieldNum <= 0 { 590 return fmt.Errorf("proto: WatchSelectors: illegal tag %d (wire type %d)", fieldNum, wire) 591 } 592 switch fieldNum { 593 case 1: 594 if wireType != 0 { 595 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) 596 } 597 var v int 598 for shift := uint(0); ; shift += 7 { 599 if shift >= 64 { 600 return ErrIntOverflowPlugin 601 } 602 if iNdEx >= l { 603 return io.ErrUnexpectedEOF 604 } 605 b := dAtA[iNdEx] 606 iNdEx++ 607 v |= (int(b) & 0x7F) << shift 608 if b < 0x80 { 609 break 610 } 611 } 612 b := bool(v != 0) 613 m.ID = &b 614 case 2: 615 if wireType != 0 { 616 return fmt.Errorf("proto: wrong wireType = %d for field IDPrefix", wireType) 617 } 618 var v int 619 for shift := uint(0); ; shift += 7 { 620 if shift >= 64 { 621 return ErrIntOverflowPlugin 622 } 623 if iNdEx >= l { 624 return io.ErrUnexpectedEOF 625 } 626 b := dAtA[iNdEx] 627 iNdEx++ 628 v |= (int(b) & 0x7F) << shift 629 if b < 0x80 { 630 break 631 } 632 } 633 b := bool(v != 0) 634 m.IDPrefix = &b 635 case 3: 636 if wireType != 0 { 637 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) 638 } 639 var v int 640 for shift := uint(0); ; shift += 7 { 641 if shift >= 64 { 642 return ErrIntOverflowPlugin 643 } 644 if iNdEx >= l { 645 return io.ErrUnexpectedEOF 646 } 647 b := dAtA[iNdEx] 648 iNdEx++ 649 v |= (int(b) & 0x7F) << shift 650 if b < 0x80 { 651 break 652 } 653 } 654 b := bool(v != 0) 655 m.Name = &b 656 case 4: 657 if wireType != 0 { 658 return fmt.Errorf("proto: wrong wireType = %d for field NamePrefix", wireType) 659 } 660 var v int 661 for shift := uint(0); ; shift += 7 { 662 if shift >= 64 { 663 return ErrIntOverflowPlugin 664 } 665 if iNdEx >= l { 666 return io.ErrUnexpectedEOF 667 } 668 b := dAtA[iNdEx] 669 iNdEx++ 670 v |= (int(b) & 0x7F) << shift 671 if b < 0x80 { 672 break 673 } 674 } 675 b := bool(v != 0) 676 m.NamePrefix = &b 677 case 5: 678 if wireType != 0 { 679 return fmt.Errorf("proto: wrong wireType = %d for field Custom", wireType) 680 } 681 var v int 682 for shift := uint(0); ; shift += 7 { 683 if shift >= 64 { 684 return ErrIntOverflowPlugin 685 } 686 if iNdEx >= l { 687 return io.ErrUnexpectedEOF 688 } 689 b := dAtA[iNdEx] 690 iNdEx++ 691 v |= (int(b) & 0x7F) << shift 692 if b < 0x80 { 693 break 694 } 695 } 696 b := bool(v != 0) 697 m.Custom = &b 698 case 6: 699 if wireType != 0 { 700 return fmt.Errorf("proto: wrong wireType = %d for field CustomPrefix", wireType) 701 } 702 var v int 703 for shift := uint(0); ; shift += 7 { 704 if shift >= 64 { 705 return ErrIntOverflowPlugin 706 } 707 if iNdEx >= l { 708 return io.ErrUnexpectedEOF 709 } 710 b := dAtA[iNdEx] 711 iNdEx++ 712 v |= (int(b) & 0x7F) << shift 713 if b < 0x80 { 714 break 715 } 716 } 717 b := bool(v != 0) 718 m.CustomPrefix = &b 719 case 7: 720 if wireType != 0 { 721 return fmt.Errorf("proto: wrong wireType = %d for field ServiceID", wireType) 722 } 723 var v int 724 for shift := uint(0); ; shift += 7 { 725 if shift >= 64 { 726 return ErrIntOverflowPlugin 727 } 728 if iNdEx >= l { 729 return io.ErrUnexpectedEOF 730 } 731 b := dAtA[iNdEx] 732 iNdEx++ 733 v |= (int(b) & 0x7F) << shift 734 if b < 0x80 { 735 break 736 } 737 } 738 b := bool(v != 0) 739 m.ServiceID = &b 740 case 8: 741 if wireType != 0 { 742 return fmt.Errorf("proto: wrong wireType = %d for field NodeID", wireType) 743 } 744 var v int 745 for shift := uint(0); ; shift += 7 { 746 if shift >= 64 { 747 return ErrIntOverflowPlugin 748 } 749 if iNdEx >= l { 750 return io.ErrUnexpectedEOF 751 } 752 b := dAtA[iNdEx] 753 iNdEx++ 754 v |= (int(b) & 0x7F) << shift 755 if b < 0x80 { 756 break 757 } 758 } 759 b := bool(v != 0) 760 m.NodeID = &b 761 case 9: 762 if wireType != 0 { 763 return fmt.Errorf("proto: wrong wireType = %d for field Slot", wireType) 764 } 765 var v int 766 for shift := uint(0); ; shift += 7 { 767 if shift >= 64 { 768 return ErrIntOverflowPlugin 769 } 770 if iNdEx >= l { 771 return io.ErrUnexpectedEOF 772 } 773 b := dAtA[iNdEx] 774 iNdEx++ 775 v |= (int(b) & 0x7F) << shift 776 if b < 0x80 { 777 break 778 } 779 } 780 b := bool(v != 0) 781 m.Slot = &b 782 case 10: 783 if wireType != 0 { 784 return fmt.Errorf("proto: wrong wireType = %d for field DesiredState", wireType) 785 } 786 var v int 787 for shift := uint(0); ; shift += 7 { 788 if shift >= 64 { 789 return ErrIntOverflowPlugin 790 } 791 if iNdEx >= l { 792 return io.ErrUnexpectedEOF 793 } 794 b := dAtA[iNdEx] 795 iNdEx++ 796 v |= (int(b) & 0x7F) << shift 797 if b < 0x80 { 798 break 799 } 800 } 801 b := bool(v != 0) 802 m.DesiredState = &b 803 case 11: 804 if wireType != 0 { 805 return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType) 806 } 807 var v int 808 for shift := uint(0); ; shift += 7 { 809 if shift >= 64 { 810 return ErrIntOverflowPlugin 811 } 812 if iNdEx >= l { 813 return io.ErrUnexpectedEOF 814 } 815 b := dAtA[iNdEx] 816 iNdEx++ 817 v |= (int(b) & 0x7F) << shift 818 if b < 0x80 { 819 break 820 } 821 } 822 b := bool(v != 0) 823 m.Role = &b 824 case 12: 825 if wireType != 0 { 826 return fmt.Errorf("proto: wrong wireType = %d for field Membership", wireType) 827 } 828 var v int 829 for shift := uint(0); ; shift += 7 { 830 if shift >= 64 { 831 return ErrIntOverflowPlugin 832 } 833 if iNdEx >= l { 834 return io.ErrUnexpectedEOF 835 } 836 b := dAtA[iNdEx] 837 iNdEx++ 838 v |= (int(b) & 0x7F) << shift 839 if b < 0x80 { 840 break 841 } 842 } 843 b := bool(v != 0) 844 m.Membership = &b 845 case 13: 846 if wireType != 0 { 847 return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) 848 } 849 var v int 850 for shift := uint(0); ; shift += 7 { 851 if shift >= 64 { 852 return ErrIntOverflowPlugin 853 } 854 if iNdEx >= l { 855 return io.ErrUnexpectedEOF 856 } 857 b := dAtA[iNdEx] 858 iNdEx++ 859 v |= (int(b) & 0x7F) << shift 860 if b < 0x80 { 861 break 862 } 863 } 864 b := bool(v != 0) 865 m.Kind = &b 866 default: 867 iNdEx = preIndex 868 skippy, err := skipPlugin(dAtA[iNdEx:]) 869 if err != nil { 870 return err 871 } 872 if skippy < 0 { 873 return ErrInvalidLengthPlugin 874 } 875 if (iNdEx + skippy) > l { 876 return io.ErrUnexpectedEOF 877 } 878 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 879 iNdEx += skippy 880 } 881 } 882 883 if iNdEx > l { 884 return io.ErrUnexpectedEOF 885 } 886 return nil 887} 888func (m *StoreObject) Unmarshal(dAtA []byte) error { 889 var hasFields [1]uint64 890 l := len(dAtA) 891 iNdEx := 0 892 for iNdEx < l { 893 preIndex := iNdEx 894 var wire uint64 895 for shift := uint(0); ; shift += 7 { 896 if shift >= 64 { 897 return ErrIntOverflowPlugin 898 } 899 if iNdEx >= l { 900 return io.ErrUnexpectedEOF 901 } 902 b := dAtA[iNdEx] 903 iNdEx++ 904 wire |= (uint64(b) & 0x7F) << shift 905 if b < 0x80 { 906 break 907 } 908 } 909 fieldNum := int32(wire >> 3) 910 wireType := int(wire & 0x7) 911 if wireType == 4 { 912 return fmt.Errorf("proto: StoreObject: wiretype end group for non-group") 913 } 914 if fieldNum <= 0 { 915 return fmt.Errorf("proto: StoreObject: illegal tag %d (wire type %d)", fieldNum, wire) 916 } 917 switch fieldNum { 918 case 1: 919 if wireType != 2 { 920 return fmt.Errorf("proto: wrong wireType = %d for field WatchSelectors", wireType) 921 } 922 var msglen int 923 for shift := uint(0); ; shift += 7 { 924 if shift >= 64 { 925 return ErrIntOverflowPlugin 926 } 927 if iNdEx >= l { 928 return io.ErrUnexpectedEOF 929 } 930 b := dAtA[iNdEx] 931 iNdEx++ 932 msglen |= (int(b) & 0x7F) << shift 933 if b < 0x80 { 934 break 935 } 936 } 937 if msglen < 0 { 938 return ErrInvalidLengthPlugin 939 } 940 postIndex := iNdEx + msglen 941 if postIndex > l { 942 return io.ErrUnexpectedEOF 943 } 944 if m.WatchSelectors == nil { 945 m.WatchSelectors = &WatchSelectors{} 946 } 947 if err := m.WatchSelectors.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 948 return err 949 } 950 iNdEx = postIndex 951 hasFields[0] |= uint64(0x00000001) 952 default: 953 iNdEx = preIndex 954 skippy, err := skipPlugin(dAtA[iNdEx:]) 955 if err != nil { 956 return err 957 } 958 if skippy < 0 { 959 return ErrInvalidLengthPlugin 960 } 961 if (iNdEx + skippy) > l { 962 return io.ErrUnexpectedEOF 963 } 964 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 965 iNdEx += skippy 966 } 967 } 968 if hasFields[0]&uint64(0x00000001) == 0 { 969 return proto.NewRequiredNotSetError("watch_selectors") 970 } 971 972 if iNdEx > l { 973 return io.ErrUnexpectedEOF 974 } 975 return nil 976} 977func (m *TLSAuthorization) Unmarshal(dAtA []byte) error { 978 l := len(dAtA) 979 iNdEx := 0 980 for iNdEx < l { 981 preIndex := iNdEx 982 var wire uint64 983 for shift := uint(0); ; shift += 7 { 984 if shift >= 64 { 985 return ErrIntOverflowPlugin 986 } 987 if iNdEx >= l { 988 return io.ErrUnexpectedEOF 989 } 990 b := dAtA[iNdEx] 991 iNdEx++ 992 wire |= (uint64(b) & 0x7F) << shift 993 if b < 0x80 { 994 break 995 } 996 } 997 fieldNum := int32(wire >> 3) 998 wireType := int(wire & 0x7) 999 if wireType == 4 { 1000 return fmt.Errorf("proto: TLSAuthorization: wiretype end group for non-group") 1001 } 1002 if fieldNum <= 0 { 1003 return fmt.Errorf("proto: TLSAuthorization: illegal tag %d (wire type %d)", fieldNum, wire) 1004 } 1005 switch fieldNum { 1006 case 1: 1007 if wireType != 2 { 1008 return fmt.Errorf("proto: wrong wireType = %d for field Roles", wireType) 1009 } 1010 var stringLen uint64 1011 for shift := uint(0); ; shift += 7 { 1012 if shift >= 64 { 1013 return ErrIntOverflowPlugin 1014 } 1015 if iNdEx >= l { 1016 return io.ErrUnexpectedEOF 1017 } 1018 b := dAtA[iNdEx] 1019 iNdEx++ 1020 stringLen |= (uint64(b) & 0x7F) << shift 1021 if b < 0x80 { 1022 break 1023 } 1024 } 1025 intStringLen := int(stringLen) 1026 if intStringLen < 0 { 1027 return ErrInvalidLengthPlugin 1028 } 1029 postIndex := iNdEx + intStringLen 1030 if postIndex > l { 1031 return io.ErrUnexpectedEOF 1032 } 1033 m.Roles = append(m.Roles, string(dAtA[iNdEx:postIndex])) 1034 iNdEx = postIndex 1035 case 2: 1036 if wireType != 0 { 1037 return fmt.Errorf("proto: wrong wireType = %d for field Insecure", wireType) 1038 } 1039 var v int 1040 for shift := uint(0); ; shift += 7 { 1041 if shift >= 64 { 1042 return ErrIntOverflowPlugin 1043 } 1044 if iNdEx >= l { 1045 return io.ErrUnexpectedEOF 1046 } 1047 b := dAtA[iNdEx] 1048 iNdEx++ 1049 v |= (int(b) & 0x7F) << shift 1050 if b < 0x80 { 1051 break 1052 } 1053 } 1054 b := bool(v != 0) 1055 m.Insecure = &b 1056 default: 1057 iNdEx = preIndex 1058 skippy, err := skipPlugin(dAtA[iNdEx:]) 1059 if err != nil { 1060 return err 1061 } 1062 if skippy < 0 { 1063 return ErrInvalidLengthPlugin 1064 } 1065 if (iNdEx + skippy) > l { 1066 return io.ErrUnexpectedEOF 1067 } 1068 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 1069 iNdEx += skippy 1070 } 1071 } 1072 1073 if iNdEx > l { 1074 return io.ErrUnexpectedEOF 1075 } 1076 return nil 1077} 1078func skipPlugin(dAtA []byte) (n int, err error) { 1079 l := len(dAtA) 1080 iNdEx := 0 1081 for iNdEx < l { 1082 var wire uint64 1083 for shift := uint(0); ; shift += 7 { 1084 if shift >= 64 { 1085 return 0, ErrIntOverflowPlugin 1086 } 1087 if iNdEx >= l { 1088 return 0, io.ErrUnexpectedEOF 1089 } 1090 b := dAtA[iNdEx] 1091 iNdEx++ 1092 wire |= (uint64(b) & 0x7F) << shift 1093 if b < 0x80 { 1094 break 1095 } 1096 } 1097 wireType := int(wire & 0x7) 1098 switch wireType { 1099 case 0: 1100 for shift := uint(0); ; shift += 7 { 1101 if shift >= 64 { 1102 return 0, ErrIntOverflowPlugin 1103 } 1104 if iNdEx >= l { 1105 return 0, io.ErrUnexpectedEOF 1106 } 1107 iNdEx++ 1108 if dAtA[iNdEx-1] < 0x80 { 1109 break 1110 } 1111 } 1112 return iNdEx, nil 1113 case 1: 1114 iNdEx += 8 1115 return iNdEx, nil 1116 case 2: 1117 var length int 1118 for shift := uint(0); ; shift += 7 { 1119 if shift >= 64 { 1120 return 0, ErrIntOverflowPlugin 1121 } 1122 if iNdEx >= l { 1123 return 0, io.ErrUnexpectedEOF 1124 } 1125 b := dAtA[iNdEx] 1126 iNdEx++ 1127 length |= (int(b) & 0x7F) << shift 1128 if b < 0x80 { 1129 break 1130 } 1131 } 1132 iNdEx += length 1133 if length < 0 { 1134 return 0, ErrInvalidLengthPlugin 1135 } 1136 return iNdEx, nil 1137 case 3: 1138 for { 1139 var innerWire uint64 1140 var start int = iNdEx 1141 for shift := uint(0); ; shift += 7 { 1142 if shift >= 64 { 1143 return 0, ErrIntOverflowPlugin 1144 } 1145 if iNdEx >= l { 1146 return 0, io.ErrUnexpectedEOF 1147 } 1148 b := dAtA[iNdEx] 1149 iNdEx++ 1150 innerWire |= (uint64(b) & 0x7F) << shift 1151 if b < 0x80 { 1152 break 1153 } 1154 } 1155 innerWireType := int(innerWire & 0x7) 1156 if innerWireType == 4 { 1157 break 1158 } 1159 next, err := skipPlugin(dAtA[start:]) 1160 if err != nil { 1161 return 0, err 1162 } 1163 iNdEx = start + next 1164 } 1165 return iNdEx, nil 1166 case 4: 1167 return iNdEx, nil 1168 case 5: 1169 iNdEx += 4 1170 return iNdEx, nil 1171 default: 1172 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 1173 } 1174 } 1175 panic("unreachable") 1176} 1177 1178var ( 1179 ErrInvalidLengthPlugin = fmt.Errorf("proto: negative length found during unmarshaling") 1180 ErrIntOverflowPlugin = fmt.Errorf("proto: integer overflow") 1181) 1182 1183func init() { 1184 proto.RegisterFile("github.com/docker/swarmkit/protobuf/plugin/plugin.proto", fileDescriptorPlugin) 1185} 1186 1187var fileDescriptorPlugin = []byte{ 1188 // 575 bytes of a gzipped FileDescriptorProto 1189 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x52, 0xc1, 0x6e, 0xd3, 0x4c, 1190 0x10, 0xae, 0xd3, 0x36, 0x4d, 0x26, 0x69, 0xff, 0xfe, 0x2b, 0x54, 0xad, 0x7a, 0x70, 0xaa, 0x46, 1191 0x42, 0x41, 0x42, 0x8e, 0xd4, 0x0b, 0x52, 0x6e, 0x94, 0x5c, 0x22, 0x01, 0x45, 0x0e, 0x12, 0x37, 1192 0x22, 0xc7, 0x3b, 0x4d, 0x96, 0x3a, 0x5e, 0x6b, 0x77, 0x4d, 0x0a, 0x27, 0x5e, 0x80, 0x07, 0xe0, 1193 0xca, 0xd3, 0xf4, 0xc8, 0x91, 0x53, 0x44, 0x2d, 0x71, 0xe0, 0x06, 0x6f, 0x80, 0x76, 0xd7, 0x69, 1194 0x08, 0x6a, 0xc5, 0xc9, 0x33, 0xdf, 0x7c, 0xdf, 0xcc, 0x7c, 0x3b, 0x86, 0x47, 0x13, 0xae, 0xa7, 1195 0xf9, 0x38, 0x88, 0xc5, 0xac, 0xcb, 0x44, 0x7c, 0x81, 0xb2, 0xab, 0xe6, 0x91, 0x9c, 0x5d, 0x70, 1196 0xdd, 0xcd, 0xa4, 0xd0, 0x62, 0x9c, 0x9f, 0x77, 0xb3, 0x24, 0x9f, 0xf0, 0xb4, 0xfc, 0x04, 0x16, 1197 0x26, 0x07, 0x8e, 0x1d, 0x2c, 0x49, 0x81, 0xab, 0x1e, 0x1e, 0x4d, 0x84, 0x98, 0x24, 0xb8, 0x12, 1198 0x33, 0x54, 0xb1, 0xe4, 0x99, 0x16, 0x25, 0xf7, 0xf8, 0xd3, 0x26, 0xec, 0xbd, 0x8a, 0x74, 0x3c, 1199 0x1d, 0x62, 0x82, 0xb1, 0x16, 0x52, 0x91, 0x03, 0xa8, 0x70, 0x46, 0xbd, 0x23, 0xaf, 0x53, 0x3b, 1200 0xad, 0x16, 0x8b, 0x56, 0x65, 0xd0, 0x0f, 0x2b, 0x9c, 0x91, 0x07, 0x50, 0xe7, 0x6c, 0x94, 0x49, 1201 0x3c, 0xe7, 0x97, 0xb4, 0x62, 0xcb, 0xcd, 0x62, 0xd1, 0xaa, 0x0d, 0xfa, 0x2f, 0x2c, 0x16, 0xd6, 1202 0x38, 0x73, 0x11, 0x21, 0xb0, 0x95, 0x46, 0x33, 0xa4, 0x9b, 0x86, 0x15, 0xda, 0x98, 0xb4, 0xa0, 1203 0x61, 0xbe, 0xcb, 0x06, 0x5b, 0xb6, 0x04, 0x06, 0x2a, 0x45, 0x07, 0x50, 0x8d, 0x73, 0xa5, 0xc5, 1204 0x8c, 0x6e, 0xdb, 0x5a, 0x99, 0x91, 0x36, 0xec, 0xba, 0x68, 0x29, 0xad, 0xda, 0x72, 0xd3, 0x81, 1205 0xa5, 0xf8, 0x21, 0x80, 0x42, 0xf9, 0x96, 0xc7, 0x38, 0xe2, 0x8c, 0xee, 0xd8, 0xed, 0x76, 0x8b, 1206 0x45, 0xab, 0x3e, 0x74, 0xe8, 0xa0, 0x1f, 0xd6, 0x4b, 0xc2, 0x80, 0x91, 0x36, 0xec, 0xa4, 0x82, 1207 0x59, 0x6a, 0xcd, 0x52, 0xa1, 0x58, 0xb4, 0xaa, 0xcf, 0x05, 0x33, 0xbc, 0xaa, 0x29, 0x0d, 0x98, 1208 0x31, 0xa1, 0x12, 0xa1, 0x69, 0xdd, 0x99, 0x30, 0xb1, 0xd9, 0x85, 0xa1, 0xe2, 0x12, 0xd9, 0x48, 1209 0xe9, 0x48, 0x23, 0x05, 0xb7, 0x4b, 0x09, 0x0e, 0x0d, 0x66, 0x84, 0x52, 0x24, 0x48, 0x1b, 0x4e, 1210 0x68, 0x62, 0xe2, 0x03, 0xcc, 0x70, 0x36, 0x46, 0xa9, 0xa6, 0x3c, 0xa3, 0x4d, 0x67, 0x7e, 0x85, 1211 0x18, 0xcd, 0x05, 0x4f, 0x19, 0xdd, 0x75, 0x1a, 0x13, 0x1f, 0xbf, 0x86, 0xc6, 0x50, 0x0b, 0x89, 1212 0x67, 0xe3, 0x37, 0x18, 0x6b, 0x72, 0x06, 0xff, 0xcd, 0xcd, 0xa5, 0x46, 0x6a, 0x79, 0x2a, 0xea, 1213 0x1d, 0x55, 0x3a, 0x8d, 0x93, 0xfb, 0xc1, 0xed, 0xe7, 0x0f, 0xd6, 0x0f, 0x1b, 0xee, 0xcd, 0xd7, 1214 0xf2, 0xe3, 0x3e, 0xec, 0xbf, 0x7c, 0x3a, 0x7c, 0x9c, 0xeb, 0xa9, 0x90, 0xfc, 0x7d, 0xa4, 0xb9, 1215 0x48, 0xc9, 0x3d, 0xd8, 0x36, 0xfb, 0x9a, 0xd6, 0x9b, 0x9d, 0x7a, 0xe8, 0x12, 0x72, 0x08, 0x35, 1216 0x9e, 0x2a, 0x8c, 0x73, 0x89, 0xee, 0xf2, 0xe1, 0x4d, 0xde, 0x7b, 0x02, 0x35, 0x86, 0x98, 0xc5, 1217 0x22, 0x7b, 0x47, 0x5a, 0x81, 0xfb, 0xe1, 0x56, 0x9b, 0x3c, 0x43, 0xa5, 0xa2, 0x09, 0x9e, 0x65, 1218 0xa6, 0xbb, 0xa2, 0x3f, 0x3f, 0xdb, 0xbb, 0xf7, 0xb6, 0xb4, 0xcc, 0x31, 0xbc, 0x11, 0xf6, 0x38, 1219 0x34, 0x95, 0xb1, 0x3a, 0x12, 0xce, 0xeb, 0x3f, 0x1b, 0xfd, 0xb2, 0x8d, 0x1a, 0x27, 0xed, 0xbb, 1220 0xbc, 0xff, 0xf1, 0x72, 0x61, 0x43, 0xad, 0x92, 0xde, 0x25, 0xfc, 0xaf, 0x13, 0x35, 0x8a, 0xd6, 1221 0x6c, 0xfb, 0xb7, 0xcc, 0xd3, 0x53, 0xc1, 0x96, 0xe3, 0x7e, 0x7c, 0xff, 0xd8, 0xb6, 0xf3, 0x3a, 1222 0x77, 0xcd, 0xfb, 0xfb, 0x25, 0xc3, 0x7d, 0x9d, 0xa8, 0x35, 0xe4, 0x94, 0x5e, 0x5d, 0xfb, 0x1b, 1223 0x5f, 0xaf, 0xfd, 0x8d, 0x0f, 0x85, 0xef, 0x5d, 0x15, 0xbe, 0xf7, 0xa5, 0xf0, 0xbd, 0x6f, 0x85, 1224 0xef, 0xfd, 0x0e, 0x00, 0x00, 0xff, 0xff, 0xb3, 0x99, 0x7d, 0xfb, 0xf9, 0x03, 0x00, 0x00, 1225} 1226