github.com/microsoft/moc@v0.17.1/rpc/nodeagent/security/moc_nodeagent_secret.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // source: moc_nodeagent_secret.proto 3 4 package security 5 6 import ( 7 context "context" 8 fmt "fmt" 9 proto "github.com/golang/protobuf/proto" 10 wrappers "github.com/golang/protobuf/ptypes/wrappers" 11 common "github.com/microsoft/moc/rpc/common" 12 grpc "google.golang.org/grpc" 13 codes "google.golang.org/grpc/codes" 14 status "google.golang.org/grpc/status" 15 math "math" 16 ) 17 18 // Reference imports to suppress errors if they are not otherwise used. 19 var _ = proto.Marshal 20 var _ = fmt.Errorf 21 var _ = math.Inf 22 23 // This is a compile-time assertion to ensure that this generated file 24 // is compatible with the proto package it is being compiled against. 25 // A compilation error at this line likely means your copy of the 26 // proto package needs to be updated. 27 const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 28 29 type SecretRequest struct { 30 Secrets []*Secret `protobuf:"bytes,1,rep,name=Secrets,proto3" json:"Secrets,omitempty"` 31 OperationType common.Operation `protobuf:"varint,2,opt,name=OperationType,proto3,enum=moc.Operation" json:"OperationType,omitempty"` 32 XXX_NoUnkeyedLiteral struct{} `json:"-"` 33 XXX_unrecognized []byte `json:"-"` 34 XXX_sizecache int32 `json:"-"` 35 } 36 37 func (m *SecretRequest) Reset() { *m = SecretRequest{} } 38 func (m *SecretRequest) String() string { return proto.CompactTextString(m) } 39 func (*SecretRequest) ProtoMessage() {} 40 func (*SecretRequest) Descriptor() ([]byte, []int) { 41 return fileDescriptor_fa9c3fe257a0b458, []int{0} 42 } 43 44 func (m *SecretRequest) XXX_Unmarshal(b []byte) error { 45 return xxx_messageInfo_SecretRequest.Unmarshal(m, b) 46 } 47 func (m *SecretRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 48 return xxx_messageInfo_SecretRequest.Marshal(b, m, deterministic) 49 } 50 func (m *SecretRequest) XXX_Merge(src proto.Message) { 51 xxx_messageInfo_SecretRequest.Merge(m, src) 52 } 53 func (m *SecretRequest) XXX_Size() int { 54 return xxx_messageInfo_SecretRequest.Size(m) 55 } 56 func (m *SecretRequest) XXX_DiscardUnknown() { 57 xxx_messageInfo_SecretRequest.DiscardUnknown(m) 58 } 59 60 var xxx_messageInfo_SecretRequest proto.InternalMessageInfo 61 62 func (m *SecretRequest) GetSecrets() []*Secret { 63 if m != nil { 64 return m.Secrets 65 } 66 return nil 67 } 68 69 func (m *SecretRequest) GetOperationType() common.Operation { 70 if m != nil { 71 return m.OperationType 72 } 73 return common.Operation_GET 74 } 75 76 type SecretResponse struct { 77 Secrets []*Secret `protobuf:"bytes,1,rep,name=Secrets,proto3" json:"Secrets,omitempty"` 78 Result *wrappers.BoolValue `protobuf:"bytes,2,opt,name=Result,proto3" json:"Result,omitempty"` 79 Error string `protobuf:"bytes,3,opt,name=Error,proto3" json:"Error,omitempty"` 80 XXX_NoUnkeyedLiteral struct{} `json:"-"` 81 XXX_unrecognized []byte `json:"-"` 82 XXX_sizecache int32 `json:"-"` 83 } 84 85 func (m *SecretResponse) Reset() { *m = SecretResponse{} } 86 func (m *SecretResponse) String() string { return proto.CompactTextString(m) } 87 func (*SecretResponse) ProtoMessage() {} 88 func (*SecretResponse) Descriptor() ([]byte, []int) { 89 return fileDescriptor_fa9c3fe257a0b458, []int{1} 90 } 91 92 func (m *SecretResponse) XXX_Unmarshal(b []byte) error { 93 return xxx_messageInfo_SecretResponse.Unmarshal(m, b) 94 } 95 func (m *SecretResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 96 return xxx_messageInfo_SecretResponse.Marshal(b, m, deterministic) 97 } 98 func (m *SecretResponse) XXX_Merge(src proto.Message) { 99 xxx_messageInfo_SecretResponse.Merge(m, src) 100 } 101 func (m *SecretResponse) XXX_Size() int { 102 return xxx_messageInfo_SecretResponse.Size(m) 103 } 104 func (m *SecretResponse) XXX_DiscardUnknown() { 105 xxx_messageInfo_SecretResponse.DiscardUnknown(m) 106 } 107 108 var xxx_messageInfo_SecretResponse proto.InternalMessageInfo 109 110 func (m *SecretResponse) GetSecrets() []*Secret { 111 if m != nil { 112 return m.Secrets 113 } 114 return nil 115 } 116 117 func (m *SecretResponse) GetResult() *wrappers.BoolValue { 118 if m != nil { 119 return m.Result 120 } 121 return nil 122 } 123 124 func (m *SecretResponse) GetError() string { 125 if m != nil { 126 return m.Error 127 } 128 return "" 129 } 130 131 type Secret struct { 132 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 133 Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` 134 Filename string `protobuf:"bytes,3,opt,name=filename,proto3" json:"filename,omitempty"` 135 Value string `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"` 136 VaultId string `protobuf:"bytes,5,opt,name=vaultId,proto3" json:"vaultId,omitempty"` 137 VaultName string `protobuf:"bytes,6,opt,name=vaultName,proto3" json:"vaultName,omitempty"` 138 GroupName string `protobuf:"bytes,7,opt,name=groupName,proto3" json:"groupName,omitempty"` 139 Status *common.Status `protobuf:"bytes,8,opt,name=status,proto3" json:"status,omitempty"` 140 Entity *common.Entity `protobuf:"bytes,9,opt,name=entity,proto3" json:"entity,omitempty"` 141 Tags *common.Tags `protobuf:"bytes,10,opt,name=tags,proto3" json:"tags,omitempty"` 142 XXX_NoUnkeyedLiteral struct{} `json:"-"` 143 XXX_unrecognized []byte `json:"-"` 144 XXX_sizecache int32 `json:"-"` 145 } 146 147 func (m *Secret) Reset() { *m = Secret{} } 148 func (m *Secret) String() string { return proto.CompactTextString(m) } 149 func (*Secret) ProtoMessage() {} 150 func (*Secret) Descriptor() ([]byte, []int) { 151 return fileDescriptor_fa9c3fe257a0b458, []int{2} 152 } 153 154 func (m *Secret) XXX_Unmarshal(b []byte) error { 155 return xxx_messageInfo_Secret.Unmarshal(m, b) 156 } 157 func (m *Secret) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 158 return xxx_messageInfo_Secret.Marshal(b, m, deterministic) 159 } 160 func (m *Secret) XXX_Merge(src proto.Message) { 161 xxx_messageInfo_Secret.Merge(m, src) 162 } 163 func (m *Secret) XXX_Size() int { 164 return xxx_messageInfo_Secret.Size(m) 165 } 166 func (m *Secret) XXX_DiscardUnknown() { 167 xxx_messageInfo_Secret.DiscardUnknown(m) 168 } 169 170 var xxx_messageInfo_Secret proto.InternalMessageInfo 171 172 func (m *Secret) GetName() string { 173 if m != nil { 174 return m.Name 175 } 176 return "" 177 } 178 179 func (m *Secret) GetId() string { 180 if m != nil { 181 return m.Id 182 } 183 return "" 184 } 185 186 func (m *Secret) GetFilename() string { 187 if m != nil { 188 return m.Filename 189 } 190 return "" 191 } 192 193 func (m *Secret) GetValue() string { 194 if m != nil { 195 return m.Value 196 } 197 return "" 198 } 199 200 func (m *Secret) GetVaultId() string { 201 if m != nil { 202 return m.VaultId 203 } 204 return "" 205 } 206 207 func (m *Secret) GetVaultName() string { 208 if m != nil { 209 return m.VaultName 210 } 211 return "" 212 } 213 214 func (m *Secret) GetGroupName() string { 215 if m != nil { 216 return m.GroupName 217 } 218 return "" 219 } 220 221 func (m *Secret) GetStatus() *common.Status { 222 if m != nil { 223 return m.Status 224 } 225 return nil 226 } 227 228 func (m *Secret) GetEntity() *common.Entity { 229 if m != nil { 230 return m.Entity 231 } 232 return nil 233 } 234 235 func (m *Secret) GetTags() *common.Tags { 236 if m != nil { 237 return m.Tags 238 } 239 return nil 240 } 241 242 func init() { 243 proto.RegisterType((*SecretRequest)(nil), "moc.nodeagent.security.SecretRequest") 244 proto.RegisterType((*SecretResponse)(nil), "moc.nodeagent.security.SecretResponse") 245 proto.RegisterType((*Secret)(nil), "moc.nodeagent.security.Secret") 246 } 247 248 func init() { proto.RegisterFile("moc_nodeagent_secret.proto", fileDescriptor_fa9c3fe257a0b458) } 249 250 var fileDescriptor_fa9c3fe257a0b458 = []byte{ 251 // 458 bytes of a gzipped FileDescriptorProto 252 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x92, 0xc1, 0x6e, 0xd3, 0x40, 253 0x10, 0x86, 0x71, 0x9a, 0x38, 0xcd, 0x44, 0xcd, 0x61, 0x85, 0x60, 0x65, 0x41, 0x15, 0x05, 0x81, 254 0x72, 0xb2, 0x85, 0xe1, 0xc0, 0x95, 0x48, 0x3d, 0xf4, 0x02, 0xd2, 0xb6, 0x42, 0x82, 0x4b, 0xe5, 255 0x38, 0x13, 0xd7, 0xc2, 0xf6, 0x98, 0xdd, 0x75, 0x50, 0x4e, 0x5c, 0x79, 0x00, 0xde, 0x80, 0x67, 256 0xe0, 0xfd, 0x90, 0x67, 0x6d, 0x03, 0x12, 0x52, 0x0f, 0x3d, 0xd9, 0xfb, 0x7f, 0xff, 0xfc, 0xb3, 257 0x9a, 0x59, 0x08, 0x4a, 0x4a, 0x6f, 0x2a, 0xda, 0x61, 0x92, 0x61, 0x65, 0x6f, 0x0c, 0xa6, 0x1a, 258 0x6d, 0x58, 0x6b, 0xb2, 0x24, 0x1e, 0x95, 0x94, 0x86, 0x03, 0x0b, 0x0d, 0xa6, 0x8d, 0xce, 0xed, 259 0x31, 0x38, 0xcf, 0x88, 0xb2, 0x02, 0x23, 0x76, 0x6d, 0x9b, 0x7d, 0xf4, 0x55, 0x27, 0x75, 0x8d, 260 0xda, 0xb8, 0xba, 0xe0, 0x71, 0x9b, 0x99, 0x52, 0x59, 0x52, 0xd5, 0x7d, 0x1c, 0x58, 0x7d, 0x83, 261 0xb3, 0x2b, 0x6e, 0xa0, 0xf0, 0x4b, 0x83, 0xc6, 0x8a, 0x37, 0x30, 0x75, 0x82, 0x91, 0xde, 0xf2, 262 0x64, 0x3d, 0x8f, 0xcf, 0xc3, 0xff, 0xf7, 0x0c, 0xbb, 0xba, 0xde, 0x2e, 0x5e, 0xc3, 0xd9, 0xfb, 263 0x1a, 0x75, 0x62, 0x73, 0xaa, 0xae, 0x8f, 0x35, 0xca, 0xd1, 0xd2, 0x5b, 0x2f, 0xe2, 0x05, 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8c, 0x04, 0xb6, 0xcc, 0xd8, 0x72, 0x9d, 0x64, 0x46, 0xb1, 0x1c, 0xdf, 0xc2, 0xdc, 0x0d, 276 0xe9, 0x6d, 0xbb, 0x17, 0xf1, 0x11, 0xfc, 0xcb, 0xea, 0x40, 0x9f, 0x51, 0x3c, 0xbf, 0x63, 0x63, 277 0xee, 0xb1, 0x05, 0x2f, 0xee, 0xb2, 0xb9, 0x17, 0xb1, 0x7a, 0xb0, 0x79, 0xf9, 0x29, 0xca, 0x72, 278 0x7b, 0xdb, 0x6c, 0xc3, 0x94, 0xca, 0xa8, 0xcc, 0x53, 0x4d, 0x86, 0xf6, 0x36, 0x2a, 0x29, 0x8d, 279 0x74, 0x9d, 0x46, 0x43, 0x46, 0xd4, 0x67, 0x6c, 0x7d, 0x5e, 0xfa, 0xab, 0xdf, 0x01, 0x00, 0x00, 280 0xff, 0xff, 0xce, 0xc4, 0x8d, 0x60, 0x50, 0x03, 0x00, 0x00, 281 } 282 283 // Reference imports to suppress errors if they are not otherwise used. 284 var _ context.Context 285 var _ grpc.ClientConn 286 287 // This is a compile-time assertion to ensure that this generated file 288 // is compatible with the grpc package it is being compiled against. 289 const _ = grpc.SupportPackageIsVersion4 290 291 // SecretAgentClient is the client API for SecretAgent service. 292 // 293 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 294 type SecretAgentClient interface { 295 Invoke(ctx context.Context, in *SecretRequest, opts ...grpc.CallOption) (*SecretResponse, error) 296 } 297 298 type secretAgentClient struct { 299 cc *grpc.ClientConn 300 } 301 302 func NewSecretAgentClient(cc *grpc.ClientConn) SecretAgentClient { 303 return &secretAgentClient{cc} 304 } 305 306 func (c *secretAgentClient) Invoke(ctx context.Context, in *SecretRequest, opts ...grpc.CallOption) (*SecretResponse, error) { 307 out := new(SecretResponse) 308 err := c.cc.Invoke(ctx, "/moc.nodeagent.security.SecretAgent/Invoke", in, out, opts...) 309 if err != nil { 310 return nil, err 311 } 312 return out, nil 313 } 314 315 // SecretAgentServer is the server API for SecretAgent service. 316 type SecretAgentServer interface { 317 Invoke(context.Context, *SecretRequest) (*SecretResponse, error) 318 } 319 320 // UnimplementedSecretAgentServer can be embedded to have forward compatible implementations. 321 type UnimplementedSecretAgentServer struct { 322 } 323 324 func (*UnimplementedSecretAgentServer) Invoke(ctx context.Context, req *SecretRequest) (*SecretResponse, error) { 325 return nil, status.Errorf(codes.Unimplemented, "method Invoke not implemented") 326 } 327 328 func RegisterSecretAgentServer(s *grpc.Server, srv SecretAgentServer) { 329 s.RegisterService(&_SecretAgent_serviceDesc, srv) 330 } 331 332 func _SecretAgent_Invoke_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 333 in := new(SecretRequest) 334 if err := dec(in); err != nil { 335 return nil, err 336 } 337 if interceptor == nil { 338 return srv.(SecretAgentServer).Invoke(ctx, in) 339 } 340 info := &grpc.UnaryServerInfo{ 341 Server: srv, 342 FullMethod: "/moc.nodeagent.security.SecretAgent/Invoke", 343 } 344 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 345 return srv.(SecretAgentServer).Invoke(ctx, req.(*SecretRequest)) 346 } 347 return interceptor(ctx, in, info, handler) 348 } 349 350 var _SecretAgent_serviceDesc = grpc.ServiceDesc{ 351 ServiceName: "moc.nodeagent.security.SecretAgent", 352 HandlerType: (*SecretAgentServer)(nil), 353 Methods: []grpc.MethodDesc{ 354 { 355 MethodName: "Invoke", 356 Handler: _SecretAgent_Invoke_Handler, 357 }, 358 }, 359 Streams: []grpc.StreamDesc{}, 360 Metadata: "moc_nodeagent_secret.proto", 361 }