forked from k3s-io/kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
containerizer.pb.go
234 lines (199 loc) · 6.21 KB
/
containerizer.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
227
228
229
230
231
232
233
234
// Code generated by protoc-gen-gogo.
// source: containerizer.proto
// DO NOT EDIT!
package mesosproto
import proto "github.com/gogo/protobuf/proto"
import fmt "fmt"
import math "math"
// discarding unused import gogoproto "github.com/gogo/protobuf/gogoproto"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// *
// Encodes the launch command sent to the external containerizer
// program.
type Launch struct {
ContainerId *ContainerID `protobuf:"bytes,1,req,name=container_id" json:"container_id,omitempty"`
TaskInfo *TaskInfo `protobuf:"bytes,2,opt,name=task_info" json:"task_info,omitempty"`
ExecutorInfo *ExecutorInfo `protobuf:"bytes,3,opt,name=executor_info" json:"executor_info,omitempty"`
Directory *string `protobuf:"bytes,4,opt,name=directory" json:"directory,omitempty"`
User *string `protobuf:"bytes,5,opt,name=user" json:"user,omitempty"`
SlaveId *SlaveID `protobuf:"bytes,6,opt,name=slave_id" json:"slave_id,omitempty"`
SlavePid *string `protobuf:"bytes,7,opt,name=slave_pid" json:"slave_pid,omitempty"`
Checkpoint *bool `protobuf:"varint,8,opt,name=checkpoint" json:"checkpoint,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *Launch) Reset() { *m = Launch{} }
func (m *Launch) String() string { return proto.CompactTextString(m) }
func (*Launch) ProtoMessage() {}
func (m *Launch) GetContainerId() *ContainerID {
if m != nil {
return m.ContainerId
}
return nil
}
func (m *Launch) GetTaskInfo() *TaskInfo {
if m != nil {
return m.TaskInfo
}
return nil
}
func (m *Launch) GetExecutorInfo() *ExecutorInfo {
if m != nil {
return m.ExecutorInfo
}
return nil
}
func (m *Launch) GetDirectory() string {
if m != nil && m.Directory != nil {
return *m.Directory
}
return ""
}
func (m *Launch) GetUser() string {
if m != nil && m.User != nil {
return *m.User
}
return ""
}
func (m *Launch) GetSlaveId() *SlaveID {
if m != nil {
return m.SlaveId
}
return nil
}
func (m *Launch) GetSlavePid() string {
if m != nil && m.SlavePid != nil {
return *m.SlavePid
}
return ""
}
func (m *Launch) GetCheckpoint() bool {
if m != nil && m.Checkpoint != nil {
return *m.Checkpoint
}
return false
}
// *
// Encodes the update command sent to the external containerizer
// program.
type Update struct {
ContainerId *ContainerID `protobuf:"bytes,1,req,name=container_id" json:"container_id,omitempty"`
Resources []*Resource `protobuf:"bytes,2,rep,name=resources" json:"resources,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *Update) Reset() { *m = Update{} }
func (m *Update) String() string { return proto.CompactTextString(m) }
func (*Update) ProtoMessage() {}
func (m *Update) GetContainerId() *ContainerID {
if m != nil {
return m.ContainerId
}
return nil
}
func (m *Update) GetResources() []*Resource {
if m != nil {
return m.Resources
}
return nil
}
// *
// Encodes the wait command sent to the external containerizer
// program.
type Wait struct {
ContainerId *ContainerID `protobuf:"bytes,1,req,name=container_id" json:"container_id,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *Wait) Reset() { *m = Wait{} }
func (m *Wait) String() string { return proto.CompactTextString(m) }
func (*Wait) ProtoMessage() {}
func (m *Wait) GetContainerId() *ContainerID {
if m != nil {
return m.ContainerId
}
return nil
}
// *
// Encodes the destroy command sent to the external containerizer
// program.
type Destroy struct {
ContainerId *ContainerID `protobuf:"bytes,1,req,name=container_id" json:"container_id,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *Destroy) Reset() { *m = Destroy{} }
func (m *Destroy) String() string { return proto.CompactTextString(m) }
func (*Destroy) ProtoMessage() {}
func (m *Destroy) GetContainerId() *ContainerID {
if m != nil {
return m.ContainerId
}
return nil
}
// *
// Encodes the usage command sent to the external containerizer
// program.
type Usage struct {
ContainerId *ContainerID `protobuf:"bytes,1,req,name=container_id" json:"container_id,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *Usage) Reset() { *m = Usage{} }
func (m *Usage) String() string { return proto.CompactTextString(m) }
func (*Usage) ProtoMessage() {}
func (m *Usage) GetContainerId() *ContainerID {
if m != nil {
return m.ContainerId
}
return nil
}
// *
// Information about a container termination, returned by the
// containerizer to the slave.
type Termination struct {
// A container may be killed if it exceeds its resources; this will
// be indicated by killed=true and described by the message string.
// TODO(jaybuff): As part of MESOS-2035 we should remove killed and
// replace it with a TaskStatus::Reason.
Killed *bool `protobuf:"varint,1,req,name=killed" json:"killed,omitempty"`
Message *string `protobuf:"bytes,2,req,name=message" json:"message,omitempty"`
// Exit status of the process.
Status *int32 `protobuf:"varint,3,opt,name=status" json:"status,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *Termination) Reset() { *m = Termination{} }
func (m *Termination) String() string { return proto.CompactTextString(m) }
func (*Termination) ProtoMessage() {}
func (m *Termination) GetKilled() bool {
if m != nil && m.Killed != nil {
return *m.Killed
}
return false
}
func (m *Termination) GetMessage() string {
if m != nil && m.Message != nil {
return *m.Message
}
return ""
}
func (m *Termination) GetStatus() int32 {
if m != nil && m.Status != nil {
return *m.Status
}
return 0
}
// *
// Information on all active containers returned by the containerizer
// to the slave.
type Containers struct {
Containers []*ContainerID `protobuf:"bytes,1,rep,name=containers" json:"containers,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *Containers) Reset() { *m = Containers{} }
func (m *Containers) String() string { return proto.CompactTextString(m) }
func (*Containers) ProtoMessage() {}
func (m *Containers) GetContainers() []*ContainerID {
if m != nil {
return m.Containers
}
return nil
}