-
Notifications
You must be signed in to change notification settings - Fork 1
/
container.pb.go
226 lines (204 loc) · 8.78 KB
/
container.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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: container.proto
package container
import (
fmt "fmt"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/gogo/protobuf/proto"
_ "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
//
//容器配置
type ContainerConfig struct {
//
//容器名称, 需符合RFC 1035规范
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name" form:"name"`
//
//镜像
Image string `protobuf:"bytes,2,opt,name=image,proto3" json:"image" form:"image"`
//
//工作目录
WorkingDir string `protobuf:"bytes,3,opt,name=workingDir,proto3" json:"workingDir" form:"workingDir"`
//
//镜像拉取策略,默认为 IfNotPresent
ImagePullPolicy string `protobuf:"bytes,4,opt,name=imagePullPolicy,proto3" json:"imagePullPolicy" form:"imagePullPolicy"`
//
//容器启动命令
Command []string `protobuf:"bytes,5,rep,name=command,proto3" json:"command" form:"command"`
//
//容器启动命令参数
Args []string `protobuf:"bytes,6,rep,name=args,proto3" json:"args" form:"args"`
//
//容器端口设置
Ports []*ContainerPort `protobuf:"bytes,7,rep,name=ports,proto3" json:"ports" form:"ports"`
//
//挂载到容器内部的存储卷配置
VolumeMounts []*VolumeMount `protobuf:"bytes,8,rep,name=volumeMounts,proto3" json:"volumeMounts" form:"volumeMounts"`
//
//容器运行前需设置的环境变量
Env []*EnvVar `protobuf:"bytes,9,rep,name=env,proto3" json:"env" form:"env"`
//
//最大资源限制和初始资源请求
Resources *ResourceRequirements `protobuf:"bytes,10,opt,name=resources,proto3" json:"resources" form:"resources"`
//
//判断容器是否启动完成(running状态)
ReadinessProbe *Probe `protobuf:"bytes,11,opt,name=readinessProbe,proto3" json:"readinessProbe" form:"readinessProbe"`
//
//判断容器是否存活(running状态), 一般复用 readinessProbe
LivenessProbe *Probe `protobuf:"bytes,12,opt,name=livenessProbe,proto3" json:"livenessProbe" form:"livenessProbe"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ContainerConfig) Reset() { *m = ContainerConfig{} }
func (m *ContainerConfig) String() string { return proto.CompactTextString(m) }
func (*ContainerConfig) ProtoMessage() {}
func (*ContainerConfig) Descriptor() ([]byte, []int) {
return fileDescriptor_7afe31759757e49a, []int{0}
}
func (m *ContainerConfig) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ContainerConfig.Unmarshal(m, b)
}
func (m *ContainerConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ContainerConfig.Marshal(b, m, deterministic)
}
func (m *ContainerConfig) XXX_Merge(src proto.Message) {
xxx_messageInfo_ContainerConfig.Merge(m, src)
}
func (m *ContainerConfig) XXX_Size() int {
return xxx_messageInfo_ContainerConfig.Size(m)
}
func (m *ContainerConfig) XXX_DiscardUnknown() {
xxx_messageInfo_ContainerConfig.DiscardUnknown(m)
}
var xxx_messageInfo_ContainerConfig proto.InternalMessageInfo
func (m *ContainerConfig) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *ContainerConfig) GetImage() string {
if m != nil {
return m.Image
}
return ""
}
func (m *ContainerConfig) GetWorkingDir() string {
if m != nil {
return m.WorkingDir
}
return ""
}
func (m *ContainerConfig) GetImagePullPolicy() string {
if m != nil {
return m.ImagePullPolicy
}
return ""
}
func (m *ContainerConfig) GetCommand() []string {
if m != nil {
return m.Command
}
return nil
}
func (m *ContainerConfig) GetArgs() []string {
if m != nil {
return m.Args
}
return nil
}
func (m *ContainerConfig) GetPorts() []*ContainerPort {
if m != nil {
return m.Ports
}
return nil
}
func (m *ContainerConfig) GetVolumeMounts() []*VolumeMount {
if m != nil {
return m.VolumeMounts
}
return nil
}
func (m *ContainerConfig) GetEnv() []*EnvVar {
if m != nil {
return m.Env
}
return nil
}
func (m *ContainerConfig) GetResources() *ResourceRequirements {
if m != nil {
return m.Resources
}
return nil
}
func (m *ContainerConfig) GetReadinessProbe() *Probe {
if m != nil {
return m.ReadinessProbe
}
return nil
}
func (m *ContainerConfig) GetLivenessProbe() *Probe {
if m != nil {
return m.LivenessProbe
}
return nil
}
func init() {
proto.RegisterType((*ContainerConfig)(nil), "container.ContainerConfig")
}
func init() { proto.RegisterFile("container.proto", fileDescriptor_7afe31759757e49a) }
var fileDescriptor_7afe31759757e49a = []byte{
// 646 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x93, 0xdd, 0x4e, 0xdb, 0x3e,
0x18, 0xc6, 0xd5, 0x7f, 0xf9, 0xf8, 0xd7, 0x65, 0x14, 0x32, 0xc6, 0xbc, 0x9e, 0xa4, 0xf2, 0xa6,
0x29, 0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