-
Notifications
You must be signed in to change notification settings - Fork 57
/
moc_nodeagent_keyvault.pb.go
336 lines (293 loc) · 12.3 KB
/
moc_nodeagent_keyvault.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
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: moc_nodeagent_keyvault.proto
package security
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
wrappers "github.com/golang/protobuf/ptypes/wrappers"
common "github.com/microsoft/moc/rpc/common"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
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.ProtoPackageIsVersion3 // please upgrade the proto package
type KeyVaultRequest struct {
KeyVaults []*KeyVault `protobuf:"bytes,1,rep,name=KeyVaults,proto3" json:"KeyVaults,omitempty"`
OperationType common.Operation `protobuf:"varint,2,opt,name=OperationType,proto3,enum=moc.Operation" json:"OperationType,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *KeyVaultRequest) Reset() { *m = KeyVaultRequest{} }
func (m *KeyVaultRequest) String() string { return proto.CompactTextString(m) }
func (*KeyVaultRequest) ProtoMessage() {}
func (*KeyVaultRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_316bd727a7e0a804, []int{0}
}
func (m *KeyVaultRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_KeyVaultRequest.Unmarshal(m, b)
}
func (m *KeyVaultRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_KeyVaultRequest.Marshal(b, m, deterministic)
}
func (m *KeyVaultRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_KeyVaultRequest.Merge(m, src)
}
func (m *KeyVaultRequest) XXX_Size() int {
return xxx_messageInfo_KeyVaultRequest.Size(m)
}
func (m *KeyVaultRequest) XXX_DiscardUnknown() {
xxx_messageInfo_KeyVaultRequest.DiscardUnknown(m)
}
var xxx_messageInfo_KeyVaultRequest proto.InternalMessageInfo
func (m *KeyVaultRequest) GetKeyVaults() []*KeyVault {
if m != nil {
return m.KeyVaults
}
return nil
}
func (m *KeyVaultRequest) GetOperationType() common.Operation {
if m != nil {
return m.OperationType
}
return common.Operation_GET
}
type KeyVaultResponse struct {
KeyVaults []*KeyVault `protobuf:"bytes,1,rep,name=KeyVaults,proto3" json:"KeyVaults,omitempty"`
Result *wrappers.BoolValue `protobuf:"bytes,2,opt,name=Result,proto3" json:"Result,omitempty"`
Error string `protobuf:"bytes,3,opt,name=Error,proto3" json:"Error,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *KeyVaultResponse) Reset() { *m = KeyVaultResponse{} }
func (m *KeyVaultResponse) String() string { return proto.CompactTextString(m) }
func (*KeyVaultResponse) ProtoMessage() {}
func (*KeyVaultResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_316bd727a7e0a804, []int{1}
}
func (m *KeyVaultResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_KeyVaultResponse.Unmarshal(m, b)
}
func (m *KeyVaultResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_KeyVaultResponse.Marshal(b, m, deterministic)
}
func (m *KeyVaultResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_KeyVaultResponse.Merge(m, src)
}
func (m *KeyVaultResponse) XXX_Size() int {
return xxx_messageInfo_KeyVaultResponse.Size(m)
}
func (m *KeyVaultResponse) XXX_DiscardUnknown() {
xxx_messageInfo_KeyVaultResponse.DiscardUnknown(m)
}
var xxx_messageInfo_KeyVaultResponse proto.InternalMessageInfo
func (m *KeyVaultResponse) GetKeyVaults() []*KeyVault {
if m != nil {
return m.KeyVaults
}
return nil
}
func (m *KeyVaultResponse) GetResult() *wrappers.BoolValue {
if m != nil {
return m.Result
}
return nil
}
func (m *KeyVaultResponse) GetError() string {
if m != nil {
return m.Error
}
return ""
}
type KeyVault struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
Secrets []*Secret `protobuf:"bytes,3,rep,name=Secrets,proto3" json:"Secrets,omitempty"`
GroupName string `protobuf:"bytes,4,opt,name=groupName,proto3" json:"groupName,omitempty"`
Status *common.Status `protobuf:"bytes,5,opt,name=status,proto3" json:"status,omitempty"`
Entity *common.Entity `protobuf:"bytes,6,opt,name=entity,proto3" json:"entity,omitempty"`
Tags *common.Tags `protobuf:"bytes,7,opt,name=tags,proto3" json:"tags,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *KeyVault) Reset() { *m = KeyVault{} }
func (m *KeyVault) String() string { return proto.CompactTextString(m) }
func (*KeyVault) ProtoMessage() {}
func (*KeyVault) Descriptor() ([]byte, []int) {
return fileDescriptor_316bd727a7e0a804, []int{2}
}
func (m *KeyVault) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_KeyVault.Unmarshal(m, b)
}
func (m *KeyVault) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_KeyVault.Marshal(b, m, deterministic)
}
func (m *KeyVault) XXX_Merge(src proto.Message) {
xxx_messageInfo_KeyVault.Merge(m, src)
}
func (m *KeyVault) XXX_Size() int {
return xxx_messageInfo_KeyVault.Size(m)
}
func (m *KeyVault) XXX_DiscardUnknown() {
xxx_messageInfo_KeyVault.DiscardUnknown(m)
}
var xxx_messageInfo_KeyVault proto.InternalMessageInfo
func (m *KeyVault) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *KeyVault) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *KeyVault) GetSecrets() []*Secret {
if m != nil {
return m.Secrets
}
return nil
}
func (m *KeyVault) GetGroupName() string {
if m != nil {
return m.GroupName
}
return ""
}
func (m *KeyVault) GetStatus() *common.Status {
if m != nil {
return m.Status
}
return nil
}
func (m *KeyVault) GetEntity() *common.Entity {
if m != nil {
return m.Entity
}
return nil
}
func (m *KeyVault) GetTags() *common.Tags {
if m != nil {
return m.Tags
}
return nil
}
func init() {
proto.RegisterType((*KeyVaultRequest)(nil), "moc.nodeagent.security.KeyVaultRequest")
proto.RegisterType((*KeyVaultResponse)(nil), "moc.nodeagent.security.KeyVaultResponse")
proto.RegisterType((*KeyVault)(nil), "moc.nodeagent.security.KeyVault")
}
func init() { proto.RegisterFile("moc_nodeagent_keyvault.proto", fileDescriptor_316bd727a7e0a804) }
var fileDescriptor_316bd727a7e0a804 = []byte{
// 442 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x92, 0xdf, 0x6a, 0xd4, 0x40,
0x14, 0xc6, 0xcd, 0xee, 0x36, 0x35, 0xb3, 0x74, 0x95, 0x41, 0x34, 0x84, 0x5a, 0x96, 0xf5, 0xc2,
0xbd, 0x9a, 0x60, 0xf4, 0xc2, 0x2b, 0xc1, 0x42, 0x2f, 0x44, 0x50, 0x98, 0x96, 0x5e, 0x08, 0x52,
0x66, 0x67, 0x4f, 0x63, 0x68, 0x32, 0x27, 0xce, 0x9f, 0x4a, 0x9e, 0xc0, 0x97, 0xf0, 0x1d, 0x7d,
0x05, 0xc9, 0xe4, 0xcf, 0x5a, 0x50, 0xf6, 0xa2, 0x57, 0x49, 0xce, 0xf9, 0xcd, 0xf7, 0x7d, 0x73,
0x4e, 0xc8, 0x71, 0x85, 0xf2, 0x4a, 0xe1, 0x16, 0x44, 0x0e, 0xca, 0x5e, 0xdd, 0x40, 0x73, 0x2b,
0x5c, 0x69, 0x59, 0xad, 0xd1, 0x22, 0x7d, 0x5a, 0xa1, 0x64, 0x63, 0x97, 0x19, 0x90, 0x4e, 0x17,
0xb6, 0x49, 0x4e, 0x72, 0xc4, 0xbc, 0x84, 0xd4, 0x53, 0x1b, 0x77, 0x9d, 0xfe, 0xd0, 0xa2, 0xae,
0x41, 0x9b, 0xee, 0x5c, 0xf2, 0xac, 0x55, 0x95, 0x58, 0x55, 0xa8, 0xfa, 0x47, 0xdf, 0x48, 0xee,
0xda, 0x19, 0x90, 0x1a, 0x7a, 0xb3, 0xd5, 0xcf, 0x80, 0x3c, 0xfa, 0x08, 0xcd, 0x65, 0xeb, 0xcf,
0xe1, 0xbb, 0x03, 0x63, 0xe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 0x64, 0x66,
0x45, 0x6e, 0xe2, 0x43, 0x8f, 0x44, 0x1e, 0xb9, 0x10, 0xb9, 0xe1, 0xbe, 0x9c, 0x29, 0x72, 0x34,
0x5c, 0xf8, 0x7d, 0x1b, 0x98, 0x7e, 0x25, 0xe1, 0x07, 0x75, 0x8b, 0x37, 0x40, 0x5f, 0xee, 0xdd,
0x41, 0xf7, 0x2b, 0x25, 0xeb, 0xfd, 0x60, 0xb7, 0xe9, 0xd5, 0x83, 0xd3, 0x57, 0x5f, 0xd2, 0xbc,
0xb0, 0xdf, 0xdc, 0x86, 0x49, 0xac, 0xd2, 0xaa, 0x90, 0x1a, 0x0d, 0x5e, 0xdb, 0xb4, 0x42, 0x99,
0xea, 0x5a, 0xa6, 0xa3, 0x4a, 0x3a, 0xa8, 0x6c, 0x42, 0xbf, 0xc6, 0xd7, 0x7f, 0x02, 0x00, 0x00,
0xff, 0xff, 0x6a, 0xe1, 0xb4, 0xda, 0x51, 0x03, 0x00, 0x00,
}
// 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
// KeyVaultAgentClient is the client API for KeyVaultAgent service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type KeyVaultAgentClient interface {
Invoke(ctx context.Context, in *KeyVaultRequest, opts ...grpc.CallOption) (*KeyVaultResponse, error)
}
type keyVaultAgentClient struct {
cc *grpc.ClientConn
}
func NewKeyVaultAgentClient(cc *grpc.ClientConn) KeyVaultAgentClient {
return &keyVaultAgentClient{cc}
}
func (c *keyVaultAgentClient) Invoke(ctx context.Context, in *KeyVaultRequest, opts ...grpc.CallOption) (*KeyVaultResponse, error) {
out := new(KeyVaultResponse)
err := c.cc.Invoke(ctx, "/moc.nodeagent.security.KeyVaultAgent/Invoke", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// KeyVaultAgentServer is the server API for KeyVaultAgent service.
type KeyVaultAgentServer interface {
Invoke(context.Context, *KeyVaultRequest) (*KeyVaultResponse, error)
}
// UnimplementedKeyVaultAgentServer can be embedded to have forward compatible implementations.
type UnimplementedKeyVaultAgentServer struct {
}
func (*UnimplementedKeyVaultAgentServer) Invoke(ctx context.Context, req *KeyVaultRequest) (*KeyVaultResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Invoke not implemented")
}
func RegisterKeyVaultAgentServer(s *grpc.Server, srv KeyVaultAgentServer) {
s.RegisterService(&_KeyVaultAgent_serviceDesc, srv)
}
func _KeyVaultAgent_Invoke_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(KeyVaultRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(KeyVaultAgentServer).Invoke(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/moc.nodeagent.security.KeyVaultAgent/Invoke",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(KeyVaultAgentServer).Invoke(ctx, req.(*KeyVaultRequest))
}
return interceptor(ctx, in, info, handler)
}
var _KeyVaultAgent_serviceDesc = grpc.ServiceDesc{
ServiceName: "moc.nodeagent.security.KeyVaultAgent",
HandlerType: (*KeyVaultAgentServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Invoke",
Handler: _KeyVaultAgent_Invoke_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "moc_nodeagent_keyvault.proto",
}