|
@@ -63,7 +63,8 @@ func (*IssueNodeCertificateRequest) ProtoMessage() {}
|
|
|
func (*IssueNodeCertificateRequest) Descriptor() ([]byte, []int) { return fileDescriptorCa, []int{2} }
|
|
|
|
|
|
type IssueNodeCertificateResponse struct {
|
|
|
- NodeID string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
|
|
|
+ NodeID string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
|
|
|
+ NodeMembership NodeSpec_Membership `protobuf:"varint,2,opt,name=node_membership,json=nodeMembership,proto3,enum=docker.swarmkit.v1.NodeSpec_Membership" json:"node_membership,omitempty"`
|
|
|
}
|
|
|
|
|
|
func (m *IssueNodeCertificateResponse) Reset() { *m = IssueNodeCertificateResponse{} }
|
|
@@ -178,7 +179,8 @@ func (m *IssueNodeCertificateResponse) Copy() *IssueNodeCertificateResponse {
|
|
|
}
|
|
|
|
|
|
o := &IssueNodeCertificateResponse{
|
|
|
- NodeID: m.NodeID,
|
|
|
+ NodeID: m.NodeID,
|
|
|
+ NodeMembership: m.NodeMembership,
|
|
|
}
|
|
|
|
|
|
return o
|
|
@@ -247,9 +249,10 @@ func (this *IssueNodeCertificateResponse) GoString() string {
|
|
|
if this == nil {
|
|
|
return "nil"
|
|
|
}
|
|
|
- s := make([]string, 0, 5)
|
|
|
+ s := make([]string, 0, 6)
|
|
|
s = append(s, "&api.IssueNodeCertificateResponse{")
|
|
|
s = append(s, "NodeID: "+fmt.Sprintf("%#v", this.NodeID)+",\n")
|
|
|
+ s = append(s, "NodeMembership: "+fmt.Sprintf("%#v", this.NodeMembership)+",\n")
|
|
|
s = append(s, "}")
|
|
|
return strings.Join(s, "")
|
|
|
}
|
|
@@ -583,6 +586,11 @@ func (m *IssueNodeCertificateResponse) MarshalTo(data []byte) (int, error) {
|
|
|
i = encodeVarintCa(data, i, uint64(len(m.NodeID)))
|
|
|
i += copy(data[i:], m.NodeID)
|
|
|
}
|
|
|
+ if m.NodeMembership != 0 {
|
|
|
+ data[i] = 0x10
|
|
|
+ i++
|
|
|
+ i = encodeVarintCa(data, i, uint64(m.NodeMembership))
|
|
|
+ }
|
|
|
return i, nil
|
|
|
}
|
|
|
|
|
@@ -842,6 +850,9 @@ func (m *IssueNodeCertificateResponse) Size() (n int) {
|
|
|
if l > 0 {
|
|
|
n += 1 + l + sovCa(uint64(l))
|
|
|
}
|
|
|
+ if m.NodeMembership != 0 {
|
|
|
+ n += 1 + sovCa(uint64(m.NodeMembership))
|
|
|
+ }
|
|
|
return n
|
|
|
}
|
|
|
|
|
@@ -913,6 +924,7 @@ func (this *IssueNodeCertificateResponse) String() string {
|
|
|
}
|
|
|
s := strings.Join([]string{`&IssueNodeCertificateResponse{`,
|
|
|
`NodeID:` + fmt.Sprintf("%v", this.NodeID) + `,`,
|
|
|
+ `NodeMembership:` + fmt.Sprintf("%v", this.NodeMembership) + `,`,
|
|
|
`}`,
|
|
|
}, "")
|
|
|
return s
|
|
@@ -1326,6 +1338,25 @@ func (m *IssueNodeCertificateResponse) Unmarshal(data []byte) error {
|
|
|
}
|
|
|
m.NodeID = string(data[iNdEx:postIndex])
|
|
|
iNdEx = postIndex
|
|
|
+ case 2:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field NodeMembership", wireType)
|
|
|
+ }
|
|
|
+ m.NodeMembership = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowCa
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := data[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.NodeMembership |= (NodeSpec_Membership(b) & 0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
default:
|
|
|
iNdEx = preIndex
|
|
|
skippy, err := skipCa(data[iNdEx:])
|
|
@@ -1584,33 +1615,36 @@ var (
|
|
|
)
|
|
|
|
|
|
var fileDescriptorCa = []byte{
|
|
|
- // 442 bytes of a gzipped FileDescriptorProto
|
|
|
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0xe2, 0x48, 0x4e, 0xd4, 0x2b,
|
|
|
- 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x4a, 0xc9, 0x4f, 0xce, 0x4e, 0x2d, 0xd2, 0x2b, 0x2e, 0x4f,
|
|
|
- 0x2c, 0xca, 0xcd, 0xce, 0x2c, 0xd1, 0x2b, 0x33, 0x94, 0xe2, 0x2e, 0xa9, 0x2c, 0x48, 0x2d, 0x86,
|
|
|
- 0x28, 0x90, 0x12, 0x49, 0xcf, 0x4f, 0xcf, 0x07, 0x33, 0xf5, 0x41, 0x2c, 0xa8, 0xa8, 0x70, 0x41,
|
|
|
- 0x4e, 0x69, 0x7a, 0x66, 0x9e, 0x3e, 0x84, 0x82, 0x08, 0x2a, 0x39, 0x73, 0xc9, 0xf8, 0xe5, 0xa7,
|
|
|
- 0xa4, 0x3a, 0xa7, 0x16, 0x95, 0x64, 0xa6, 0x65, 0x26, 0x27, 0x96, 0xa4, 0x06, 0x97, 0x24, 0x96,
|
|
|
- 0x94, 0x16, 0x07, 0xa5, 0x16, 0x96, 0xa6, 0x16, 0x97, 0x08, 0x29, 0x73, 0xb1, 0xe7, 0x01, 0xe5,
|
|
|
- 0xe3, 0x33, 0x53, 0x24, 0x18, 0x15, 0x18, 0x35, 0x38, 0x9d, 0xb8, 0x1e, 0xdd, 0x93, 0x67, 0x03,
|
|
|
- 0x69, 0xf1, 0x74, 0x09, 0x62, 0x03, 0x49, 0x79, 0xa6, 0x28, 0xcd, 0x63, 0xe4, 0x92, 0xc5, 0x61,
|
|
|
- 0x4a, 0x71, 0x41, 0x7e, 0x5e, 0x71, 0xaa, 0x90, 0x15, 0x17, 0x5b, 0x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x99, 0x24, 0xa4, 0x8f, 0x2d, 0x70, 0xf0, 0x38, 0x49, 0xca,
|
|
|
- 0x80, 0x78, 0x0d, 0x10, 0x47, 0x2a, 0x71, 0x9c, 0x5a, 0xf7, 0x6e, 0x06, 0x13, 0x93, 0x00, 0xa3,
|
|
|
- 0xd1, 0x74, 0x26, 0x2e, 0x70, 0x00, 0x40, 0x1d, 0x84, 0x2d, 0xf8, 0xb0, 0x3b, 0x08, 0x4f, 0x64,
|
|
|
- 0x63, 0x77, 0x10, 0xbe, 0x98, 0x41, 0x38, 0x48, 0xa8, 0x8d, 0x91, 0x4b, 0x14, 0x6b, 0x4a, 0x17,
|
|
|
- 0x32, 0xc0, 0x95, 0x68, 0x70, 0x65, 0x2d, 0x29, 0x43, 0x12, 0x74, 0xa0, 0x3b, 0xc4, 0x49, 0xe6,
|
|
|
- 0xc4, 0x43, 0x39, 0x86, 0x1b, 0x40, 0xfc, 0xe1, 0xa1, 0x1c, 0x63, 0xc3, 0x23, 0x39, 0xc6, 0x13,
|
|
|
- 0x40, 0x7c, 0x01, 0x88, 0x1f, 0x00, 0x71, 0x12, 0x1b, 0x38, 0x73, 0x1b, 0x03, 0x02, 0x00, 0x00,
|
|
|
- 0xff, 0xff, 0x42, 0x13, 0xc9, 0x2a, 0x34, 0x04, 0x00, 0x00,
|
|
|
+ // 487 bytes of a gzipped FileDescriptorProto
|
|
|
+ 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x94, 0x94, 0xcf, 0x6e, 0xd3, 0x40,
|
|
|
+ 0x10, 0xc6, 0x59, 0x07, 0xa5, 0x65, 0x52, 0x05, 0xb4, 0x14, 0x14, 0x52, 0x37, 0xad, 0xcc, 0x01,
|
|
|
+ 0x4e, 0x4e, 0x6a, 0x6e, 0x9c, 0x48, 0x8c, 0x84, 0x72, 0x00, 0xa1, 0xcd, 0x03, 0x20, 0xd7, 0x19,
|
|
|
+ 0x82, 0xd5, 0x26, 0x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