|
@@ -77,6 +77,8 @@ type EndpointRecord struct {
|
|
Aliases []string `protobuf:"bytes,7,rep,name=aliases" json:"aliases,omitempty"`
|
|
Aliases []string `protobuf:"bytes,7,rep,name=aliases" json:"aliases,omitempty"`
|
|
// List of aliases task specific aliases
|
|
// List of aliases task specific aliases
|
|
TaskAliases []string `protobuf:"bytes,8,rep,name=task_aliases,json=taskAliases" json:"task_aliases,omitempty"`
|
|
TaskAliases []string `protobuf:"bytes,8,rep,name=task_aliases,json=taskAliases" json:"task_aliases,omitempty"`
|
|
|
|
+ // Whether this enpoint's service has been disabled
|
|
|
|
+ ServiceDisabled bool `protobuf:"varint,9,opt,name=service_disabled,json=serviceDisabled,proto3" json:"service_disabled,omitempty"`
|
|
}
|
|
}
|
|
|
|
|
|
func (m *EndpointRecord) Reset() { *m = EndpointRecord{} }
|
|
func (m *EndpointRecord) Reset() { *m = EndpointRecord{} }
|
|
@@ -139,6 +141,13 @@ func (m *EndpointRecord) GetTaskAliases() []string {
|
|
return nil
|
|
return nil
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+func (m *EndpointRecord) GetServiceDisabled() bool {
|
|
|
|
+ if m != nil {
|
|
|
|
+ return m.ServiceDisabled
|
|
|
|
+ }
|
|
|
|
+ return false
|
|
|
|
+}
|
|
|
|
+
|
|
// PortConfig specifies an exposed port which can be
|
|
// PortConfig specifies an exposed port which can be
|
|
// addressed using the given name. This can be later queried
|
|
// addressed using the given name. This can be later queried
|
|
// using a service discovery api or a DNS SRV query. The node
|
|
// using a service discovery api or a DNS SRV query. The node
|
|
@@ -202,7 +211,7 @@ func (this *EndpointRecord) GoString() string {
|
|
if this == nil {
|
|
if this == nil {
|
|
return "nil"
|
|
return "nil"
|
|
}
|
|
}
|
|
- s := make([]string, 0, 12)
|
|
|
|
|
|
+ s := make([]string, 0, 13)
|
|
s = append(s, "&libnetwork.EndpointRecord{")
|
|
s = append(s, "&libnetwork.EndpointRecord{")
|
|
s = append(s, "Name: "+fmt.Sprintf("%#v", this.Name)+",\n")
|
|
s = append(s, "Name: "+fmt.Sprintf("%#v", this.Name)+",\n")
|
|
s = append(s, "ServiceName: "+fmt.Sprintf("%#v", this.ServiceName)+",\n")
|
|
s = append(s, "ServiceName: "+fmt.Sprintf("%#v", this.ServiceName)+",\n")
|
|
@@ -214,6 +223,7 @@ func (this *EndpointRecord) GoString() string {
|
|
}
|
|
}
|
|
s = append(s, "Aliases: "+fmt.Sprintf("%#v", this.Aliases)+",\n")
|
|
s = append(s, "Aliases: "+fmt.Sprintf("%#v", this.Aliases)+",\n")
|
|
s = append(s, "TaskAliases: "+fmt.Sprintf("%#v", this.TaskAliases)+",\n")
|
|
s = append(s, "TaskAliases: "+fmt.Sprintf("%#v", this.TaskAliases)+",\n")
|
|
|
|
+ s = append(s, "ServiceDisabled: "+fmt.Sprintf("%#v", this.ServiceDisabled)+",\n")
|
|
s = append(s, "}")
|
|
s = append(s, "}")
|
|
return strings.Join(s, "")
|
|
return strings.Join(s, "")
|
|
}
|
|
}
|
|
@@ -325,6 +335,16 @@ func (m *EndpointRecord) MarshalTo(dAtA []byte) (int, error) {
|
|
i += copy(dAtA[i:], s)
|
|
i += copy(dAtA[i:], s)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ if m.ServiceDisabled {
|
|
|
|
+ dAtA[i] = 0x48
|
|
|
|
+ i++
|
|
|
|
+ if m.ServiceDisabled {
|
|
|
|
+ dAtA[i] = 1
|
|
|
|
+ } else {
|
|
|
|
+ dAtA[i] = 0
|
|
|
|
+ }
|
|
|
|
+ i++
|
|
|
|
+ }
|
|
return i, nil
|
|
return i, nil
|
|
}
|
|
}
|
|
|
|
|
|
@@ -367,24 +387,6 @@ func (m *PortConfig) MarshalTo(dAtA []byte) (int, error) {
|
|
return i, nil
|
|
return i, nil
|
|
}
|
|
}
|
|
|
|
|
|
-func encodeFixed64Agent(dAtA []byte, offset int, v uint64) int {
|
|
|
|
- dAtA[offset] = uint8(v)
|
|
|
|
- dAtA[offset+1] = uint8(v >> 8)
|
|
|
|
- dAtA[offset+2] = uint8(v >> 16)
|
|
|
|
- dAtA[offset+3] = uint8(v >> 24)
|
|
|
|
- dAtA[offset+4] = uint8(v >> 32)
|
|
|
|
- dAtA[offset+5] = uint8(v >> 40)
|
|
|
|
- dAtA[offset+6] = uint8(v >> 48)
|
|
|
|
- dAtA[offset+7] = uint8(v >> 56)
|
|
|
|
- return offset + 8
|
|
|
|
-}
|
|
|
|
-func encodeFixed32Agent(dAtA []byte, offset int, v uint32) int {
|
|
|
|
- dAtA[offset] = uint8(v)
|
|
|
|
- dAtA[offset+1] = uint8(v >> 8)
|
|
|
|
- dAtA[offset+2] = uint8(v >> 16)
|
|
|
|
- dAtA[offset+3] = uint8(v >> 24)
|
|
|
|
- return offset + 4
|
|
|
|
-}
|
|
|
|
func encodeVarintAgent(dAtA []byte, offset int, v uint64) int {
|
|
func encodeVarintAgent(dAtA []byte, offset int, v uint64) int {
|
|
for v >= 1<<7 {
|
|
for v >= 1<<7 {
|
|
dAtA[offset] = uint8(v&0x7f | 0x80)
|
|
dAtA[offset] = uint8(v&0x7f | 0x80)
|
|
@@ -435,6 +437,9 @@ func (m *EndpointRecord) Size() (n int) {
|
|
n += 1 + l + sovAgent(uint64(l))
|
|
n += 1 + l + sovAgent(uint64(l))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ if m.ServiceDisabled {
|
|
|
|
+ n += 2
|
|
|
|
+ }
|
|
return n
|
|
return n
|
|
}
|
|
}
|
|
|
|
|
|
@@ -483,6 +488,7 @@ func (this *EndpointRecord) String() string {
|
|
`IngressPorts:` + strings.Replace(fmt.Sprintf("%v", this.IngressPorts), "PortConfig", "PortConfig", 1) + `,`,
|
|
`IngressPorts:` + strings.Replace(fmt.Sprintf("%v", this.IngressPorts), "PortConfig", "PortConfig", 1) + `,`,
|
|
`Aliases:` + fmt.Sprintf("%v", this.Aliases) + `,`,
|
|
`Aliases:` + fmt.Sprintf("%v", this.Aliases) + `,`,
|
|
`TaskAliases:` + fmt.Sprintf("%v", this.TaskAliases) + `,`,
|
|
`TaskAliases:` + fmt.Sprintf("%v", this.TaskAliases) + `,`,
|
|
|
|
+ `ServiceDisabled:` + fmt.Sprintf("%v", this.ServiceDisabled) + `,`,
|
|
`}`,
|
|
`}`,
|
|
}, "")
|
|
}, "")
|
|
return s
|
|
return s
|
|
@@ -771,6 +777,26 @@ func (m *EndpointRecord) Unmarshal(dAtA []byte) error {
|
|
}
|
|
}
|
|
m.TaskAliases = append(m.TaskAliases, string(dAtA[iNdEx:postIndex]))
|
|
m.TaskAliases = append(m.TaskAliases, string(dAtA[iNdEx:postIndex]))
|
|
iNdEx = postIndex
|
|
iNdEx = postIndex
|
|
|
|
+ case 9:
|
|
|
|
+ if wireType != 0 {
|
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field ServiceDisabled", wireType)
|
|
|
|
+ }
|
|
|
|
+ var v int
|
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
|
+ if shift >= 64 {
|
|
|
|
+ return ErrIntOverflowAgent
|
|
|
|
+ }
|
|
|
|
+ if iNdEx >= l {
|
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
|
+ }
|
|
|
|
+ b := dAtA[iNdEx]
|
|
|
|
+ iNdEx++
|
|
|
|
+ v |= (int(b) & 0x7F) << shift
|
|
|
|
+ if b < 0x80 {
|
|
|
|
+ break
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ m.ServiceDisabled = bool(v != 0)
|
|
default:
|
|
default:
|
|
iNdEx = preIndex
|
|
iNdEx = preIndex
|
|
skippy, err := skipAgent(dAtA[iNdEx:])
|
|
skippy, err := skipAgent(dAtA[iNdEx:])
|
|
@@ -1036,33 +1062,34 @@ var (
|
|
func init() { proto.RegisterFile("agent.proto", fileDescriptorAgent) }
|
|
func init() { proto.RegisterFile("agent.proto", fileDescriptorAgent) }
|
|
|
|
|
|
var fileDescriptorAgent = []byte{
|
|
var fileDescriptorAgent = []byte{
|
|
- // 437 bytes of a gzipped FileDescriptorProto
|
|
|
|
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x90, 0xc1, 0x6e, 0xd3, 0x30,
|
|
|
|
- 0x18, 0xc7, 0x9b, 0x36, 0x6c, 0xcd, 0x97, 0xb6, 0x54, 0x16, 0x42, 0x51, 0x0e, 0x69, 0xa8, 0x84,
|
|
|
|
- 0xd4, 0x03, 0xea, 0xa4, 0x71, 0xdc, 0x89, 0xb5, 0x1c, 0x72, 0x41, 0x96, 0xd7, 0x71, 0x0d, 0x69,
|
|
|
|
- 0x63, 0x82, 0xb5, 0x10, 0x47, 0xb6, 0x37, 0xae, 0xdc, 0x40, 0x7b, 0x87, 0x9d, 0x78, 0x19, 0x4e,
|
|
|
|
- 0x88, 0x23, 0xa7, 0x89, 0xe5, 0x09, 0x78, 0x04, 0x64, 0x27, 0x5e, 0x35, 0x69, 0x37, 0xfb, 0xf7,
|
|
|
|
- 0xff, 0xd9, 0xfa, 0xbe, 0x3f, 0xf8, 0x59, 0x41, 0x2b, 0xb5, 0xac, 0x05, 0x57, 0x1c, 0x41, 0xc9,
|
|
|
|
- 0xb6, 0x15, 0x55, 0x5f, 0xb8, 0xb8, 0x08, 0x9f, 0x15, 0xbc, 0xe0, 0x06, 0x1f, 0xe9, 0x53, 0x6b,
|
|
|
|
- 0xcc, 0x7f, 0xf5, 0x61, 0xf2, 0xb6, 0xca, 0x6b, 0xce, 0x2a, 0x45, 0xe8, 0x8e, 0x8b, 0x1c, 0x21,
|
|
|
|
- 0x70, 0xab, 0xec, 0x33, 0x0d, 0x9c, 0xd8, 0x59, 0x78, 0xc4, 0x9c, 0xd1, 0x0b, 0x18, 0x49, 0x2a,
|
|
|
|
- 0xae, 0xd8, 0x8e, 0xa6, 0x26, 0xeb, 0x9b, 0xcc, 0xef, 0xd8, 0x3b, 0xad, 0xbc, 0x02, 0xb0, 0x0a,
|
|
|
|
- 0xcb, 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