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

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // source: moc_nodeagent_identity.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 IdentityRequest struct {
    30  	Identitys            []*Identity      `protobuf:"bytes,1,rep,name=Identitys,proto3" json:"Identitys,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 *IdentityRequest) Reset()         { *m = IdentityRequest{} }
    38  func (m *IdentityRequest) String() string { return proto.CompactTextString(m) }
    39  func (*IdentityRequest) ProtoMessage()    {}
    40  func (*IdentityRequest) Descriptor() ([]byte, []int) {
    41  	return fileDescriptor_495ce77adac601d4, []int{0}
    42  }
    43  
    44  func (m *IdentityRequest) XXX_Unmarshal(b []byte) error {
    45  	return xxx_messageInfo_IdentityRequest.Unmarshal(m, b)
    46  }
    47  func (m *IdentityRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    48  	return xxx_messageInfo_IdentityRequest.Marshal(b, m, deterministic)
    49  }
    50  func (m *IdentityRequest) XXX_Merge(src proto.Message) {
    51  	xxx_messageInfo_IdentityRequest.Merge(m, src)
    52  }
    53  func (m *IdentityRequest) XXX_Size() int {
    54  	return xxx_messageInfo_IdentityRequest.Size(m)
    55  }
    56  func (m *IdentityRequest) XXX_DiscardUnknown() {
    57  	xxx_messageInfo_IdentityRequest.DiscardUnknown(m)
    58  }
    59  
    60  var xxx_messageInfo_IdentityRequest proto.InternalMessageInfo
    61  
    62  func (m *IdentityRequest) GetIdentitys() []*Identity {
    63  	if m != nil {
    64  		return m.Identitys
    65  	}
    66  	return nil
    67  }
    68  
    69  func (m *IdentityRequest) GetOperationType() common.Operation {
    70  	if m != nil {
    71  		return m.OperationType
    72  	}
    73  	return common.Operation_GET
    74  }
    75  
    76  type IdentityResponse struct {
    77  	Identitys            []*Identity         `protobuf:"bytes,1,rep,name=Identitys,proto3" json:"Identitys,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 *IdentityResponse) Reset()         { *m = IdentityResponse{} }
    86  func (m *IdentityResponse) String() string { return proto.CompactTextString(m) }
    87  func (*IdentityResponse) ProtoMessage()    {}
    88  func (*IdentityResponse) Descriptor() ([]byte, []int) {
    89  	return fileDescriptor_495ce77adac601d4, []int{1}
    90  }
    91  
    92  func (m *IdentityResponse) XXX_Unmarshal(b []byte) error {
    93  	return xxx_messageInfo_IdentityResponse.Unmarshal(m, b)
    94  }
    95  func (m *IdentityResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    96  	return xxx_messageInfo_IdentityResponse.Marshal(b, m, deterministic)
    97  }
    98  func (m *IdentityResponse) XXX_Merge(src proto.Message) {
    99  	xxx_messageInfo_IdentityResponse.Merge(m, src)
   100  }
   101  func (m *IdentityResponse) XXX_Size() int {
   102  	return xxx_messageInfo_IdentityResponse.Size(m)
   103  }
   104  func (m *IdentityResponse) XXX_DiscardUnknown() {
   105  	xxx_messageInfo_IdentityResponse.DiscardUnknown(m)
   106  }
   107  
   108  var xxx_messageInfo_IdentityResponse proto.InternalMessageInfo
   109  
   110  func (m *IdentityResponse) GetIdentitys() []*Identity {
   111  	if m != nil {
   112  		return m.Identitys
   113  	}
   114  	return nil
   115  }
   116  
   117  func (m *IdentityResponse) GetResult() *wrappers.BoolValue {
   118  	if m != nil {
   119  		return m.Result
   120  	}
   121  	return nil
   122  }
   123  
   124  func (m *IdentityResponse) GetError() string {
   125  	if m != nil {
   126  		return m.Error
   127  	}
   128  	return ""
   129  }
   130  
   131  type Identity 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  	ResourceGroup        string            `protobuf:"bytes,3,opt,name=resourceGroup,proto3" json:"resourceGroup,omitempty"`
   135  	Password             string            `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"`
   136  	Token                string            `protobuf:"bytes,5,opt,name=token,proto3" json:"token,omitempty"`
   137  	Certificate          string            `protobuf:"bytes,6,opt,name=certificate,proto3" json:"certificate,omitempty"`
   138  	Status               *common.Status    `protobuf:"bytes,7,opt,name=status,proto3" json:"status,omitempty"`
   139  	Entity               *common.Entity    `protobuf:"bytes,8,opt,name=entity,proto3" json:"entity,omitempty"`
   140  	Tags                 *common.Tags      `protobuf:"bytes,9,opt,name=tags,proto3" json:"tags,omitempty"`
   141  	TokenExpiry          int64             `protobuf:"varint,13,opt,name=tokenExpiry,proto3" json:"tokenExpiry,omitempty"`
   142  	ClientType           common.ClientType `protobuf:"varint,14,opt,name=clientType,proto3,enum=moc.ClientType" json:"clientType,omitempty"`
   143  	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
   144  	XXX_unrecognized     []byte            `json:"-"`
   145  	XXX_sizecache        int32             `json:"-"`
   146  }
   147  
   148  func (m *Identity) Reset()         { *m = Identity{} }
   149  func (m *Identity) String() string { return proto.CompactTextString(m) }
   150  func (*Identity) ProtoMessage()    {}
   151  func (*Identity) Descriptor() ([]byte, []int) {
   152  	return fileDescriptor_495ce77adac601d4, []int{2}
   153  }
   154  
   155  func (m *Identity) XXX_Unmarshal(b []byte) error {
   156  	return xxx_messageInfo_Identity.Unmarshal(m, b)
   157  }
   158  func (m *Identity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   159  	return xxx_messageInfo_Identity.Marshal(b, m, deterministic)
   160  }
   161  func (m *Identity) XXX_Merge(src proto.Message) {
   162  	xxx_messageInfo_Identity.Merge(m, src)
   163  }
   164  func (m *Identity) XXX_Size() int {
   165  	return xxx_messageInfo_Identity.Size(m)
   166  }
   167  func (m *Identity) XXX_DiscardUnknown() {
   168  	xxx_messageInfo_Identity.DiscardUnknown(m)
   169  }
   170  
   171  var xxx_messageInfo_Identity proto.InternalMessageInfo
   172  
   173  func (m *Identity) GetName() string {
   174  	if m != nil {
   175  		return m.Name
   176  	}
   177  	return ""
   178  }
   179  
   180  func (m *Identity) GetId() string {
   181  	if m != nil {
   182  		return m.Id
   183  	}
   184  	return ""
   185  }
   186  
   187  func (m *Identity) GetResourceGroup() string {
   188  	if m != nil {
   189  		return m.ResourceGroup
   190  	}
   191  	return ""
   192  }
   193  
   194  func (m *Identity) GetPassword() string {
   195  	if m != nil {
   196  		return m.Password
   197  	}
   198  	return ""
   199  }
   200  
   201  func (m *Identity) GetToken() string {
   202  	if m != nil {
   203  		return m.Token
   204  	}
   205  	return ""
   206  }
   207  
   208  func (m *Identity) GetCertificate() string {
   209  	if m != nil {
   210  		return m.Certificate
   211  	}
   212  	return ""
   213  }
   214  
   215  func (m *Identity) GetStatus() *common.Status {
   216  	if m != nil {
   217  		return m.Status
   218  	}
   219  	return nil
   220  }
   221  
   222  func (m *Identity) GetEntity() *common.Entity {
   223  	if m != nil {
   224  		return m.Entity
   225  	}
   226  	return nil
   227  }
   228  
   229  func (m *Identity) GetTags() *common.Tags {
   230  	if m != nil {
   231  		return m.Tags
   232  	}
   233  	return nil
   234  }
   235  
   236  func (m *Identity) GetTokenExpiry() int64 {
   237  	if m != nil {
   238  		return m.TokenExpiry
   239  	}
   240  	return 0
   241  }
   242  
   243  func (m *Identity) GetClientType() common.ClientType {
   244  	if m != nil {
   245  		return m.ClientType
   246  	}
   247  	return common.ClientType_CONTROLPLANE
   248  }
   249  
   250  func init() {
   251  	proto.RegisterType((*IdentityRequest)(nil), "moc.nodeagent.security.IdentityRequest")
   252  	proto.RegisterType((*IdentityResponse)(nil), "moc.nodeagent.security.IdentityResponse")
   253  	proto.RegisterType((*Identity)(nil), "moc.nodeagent.security.Identity")
   254  }
   255  
   256  func init() { proto.RegisterFile("moc_nodeagent_identity.proto", fileDescriptor_495ce77adac601d4) }
   257  
   258  var fileDescriptor_495ce77adac601d4 = []byte{
   259  	// 496 bytes of a gzipped FileDescriptorProto
   260  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x92, 0xdf, 0x8a, 0xd3, 0x40,
   261  	0x14, 0xc6, 0x4d, 0xff, 0xd9, 0x9e, 0xd2, 0xae, 0x0c, 0xa2, 0x43, 0x51, 0x09, 0x55, 0xb4, 0x57,
   262  	0x09, 0x56, 0xaf, 0x05, 0x2b, 0x45, 0xf6, 0x4a, 0x18, 0x17, 0x2f, 0x04, 0x59, 0xd2, 0xe9, 0x69,
   263  	0x1c, 0xb6, 0x99, 0x13, 0x67, 0x26, 0xae, 0x7d, 0x02, 0x7d, 0x08, 0x5f, 0xc3, 0x57, 0xf3, 0x5a,
   264  	0x3a, 0xf9, 0xb3, 0x59, 0x10, 0xf6, 0x62, 0xaf, 0xda, 0x7c, 0xdf, 0x6f, 0xbe, 0x39, 0x39, 0xf9,
   265  	0xe0, 0x51, 0x46, 0xf2, 0x5c, 0xd3, 0x16, 0x93, 0x14, 0xb5, 0x3b, 0x57, 0x5b, 0xd4, 0x4e, 0xb9,
   266  	0x43, 0x94, 0x1b, 0x72, 0xc4, 0x1e, 0x64, 0x24, 0xa3, 0xc6, 0x8d, 0x2c, 0xca, 0xc2, 0x28, 0x77,
   267  	0x98, 0x3d, 0x49, 0x89, 0xd2, 0x3d, 0xc6, 0x9e, 0xda, 0x14, 0xbb, 0xf8, 0xd2, 0x24, 0x79, 0x8e,
   268  	0xc6, 0x96, 0xe7, 0x66, 0x0f, 0x8f, 0xa9, 0x92, 0xb2, 0x8c, 0x74, 0xf5, 0x53, 0x1a, 0xf3, 0x9f,
   269  	0x01, 0x9c, 0x9c, 0x56, 0x77, 0x08, 0xfc, 0x56, 0xa0, 0x75, 0xec, 0x0d, 0x8c, 0x6a, 0xc9, 0xf2,
   270  	0x20, 0xec, 0x2e, 0xc6, 0xcb, 0x30, 0xfa, 0xff, 0xc5, 0x51, 0x73, 0xf6, 0xea, 0x08, 0x7b, 0x0d,
   271  	0x93, 0x0f, 0x39, 0x9a, 0xc4, 0x29, 0xd2, 0x67, 0x87, 0x1c, 0x79, 0x27, 0x0c, 0x16, 0xd3, 0xe5,
   272  	0xd4, 0x67, 0x34, 0x8e, 0xb8, 0x0e, 0xcd, 0x7f, 0x07, 0x70, 0xef, 0x6a, 0x12, 0x9b, 0x93, 0xb6,
   273  	0x78, 0xeb, 0x51, 0x96, 0x30, 0x10, 0x68, 0x8b, 0xbd, 0xf3, 0x33, 0x8c, 0x97, 0xb3, 0xa8, 0x5c,
   274  	0x54, 0x54, 0x2f, 0x2a, 0x5a, 0x11, 0xed, 0x3f, 0x25, 0xfb, 0x02, 0x45, 0x45, 0xb2, 0xfb, 0xd0,
   275  	0x5f, 0x1b, 0x43, 0x86, 0x77, 0xc3, 0x60, 0x31, 0x12, 0xe5, 0xc3, 0xfc, 0x6f, 0x07, 0x86, 0x75,
   276  	0x2e, 0x63, 0xd0, 0xd3, 0x49, 0x86, 0x3c, 0xf0, 0x84, 0xff, 0xcf, 0xa6, 0xd0, 0x51, 0x5b, 0x7f,
   277  	0xcd, 0x48, 0x74, 0xd4, 0x96, 0x3d, 0x83, 0x89, 0x41, 0x4b, 0x85, 0x91, 0xf8, 0xde, 0x50, 0x91,
   278  	0x57, 0x71, 0xd7, 0x45, 0x16, 0xc2, 0x30, 0x4f, 0xac, 0xbd, 0x24, 0xb3, 0xe5, 0xbd, 0x23, 0xb0,
   279  	0xea, 0xfd, 0xfa, 0xc3, 0x03, 0xd1, 0xa8, 0x6c, 0x06, 0x7d, 0x47, 0x17, 0xa8, 0x79, 0xbf, 0x65,
   280  	0x97, 0x12, 0x7b, 0x0e, 0x63, 0x89, 0xc6, 0xa9, 0x9d, 0x92, 0x89, 0x43, 0x3e, 0x68, 0x11, 0x6d,
   281  	0x83, 0x3d, 0x85, 0x81, 0x75, 0x89, 0x2b, 0x2c, 0xbf, 0xeb, 0xd7, 0x30, 0xf6, 0x3b, 0xfc, 0xe8,
   282  	0x25, 0x51, 0x59, 0x47, 0xa8, 0x7c, 0x3d, 0x3e, 0x6c, 0x41, 0xeb, 0x72, 0xa7, 0x95, 0xc5, 0x1e,
   283  	0x43, 0xcf, 0x25, 0xa9, 0xe5, 0x23, 0x8f, 0x8c, 0x3c, 0x72, 0x96, 0xa4, 0x56, 0x78, 0x99, 0x85,
   284  	0x30, 0xf6, 0x93, 0xad, 0x7f, 0xe4, 0xca, 0x1c, 0xf8, 0x24, 0x0c, 0x16, 0x5d, 0xd1, 0x96, 0x58,
   285  	0x0c, 0x20, 0xf7, 0x0a, 0xb5, 0xf3, 0xcd, 0x98, 0xfa, 0x66, 0x9c, 0xf8, 0x98, 0x77, 0x8d, 0x2c,
   286  	0x5a, 0xc8, 0x52, 0xc3, 0xa4, 0xde, 0xfb, 0xdb, 0xe3, 0x07, 0x67, 0x5f, 0x60, 0x70, 0xaa, 0xbf,
   287  	0xd3, 0x05, 0xb2, 0x17, 0x37, 0x56, 0xa1, 0x6c, 0xf4, 0x6c, 0x71, 0x33, 0x58, 0x16, 0x6e, 0x7e,
   288  	0x67, 0xf5, 0xf2, 0x73, 0x9c, 0x2a, 0xf7, 0xb5, 0xd8, 0x44, 0x92, 0xb2, 0x38, 0x53, 0xd2, 0x90,
   289  	0xa5, 0x9d, 0x8b, 0x33, 0x92, 0xb1, 0xc9, 0x65, 0xdc, 0xa4, 0xc4, 0x75, 0xca, 0x66, 0xe0, 0xdb,
   290  	0xf4, 0xea, 0x5f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x59, 0xb9, 0xdb, 0xc6, 0xbc, 0x03, 0x00, 0x00,
   291  }
   292  
   293  // Reference imports to suppress errors if they are not otherwise used.
   294  var _ context.Context
   295  var _ grpc.ClientConn
   296  
   297  // This is a compile-time assertion to ensure that this generated file
   298  // is compatible with the grpc package it is being compiled against.
   299  const _ = grpc.SupportPackageIsVersion4
   300  
   301  // IdentityAgentClient is the client API for IdentityAgent service.
   302  //
   303  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   304  type IdentityAgentClient interface {
   305  	Invoke(ctx context.Context, in *IdentityRequest, opts ...grpc.CallOption) (*IdentityResponse, error)
   306  }
   307  
   308  type identityAgentClient struct {
   309  	cc *grpc.ClientConn
   310  }
   311  
   312  func NewIdentityAgentClient(cc *grpc.ClientConn) IdentityAgentClient {
   313  	return &identityAgentClient{cc}
   314  }
   315  
   316  func (c *identityAgentClient) Invoke(ctx context.Context, in *IdentityRequest, opts ...grpc.CallOption) (*IdentityResponse, error) {
   317  	out := new(IdentityResponse)
   318  	err := c.cc.Invoke(ctx, "/moc.nodeagent.security.IdentityAgent/Invoke", in, out, opts...)
   319  	if err != nil {
   320  		return nil, err
   321  	}
   322  	return out, nil
   323  }
   324  
   325  // IdentityAgentServer is the server API for IdentityAgent service.
   326  type IdentityAgentServer interface {
   327  	Invoke(context.Context, *IdentityRequest) (*IdentityResponse, error)
   328  }
   329  
   330  // UnimplementedIdentityAgentServer can be embedded to have forward compatible implementations.
   331  type UnimplementedIdentityAgentServer struct {
   332  }
   333  
   334  func (*UnimplementedIdentityAgentServer) Invoke(ctx context.Context, req *IdentityRequest) (*IdentityResponse, error) {
   335  	return nil, status.Errorf(codes.Unimplemented, "method Invoke not implemented")
   336  }
   337  
   338  func RegisterIdentityAgentServer(s *grpc.Server, srv IdentityAgentServer) {
   339  	s.RegisterService(&_IdentityAgent_serviceDesc, srv)
   340  }
   341  
   342  func _IdentityAgent_Invoke_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   343  	in := new(IdentityRequest)
   344  	if err := dec(in); err != nil {
   345  		return nil, err
   346  	}
   347  	if interceptor == nil {
   348  		return srv.(IdentityAgentServer).Invoke(ctx, in)
   349  	}
   350  	info := &grpc.UnaryServerInfo{
   351  		Server:     srv,
   352  		FullMethod: "/moc.nodeagent.security.IdentityAgent/Invoke",
   353  	}
   354  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   355  		return srv.(IdentityAgentServer).Invoke(ctx, req.(*IdentityRequest))
   356  	}
   357  	return interceptor(ctx, in, info, handler)
   358  }
   359  
   360  var _IdentityAgent_serviceDesc = grpc.ServiceDesc{
   361  	ServiceName: "moc.nodeagent.security.IdentityAgent",
   362  	HandlerType: (*IdentityAgentServer)(nil),
   363  	Methods: []grpc.MethodDesc{
   364  		{
   365  			MethodName: "Invoke",
   366  			Handler:    _IdentityAgent_Invoke_Handler,
   367  		},
   368  	},
   369  	Streams:  []grpc.StreamDesc{},
   370  	Metadata: "moc_nodeagent_identity.proto",
   371  }