github.com/microsoft/moc@v0.17.1/rpc/nodeagent/security/moc_nodeagent_keyvault.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // source: moc_nodeagent_keyvault.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 KeyVaultRequest struct {
    30  	KeyVaults            []*KeyVault      `protobuf:"bytes,1,rep,name=KeyVaults,proto3" json:"KeyVaults,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 *KeyVaultRequest) Reset()         { *m = KeyVaultRequest{} }
    38  func (m *KeyVaultRequest) String() string { return proto.CompactTextString(m) }
    39  func (*KeyVaultRequest) ProtoMessage()    {}
    40  func (*KeyVaultRequest) Descriptor() ([]byte, []int) {
    41  	return fileDescriptor_316bd727a7e0a804, []int{0}
    42  }
    43  
    44  func (m *KeyVaultRequest) XXX_Unmarshal(b []byte) error {
    45  	return xxx_messageInfo_KeyVaultRequest.Unmarshal(m, b)
    46  }
    47  func (m *KeyVaultRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    48  	return xxx_messageInfo_KeyVaultRequest.Marshal(b, m, deterministic)
    49  }
    50  func (m *KeyVaultRequest) XXX_Merge(src proto.Message) {
    51  	xxx_messageInfo_KeyVaultRequest.Merge(m, src)
    52  }
    53  func (m *KeyVaultRequest) XXX_Size() int {
    54  	return xxx_messageInfo_KeyVaultRequest.Size(m)
    55  }
    56  func (m *KeyVaultRequest) XXX_DiscardUnknown() {
    57  	xxx_messageInfo_KeyVaultRequest.DiscardUnknown(m)
    58  }
    59  
    60  var xxx_messageInfo_KeyVaultRequest proto.InternalMessageInfo
    61  
    62  func (m *KeyVaultRequest) GetKeyVaults() []*KeyVault {
    63  	if m != nil {
    64  		return m.KeyVaults
    65  	}
    66  	return nil
    67  }
    68  
    69  func (m *KeyVaultRequest) GetOperationType() common.Operation {
    70  	if m != nil {
    71  		return m.OperationType
    72  	}
    73  	return common.Operation_GET
    74  }
    75  
    76  type KeyVaultResponse struct {
    77  	KeyVaults            []*KeyVault         `protobuf:"bytes,1,rep,name=KeyVaults,proto3" json:"KeyVaults,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 *KeyVaultResponse) Reset()         { *m = KeyVaultResponse{} }
    86  func (m *KeyVaultResponse) String() string { return proto.CompactTextString(m) }
    87  func (*KeyVaultResponse) ProtoMessage()    {}
    88  func (*KeyVaultResponse) Descriptor() ([]byte, []int) {
    89  	return fileDescriptor_316bd727a7e0a804, []int{1}
    90  }
    91  
    92  func (m *KeyVaultResponse) XXX_Unmarshal(b []byte) error {
    93  	return xxx_messageInfo_KeyVaultResponse.Unmarshal(m, b)
    94  }
    95  func (m *KeyVaultResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    96  	return xxx_messageInfo_KeyVaultResponse.Marshal(b, m, deterministic)
    97  }
    98  func (m *KeyVaultResponse) XXX_Merge(src proto.Message) {
    99  	xxx_messageInfo_KeyVaultResponse.Merge(m, src)
   100  }
   101  func (m *KeyVaultResponse) XXX_Size() int {
   102  	return xxx_messageInfo_KeyVaultResponse.Size(m)
   103  }
   104  func (m *KeyVaultResponse) XXX_DiscardUnknown() {
   105  	xxx_messageInfo_KeyVaultResponse.DiscardUnknown(m)
   106  }
   107  
   108  var xxx_messageInfo_KeyVaultResponse proto.InternalMessageInfo
   109  
   110  func (m *KeyVaultResponse) GetKeyVaults() []*KeyVault {
   111  	if m != nil {
   112  		return m.KeyVaults
   113  	}
   114  	return nil
   115  }
   116  
   117  func (m *KeyVaultResponse) GetResult() *wrappers.BoolValue {
   118  	if m != nil {
   119  		return m.Result
   120  	}
   121  	return nil
   122  }
   123  
   124  func (m *KeyVaultResponse) GetError() string {
   125  	if m != nil {
   126  		return m.Error
   127  	}
   128  	return ""
   129  }
   130  
   131  type KeyVault 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  	Secrets              []*Secret      `protobuf:"bytes,3,rep,name=Secrets,proto3" json:"Secrets,omitempty"`
   135  	GroupName            string         `protobuf:"bytes,4,opt,name=groupName,proto3" json:"groupName,omitempty"`
   136  	Status               *common.Status `protobuf:"bytes,5,opt,name=status,proto3" json:"status,omitempty"`
   137  	Entity               *common.Entity `protobuf:"bytes,6,opt,name=entity,proto3" json:"entity,omitempty"`
   138  	Tags                 *common.Tags   `protobuf:"bytes,7,opt,name=tags,proto3" json:"tags,omitempty"`
   139  	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
   140  	XXX_unrecognized     []byte         `json:"-"`
   141  	XXX_sizecache        int32          `json:"-"`
   142  }
   143  
   144  func (m *KeyVault) Reset()         { *m = KeyVault{} }
   145  func (m *KeyVault) String() string { return proto.CompactTextString(m) }
   146  func (*KeyVault) ProtoMessage()    {}
   147  func (*KeyVault) Descriptor() ([]byte, []int) {
   148  	return fileDescriptor_316bd727a7e0a804, []int{2}
   149  }
   150  
   151  func (m *KeyVault) XXX_Unmarshal(b []byte) error {
   152  	return xxx_messageInfo_KeyVault.Unmarshal(m, b)
   153  }
   154  func (m *KeyVault) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   155  	return xxx_messageInfo_KeyVault.Marshal(b, m, deterministic)
   156  }
   157  func (m *KeyVault) XXX_Merge(src proto.Message) {
   158  	xxx_messageInfo_KeyVault.Merge(m, src)
   159  }
   160  func (m *KeyVault) XXX_Size() int {
   161  	return xxx_messageInfo_KeyVault.Size(m)
   162  }
   163  func (m *KeyVault) XXX_DiscardUnknown() {
   164  	xxx_messageInfo_KeyVault.DiscardUnknown(m)
   165  }
   166  
   167  var xxx_messageInfo_KeyVault proto.InternalMessageInfo
   168  
   169  func (m *KeyVault) GetName() string {
   170  	if m != nil {
   171  		return m.Name
   172  	}
   173  	return ""
   174  }
   175  
   176  func (m *KeyVault) GetId() string {
   177  	if m != nil {
   178  		return m.Id
   179  	}
   180  	return ""
   181  }
   182  
   183  func (m *KeyVault) GetSecrets() []*Secret {
   184  	if m != nil {
   185  		return m.Secrets
   186  	}
   187  	return nil
   188  }
   189  
   190  func (m *KeyVault) GetGroupName() string {
   191  	if m != nil {
   192  		return m.GroupName
   193  	}
   194  	return ""
   195  }
   196  
   197  func (m *KeyVault) GetStatus() *common.Status {
   198  	if m != nil {
   199  		return m.Status
   200  	}
   201  	return nil
   202  }
   203  
   204  func (m *KeyVault) GetEntity() *common.Entity {
   205  	if m != nil {
   206  		return m.Entity
   207  	}
   208  	return nil
   209  }
   210  
   211  func (m *KeyVault) GetTags() *common.Tags {
   212  	if m != nil {
   213  		return m.Tags
   214  	}
   215  	return nil
   216  }
   217  
   218  func init() {
   219  	proto.RegisterType((*KeyVaultRequest)(nil), "moc.nodeagent.security.KeyVaultRequest")
   220  	proto.RegisterType((*KeyVaultResponse)(nil), "moc.nodeagent.security.KeyVaultResponse")
   221  	proto.RegisterType((*KeyVault)(nil), "moc.nodeagent.security.KeyVault")
   222  }
   223  
   224  func init() { proto.RegisterFile("moc_nodeagent_keyvault.proto", fileDescriptor_316bd727a7e0a804) }
   225  
   226  var fileDescriptor_316bd727a7e0a804 = []byte{
   227  	// 442 bytes of a gzipped FileDescriptorProto
   228  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x92, 0xdf, 0x6a, 0xd4, 0x40,
   229  	0x14, 0xc6, 0xcd, 0xee, 0x36, 0x35, 0xb3, 0x74, 0x95, 0x41, 0x34, 0x84, 0x5a, 0x96, 0xf5, 0xc2,
   230  	0xbd, 0x9a, 0x60, 0xf4, 0xc2, 0x2b, 0xc1, 0x42, 0x2f, 0x44, 0x50, 0x98, 0x96, 0x5e, 0x08, 0x52,
   231  	0x66, 0x67, 0x4f, 0x63, 0x68, 0x32, 0x27, 0xce, 0x9f, 0x4a, 0x9e, 0xc0, 0x97, 0xf0, 0x1d, 0x7d,
   232  	0x05, 0xc9, 0xe4, 0xcf, 0x5a, 0x50, 0xf6, 0xa2, 0x57, 0x49, 0xce, 0xf9, 0xcd, 0xf7, 0x7d, 0x73,
   233  	0x4e, 0xc8, 0x71, 0x85, 0xf2, 0x4a, 0xe1, 0x16, 0x44, 0x0e, 0xca, 0x5e, 0xdd, 0x40, 0x73, 0x2b,
   234  	0x5c, 0x69, 0x59, 0xad, 0xd1, 0x22, 0x7d, 0x5a, 0xa1, 0x64, 0x63, 0x97, 0x19, 0x90, 0x4e, 0x17,
   235  	0xb6, 0x49, 0x4e, 0x72, 0xc4, 0xbc, 0x84, 0xd4, 0x53, 0x1b, 0x77, 0x9d, 0xfe, 0xd0, 0xa2, 0xae,
   236  	0x41, 0x9b, 0xee, 0x5c, 0xf2, 0xac, 0x55, 0x95, 0x58, 0x55, 0xa8, 0xfa, 0x47, 0xdf, 0x48, 0xee,
   237  	0xda, 0x19, 0x90, 0x1a, 0x7a, 0xb3, 0xd5, 0xcf, 0x80, 0x3c, 0xfa, 0x08, 0xcd, 0x65, 0xeb, 0xcf,
   238  	0xe1, 0xbb, 0x03, 0x63, 0xe9, 0x3b, 0x12, 0x0d, 0x25, 0x13, 0x07, 0xcb, 0xe9, 0x7a, 0x9e, 0x2d,
   239  	0xd9, 0xbf, 0x43, 0xb1, 0xf1, 0xec, 0xee, 0x08, 0x7d, 0x43, 0x8e, 0x3e, 0xd7, 0xa0, 0x85, 0x2d,
   240  	0x50, 0x5d, 0x34, 0x35, 0xc4, 0x93, 0x65, 0xb0, 0x5e, 0x64, 0x0b, 0xaf, 0x31, 0x76, 0xf8, 0x5d,
   241  	0x68, 0xf5, 0x2b, 0x20, 0x8f, 0x77, 0x49, 0x4c, 0x8d, 0xca, 0xc0, 0xbd, 0xa3, 0x64, 0x24, 0xe4,
   242  	0x60, 0x5c, 0x69, 0x7d, 0x86, 0x79, 0x96, 0xb0, 0x6e, 0x88, 0x6c, 0x18, 0x22, 0x3b, 0x45, 0x2c,
   243  	0x2f, 0x45, 0xe9, 0x80, 0xf7, 0x24, 0x7d, 0x42, 0x0e, 0xce, 0xb4, 0x46, 0x1d, 0x4f, 0x97, 0xc1,
   244  	0x3a, 0xe2, 0xdd, 0xc7, 0xea, 0x77, 0x40, 0x1e, 0x0e, 0xba, 0x94, 0x92, 0x99, 0x12, 0x15, 0xc4,
   245  	0x81, 0x27, 0xfc, 0x3b, 0x5d, 0x90, 0x49, 0xb1, 0xf5, 0x36, 0x11, 0x9f, 0x14, 0x5b, 0xfa, 0x96,
   246  	0x1c, 0x9e, 0xfb, 0x49, 0x9b, 0x78, 0xea, 0x83, 0x9f, 0xfc, 0x2f, 0x78, 0x87, 0xf1, 0x01, 0xa7,
   247  	0xc7, 0x24, 0xca, 0x35, 0xba, 0xfa, 0x53, 0x6b, 0x31, 0xf3, 0x82, 0xbb, 0x02, 0x7d, 0x41, 0x42,
   248  	0x63, 0x85, 0x75, 0x26, 0x3e, 0xf0, 0x57, 0x9a, 0x7b, 0xd9, 0x73, 0x5f, 0xe2, 0x7d, 0xab, 0x85,
   249  	0x40, 0xd9, 0xc2, 0x36, 0x71, 0xf8, 0x17, 0x74, 0xe6, 0x4b, 0xbc, 0x6f, 0xd1, 0xe7, 0x64, 0x66,
   250  	0x45, 0x6e, 0xe2, 0x43, 0x8f, 0x44, 0x1e, 0xb9, 0x10, 0xb9, 0xe1, 0xbe, 0x9c, 0x29, 0x72, 0x34,
   251  	0x5c, 0xf8, 0x7d, 0x1b, 0x98, 0x7e, 0x25, 0xe1, 0x07, 0x75, 0x8b, 0x37, 0x40, 0x5f, 0xee, 0xdd,
   252  	0x41, 0xf7, 0x2b, 0x25, 0xeb, 0xfd, 0x60, 0xb7, 0xe9, 0xd5, 0x83, 0xd3, 0x57, 0x5f, 0xd2, 0xbc,
   253  	0xb0, 0xdf, 0xdc, 0x86, 0x49, 0xac, 0xd2, 0xaa, 0x90, 0x1a, 0x0d, 0x5e, 0xdb, 0xb4, 0x42, 0x99,
   254  	0xea, 0x5a, 0xa6, 0xa3, 0x4a, 0x3a, 0xa8, 0x6c, 0x42, 0xbf, 0xc6, 0xd7, 0x7f, 0x02, 0x00, 0x00,
   255  	0xff, 0xff, 0x6a, 0xe1, 0xb4, 0xda, 0x51, 0x03, 0x00, 0x00,
   256  }
   257  
   258  // Reference imports to suppress errors if they are not otherwise used.
   259  var _ context.Context
   260  var _ grpc.ClientConn
   261  
   262  // This is a compile-time assertion to ensure that this generated file
   263  // is compatible with the grpc package it is being compiled against.
   264  const _ = grpc.SupportPackageIsVersion4
   265  
   266  // KeyVaultAgentClient is the client API for KeyVaultAgent service.
   267  //
   268  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   269  type KeyVaultAgentClient interface {
   270  	Invoke(ctx context.Context, in *KeyVaultRequest, opts ...grpc.CallOption) (*KeyVaultResponse, error)
   271  }
   272  
   273  type keyVaultAgentClient struct {
   274  	cc *grpc.ClientConn
   275  }
   276  
   277  func NewKeyVaultAgentClient(cc *grpc.ClientConn) KeyVaultAgentClient {
   278  	return &keyVaultAgentClient{cc}
   279  }
   280  
   281  func (c *keyVaultAgentClient) Invoke(ctx context.Context, in *KeyVaultRequest, opts ...grpc.CallOption) (*KeyVaultResponse, error) {
   282  	out := new(KeyVaultResponse)
   283  	err := c.cc.Invoke(ctx, "/moc.nodeagent.security.KeyVaultAgent/Invoke", in, out, opts...)
   284  	if err != nil {
   285  		return nil, err
   286  	}
   287  	return out, nil
   288  }
   289  
   290  // KeyVaultAgentServer is the server API for KeyVaultAgent service.
   291  type KeyVaultAgentServer interface {
   292  	Invoke(context.Context, *KeyVaultRequest) (*KeyVaultResponse, error)
   293  }
   294  
   295  // UnimplementedKeyVaultAgentServer can be embedded to have forward compatible implementations.
   296  type UnimplementedKeyVaultAgentServer struct {
   297  }
   298  
   299  func (*UnimplementedKeyVaultAgentServer) Invoke(ctx context.Context, req *KeyVaultRequest) (*KeyVaultResponse, error) {
   300  	return nil, status.Errorf(codes.Unimplemented, "method Invoke not implemented")
   301  }
   302  
   303  func RegisterKeyVaultAgentServer(s *grpc.Server, srv KeyVaultAgentServer) {
   304  	s.RegisterService(&_KeyVaultAgent_serviceDesc, srv)
   305  }
   306  
   307  func _KeyVaultAgent_Invoke_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   308  	in := new(KeyVaultRequest)
   309  	if err := dec(in); err != nil {
   310  		return nil, err
   311  	}
   312  	if interceptor == nil {
   313  		return srv.(KeyVaultAgentServer).Invoke(ctx, in)
   314  	}
   315  	info := &grpc.UnaryServerInfo{
   316  		Server:     srv,
   317  		FullMethod: "/moc.nodeagent.security.KeyVaultAgent/Invoke",
   318  	}
   319  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   320  		return srv.(KeyVaultAgentServer).Invoke(ctx, req.(*KeyVaultRequest))
   321  	}
   322  	return interceptor(ctx, in, info, handler)
   323  }
   324  
   325  var _KeyVaultAgent_serviceDesc = grpc.ServiceDesc{
   326  	ServiceName: "moc.nodeagent.security.KeyVaultAgent",
   327  	HandlerType: (*KeyVaultAgentServer)(nil),
   328  	Methods: []grpc.MethodDesc{
   329  		{
   330  			MethodName: "Invoke",
   331  			Handler:    _KeyVaultAgent_Invoke_Handler,
   332  		},
   333  	},
   334  	Streams:  []grpc.StreamDesc{},
   335  	Metadata: "moc_nodeagent_keyvault.proto",
   336  }