moc/rpc/nodeagent/security/moc_nodeagent_identity.pb.go

372 строки
14 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// source: moc_nodeagent_identity.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 IdentityRequest struct {
Identitys []*Identity `protobuf:"bytes,1,rep,name=Identitys,proto3" json:"Identitys,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 *IdentityRequest) Reset() { *m = IdentityRequest{} }
func (m *IdentityRequest) String() string { return proto.CompactTextString(m) }
func (*IdentityRequest) ProtoMessage() {}
func (*IdentityRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_495ce77adac601d4, []int{0}
}
func (m *IdentityRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_IdentityRequest.Unmarshal(m, b)
}
func (m *IdentityRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_IdentityRequest.Marshal(b, m, deterministic)
}
func (m *IdentityRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_IdentityRequest.Merge(m, src)
}
func (m *IdentityRequest) XXX_Size() int {
return xxx_messageInfo_IdentityRequest.Size(m)
}
func (m *IdentityRequest) XXX_DiscardUnknown() {
xxx_messageInfo_IdentityRequest.DiscardUnknown(m)
}
var xxx_messageInfo_IdentityRequest proto.InternalMessageInfo
func (m *IdentityRequest) GetIdentitys() []*Identity {
if m != nil {
return m.Identitys
}
return nil
}
func (m *IdentityRequest) GetOperationType() common.Operation {
if m != nil {
return m.OperationType
}
return common.Operation_GET
}
type IdentityResponse struct {
Identitys []*Identity `protobuf:"bytes,1,rep,name=Identitys,proto3" json:"Identitys,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 *IdentityResponse) Reset() { *m = IdentityResponse{} }
func (m *IdentityResponse) String() string { return proto.CompactTextString(m) }
func (*IdentityResponse) ProtoMessage() {}
func (*IdentityResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_495ce77adac601d4, []int{1}
}
func (m *IdentityResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_IdentityResponse.Unmarshal(m, b)
}
func (m *IdentityResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_IdentityResponse.Marshal(b, m, deterministic)
}
func (m *IdentityResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_IdentityResponse.Merge(m, src)
}
func (m *IdentityResponse) XXX_Size() int {
return xxx_messageInfo_IdentityResponse.Size(m)
}
func (m *IdentityResponse) XXX_DiscardUnknown() {
xxx_messageInfo_IdentityResponse.DiscardUnknown(m)
}
var xxx_messageInfo_IdentityResponse proto.InternalMessageInfo
func (m *IdentityResponse) GetIdentitys() []*Identity {
if m != nil {
return m.Identitys
}
return nil
}
func (m *IdentityResponse) GetResult() *wrappers.BoolValue {
if m != nil {
return m.Result
}
return nil
}
func (m *IdentityResponse) GetError() string {
if m != nil {
return m.Error
}
return ""
}
type Identity 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"`
ResourceGroup string `protobuf:"bytes,3,opt,name=resourceGroup,proto3" json:"resourceGroup,omitempty"`
Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"`
Token string `protobuf:"bytes,5,opt,name=token,proto3" json:"token,omitempty"`
Certificate string `protobuf:"bytes,6,opt,name=certificate,proto3" json:"certificate,omitempty"`
Status *common.Status `protobuf:"bytes,7,opt,name=status,proto3" json:"status,omitempty"`
Entity *common.Entity `protobuf:"bytes,8,opt,name=entity,proto3" json:"entity,omitempty"`
Tags *common.Tags `protobuf:"bytes,9,opt,name=tags,proto3" json:"tags,omitempty"`
TokenExpiry int64 `protobuf:"varint,13,opt,name=tokenExpiry,proto3" json:"tokenExpiry,omitempty"`
ClientType common.ClientType `protobuf:"varint,14,opt,name=clientType,proto3,enum=moc.ClientType" json:"clientType,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Identity) Reset() { *m = Identity{} }
func (m *Identity) String() string { return proto.CompactTextString(m) }
func (*Identity) ProtoMessage() {}
func (*Identity) Descriptor() ([]byte, []int) {
return fileDescriptor_495ce77adac601d4, []int{2}
}
func (m *Identity) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Identity.Unmarshal(m, b)
}
func (m *Identity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Identity.Marshal(b, m, deterministic)
}
func (m *Identity) XXX_Merge(src proto.Message) {
xxx_messageInfo_Identity.Merge(m, src)
}
func (m *Identity) XXX_Size() int {
return xxx_messageInfo_Identity.Size(m)
}
func (m *Identity) XXX_DiscardUnknown() {
xxx_messageInfo_Identity.DiscardUnknown(m)
}
var xxx_messageInfo_Identity proto.InternalMessageInfo
func (m *Identity) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *Identity) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *Identity) GetResourceGroup() string {
if m != nil {
return m.ResourceGroup
}
return ""
}
func (m *Identity) GetPassword() string {
if m != nil {
return m.Password
}
return ""
}
func (m *Identity) GetToken() string {
if m != nil {
return m.Token
}
return ""
}
func (m *Identity) GetCertificate() string {
if m != nil {
return m.Certificate
}
return ""
}
func (m *Identity) GetStatus() *common.Status {
if m != nil {
return m.Status
}
return nil
}
func (m *Identity) GetEntity() *common.Entity {
if m != nil {
return m.Entity
}
return nil
}
func (m *Identity) GetTags() *common.Tags {
if m != nil {
return m.Tags
}
return nil
}
func (m *Identity) GetTokenExpiry() int64 {
if m != nil {
return m.TokenExpiry
}
return 0
}
func (m *Identity) GetClientType() common.ClientType {
if m != nil {
return m.ClientType
}
return common.ClientType_CONTROLPLANE
}
func init() {
proto.RegisterType((*IdentityRequest)(nil), "moc.nodeagent.security.IdentityRequest")
proto.RegisterType((*IdentityResponse)(nil), "moc.nodeagent.security.IdentityResponse")
proto.RegisterType((*Identity)(nil), "moc.nodeagent.security.Identity")
}
func init() { proto.RegisterFile("moc_nodeagent_identity.proto", fileDescriptor_495ce77adac601d4) }
var fileDescriptor_495ce77adac601d4 = []byte{
// 496 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x92, 0xdf, 0x8a, 0xd3, 0x40,
0x14, 0xc6, 0x4d, 0xff, 0xd9, 0x9e, 0xd2, 0xae, 0x0c, 0xa2, 0x43, 0x51, 0x09, 0x55, 0xb4, 0x57,
0x09, 0x56, 0xaf, 0x05, 0x2b, 0x45, 0xf6, 0x4a, 0x18, 0x17, 0x2f, 0x04, 0x59, 0xd2, 0xe9, 0x69,
0x1c, 0xb6, 0x99, 0x13, 0x67, 0x26, 0xae, 0x7d, 0x02, 0x7d, 0x08, 0x5f, 0xc3, 0x57, 0xf3, 0x5a,
0x3a, 0xf9, 0xb3, 0x59, 0x10, 0xf6, 0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0xf4, 0x6c, 0x71, 0x33, 0x58, 0x16, 0x6e, 0x7e,
0x67, 0xf5, 0xf2, 0x73, 0x9c, 0x2a, 0xf7, 0xb5, 0xd8, 0x44, 0x92, 0xb2, 0x38, 0x53, 0xd2, 0x90,
0xa5, 0x9d, 0x8b, 0x33, 0x92, 0xb1, 0xc9, 0x65, 0xdc, 0xa4, 0xc4, 0x75, 0xca, 0x66, 0xe0, 0xdb,
0xf4, 0xea, 0x5f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x59, 0xb9, 0xdb, 0xc6, 0xbc, 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
// IdentityAgentClient is the client API for IdentityAgent service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type IdentityAgentClient interface {
Invoke(ctx context.Context, in *IdentityRequest, opts ...grpc.CallOption) (*IdentityResponse, error)
}
type identityAgentClient struct {
cc *grpc.ClientConn
}
func NewIdentityAgentClient(cc *grpc.ClientConn) IdentityAgentClient {
return &identityAgentClient{cc}
}
func (c *identityAgentClient) Invoke(ctx context.Context, in *IdentityRequest, opts ...grpc.CallOption) (*IdentityResponse, error) {
out := new(IdentityResponse)
err := c.cc.Invoke(ctx, "/moc.nodeagent.security.IdentityAgent/Invoke", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// IdentityAgentServer is the server API for IdentityAgent service.
type IdentityAgentServer interface {
Invoke(context.Context, *IdentityRequest) (*IdentityResponse, error)
}
// UnimplementedIdentityAgentServer can be embedded to have forward compatible implementations.
type UnimplementedIdentityAgentServer struct {
}
func (*UnimplementedIdentityAgentServer) Invoke(ctx context.Context, req *IdentityRequest) (*IdentityResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Invoke not implemented")
}
func RegisterIdentityAgentServer(s *grpc.Server, srv IdentityAgentServer) {
s.RegisterService(&_IdentityAgent_serviceDesc, srv)
}
func _IdentityAgent_Invoke_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(IdentityRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(IdentityAgentServer).Invoke(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/moc.nodeagent.security.IdentityAgent/Invoke",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(IdentityAgentServer).Invoke(ctx, req.(*IdentityRequest))
}
return interceptor(ctx, in, info, handler)
}
var _IdentityAgent_serviceDesc = grpc.ServiceDesc{
ServiceName: "moc.nodeagent.security.IdentityAgent",
HandlerType: (*IdentityAgentServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Invoke",
Handler: _IdentityAgent_Invoke_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "moc_nodeagent_identity.proto",
}