-
Notifications
You must be signed in to change notification settings - Fork 1
/
service_port.pb.go
138 lines (123 loc) · 5.29 KB
/
service_port.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: service_port.proto
package container
import (
fmt "fmt"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/gogo/protobuf/proto"
types "github.com/gogo/protobuf/types"
_ "github.com/mwitkow/go-proto-validators"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
//
//Service 需要暴露的端口列表
type ServicePort struct {
//
//端口名称,
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name" form:"name"`
//
//服务监听端口号
Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port" form:"port"`
//
//端口协议, 默认 TCP
Protocol string `protobuf:"bytes,3,opt,name=protocol,proto3" json:"protocol" form:"protocol"`
//
//需要转发到后端 Pod 的端口或者 Pod 名称, 类型为 int/string
TargetPort *types.Value `protobuf:"bytes,4,opt,name=targetPort,proto3" json:"targetPort" form:"targetPort"`
//
//当 type=NodePort/LoadBalancer 时,指定映射到物理机的端口号
NodePort int32 `protobuf:"varint,5,opt,name=nodePort,proto3" json:"nodePort" form:"nodePort"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ServicePort) Reset() { *m = ServicePort{} }
func (m *ServicePort) String() string { return proto.CompactTextString(m) }
func (*ServicePort) ProtoMessage() {}
func (*ServicePort) Descriptor() ([]byte, []int) {
return fileDescriptor_759dbc9b710ea1c7, []int{0}
}
func (m *ServicePort) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ServicePort.Unmarshal(m, b)
}
func (m *ServicePort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ServicePort.Marshal(b, m, deterministic)
}
func (m *ServicePort) XXX_Merge(src proto.Message) {
xxx_messageInfo_ServicePort.Merge(m, src)
}
func (m *ServicePort) XXX_Size() int {
return xxx_messageInfo_ServicePort.Size(m)
}
func (m *ServicePort) XXX_DiscardUnknown() {
xxx_messageInfo_ServicePort.DiscardUnknown(m)
}
var xxx_messageInfo_ServicePort proto.InternalMessageInfo
func (m *ServicePort) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *ServicePort) GetPort() int32 {
if m != nil {
return m.Port
}
return 0
}
func (m *ServicePort) GetProtocol() string {
if m != nil {
return m.Protocol
}
return ""
}
func (m *ServicePort) GetTargetPort() *types.Value {
if m != nil {
return m.TargetPort
}
return nil
}
func (m *ServicePort) GetNodePort() int32 {
if m != nil {
return m.NodePort
}
return 0
}
func init() {
proto.RegisterType((*ServicePort)(nil), "container.ServicePort")
}
func init() { proto.RegisterFile("service_port.proto", fileDescriptor_759dbc9b710ea1c7) }
var fileDescriptor_759dbc9b710ea1c7 = []byte{
// 351 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x51, 0xc1, 0x4a, 0xeb, 0x40,
0x14, 0x25, 0x7d, 0xe9, 0xa3, 0x9d, 0x2e, 0xfa, 0x5e, 0x44, 0x09, 0x45, 0x48, 0x89, 0x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