Documentation ¶
Index ¶
- Variables
- type EncryptedData
- func (*EncryptedData) Descriptor() ([]byte, []int)deprecated
- func (x *EncryptedData) GetCiphertext() []byte
- func (x *EncryptedData) GetEncryptionMethod() EncryptionMethod
- func (x *EncryptedData) GetKeyId() int32
- func (x *EncryptedData) GetNonce() []byte
- func (*EncryptedData) ProtoMessage()
- func (x *EncryptedData) ProtoReflect() protoreflect.Message
- func (x *EncryptedData) Reset()
- func (x *EncryptedData) String() string
- type EncryptionMethod
- func (EncryptionMethod) Descriptor() protoreflect.EnumDescriptor
- func (x EncryptionMethod) Enum() *EncryptionMethod
- func (EncryptionMethod) EnumDescriptor() ([]byte, []int)deprecated
- func (x EncryptionMethod) Number() protoreflect.EnumNumber
- func (x EncryptionMethod) String() string
- func (EncryptionMethod) Type() protoreflect.EnumType
- type KeyData
- func (*KeyData) Descriptor() ([]byte, []int)deprecated
- func (x *KeyData) GetCreated() int64
- func (x *KeyData) GetId() int32
- func (x *KeyData) GetKeyType() KeyType
- func (x *KeyData) GetSecret() []byte
- func (*KeyData) ProtoMessage()
- func (x *KeyData) ProtoReflect() protoreflect.Message
- func (x *KeyData) Reset()
- func (x *KeyData) String() string
- type KeySetData
- type KeyType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( KeyType_name = map[int32]string{ 0: "KEYTYPE_UNKNOWN", 1: "KEYTYPE_SECRETBOX", 2: "KEYTYPE_RSA", } KeyType_value = map[string]int32{ "KEYTYPE_UNKNOWN": 0, "KEYTYPE_SECRETBOX": 1, "KEYTYPE_RSA": 2, } )
Enum value maps for KeyType.
View Source
var ( EncryptionMethod_name = map[int32]string{ 0: "ENCRYPTIONMETHOD_UNKNOWN", 1: "ENCRYPTIONMETHOD_SECRETBOX", } EncryptionMethod_value = map[string]int32{ "ENCRYPTIONMETHOD_UNKNOWN": 0, "ENCRYPTIONMETHOD_SECRETBOX": 1, } )
Enum value maps for EncryptionMethod.
View Source
var File_components_keystore_pb_keystore_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type EncryptedData ¶
type EncryptedData struct { EncryptionMethod EncryptionMethod `` /* 135-byte string literal not displayed */ KeyId int32 `protobuf:"varint,2,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` Nonce []byte `protobuf:"bytes,3,opt,name=nonce,proto3" json:"nonce,omitempty"` Ciphertext []byte `protobuf:"bytes,4,opt,name=ciphertext,proto3" json:"ciphertext,omitempty"` // contains filtered or unexported fields }
func (*EncryptedData) Descriptor
deprecated
func (*EncryptedData) Descriptor() ([]byte, []int)
Deprecated: Use EncryptedData.ProtoReflect.Descriptor instead.
func (*EncryptedData) GetCiphertext ¶
func (x *EncryptedData) GetCiphertext() []byte
func (*EncryptedData) GetEncryptionMethod ¶
func (x *EncryptedData) GetEncryptionMethod() EncryptionMethod
func (*EncryptedData) GetKeyId ¶
func (x *EncryptedData) GetKeyId() int32
func (*EncryptedData) GetNonce ¶
func (x *EncryptedData) GetNonce() []byte
func (*EncryptedData) ProtoMessage ¶
func (*EncryptedData) ProtoMessage()
func (*EncryptedData) ProtoReflect ¶
func (x *EncryptedData) ProtoReflect() protoreflect.Message
func (*EncryptedData) Reset ¶
func (x *EncryptedData) Reset()
func (*EncryptedData) String ¶
func (x *EncryptedData) String() string
type EncryptionMethod ¶
type EncryptionMethod int32
const ( EncryptionMethod_ENCRYPTIONMETHOD_UNKNOWN EncryptionMethod = 0 EncryptionMethod_ENCRYPTIONMETHOD_SECRETBOX EncryptionMethod = 1 )
func (EncryptionMethod) Descriptor ¶
func (EncryptionMethod) Descriptor() protoreflect.EnumDescriptor
func (EncryptionMethod) Enum ¶
func (x EncryptionMethod) Enum() *EncryptionMethod
func (EncryptionMethod) EnumDescriptor
deprecated
func (EncryptionMethod) EnumDescriptor() ([]byte, []int)
Deprecated: Use EncryptionMethod.Descriptor instead.
func (EncryptionMethod) Number ¶
func (x EncryptionMethod) Number() protoreflect.EnumNumber
func (EncryptionMethod) String ¶
func (x EncryptionMethod) String() string
func (EncryptionMethod) Type ¶
func (EncryptionMethod) Type() protoreflect.EnumType
type KeyData ¶
type KeyData struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Secret []byte `protobuf:"bytes,2,opt,name=secret,proto3" json:"secret,omitempty"` Created int64 `protobuf:"varint,3,opt,name=created,proto3" json:"created,omitempty"` KeyType KeyType `protobuf:"varint,4,opt,name=key_type,json=keyType,proto3,enum=pb.KeyType" json:"key_type,omitempty"` // contains filtered or unexported fields }
func (*KeyData) Descriptor
deprecated
func (*KeyData) GetCreated ¶
func (*KeyData) GetKeyType ¶
func (*KeyData) ProtoMessage ¶
func (*KeyData) ProtoMessage()
func (*KeyData) ProtoReflect ¶
func (x *KeyData) ProtoReflect() protoreflect.Message
type KeySetData ¶
type KeySetData struct { Keys []*KeyData `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"` ActiveId int32 `protobuf:"varint,2,opt,name=active_id,json=activeId,proto3" json:"active_id,omitempty"` // contains filtered or unexported fields }
func (*KeySetData) Descriptor
deprecated
func (*KeySetData) Descriptor() ([]byte, []int)
Deprecated: Use KeySetData.ProtoReflect.Descriptor instead.
func (*KeySetData) GetActiveId ¶
func (x *KeySetData) GetActiveId() int32
func (*KeySetData) GetKeys ¶
func (x *KeySetData) GetKeys() []*KeyData
func (*KeySetData) ProtoMessage ¶
func (*KeySetData) ProtoMessage()
func (*KeySetData) ProtoReflect ¶
func (x *KeySetData) ProtoReflect() protoreflect.Message
func (*KeySetData) Reset ¶
func (x *KeySetData) Reset()
func (*KeySetData) String ¶
func (x *KeySetData) String() string
type KeyType ¶
type KeyType int32
func (KeyType) Descriptor ¶
func (KeyType) Descriptor() protoreflect.EnumDescriptor
func (KeyType) EnumDescriptor
deprecated
func (KeyType) Number ¶
func (x KeyType) Number() protoreflect.EnumNumber
func (KeyType) Type ¶
func (KeyType) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.