Documentation ¶
Index ¶
- Variables
- type Algorithm
- type KeySlot
- func (m *KeySlot) CloneMessageVT() proto.Message
- func (m *KeySlot) CloneVT() *KeySlot
- func (*KeySlot) Descriptor() ([]byte, []int)deprecated
- func (this *KeySlot) EqualMessageVT(thatMsg proto.Message) bool
- func (this *KeySlot) EqualVT(that *KeySlot) bool
- func (x *KeySlot) GetAlgorithm() Algorithm
- func (x *KeySlot) GetEncryptedKey() []byte
- func (m *KeySlot) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *KeySlot) MarshalToVT(dAtA []byte) (int, error)
- func (m *KeySlot) MarshalVT() (dAtA []byte, err error)
- func (*KeySlot) ProtoMessage()
- func (x *KeySlot) ProtoReflect() protoreflect.Message
- func (x *KeySlot) Reset()
- func (m *KeySlot) SizeVT() (n int)
- func (x *KeySlot) String() string
- func (m *KeySlot) UnmarshalVT(dAtA []byte) error
- type Storage
- func (m *Storage) CloneMessageVT() proto.Message
- func (m *Storage) CloneVT() *Storage
- func (*Storage) Descriptor() ([]byte, []int)deprecated
- func (this *Storage) EqualMessageVT(thatMsg proto.Message) bool
- func (this *Storage) EqualVT(that *Storage) bool
- func (x *Storage) GetKeySlots() map[string]*KeySlot
- func (x *Storage) GetKeysHmacHash() []byte
- func (x *Storage) GetStorageVersion() StorageVersion
- func (m *Storage) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Storage) MarshalToVT(dAtA []byte) (int, error)
- func (m *Storage) MarshalVT() (dAtA []byte, err error)
- func (*Storage) ProtoMessage()
- func (x *Storage) ProtoReflect() protoreflect.Message
- func (x *Storage) Reset()
- func (m *Storage) SizeVT() (n int)
- func (x *Storage) String() string
- func (m *Storage) UnmarshalVT(dAtA []byte) error
- type StorageVersion
- func (StorageVersion) Descriptor() protoreflect.EnumDescriptor
- func (x StorageVersion) Enum() *StorageVersion
- func (StorageVersion) EnumDescriptor() ([]byte, []int)deprecated
- func (x StorageVersion) Number() protoreflect.EnumNumber
- func (x StorageVersion) String() string
- func (StorageVersion) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( StorageVersion_name = map[int32]string{ 0: "STORAGE_VERSION_UNSPECIFIED", 1: "STORAGE_VERSION_1", } StorageVersion_value = map[string]int32{ "STORAGE_VERSION_UNSPECIFIED": 0, "STORAGE_VERSION_1": 1, } )
Enum value maps for StorageVersion.
View Source
var ( Algorithm_name = map[int32]string{ 0: "UNKNOWN", 1: "PGP_AES_GCM_256", } Algorithm_value = map[string]int32{ "UNKNOWN": 0, "PGP_AES_GCM_256": 1, } )
Enum value maps for Algorithm.
View Source
var ( ErrInvalidLength = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflow = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group") )
View Source
var File_key_storage_key_storage_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Algorithm ¶
type Algorithm int32
Algorithm is an algorithm used for encryption.
func (Algorithm) Descriptor ¶
func (Algorithm) Descriptor() protoreflect.EnumDescriptor
func (Algorithm) EnumDescriptor
deprecated
func (Algorithm) Number ¶
func (x Algorithm) Number() protoreflect.EnumNumber
func (Algorithm) Type ¶
func (Algorithm) Type() protoreflect.EnumType
type KeySlot ¶
type KeySlot struct { Algorithm Algorithm `protobuf:"varint,1,opt,name=algorithm,proto3,enum=cosi.internal.key_storage.Algorithm" json:"algorithm,omitempty"` EncryptedKey []byte `protobuf:"bytes,2,opt,name=encrypted_key,json=encryptedKey,proto3" json:"encrypted_key,omitempty"` // contains filtered or unexported fields }
KeySlot is a single key slot in KeyStorage.
func (*KeySlot) CloneMessageVT ¶ added in v0.3.1
func (*KeySlot) Descriptor
deprecated
func (*KeySlot) EqualMessageVT ¶ added in v0.3.0
func (*KeySlot) GetAlgorithm ¶
func (*KeySlot) GetEncryptedKey ¶
func (*KeySlot) MarshalToSizedBufferVT ¶
func (*KeySlot) ProtoMessage ¶
func (*KeySlot) ProtoMessage()
func (*KeySlot) ProtoReflect ¶
func (x *KeySlot) ProtoReflect() protoreflect.Message
func (*KeySlot) UnmarshalVT ¶
type Storage ¶
type Storage struct { StorageVersion StorageVersion `` /* 150-byte string literal not displayed */ KeySlots map[string]*KeySlot `` /* 173-byte string literal not displayed */ KeysHmacHash []byte `protobuf:"bytes,3,opt,name=keys_hmac_hash,json=keysHmacHash,proto3" json:"keys_hmac_hash,omitempty"` // contains filtered or unexported fields }
Storage is a main storage for keys in memory and in db.
func (*Storage) CloneMessageVT ¶ added in v0.3.1
func (*Storage) Descriptor
deprecated
func (*Storage) EqualMessageVT ¶ added in v0.3.0
func (*Storage) GetKeySlots ¶
func (*Storage) GetKeysHmacHash ¶
func (*Storage) GetStorageVersion ¶
func (x *Storage) GetStorageVersion() StorageVersion
func (*Storage) MarshalToSizedBufferVT ¶
func (*Storage) ProtoMessage ¶
func (*Storage) ProtoMessage()
func (*Storage) ProtoReflect ¶
func (x *Storage) ProtoReflect() protoreflect.Message
func (*Storage) UnmarshalVT ¶
type StorageVersion ¶
type StorageVersion int32
StorageVersion is a version of KeyStorage.
const ( StorageVersion_STORAGE_VERSION_UNSPECIFIED StorageVersion = 0 StorageVersion_STORAGE_VERSION_1 StorageVersion = 1 )
func (StorageVersion) Descriptor ¶
func (StorageVersion) Descriptor() protoreflect.EnumDescriptor
func (StorageVersion) Enum ¶
func (x StorageVersion) Enum() *StorageVersion
func (StorageVersion) EnumDescriptor
deprecated
func (StorageVersion) EnumDescriptor() ([]byte, []int)
Deprecated: Use StorageVersion.Descriptor instead.
func (StorageVersion) Number ¶
func (x StorageVersion) Number() protoreflect.EnumNumber
func (StorageVersion) String ¶
func (x StorageVersion) String() string
func (StorageVersion) Type ¶
func (StorageVersion) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.