Versions in this module Expand all Collapse all v0 v0.1.0 Jun 15, 2023 Changes in this version + var EncryptionMethod_name = map[int32]string + var EncryptionMethod_value = map[string]int32 + var ErrIntOverflowEncryptionpb = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthEncryptionpb = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrUnexpectedEndOfGroupEncryptionpb = fmt.Errorf("proto: unexpected end of group") + type DataKey struct + CreationTime uint64 + Key []byte + Method EncryptionMethod + WasExposed bool + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*DataKey) Descriptor() ([]byte, []int) + func (*DataKey) ProtoMessage() + func (m *DataKey) GetCreationTime() uint64 + func (m *DataKey) GetKey() []byte + func (m *DataKey) GetMethod() EncryptionMethod + func (m *DataKey) GetWasExposed() bool + func (m *DataKey) Marshal() (dAtA []byte, err error) + func (m *DataKey) MarshalTo(dAtA []byte) (int, error) + func (m *DataKey) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *DataKey) Reset() + func (m *DataKey) Size() (n int) + func (m *DataKey) String() string + func (m *DataKey) Unmarshal(dAtA []byte) error + func (m *DataKey) XXX_DiscardUnknown() + func (m *DataKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *DataKey) XXX_Merge(src proto.Message) + func (m *DataKey) XXX_Size() int + func (m *DataKey) XXX_Unmarshal(b []byte) error + type EncryptedContent struct + CiphertextKey []byte + Content []byte + Iv []byte + MasterKey *MasterKey + Metadata map[string][]byte + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*EncryptedContent) Descriptor() ([]byte, []int) + func (*EncryptedContent) ProtoMessage() + func (m *EncryptedContent) GetCiphertextKey() []byte + func (m *EncryptedContent) GetContent() []byte + func (m *EncryptedContent) GetIv() []byte + func (m *EncryptedContent) GetMasterKey() *MasterKey + func (m *EncryptedContent) GetMetadata() map[string][]byte + func (m *EncryptedContent) Marshal() (dAtA []byte, err error) + func (m *EncryptedContent) MarshalTo(dAtA []byte) (int, error) + func (m *EncryptedContent) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *EncryptedContent) Reset() + func (m *EncryptedContent) Size() (n int) + func (m *EncryptedContent) String() string + func (m *EncryptedContent) Unmarshal(dAtA []byte) error + func (m *EncryptedContent) XXX_DiscardUnknown() + func (m *EncryptedContent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *EncryptedContent) XXX_Merge(src proto.Message) + func (m *EncryptedContent) XXX_Size() int + func (m *EncryptedContent) XXX_Unmarshal(b []byte) error + type EncryptionMeta struct + Iv []byte + KeyId uint64 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*EncryptionMeta) Descriptor() ([]byte, []int) + func (*EncryptionMeta) ProtoMessage() + func (m *EncryptionMeta) GetIv() []byte + func (m *EncryptionMeta) GetKeyId() uint64 + func (m *EncryptionMeta) Marshal() (dAtA []byte, err error) + func (m *EncryptionMeta) MarshalTo(dAtA []byte) (int, error) + func (m *EncryptionMeta) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *EncryptionMeta) Reset() + func (m *EncryptionMeta) Size() (n int) + func (m *EncryptionMeta) String() string + func (m *EncryptionMeta) Unmarshal(dAtA []byte) error + func (m *EncryptionMeta) XXX_DiscardUnknown() + func (m *EncryptionMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *EncryptionMeta) XXX_Merge(src proto.Message) + func (m *EncryptionMeta) XXX_Size() int + func (m *EncryptionMeta) XXX_Unmarshal(b []byte) error + type EncryptionMethod int32 + const EncryptionMethod_AES128_CTR + const EncryptionMethod_AES192_CTR + const EncryptionMethod_AES256_CTR + const EncryptionMethod_PLAINTEXT + const EncryptionMethod_SM4_CTR + const EncryptionMethod_UNKNOWN + func (EncryptionMethod) EnumDescriptor() ([]byte, []int) + func (x EncryptionMethod) String() string + type FileDictionary struct + Files map[string]*FileInfo + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*FileDictionary) Descriptor() ([]byte, []int) + func (*FileDictionary) ProtoMessage() + func (m *FileDictionary) GetFiles() map[string]*FileInfo + func (m *FileDictionary) Marshal() (dAtA []byte, err error) + func (m *FileDictionary) MarshalTo(dAtA []byte) (int, error) + func (m *FileDictionary) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *FileDictionary) Reset() + func (m *FileDictionary) Size() (n int) + func (m *FileDictionary) String() string + func (m *FileDictionary) Unmarshal(dAtA []byte) error + func (m *FileDictionary) XXX_DiscardUnknown() + func (m *FileDictionary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *FileDictionary) XXX_Merge(src proto.Message) + func (m *FileDictionary) XXX_Size() int + func (m *FileDictionary) XXX_Unmarshal(b []byte) error + type FileInfo struct + Iv []byte + KeyId uint64 + Method EncryptionMethod + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*FileInfo) Descriptor() ([]byte, []int) + func (*FileInfo) ProtoMessage() + func (m *FileInfo) GetIv() []byte + func (m *FileInfo) GetKeyId() uint64 + func (m *FileInfo) GetMethod() EncryptionMethod + func (m *FileInfo) Marshal() (dAtA []byte, err error) + func (m *FileInfo) MarshalTo(dAtA []byte) (int, error) + func (m *FileInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *FileInfo) Reset() + func (m *FileInfo) Size() (n int) + func (m *FileInfo) String() string + func (m *FileInfo) Unmarshal(dAtA []byte) error + func (m *FileInfo) XXX_DiscardUnknown() + func (m *FileInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *FileInfo) XXX_Merge(src proto.Message) + func (m *FileInfo) XXX_Size() int + func (m *FileInfo) XXX_Unmarshal(b []byte) error + type KeyDictionary struct + CurrentKeyId uint64 + Keys map[uint64]*DataKey + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*KeyDictionary) Descriptor() ([]byte, []int) + func (*KeyDictionary) ProtoMessage() + func (m *KeyDictionary) GetCurrentKeyId() uint64 + func (m *KeyDictionary) GetKeys() map[uint64]*DataKey + func (m *KeyDictionary) Marshal() (dAtA []byte, err error) + func (m *KeyDictionary) MarshalTo(dAtA []byte) (int, error) + func (m *KeyDictionary) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *KeyDictionary) Reset() + func (m *KeyDictionary) Size() (n int) + func (m *KeyDictionary) String() string + func (m *KeyDictionary) Unmarshal(dAtA []byte) error + func (m *KeyDictionary) XXX_DiscardUnknown() + func (m *KeyDictionary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *KeyDictionary) XXX_Merge(src proto.Message) + func (m *KeyDictionary) XXX_Size() int + func (m *KeyDictionary) XXX_Unmarshal(b []byte) error + type MasterKey struct + Backend isMasterKey_Backend + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*MasterKey) Descriptor() ([]byte, []int) + func (*MasterKey) ProtoMessage() + func (*MasterKey) XXX_OneofWrappers() []interface{} + func (m *MasterKey) GetBackend() isMasterKey_Backend + func (m *MasterKey) GetFile() *MasterKeyFile + func (m *MasterKey) GetKms() *MasterKeyKms + func (m *MasterKey) GetPlaintext() *MasterKeyPlaintext + func (m *MasterKey) Marshal() (dAtA []byte, err error) + func (m *MasterKey) MarshalTo(dAtA []byte) (int, error) + func (m *MasterKey) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MasterKey) Reset() + func (m *MasterKey) Size() (n int) + func (m *MasterKey) String() string + func (m *MasterKey) Unmarshal(dAtA []byte) error + func (m *MasterKey) XXX_DiscardUnknown() + func (m *MasterKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MasterKey) XXX_Merge(src proto.Message) + func (m *MasterKey) XXX_Size() int + func (m *MasterKey) XXX_Unmarshal(b []byte) error + type MasterKeyFile struct + Path string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*MasterKeyFile) Descriptor() ([]byte, []int) + func (*MasterKeyFile) ProtoMessage() + func (m *MasterKeyFile) GetPath() string + func (m *MasterKeyFile) Marshal() (dAtA []byte, err error) + func (m *MasterKeyFile) MarshalTo(dAtA []byte) (int, error) + func (m *MasterKeyFile) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MasterKeyFile) Reset() + func (m *MasterKeyFile) Size() (n int) + func (m *MasterKeyFile) String() string + func (m *MasterKeyFile) Unmarshal(dAtA []byte) error + func (m *MasterKeyFile) XXX_DiscardUnknown() + func (m *MasterKeyFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MasterKeyFile) XXX_Merge(src proto.Message) + func (m *MasterKeyFile) XXX_Size() int + func (m *MasterKeyFile) XXX_Unmarshal(b []byte) error + type MasterKeyKms struct + Endpoint string + KeyId string + Region string + Vendor string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*MasterKeyKms) Descriptor() ([]byte, []int) + func (*MasterKeyKms) ProtoMessage() + func (m *MasterKeyKms) GetEndpoint() string + func (m *MasterKeyKms) GetKeyId() string + func (m *MasterKeyKms) GetRegion() string + func (m *MasterKeyKms) GetVendor() string + func (m *MasterKeyKms) Marshal() (dAtA []byte, err error) + func (m *MasterKeyKms) MarshalTo(dAtA []byte) (int, error) + func (m *MasterKeyKms) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MasterKeyKms) Reset() + func (m *MasterKeyKms) Size() (n int) + func (m *MasterKeyKms) String() string + func (m *MasterKeyKms) Unmarshal(dAtA []byte) error + func (m *MasterKeyKms) XXX_DiscardUnknown() + func (m *MasterKeyKms) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MasterKeyKms) XXX_Merge(src proto.Message) + func (m *MasterKeyKms) XXX_Size() int + func (m *MasterKeyKms) XXX_Unmarshal(b []byte) error + type MasterKeyPlaintext struct + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*MasterKeyPlaintext) Descriptor() ([]byte, []int) + func (*MasterKeyPlaintext) ProtoMessage() + func (m *MasterKeyPlaintext) Marshal() (dAtA []byte, err error) + func (m *MasterKeyPlaintext) MarshalTo(dAtA []byte) (int, error) + func (m *MasterKeyPlaintext) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MasterKeyPlaintext) Reset() + func (m *MasterKeyPlaintext) Size() (n int) + func (m *MasterKeyPlaintext) String() string + func (m *MasterKeyPlaintext) Unmarshal(dAtA []byte) error + func (m *MasterKeyPlaintext) XXX_DiscardUnknown() + func (m *MasterKeyPlaintext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MasterKeyPlaintext) XXX_Merge(src proto.Message) + func (m *MasterKeyPlaintext) XXX_Size() int + func (m *MasterKeyPlaintext) XXX_Unmarshal(b []byte) error + type MasterKey_File struct + File *MasterKeyFile + func (m *MasterKey_File) MarshalTo(dAtA []byte) (int, error) + func (m *MasterKey_File) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MasterKey_File) Size() (n int) + type MasterKey_Kms struct + Kms *MasterKeyKms + func (m *MasterKey_Kms) MarshalTo(dAtA []byte) (int, error) + func (m *MasterKey_Kms) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MasterKey_Kms) Size() (n int) + type MasterKey_Plaintext struct + Plaintext *MasterKeyPlaintext + func (m *MasterKey_Plaintext) MarshalTo(dAtA []byte) (int, error) + func (m *MasterKey_Plaintext) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MasterKey_Plaintext) Size() (n int)