Documentation ¶
Index ¶
- Variables
- func RegisterAssistAgentServer(s grpc.ServiceRegistrar, srv AssistAgentServer)
- type AssistAgentClient
- type AssistAgentServer
- type CheckKeyReq
- func (*CheckKeyReq) Descriptor() ([]byte, []int)
- func (m *CheckKeyReq) GetKeyPairId() string
- func (*CheckKeyReq) ProtoMessage()
- func (m *CheckKeyReq) Reset()
- func (m *CheckKeyReq) String() string
- func (m *CheckKeyReq) XXX_DiscardUnknown()
- func (m *CheckKeyReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CheckKeyReq) XXX_Merge(src proto.Message)
- func (m *CheckKeyReq) XXX_Size() int
- func (m *CheckKeyReq) XXX_Unmarshal(b []byte) error
- type CheckKeyResp
- func (*CheckKeyResp) Descriptor() ([]byte, []int)
- func (m *CheckKeyResp) GetKeyInfos() []*KeyInfo
- func (m *CheckKeyResp) GetStatus() *RespStatus
- func (*CheckKeyResp) ProtoMessage()
- func (m *CheckKeyResp) Reset()
- func (m *CheckKeyResp) String() string
- func (m *CheckKeyResp) XXX_DiscardUnknown()
- func (m *CheckKeyResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CheckKeyResp) XXX_Merge(src proto.Message)
- func (m *CheckKeyResp) XXX_Size() int
- func (m *CheckKeyResp) XXX_Unmarshal(b []byte) error
- type CreateSecretParamReq
- func (*CreateSecretParamReq) Descriptor() ([]byte, []int)
- func (m *CreateSecretParamReq) GetCipherText() string
- func (m *CreateSecretParamReq) GetKeyPairId() string
- func (m *CreateSecretParamReq) GetSecretName() string
- func (m *CreateSecretParamReq) GetTimeout() int32
- func (*CreateSecretParamReq) ProtoMessage()
- func (m *CreateSecretParamReq) Reset()
- func (m *CreateSecretParamReq) String() string
- func (m *CreateSecretParamReq) XXX_DiscardUnknown()
- func (m *CreateSecretParamReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateSecretParamReq) XXX_Merge(src proto.Message)
- func (m *CreateSecretParamReq) XXX_Size() int
- func (m *CreateSecretParamReq) XXX_Unmarshal(b []byte) error
- type CreateSecretParamResp
- func (*CreateSecretParamResp) Descriptor() ([]byte, []int)
- func (m *CreateSecretParamResp) GetSecretParam() *SecretParamInfo
- func (m *CreateSecretParamResp) GetStatus() *RespStatus
- func (*CreateSecretParamResp) ProtoMessage()
- func (m *CreateSecretParamResp) Reset()
- func (m *CreateSecretParamResp) String() string
- func (m *CreateSecretParamResp) XXX_DiscardUnknown()
- func (m *CreateSecretParamResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateSecretParamResp) XXX_Merge(src proto.Message)
- func (m *CreateSecretParamResp) XXX_Size() int
- func (m *CreateSecretParamResp) XXX_Unmarshal(b []byte) error
- type DecryptReq
- func (*DecryptReq) Descriptor() ([]byte, []int)
- func (m *DecryptReq) GetCipherText() string
- func (m *DecryptReq) GetKeyPairId() string
- func (*DecryptReq) ProtoMessage()
- func (m *DecryptReq) Reset()
- func (m *DecryptReq) String() string
- func (m *DecryptReq) XXX_DiscardUnknown()
- func (m *DecryptReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DecryptReq) XXX_Merge(src proto.Message)
- func (m *DecryptReq) XXX_Size() int
- func (m *DecryptReq) XXX_Unmarshal(b []byte) error
- type DecryptResp
- func (*DecryptResp) Descriptor() ([]byte, []int)
- func (m *DecryptResp) GetPlainText() string
- func (m *DecryptResp) GetStatus() *RespStatus
- func (*DecryptResp) ProtoMessage()
- func (m *DecryptResp) Reset()
- func (m *DecryptResp) String() string
- func (m *DecryptResp) XXX_DiscardUnknown()
- func (m *DecryptResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DecryptResp) XXX_Merge(src proto.Message)
- func (m *DecryptResp) XXX_Size() int
- func (m *DecryptResp) XXX_Unmarshal(b []byte) error
- type EncryptReq
- func (*EncryptReq) Descriptor() ([]byte, []int)
- func (m *EncryptReq) GetKeyPairId() string
- func (m *EncryptReq) GetPlainText() string
- func (*EncryptReq) ProtoMessage()
- func (m *EncryptReq) Reset()
- func (m *EncryptReq) String() string
- func (m *EncryptReq) XXX_DiscardUnknown()
- func (m *EncryptReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EncryptReq) XXX_Merge(src proto.Message)
- func (m *EncryptReq) XXX_Size() int
- func (m *EncryptReq) XXX_Unmarshal(b []byte) error
- type EncryptResp
- func (*EncryptResp) Descriptor() ([]byte, []int)
- func (m *EncryptResp) GetCipherText() string
- func (m *EncryptResp) GetStatus() *RespStatus
- func (*EncryptResp) ProtoMessage()
- func (m *EncryptResp) Reset()
- func (m *EncryptResp) String() string
- func (m *EncryptResp) XXX_DiscardUnknown()
- func (m *EncryptResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EncryptResp) XXX_Merge(src proto.Message)
- func (m *EncryptResp) XXX_Size() int
- func (m *EncryptResp) XXX_Unmarshal(b []byte) error
- type GenRsaKeyPairReq
- func (*GenRsaKeyPairReq) Descriptor() ([]byte, []int)
- func (m *GenRsaKeyPairReq) GetKeyPairId() string
- func (m *GenRsaKeyPairReq) GetTimeout() int32
- func (*GenRsaKeyPairReq) ProtoMessage()
- func (m *GenRsaKeyPairReq) Reset()
- func (m *GenRsaKeyPairReq) String() string
- func (m *GenRsaKeyPairReq) XXX_DiscardUnknown()
- func (m *GenRsaKeyPairReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenRsaKeyPairReq) XXX_Merge(src proto.Message)
- func (m *GenRsaKeyPairReq) XXX_Size() int
- func (m *GenRsaKeyPairReq) XXX_Unmarshal(b []byte) error
- type GenRsaKeyPairResp
- func (*GenRsaKeyPairResp) Descriptor() ([]byte, []int)
- func (m *GenRsaKeyPairResp) GetKeyInfo() *KeyInfo
- func (m *GenRsaKeyPairResp) GetStatus() *RespStatus
- func (*GenRsaKeyPairResp) ProtoMessage()
- func (m *GenRsaKeyPairResp) Reset()
- func (m *GenRsaKeyPairResp) String() string
- func (m *GenRsaKeyPairResp) XXX_DiscardUnknown()
- func (m *GenRsaKeyPairResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenRsaKeyPairResp) XXX_Merge(src proto.Message)
- func (m *GenRsaKeyPairResp) XXX_Size() int
- func (m *GenRsaKeyPairResp) XXX_Unmarshal(b []byte) error
- type KeyInfo
- func (*KeyInfo) Descriptor() ([]byte, []int)
- func (m *KeyInfo) GetCreatedTimestamp() int64
- func (m *KeyInfo) GetExpiredTimestamp() int64
- func (m *KeyInfo) GetKeyPairId() string
- func (m *KeyInfo) GetPublicKey() string
- func (*KeyInfo) ProtoMessage()
- func (m *KeyInfo) Reset()
- func (m *KeyInfo) String() string
- func (m *KeyInfo) XXX_DiscardUnknown()
- func (m *KeyInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *KeyInfo) XXX_Merge(src proto.Message)
- func (m *KeyInfo) XXX_Size() int
- func (m *KeyInfo) XXX_Unmarshal(b []byte) error
- type RemoveRsaKeyPairReq
- func (*RemoveRsaKeyPairReq) Descriptor() ([]byte, []int)
- func (m *RemoveRsaKeyPairReq) GetKeyPairId() string
- func (*RemoveRsaKeyPairReq) ProtoMessage()
- func (m *RemoveRsaKeyPairReq) Reset()
- func (m *RemoveRsaKeyPairReq) String() string
- func (m *RemoveRsaKeyPairReq) XXX_DiscardUnknown()
- func (m *RemoveRsaKeyPairReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RemoveRsaKeyPairReq) XXX_Merge(src proto.Message)
- func (m *RemoveRsaKeyPairReq) XXX_Size() int
- func (m *RemoveRsaKeyPairReq) XXX_Unmarshal(b []byte) error
- type RemoveRsaKeyPairResp
- func (*RemoveRsaKeyPairResp) Descriptor() ([]byte, []int)
- func (m *RemoveRsaKeyPairResp) GetStatus() *RespStatus
- func (*RemoveRsaKeyPairResp) ProtoMessage()
- func (m *RemoveRsaKeyPairResp) Reset()
- func (m *RemoveRsaKeyPairResp) String() string
- func (m *RemoveRsaKeyPairResp) XXX_DiscardUnknown()
- func (m *RemoveRsaKeyPairResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RemoveRsaKeyPairResp) XXX_Merge(src proto.Message)
- func (m *RemoveRsaKeyPairResp) XXX_Size() int
- func (m *RemoveRsaKeyPairResp) XXX_Unmarshal(b []byte) error
- type RespStatus
- func (*RespStatus) Descriptor() ([]byte, []int)
- func (m *RespStatus) GetErrMessage() string
- func (m *RespStatus) GetStatusCode() int32
- func (*RespStatus) ProtoMessage()
- func (m *RespStatus) Reset()
- func (m *RespStatus) String() string
- func (m *RespStatus) XXX_DiscardUnknown()
- func (m *RespStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RespStatus) XXX_Merge(src proto.Message)
- func (m *RespStatus) XXX_Size() int
- func (m *RespStatus) XXX_Unmarshal(b []byte) error
- type SecretParamInfo
- func (*SecretParamInfo) Descriptor() ([]byte, []int)
- func (m *SecretParamInfo) GetCreatedTimestamp() int64
- func (m *SecretParamInfo) GetExpiredTimestamp() int64
- func (m *SecretParamInfo) GetSecretName() string
- func (*SecretParamInfo) ProtoMessage()
- func (m *SecretParamInfo) Reset()
- func (m *SecretParamInfo) String() string
- func (m *SecretParamInfo) XXX_DiscardUnknown()
- func (m *SecretParamInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SecretParamInfo) XXX_Merge(src proto.Message)
- func (m *SecretParamInfo) XXX_Size() int
- func (m *SecretParamInfo) XXX_Unmarshal(b []byte) error
- type UnimplementedAssistAgentServer
- func (UnimplementedAssistAgentServer) CheckKey(context.Context, *CheckKeyReq) (*CheckKeyResp, error)
- func (UnimplementedAssistAgentServer) CreateSecretParam(context.Context, *CreateSecretParamReq) (*CreateSecretParamResp, error)
- func (UnimplementedAssistAgentServer) DecryptText(context.Context, *DecryptReq) (*DecryptResp, error)
- func (UnimplementedAssistAgentServer) EncryptText(context.Context, *EncryptReq) (*EncryptResp, error)
- func (UnimplementedAssistAgentServer) GenRsaKeyPair(context.Context, *GenRsaKeyPairReq) (*GenRsaKeyPairResp, error)
- func (UnimplementedAssistAgentServer) RmRsaKeyPair(context.Context, *RemoveRsaKeyPairReq) (*RemoveRsaKeyPairResp, error)
- type UnsafeAssistAgentServer
Constants ¶
This section is empty.
Variables ¶
var AssistAgent_ServiceDesc = grpc.ServiceDesc{ ServiceName: "protos.AssistAgent", HandlerType: (*AssistAgentServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GenRsaKeyPair", Handler: _AssistAgent_GenRsaKeyPair_Handler, }, { MethodName: "RmRsaKeyPair", Handler: _AssistAgent_RmRsaKeyPair_Handler, }, { MethodName: "EncryptText", Handler: _AssistAgent_EncryptText_Handler, }, { MethodName: "DecryptText", Handler: _AssistAgent_DecryptText_Handler, }, { MethodName: "CheckKey", Handler: _AssistAgent_CheckKey_Handler, }, { MethodName: "CreateSecretParam", Handler: _AssistAgent_CreateSecretParam_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "agrpc.proto", }
AssistAgent_ServiceDesc is the grpc.ServiceDesc for AssistAgent service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterAssistAgentServer ¶
func RegisterAssistAgentServer(s grpc.ServiceRegistrar, srv AssistAgentServer)
Types ¶
type AssistAgentClient ¶
type AssistAgentClient interface { GenRsaKeyPair(ctx context.Context, in *GenRsaKeyPairReq, opts ...grpc.CallOption) (*GenRsaKeyPairResp, error) RmRsaKeyPair(ctx context.Context, in *RemoveRsaKeyPairReq, opts ...grpc.CallOption) (*RemoveRsaKeyPairResp, error) EncryptText(ctx context.Context, in *EncryptReq, opts ...grpc.CallOption) (*EncryptResp, error) DecryptText(ctx context.Context, in *DecryptReq, opts ...grpc.CallOption) (*DecryptResp, error) CheckKey(ctx context.Context, in *CheckKeyReq, opts ...grpc.CallOption) (*CheckKeyResp, error) CreateSecretParam(ctx context.Context, in *CreateSecretParamReq, opts ...grpc.CallOption) (*CreateSecretParamResp, error) }
AssistAgentClient is the client API for AssistAgent service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewAssistAgentClient ¶
func NewAssistAgentClient(cc grpc.ClientConnInterface) AssistAgentClient
type AssistAgentServer ¶
type AssistAgentServer interface { GenRsaKeyPair(context.Context, *GenRsaKeyPairReq) (*GenRsaKeyPairResp, error) RmRsaKeyPair(context.Context, *RemoveRsaKeyPairReq) (*RemoveRsaKeyPairResp, error) EncryptText(context.Context, *EncryptReq) (*EncryptResp, error) DecryptText(context.Context, *DecryptReq) (*DecryptResp, error) CheckKey(context.Context, *CheckKeyReq) (*CheckKeyResp, error) CreateSecretParam(context.Context, *CreateSecretParamReq) (*CreateSecretParamResp, error) // contains filtered or unexported methods }
AssistAgentServer is the server API for AssistAgent service. All implementations must embed UnimplementedAssistAgentServer for forward compatibility
type CheckKeyReq ¶
type CheckKeyReq struct { KeyPairId string `protobuf:"bytes,1,opt,name=keyPairId,proto3" json:"keyPairId,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
CheckKey api
func (*CheckKeyReq) Descriptor ¶
func (*CheckKeyReq) Descriptor() ([]byte, []int)
func (*CheckKeyReq) GetKeyPairId ¶
func (m *CheckKeyReq) GetKeyPairId() string
func (*CheckKeyReq) ProtoMessage ¶
func (*CheckKeyReq) ProtoMessage()
func (*CheckKeyReq) Reset ¶
func (m *CheckKeyReq) Reset()
func (*CheckKeyReq) String ¶
func (m *CheckKeyReq) String() string
func (*CheckKeyReq) XXX_DiscardUnknown ¶
func (m *CheckKeyReq) XXX_DiscardUnknown()
func (*CheckKeyReq) XXX_Marshal ¶
func (m *CheckKeyReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CheckKeyReq) XXX_Merge ¶
func (m *CheckKeyReq) XXX_Merge(src proto.Message)
func (*CheckKeyReq) XXX_Size ¶
func (m *CheckKeyReq) XXX_Size() int
func (*CheckKeyReq) XXX_Unmarshal ¶
func (m *CheckKeyReq) XXX_Unmarshal(b []byte) error
type CheckKeyResp ¶
type CheckKeyResp struct { Status *RespStatus `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` KeyInfos []*KeyInfo `protobuf:"bytes,2,rep,name=keyInfos,proto3" json:"keyInfos,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CheckKeyResp) Descriptor ¶
func (*CheckKeyResp) Descriptor() ([]byte, []int)
func (*CheckKeyResp) GetKeyInfos ¶
func (m *CheckKeyResp) GetKeyInfos() []*KeyInfo
func (*CheckKeyResp) GetStatus ¶
func (m *CheckKeyResp) GetStatus() *RespStatus
func (*CheckKeyResp) ProtoMessage ¶
func (*CheckKeyResp) ProtoMessage()
func (*CheckKeyResp) Reset ¶
func (m *CheckKeyResp) Reset()
func (*CheckKeyResp) String ¶
func (m *CheckKeyResp) String() string
func (*CheckKeyResp) XXX_DiscardUnknown ¶
func (m *CheckKeyResp) XXX_DiscardUnknown()
func (*CheckKeyResp) XXX_Marshal ¶
func (m *CheckKeyResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CheckKeyResp) XXX_Merge ¶
func (m *CheckKeyResp) XXX_Merge(src proto.Message)
func (*CheckKeyResp) XXX_Size ¶
func (m *CheckKeyResp) XXX_Size() int
func (*CheckKeyResp) XXX_Unmarshal ¶
func (m *CheckKeyResp) XXX_Unmarshal(b []byte) error
type CreateSecretParamReq ¶
type CreateSecretParamReq struct { KeyPairId string `protobuf:"bytes,1,opt,name=keyPairId,proto3" json:"keyPairId,omitempty"` CipherText string `protobuf:"bytes,2,opt,name=cipherText,proto3" json:"cipherText,omitempty"` SecretName string `protobuf:"bytes,3,opt,name=secretName,proto3" json:"secretName,omitempty"` Timeout int32 `protobuf:"varint,4,opt,name=timeout,proto3" json:"timeout,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
CreateSecret api
func (*CreateSecretParamReq) Descriptor ¶
func (*CreateSecretParamReq) Descriptor() ([]byte, []int)
func (*CreateSecretParamReq) GetCipherText ¶
func (m *CreateSecretParamReq) GetCipherText() string
func (*CreateSecretParamReq) GetKeyPairId ¶
func (m *CreateSecretParamReq) GetKeyPairId() string
func (*CreateSecretParamReq) GetSecretName ¶
func (m *CreateSecretParamReq) GetSecretName() string
func (*CreateSecretParamReq) GetTimeout ¶
func (m *CreateSecretParamReq) GetTimeout() int32
func (*CreateSecretParamReq) ProtoMessage ¶
func (*CreateSecretParamReq) ProtoMessage()
func (*CreateSecretParamReq) Reset ¶
func (m *CreateSecretParamReq) Reset()
func (*CreateSecretParamReq) String ¶
func (m *CreateSecretParamReq) String() string
func (*CreateSecretParamReq) XXX_DiscardUnknown ¶
func (m *CreateSecretParamReq) XXX_DiscardUnknown()
func (*CreateSecretParamReq) XXX_Marshal ¶
func (m *CreateSecretParamReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateSecretParamReq) XXX_Merge ¶
func (m *CreateSecretParamReq) XXX_Merge(src proto.Message)
func (*CreateSecretParamReq) XXX_Size ¶
func (m *CreateSecretParamReq) XXX_Size() int
func (*CreateSecretParamReq) XXX_Unmarshal ¶
func (m *CreateSecretParamReq) XXX_Unmarshal(b []byte) error
type CreateSecretParamResp ¶
type CreateSecretParamResp struct { Status *RespStatus `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` SecretParam *SecretParamInfo `protobuf:"bytes,2,opt,name=secretParam,proto3" json:"secretParam,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CreateSecretParamResp) Descriptor ¶
func (*CreateSecretParamResp) Descriptor() ([]byte, []int)
func (*CreateSecretParamResp) GetSecretParam ¶
func (m *CreateSecretParamResp) GetSecretParam() *SecretParamInfo
func (*CreateSecretParamResp) GetStatus ¶
func (m *CreateSecretParamResp) GetStatus() *RespStatus
func (*CreateSecretParamResp) ProtoMessage ¶
func (*CreateSecretParamResp) ProtoMessage()
func (*CreateSecretParamResp) Reset ¶
func (m *CreateSecretParamResp) Reset()
func (*CreateSecretParamResp) String ¶
func (m *CreateSecretParamResp) String() string
func (*CreateSecretParamResp) XXX_DiscardUnknown ¶
func (m *CreateSecretParamResp) XXX_DiscardUnknown()
func (*CreateSecretParamResp) XXX_Marshal ¶
func (m *CreateSecretParamResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateSecretParamResp) XXX_Merge ¶
func (m *CreateSecretParamResp) XXX_Merge(src proto.Message)
func (*CreateSecretParamResp) XXX_Size ¶
func (m *CreateSecretParamResp) XXX_Size() int
func (*CreateSecretParamResp) XXX_Unmarshal ¶
func (m *CreateSecretParamResp) XXX_Unmarshal(b []byte) error
type DecryptReq ¶
type DecryptReq struct { KeyPairId string `protobuf:"bytes,1,opt,name=keyPairId,proto3" json:"keyPairId,omitempty"` CipherText string `protobuf:"bytes,2,opt,name=cipherText,proto3" json:"cipherText,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Decrypt api
func (*DecryptReq) Descriptor ¶
func (*DecryptReq) Descriptor() ([]byte, []int)
func (*DecryptReq) GetCipherText ¶
func (m *DecryptReq) GetCipherText() string
func (*DecryptReq) GetKeyPairId ¶
func (m *DecryptReq) GetKeyPairId() string
func (*DecryptReq) ProtoMessage ¶
func (*DecryptReq) ProtoMessage()
func (*DecryptReq) Reset ¶
func (m *DecryptReq) Reset()
func (*DecryptReq) String ¶
func (m *DecryptReq) String() string
func (*DecryptReq) XXX_DiscardUnknown ¶
func (m *DecryptReq) XXX_DiscardUnknown()
func (*DecryptReq) XXX_Marshal ¶
func (m *DecryptReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DecryptReq) XXX_Merge ¶
func (m *DecryptReq) XXX_Merge(src proto.Message)
func (*DecryptReq) XXX_Size ¶
func (m *DecryptReq) XXX_Size() int
func (*DecryptReq) XXX_Unmarshal ¶
func (m *DecryptReq) XXX_Unmarshal(b []byte) error
type DecryptResp ¶
type DecryptResp struct { Status *RespStatus `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` PlainText string `protobuf:"bytes,2,opt,name=plainText,proto3" json:"plainText,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DecryptResp) Descriptor ¶
func (*DecryptResp) Descriptor() ([]byte, []int)
func (*DecryptResp) GetPlainText ¶
func (m *DecryptResp) GetPlainText() string
func (*DecryptResp) GetStatus ¶
func (m *DecryptResp) GetStatus() *RespStatus
func (*DecryptResp) ProtoMessage ¶
func (*DecryptResp) ProtoMessage()
func (*DecryptResp) Reset ¶
func (m *DecryptResp) Reset()
func (*DecryptResp) String ¶
func (m *DecryptResp) String() string
func (*DecryptResp) XXX_DiscardUnknown ¶
func (m *DecryptResp) XXX_DiscardUnknown()
func (*DecryptResp) XXX_Marshal ¶
func (m *DecryptResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DecryptResp) XXX_Merge ¶
func (m *DecryptResp) XXX_Merge(src proto.Message)
func (*DecryptResp) XXX_Size ¶
func (m *DecryptResp) XXX_Size() int
func (*DecryptResp) XXX_Unmarshal ¶
func (m *DecryptResp) XXX_Unmarshal(b []byte) error
type EncryptReq ¶
type EncryptReq struct { KeyPairId string `protobuf:"bytes,1,opt,name=keyPairId,proto3" json:"keyPairId,omitempty"` PlainText string `protobuf:"bytes,2,opt,name=plainText,proto3" json:"plainText,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Encrypt api
func (*EncryptReq) Descriptor ¶
func (*EncryptReq) Descriptor() ([]byte, []int)
func (*EncryptReq) GetKeyPairId ¶
func (m *EncryptReq) GetKeyPairId() string
func (*EncryptReq) GetPlainText ¶
func (m *EncryptReq) GetPlainText() string
func (*EncryptReq) ProtoMessage ¶
func (*EncryptReq) ProtoMessage()
func (*EncryptReq) Reset ¶
func (m *EncryptReq) Reset()
func (*EncryptReq) String ¶
func (m *EncryptReq) String() string
func (*EncryptReq) XXX_DiscardUnknown ¶
func (m *EncryptReq) XXX_DiscardUnknown()
func (*EncryptReq) XXX_Marshal ¶
func (m *EncryptReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EncryptReq) XXX_Merge ¶
func (m *EncryptReq) XXX_Merge(src proto.Message)
func (*EncryptReq) XXX_Size ¶
func (m *EncryptReq) XXX_Size() int
func (*EncryptReq) XXX_Unmarshal ¶
func (m *EncryptReq) XXX_Unmarshal(b []byte) error
type EncryptResp ¶
type EncryptResp struct { Status *RespStatus `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` CipherText string `protobuf:"bytes,2,opt,name=cipherText,proto3" json:"cipherText,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*EncryptResp) Descriptor ¶
func (*EncryptResp) Descriptor() ([]byte, []int)
func (*EncryptResp) GetCipherText ¶
func (m *EncryptResp) GetCipherText() string
func (*EncryptResp) GetStatus ¶
func (m *EncryptResp) GetStatus() *RespStatus
func (*EncryptResp) ProtoMessage ¶
func (*EncryptResp) ProtoMessage()
func (*EncryptResp) Reset ¶
func (m *EncryptResp) Reset()
func (*EncryptResp) String ¶
func (m *EncryptResp) String() string
func (*EncryptResp) XXX_DiscardUnknown ¶
func (m *EncryptResp) XXX_DiscardUnknown()
func (*EncryptResp) XXX_Marshal ¶
func (m *EncryptResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EncryptResp) XXX_Merge ¶
func (m *EncryptResp) XXX_Merge(src proto.Message)
func (*EncryptResp) XXX_Size ¶
func (m *EncryptResp) XXX_Size() int
func (*EncryptResp) XXX_Unmarshal ¶
func (m *EncryptResp) XXX_Unmarshal(b []byte) error
type GenRsaKeyPairReq ¶
type GenRsaKeyPairReq struct { KeyPairId string `protobuf:"bytes,1,opt,name=keyPairId,proto3" json:"keyPairId,omitempty"` Timeout int32 `protobuf:"varint,2,opt,name=timeout,proto3" json:"timeout,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
GenRsaKeyPair api
func (*GenRsaKeyPairReq) Descriptor ¶
func (*GenRsaKeyPairReq) Descriptor() ([]byte, []int)
func (*GenRsaKeyPairReq) GetKeyPairId ¶
func (m *GenRsaKeyPairReq) GetKeyPairId() string
func (*GenRsaKeyPairReq) GetTimeout ¶
func (m *GenRsaKeyPairReq) GetTimeout() int32
func (*GenRsaKeyPairReq) ProtoMessage ¶
func (*GenRsaKeyPairReq) ProtoMessage()
func (*GenRsaKeyPairReq) Reset ¶
func (m *GenRsaKeyPairReq) Reset()
func (*GenRsaKeyPairReq) String ¶
func (m *GenRsaKeyPairReq) String() string
func (*GenRsaKeyPairReq) XXX_DiscardUnknown ¶
func (m *GenRsaKeyPairReq) XXX_DiscardUnknown()
func (*GenRsaKeyPairReq) XXX_Marshal ¶
func (m *GenRsaKeyPairReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenRsaKeyPairReq) XXX_Merge ¶
func (m *GenRsaKeyPairReq) XXX_Merge(src proto.Message)
func (*GenRsaKeyPairReq) XXX_Size ¶
func (m *GenRsaKeyPairReq) XXX_Size() int
func (*GenRsaKeyPairReq) XXX_Unmarshal ¶
func (m *GenRsaKeyPairReq) XXX_Unmarshal(b []byte) error
type GenRsaKeyPairResp ¶
type GenRsaKeyPairResp struct { Status *RespStatus `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` KeyInfo *KeyInfo `protobuf:"bytes,2,opt,name=keyInfo,proto3" json:"keyInfo,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GenRsaKeyPairResp) Descriptor ¶
func (*GenRsaKeyPairResp) Descriptor() ([]byte, []int)
func (*GenRsaKeyPairResp) GetKeyInfo ¶
func (m *GenRsaKeyPairResp) GetKeyInfo() *KeyInfo
func (*GenRsaKeyPairResp) GetStatus ¶
func (m *GenRsaKeyPairResp) GetStatus() *RespStatus
func (*GenRsaKeyPairResp) ProtoMessage ¶
func (*GenRsaKeyPairResp) ProtoMessage()
func (*GenRsaKeyPairResp) Reset ¶
func (m *GenRsaKeyPairResp) Reset()
func (*GenRsaKeyPairResp) String ¶
func (m *GenRsaKeyPairResp) String() string
func (*GenRsaKeyPairResp) XXX_DiscardUnknown ¶
func (m *GenRsaKeyPairResp) XXX_DiscardUnknown()
func (*GenRsaKeyPairResp) XXX_Marshal ¶
func (m *GenRsaKeyPairResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenRsaKeyPairResp) XXX_Merge ¶
func (m *GenRsaKeyPairResp) XXX_Merge(src proto.Message)
func (*GenRsaKeyPairResp) XXX_Size ¶
func (m *GenRsaKeyPairResp) XXX_Size() int
func (*GenRsaKeyPairResp) XXX_Unmarshal ¶
func (m *GenRsaKeyPairResp) XXX_Unmarshal(b []byte) error
type KeyInfo ¶
type KeyInfo struct { KeyPairId string `protobuf:"bytes,1,opt,name=keyPairId,proto3" json:"keyPairId,omitempty"` PublicKey string `protobuf:"bytes,2,opt,name=publicKey,proto3" json:"publicKey,omitempty"` CreatedTimestamp int64 `protobuf:"varint,3,opt,name=createdTimestamp,proto3" json:"createdTimestamp,omitempty"` ExpiredTimestamp int64 `protobuf:"varint,4,opt,name=expiredTimestamp,proto3" json:"expiredTimestamp,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*KeyInfo) Descriptor ¶
func (*KeyInfo) GetCreatedTimestamp ¶
func (*KeyInfo) GetExpiredTimestamp ¶
func (*KeyInfo) GetKeyPairId ¶
func (*KeyInfo) GetPublicKey ¶
func (*KeyInfo) ProtoMessage ¶
func (*KeyInfo) ProtoMessage()
func (*KeyInfo) XXX_DiscardUnknown ¶
func (m *KeyInfo) XXX_DiscardUnknown()
func (*KeyInfo) XXX_Marshal ¶
func (*KeyInfo) XXX_Unmarshal ¶
type RemoveRsaKeyPairReq ¶
type RemoveRsaKeyPairReq struct { KeyPairId string `protobuf:"bytes,1,opt,name=keyPairId,proto3" json:"keyPairId,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
RemoveRsaKeyPair api
func (*RemoveRsaKeyPairReq) Descriptor ¶
func (*RemoveRsaKeyPairReq) Descriptor() ([]byte, []int)
func (*RemoveRsaKeyPairReq) GetKeyPairId ¶
func (m *RemoveRsaKeyPairReq) GetKeyPairId() string
func (*RemoveRsaKeyPairReq) ProtoMessage ¶
func (*RemoveRsaKeyPairReq) ProtoMessage()
func (*RemoveRsaKeyPairReq) Reset ¶
func (m *RemoveRsaKeyPairReq) Reset()
func (*RemoveRsaKeyPairReq) String ¶
func (m *RemoveRsaKeyPairReq) String() string
func (*RemoveRsaKeyPairReq) XXX_DiscardUnknown ¶
func (m *RemoveRsaKeyPairReq) XXX_DiscardUnknown()
func (*RemoveRsaKeyPairReq) XXX_Marshal ¶
func (m *RemoveRsaKeyPairReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RemoveRsaKeyPairReq) XXX_Merge ¶
func (m *RemoveRsaKeyPairReq) XXX_Merge(src proto.Message)
func (*RemoveRsaKeyPairReq) XXX_Size ¶
func (m *RemoveRsaKeyPairReq) XXX_Size() int
func (*RemoveRsaKeyPairReq) XXX_Unmarshal ¶
func (m *RemoveRsaKeyPairReq) XXX_Unmarshal(b []byte) error
type RemoveRsaKeyPairResp ¶
type RemoveRsaKeyPairResp struct { Status *RespStatus `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RemoveRsaKeyPairResp) Descriptor ¶
func (*RemoveRsaKeyPairResp) Descriptor() ([]byte, []int)
func (*RemoveRsaKeyPairResp) GetStatus ¶
func (m *RemoveRsaKeyPairResp) GetStatus() *RespStatus
func (*RemoveRsaKeyPairResp) ProtoMessage ¶
func (*RemoveRsaKeyPairResp) ProtoMessage()
func (*RemoveRsaKeyPairResp) Reset ¶
func (m *RemoveRsaKeyPairResp) Reset()
func (*RemoveRsaKeyPairResp) String ¶
func (m *RemoveRsaKeyPairResp) String() string
func (*RemoveRsaKeyPairResp) XXX_DiscardUnknown ¶
func (m *RemoveRsaKeyPairResp) XXX_DiscardUnknown()
func (*RemoveRsaKeyPairResp) XXX_Marshal ¶
func (m *RemoveRsaKeyPairResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RemoveRsaKeyPairResp) XXX_Merge ¶
func (m *RemoveRsaKeyPairResp) XXX_Merge(src proto.Message)
func (*RemoveRsaKeyPairResp) XXX_Size ¶
func (m *RemoveRsaKeyPairResp) XXX_Size() int
func (*RemoveRsaKeyPairResp) XXX_Unmarshal ¶
func (m *RemoveRsaKeyPairResp) XXX_Unmarshal(b []byte) error
type RespStatus ¶
type RespStatus struct { StatusCode int32 `protobuf:"varint,1,opt,name=statusCode,proto3" json:"statusCode,omitempty"` ErrMessage string `protobuf:"bytes,2,opt,name=errMessage,proto3" json:"errMessage,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RespStatus) Descriptor ¶
func (*RespStatus) Descriptor() ([]byte, []int)
func (*RespStatus) GetErrMessage ¶
func (m *RespStatus) GetErrMessage() string
func (*RespStatus) GetStatusCode ¶
func (m *RespStatus) GetStatusCode() int32
func (*RespStatus) ProtoMessage ¶
func (*RespStatus) ProtoMessage()
func (*RespStatus) Reset ¶
func (m *RespStatus) Reset()
func (*RespStatus) String ¶
func (m *RespStatus) String() string
func (*RespStatus) XXX_DiscardUnknown ¶
func (m *RespStatus) XXX_DiscardUnknown()
func (*RespStatus) XXX_Marshal ¶
func (m *RespStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RespStatus) XXX_Merge ¶
func (m *RespStatus) XXX_Merge(src proto.Message)
func (*RespStatus) XXX_Size ¶
func (m *RespStatus) XXX_Size() int
func (*RespStatus) XXX_Unmarshal ¶
func (m *RespStatus) XXX_Unmarshal(b []byte) error
type SecretParamInfo ¶
type SecretParamInfo struct { SecretName string `protobuf:"bytes,1,opt,name=secretName,proto3" json:"secretName,omitempty"` CreatedTimestamp int64 `protobuf:"varint,2,opt,name=createdTimestamp,proto3" json:"createdTimestamp,omitempty"` ExpiredTimestamp int64 `protobuf:"varint,3,opt,name=expiredTimestamp,proto3" json:"expiredTimestamp,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SecretParamInfo) Descriptor ¶
func (*SecretParamInfo) Descriptor() ([]byte, []int)
func (*SecretParamInfo) GetCreatedTimestamp ¶
func (m *SecretParamInfo) GetCreatedTimestamp() int64
func (*SecretParamInfo) GetExpiredTimestamp ¶
func (m *SecretParamInfo) GetExpiredTimestamp() int64
func (*SecretParamInfo) GetSecretName ¶
func (m *SecretParamInfo) GetSecretName() string
func (*SecretParamInfo) ProtoMessage ¶
func (*SecretParamInfo) ProtoMessage()
func (*SecretParamInfo) Reset ¶
func (m *SecretParamInfo) Reset()
func (*SecretParamInfo) String ¶
func (m *SecretParamInfo) String() string
func (*SecretParamInfo) XXX_DiscardUnknown ¶
func (m *SecretParamInfo) XXX_DiscardUnknown()
func (*SecretParamInfo) XXX_Marshal ¶
func (m *SecretParamInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SecretParamInfo) XXX_Merge ¶
func (m *SecretParamInfo) XXX_Merge(src proto.Message)
func (*SecretParamInfo) XXX_Size ¶
func (m *SecretParamInfo) XXX_Size() int
func (*SecretParamInfo) XXX_Unmarshal ¶
func (m *SecretParamInfo) XXX_Unmarshal(b []byte) error
type UnimplementedAssistAgentServer ¶
type UnimplementedAssistAgentServer struct { }
UnimplementedAssistAgentServer must be embedded to have forward compatible implementations.
func (UnimplementedAssistAgentServer) CheckKey ¶
func (UnimplementedAssistAgentServer) CheckKey(context.Context, *CheckKeyReq) (*CheckKeyResp, error)
func (UnimplementedAssistAgentServer) CreateSecretParam ¶
func (UnimplementedAssistAgentServer) CreateSecretParam(context.Context, *CreateSecretParamReq) (*CreateSecretParamResp, error)
func (UnimplementedAssistAgentServer) DecryptText ¶
func (UnimplementedAssistAgentServer) DecryptText(context.Context, *DecryptReq) (*DecryptResp, error)
func (UnimplementedAssistAgentServer) EncryptText ¶
func (UnimplementedAssistAgentServer) EncryptText(context.Context, *EncryptReq) (*EncryptResp, error)
func (UnimplementedAssistAgentServer) GenRsaKeyPair ¶
func (UnimplementedAssistAgentServer) GenRsaKeyPair(context.Context, *GenRsaKeyPairReq) (*GenRsaKeyPairResp, error)
func (UnimplementedAssistAgentServer) RmRsaKeyPair ¶
func (UnimplementedAssistAgentServer) RmRsaKeyPair(context.Context, *RemoveRsaKeyPairReq) (*RemoveRsaKeyPairResp, error)
type UnsafeAssistAgentServer ¶
type UnsafeAssistAgentServer interface {
// contains filtered or unexported methods
}
UnsafeAssistAgentServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AssistAgentServer will result in compilation errors.