-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
api_v1alpha3.pb.go
337 lines (286 loc) · 12.8 KB
/
api_v1alpha3.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
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: api_v1alpha3.proto
/*
Package v1alpha3 is a generated protocol buffer package.
It is generated from these files:
api_v1alpha3.proto
It has these top-level messages:
OnDefineDomainParams
OnDefineDomainResult
PreCloudInitIsoParams
PreCloudInitIsoResult
ShutdownParams
ShutdownResult
*/
package v1alpha3
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
context "golang.org/x/net/context"
grpc "google.golang.org/grpc"
)
// 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.ProtoPackageIsVersion2 // please upgrade the proto package
type OnDefineDomainParams struct {
// domainXML is original libvirt domain specification
DomainXML []byte `protobuf:"bytes,1,opt,name=domainXML,proto3" json:"domainXML,omitempty"`
// vmi is VirtualMachineInstance is object of virtual machine currently processed by virt-launcher, it is encoded as JSON
Vmi []byte `protobuf:"bytes,2,opt,name=vmi,proto3" json:"vmi,omitempty"`
}
func (m *OnDefineDomainParams) Reset() { *m = OnDefineDomainParams{} }
func (m *OnDefineDomainParams) String() string { return proto.CompactTextString(m) }
func (*OnDefineDomainParams) ProtoMessage() {}
func (*OnDefineDomainParams) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *OnDefineDomainParams) GetDomainXML() []byte {
if m != nil {
return m.DomainXML
}
return nil
}
func (m *OnDefineDomainParams) GetVmi() []byte {
if m != nil {
return m.Vmi
}
return nil
}
type OnDefineDomainResult struct {
// domainXML is processed libvirt domain specification
DomainXML []byte `protobuf:"bytes,1,opt,name=domainXML,proto3" json:"domainXML,omitempty"`
}
func (m *OnDefineDomainResult) Reset() { *m = OnDefineDomainResult{} }
func (m *OnDefineDomainResult) String() string { return proto.CompactTextString(m) }
func (*OnDefineDomainResult) ProtoMessage() {}
func (*OnDefineDomainResult) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *OnDefineDomainResult) GetDomainXML() []byte {
if m != nil {
return m.DomainXML
}
return nil
}
type PreCloudInitIsoParams struct {
// cloudInitNoCloudSource is an object of CloudInitNoCloudSource encoded as JSON
// This is a legacy field to ensure backwards compatibility. New code should use cloudInitData instead.
CloudInitNoCloudSource []byte `protobuf:"bytes,1,opt,name=cloudInitNoCloudSource,proto3" json:"cloudInitNoCloudSource,omitempty"`
// vmi is VirtualMachineInstance is object of virtual machine currently processed by virt-launcher, it is encoded as JSON
Vmi []byte `protobuf:"bytes,2,opt,name=vmi,proto3" json:"vmi,omitempty"`
// cloudInitData is an object of CloudInitData encoded as JSON
CloudInitData []byte `protobuf:"bytes,3,opt,name=cloudInitData,proto3" json:"cloudInitData,omitempty"`
}
func (m *PreCloudInitIsoParams) Reset() { *m = PreCloudInitIsoParams{} }
func (m *PreCloudInitIsoParams) String() string { return proto.CompactTextString(m) }
func (*PreCloudInitIsoParams) ProtoMessage() {}
func (*PreCloudInitIsoParams) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *PreCloudInitIsoParams) GetCloudInitNoCloudSource() []byte {
if m != nil {
return m.CloudInitNoCloudSource
}
return nil
}
func (m *PreCloudInitIsoParams) GetVmi() []byte {
if m != nil {
return m.Vmi
}
return nil
}
func (m *PreCloudInitIsoParams) GetCloudInitData() []byte {
if m != nil {
return m.CloudInitData
}
return nil
}
type PreCloudInitIsoResult struct {
// cloudInitNoCloudSource is an object of CloudInitNoCloudSource encoded as JSON
// This is a legacy field to ensure backwards compatibility. New code should use cloudInitData instead.
CloudInitNoCloudSource []byte `protobuf:"bytes,1,opt,name=cloudInitNoCloudSource,proto3" json:"cloudInitNoCloudSource,omitempty"`
// cloudInitData is an object of CloudInitData encoded as JSON
CloudInitData []byte `protobuf:"bytes,3,opt,name=cloudInitData,proto3" json:"cloudInitData,omitempty"`
}
func (m *PreCloudInitIsoResult) Reset() { *m = PreCloudInitIsoResult{} }
func (m *PreCloudInitIsoResult) String() string { return proto.CompactTextString(m) }
func (*PreCloudInitIsoResult) ProtoMessage() {}
func (*PreCloudInitIsoResult) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func (m *PreCloudInitIsoResult) GetCloudInitNoCloudSource() []byte {
if m != nil {
return m.CloudInitNoCloudSource
}
return nil
}
func (m *PreCloudInitIsoResult) GetCloudInitData() []byte {
if m != nil {
return m.CloudInitData
}
return nil
}
type ShutdownParams struct {
}
func (m *ShutdownParams) Reset() { *m = ShutdownParams{} }
func (m *ShutdownParams) String() string { return proto.CompactTextString(m) }
func (*ShutdownParams) ProtoMessage() {}
func (*ShutdownParams) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
type ShutdownResult struct {
}
func (m *ShutdownResult) Reset() { *m = ShutdownResult{} }
func (m *ShutdownResult) String() string { return proto.CompactTextString(m) }
func (*ShutdownResult) ProtoMessage() {}
func (*ShutdownResult) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
func init() {
proto.RegisterType((*OnDefineDomainParams)(nil), "kubevirt.hooks.v1alpha3.OnDefineDomainParams")
proto.RegisterType((*OnDefineDomainResult)(nil), "kubevirt.hooks.v1alpha3.OnDefineDomainResult")
proto.RegisterType((*PreCloudInitIsoParams)(nil), "kubevirt.hooks.v1alpha3.PreCloudInitIsoParams")
proto.RegisterType((*PreCloudInitIsoResult)(nil), "kubevirt.hooks.v1alpha3.PreCloudInitIsoResult")
proto.RegisterType((*ShutdownParams)(nil), "kubevirt.hooks.v1alpha3.ShutdownParams")
proto.RegisterType((*ShutdownResult)(nil), "kubevirt.hooks.v1alpha3.ShutdownResult")
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for Callbacks service
type CallbacksClient interface {
OnDefineDomain(ctx context.Context, in *OnDefineDomainParams, opts ...grpc.CallOption) (*OnDefineDomainResult, error)
PreCloudInitIso(ctx context.Context, in *PreCloudInitIsoParams, opts ...grpc.CallOption) (*PreCloudInitIsoResult, error)
Shutdown(ctx context.Context, in *ShutdownParams, opts ...grpc.CallOption) (*ShutdownResult, error)
}
type callbacksClient struct {
cc *grpc.ClientConn
}
func NewCallbacksClient(cc *grpc.ClientConn) CallbacksClient {
return &callbacksClient{cc}
}
func (c *callbacksClient) OnDefineDomain(ctx context.Context, in *OnDefineDomainParams, opts ...grpc.CallOption) (*OnDefineDomainResult, error) {
out := new(OnDefineDomainResult)
err := grpc.Invoke(ctx, "/kubevirt.hooks.v1alpha3.Callbacks/OnDefineDomain", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *callbacksClient) PreCloudInitIso(ctx context.Context, in *PreCloudInitIsoParams, opts ...grpc.CallOption) (*PreCloudInitIsoResult, error) {
out := new(PreCloudInitIsoResult)
err := grpc.Invoke(ctx, "/kubevirt.hooks.v1alpha3.Callbacks/PreCloudInitIso", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *callbacksClient) Shutdown(ctx context.Context, in *ShutdownParams, opts ...grpc.CallOption) (*ShutdownResult, error) {
out := new(ShutdownResult)
err := grpc.Invoke(ctx, "/kubevirt.hooks.v1alpha3.Callbacks/Shutdown", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for Callbacks service
type CallbacksServer interface {
OnDefineDomain(context.Context, *OnDefineDomainParams) (*OnDefineDomainResult, error)
PreCloudInitIso(context.Context, *PreCloudInitIsoParams) (*PreCloudInitIsoResult, error)
Shutdown(context.Context, *ShutdownParams) (*ShutdownResult, error)
}
func RegisterCallbacksServer(s *grpc.Server, srv CallbacksServer) {
s.RegisterService(&_Callbacks_serviceDesc, srv)
}
func _Callbacks_OnDefineDomain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(OnDefineDomainParams)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CallbacksServer).OnDefineDomain(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/kubevirt.hooks.v1alpha3.Callbacks/OnDefineDomain",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CallbacksServer).OnDefineDomain(ctx, req.(*OnDefineDomainParams))
}
return interceptor(ctx, in, info, handler)
}
func _Callbacks_PreCloudInitIso_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(PreCloudInitIsoParams)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CallbacksServer).PreCloudInitIso(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/kubevirt.hooks.v1alpha3.Callbacks/PreCloudInitIso",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CallbacksServer).PreCloudInitIso(ctx, req.(*PreCloudInitIsoParams))
}
return interceptor(ctx, in, info, handler)
}
func _Callbacks_Shutdown_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ShutdownParams)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CallbacksServer).Shutdown(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/kubevirt.hooks.v1alpha3.Callbacks/Shutdown",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CallbacksServer).Shutdown(ctx, req.(*ShutdownParams))
}
return interceptor(ctx, in, info, handler)
}
var _Callbacks_serviceDesc = grpc.ServiceDesc{
ServiceName: "kubevirt.hooks.v1alpha3.Callbacks",
HandlerType: (*CallbacksServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "OnDefineDomain",
Handler: _Callbacks_OnDefineDomain_Handler,
},
{
MethodName: "PreCloudInitIso",
Handler: _Callbacks_PreCloudInitIso_Handler,
},
{
MethodName: "Shutdown",
Handler: _Callbacks_Shutdown_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "api_v1alpha3.proto",
}
func init() { proto.RegisterFile("api_v1alpha3.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{
// 296 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4a, 0x2c, 0xc8, 0x8c,
0x2f, 0x33, 0x4c, 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