Documentation ¶
Index ¶
- Variables
- type AwsKms
- func (*AwsKms) Descriptor() ([]byte, []int)
- func (m *AwsKms) GetAccessKey() string
- func (m *AwsKms) GetSecretAccessKey() string
- func (m *AwsKms) Marshal() (dAtA []byte, err error)
- func (m *AwsKms) MarshalTo(dAtA []byte) (int, error)
- func (m *AwsKms) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AwsKms) ProtoMessage()
- func (m *AwsKms) Reset()
- func (m *AwsKms) Size() (n int)
- func (m *AwsKms) String() string
- func (m *AwsKms) Unmarshal(dAtA []byte) error
- func (m *AwsKms) XXX_DiscardUnknown()
- func (m *AwsKms) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AwsKms) XXX_Merge(src proto.Message)
- func (m *AwsKms) XXX_Size() int
- func (m *AwsKms) XXX_Unmarshal(b []byte) error
- type AzureKms
- func (*AzureKms) Descriptor() ([]byte, []int)
- func (m *AzureKms) GetClientCertificate() string
- func (m *AzureKms) GetClientCertificatePassword() string
- func (m *AzureKms) GetClientCertificatePath() string
- func (m *AzureKms) GetClientId() string
- func (m *AzureKms) GetClientSecret() string
- func (m *AzureKms) GetHsmName() string
- func (m *AzureKms) GetHsmUrl() string
- func (m *AzureKms) GetKeyVaultUrl() string
- func (m *AzureKms) GetTenantId() string
- func (m *AzureKms) Marshal() (dAtA []byte, err error)
- func (m *AzureKms) MarshalTo(dAtA []byte) (int, error)
- func (m *AzureKms) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AzureKms) ProtoMessage()
- func (m *AzureKms) Reset()
- func (m *AzureKms) Size() (n int)
- func (m *AzureKms) String() string
- func (m *AzureKms) Unmarshal(dAtA []byte) error
- func (m *AzureKms) XXX_DiscardUnknown()
- func (m *AzureKms) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AzureKms) XXX_Merge(src proto.Message)
- func (m *AzureKms) XXX_Size() int
- func (m *AzureKms) XXX_Unmarshal(b []byte) error
- type DataKey
- func (*DataKey) Descriptor() ([]byte, []int)
- 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 (*DataKey) ProtoMessage()
- 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
- func (*EncryptedContent) Descriptor() ([]byte, []int)
- 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 (*EncryptedContent) ProtoMessage()
- 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
- func (*EncryptionMeta) Descriptor() ([]byte, []int)
- 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 (*EncryptionMeta) ProtoMessage()
- 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
- type FileDictionary
- func (*FileDictionary) Descriptor() ([]byte, []int)
- 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 (*FileDictionary) ProtoMessage()
- 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 FileEncryptionInfo
- func (*FileEncryptionInfo) Descriptor() ([]byte, []int)
- func (m *FileEncryptionInfo) GetChecksum() []byte
- func (m *FileEncryptionInfo) GetEncryptionMethod() EncryptionMethod
- func (m *FileEncryptionInfo) GetFileIv() []byte
- func (m *FileEncryptionInfo) GetMasterKeyBased() *MasterKeyBased
- func (m *FileEncryptionInfo) GetMode() isFileEncryptionInfo_Mode
- func (m *FileEncryptionInfo) GetPlainTextDataKey() *PlainTextDataKey
- func (m *FileEncryptionInfo) Marshal() (dAtA []byte, err error)
- func (m *FileEncryptionInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *FileEncryptionInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*FileEncryptionInfo) ProtoMessage()
- func (m *FileEncryptionInfo) Reset()
- func (m *FileEncryptionInfo) Size() (n int)
- func (m *FileEncryptionInfo) String() string
- func (m *FileEncryptionInfo) Unmarshal(dAtA []byte) error
- func (m *FileEncryptionInfo) XXX_DiscardUnknown()
- func (m *FileEncryptionInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FileEncryptionInfo) XXX_Merge(src proto.Message)
- func (*FileEncryptionInfo) XXX_OneofWrappers() []interface{}
- func (m *FileEncryptionInfo) XXX_Size() int
- func (m *FileEncryptionInfo) XXX_Unmarshal(b []byte) error
- type FileEncryptionInfo_MasterKeyBased
- type FileEncryptionInfo_PlainTextDataKey
- type FileInfo
- func (*FileInfo) Descriptor() ([]byte, []int)
- 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 (*FileInfo) ProtoMessage()
- 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 GcpKms
- func (*GcpKms) Descriptor() ([]byte, []int)
- func (m *GcpKms) GetCredential() string
- func (m *GcpKms) Marshal() (dAtA []byte, err error)
- func (m *GcpKms) MarshalTo(dAtA []byte) (int, error)
- func (m *GcpKms) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GcpKms) ProtoMessage()
- func (m *GcpKms) Reset()
- func (m *GcpKms) Size() (n int)
- func (m *GcpKms) String() string
- func (m *GcpKms) Unmarshal(dAtA []byte) error
- func (m *GcpKms) XXX_DiscardUnknown()
- func (m *GcpKms) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GcpKms) XXX_Merge(src proto.Message)
- func (m *GcpKms) XXX_Size() int
- func (m *GcpKms) XXX_Unmarshal(b []byte) error
- type KeyDictionary
- func (*KeyDictionary) Descriptor() ([]byte, []int)
- 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 (*KeyDictionary) ProtoMessage()
- 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
- func (*MasterKey) Descriptor() ([]byte, []int)
- 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 (*MasterKey) ProtoMessage()
- 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 (*MasterKey) XXX_OneofWrappers() []interface{}
- func (m *MasterKey) XXX_Size() int
- func (m *MasterKey) XXX_Unmarshal(b []byte) error
- type MasterKeyBased
- func (*MasterKeyBased) Descriptor() ([]byte, []int)
- func (m *MasterKeyBased) GetDataKeyEncryptedContent() []*EncryptedContent
- func (m *MasterKeyBased) Marshal() (dAtA []byte, err error)
- func (m *MasterKeyBased) MarshalTo(dAtA []byte) (int, error)
- func (m *MasterKeyBased) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MasterKeyBased) ProtoMessage()
- func (m *MasterKeyBased) Reset()
- func (m *MasterKeyBased) Size() (n int)
- func (m *MasterKeyBased) String() string
- func (m *MasterKeyBased) Unmarshal(dAtA []byte) error
- func (m *MasterKeyBased) XXX_DiscardUnknown()
- func (m *MasterKeyBased) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MasterKeyBased) XXX_Merge(src proto.Message)
- func (m *MasterKeyBased) XXX_Size() int
- func (m *MasterKeyBased) XXX_Unmarshal(b []byte) error
- type MasterKeyFile
- func (*MasterKeyFile) Descriptor() ([]byte, []int)
- 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 (*MasterKeyFile) ProtoMessage()
- 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
- func (*MasterKeyKms) Descriptor() ([]byte, []int)
- func (m *MasterKeyKms) GetAwsKms() *AwsKms
- func (m *MasterKeyKms) GetAzureKms() *AzureKms
- func (m *MasterKeyKms) GetEndpoint() string
- func (m *MasterKeyKms) GetGcpKms() *GcpKms
- 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 (*MasterKeyKms) ProtoMessage()
- 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
- func (*MasterKeyPlaintext) Descriptor() ([]byte, []int)
- 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 (*MasterKeyPlaintext) ProtoMessage()
- 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
- type MasterKey_Kms
- type MasterKey_Plaintext
- type PlainTextDataKey
- func (*PlainTextDataKey) Descriptor() ([]byte, []int)
- func (m *PlainTextDataKey) Marshal() (dAtA []byte, err error)
- func (m *PlainTextDataKey) MarshalTo(dAtA []byte) (int, error)
- func (m *PlainTextDataKey) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PlainTextDataKey) ProtoMessage()
- func (m *PlainTextDataKey) Reset()
- func (m *PlainTextDataKey) Size() (n int)
- func (m *PlainTextDataKey) String() string
- func (m *PlainTextDataKey) Unmarshal(dAtA []byte) error
- func (m *PlainTextDataKey) XXX_DiscardUnknown()
- func (m *PlainTextDataKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PlainTextDataKey) XXX_Merge(src proto.Message)
- func (m *PlainTextDataKey) XXX_Size() int
- func (m *PlainTextDataKey) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthEncryptionpb = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowEncryptionpb = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupEncryptionpb = fmt.Errorf("proto: unexpected end of group") )
var EncryptionMethod_name = map[int32]string{
0: "UNKNOWN",
1: "PLAINTEXT",
2: "AES128_CTR",
3: "AES192_CTR",
4: "AES256_CTR",
5: "SM4_CTR",
}
var EncryptionMethod_value = map[string]int32{
"UNKNOWN": 0,
"PLAINTEXT": 1,
"AES128_CTR": 2,
"AES192_CTR": 3,
"AES256_CTR": 4,
"SM4_CTR": 5,
}
Functions ¶
This section is empty.
Types ¶
type AwsKms ¶
type AwsKms struct { AccessKey string `protobuf:"bytes,1,opt,name=access_key,json=accessKey,proto3" json:"access_key,omitempty"` SecretAccessKey string `protobuf:"bytes,2,opt,name=secret_access_key,json=secretAccessKey,proto3" json:"secret_access_key,omitempty"` }
func (*AwsKms) Descriptor ¶
func (*AwsKms) GetAccessKey ¶
func (*AwsKms) GetSecretAccessKey ¶
func (*AwsKms) MarshalToSizedBuffer ¶
func (*AwsKms) ProtoMessage ¶
func (*AwsKms) ProtoMessage()
func (*AwsKms) XXX_DiscardUnknown ¶
func (m *AwsKms) XXX_DiscardUnknown()
func (*AwsKms) XXX_Marshal ¶
func (*AwsKms) XXX_Unmarshal ¶
type AzureKms ¶
type AzureKms struct { TenantId string `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"` ClientId string `protobuf:"bytes,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` ClientSecret string `protobuf:"bytes,3,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"` // Key vault to encrypt/decrypt data key. KeyVaultUrl string `protobuf:"bytes,4,opt,name=key_vault_url,json=keyVaultUrl,proto3" json:"key_vault_url,omitempty"` // optional hsm used to generate data key HsmName string `protobuf:"bytes,5,opt,name=hsm_name,json=hsmName,proto3" json:"hsm_name,omitempty"` HsmUrl string `protobuf:"bytes,6,opt,name=hsm_url,json=hsmUrl,proto3" json:"hsm_url,omitempty"` ClientCertificate string `protobuf:"bytes,7,opt,name=client_certificate,json=clientCertificate,proto3" json:"client_certificate,omitempty"` ClientCertificatePath string `` /* 126-byte string literal not displayed */ ClientCertificatePassword string `` /* 138-byte string literal not displayed */ }
func (*AzureKms) Descriptor ¶
func (*AzureKms) GetClientCertificate ¶
func (*AzureKms) GetClientCertificatePassword ¶
func (*AzureKms) GetClientCertificatePath ¶
func (*AzureKms) GetClientId ¶
func (*AzureKms) GetClientSecret ¶
func (*AzureKms) GetHsmName ¶
func (*AzureKms) GetKeyVaultUrl ¶
func (*AzureKms) GetTenantId ¶
func (*AzureKms) MarshalToSizedBuffer ¶
func (*AzureKms) ProtoMessage ¶
func (*AzureKms) ProtoMessage()
func (*AzureKms) XXX_DiscardUnknown ¶
func (m *AzureKms) XXX_DiscardUnknown()
func (*AzureKms) XXX_Marshal ¶
func (*AzureKms) XXX_Unmarshal ¶
type DataKey ¶
type DataKey struct { // A sequence of secret bytes used to encrypt data. Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // Method of encryption algorithm used to encrypted data. Method EncryptionMethod `protobuf:"varint,2,opt,name=method,proto3,enum=encryptionpb.EncryptionMethod" json:"method,omitempty"` // Creation time of the key. CreationTime uint64 `protobuf:"varint,3,opt,name=creation_time,json=creationTime,proto3" json:"creation_time,omitempty"` // A flag for the key have ever been exposed. WasExposed bool `protobuf:"varint,4,opt,name=was_exposed,json=wasExposed,proto3" json:"was_exposed,omitempty"` }
The key used to encrypt the user data.
func (*DataKey) Descriptor ¶
func (*DataKey) GetCreationTime ¶
func (*DataKey) GetMethod ¶
func (m *DataKey) GetMethod() EncryptionMethod
func (*DataKey) GetWasExposed ¶
func (*DataKey) MarshalToSizedBuffer ¶
func (*DataKey) ProtoMessage ¶
func (*DataKey) ProtoMessage()
func (*DataKey) XXX_DiscardUnknown ¶
func (m *DataKey) XXX_DiscardUnknown()
func (*DataKey) XXX_Marshal ¶
func (*DataKey) XXX_Unmarshal ¶
type EncryptedContent ¶
type EncryptedContent struct { // Metadata of the encrypted content. // Eg. IV, method and KMS key ID // It is preferred to define new fields for extra metadata than using this metadata map. Metadata map[string][]byte `` /* 157-byte string literal not displayed */ // Encrypted content. Content []byte `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` // Master key used to encrypt the content. MasterKey *MasterKey `protobuf:"bytes,3,opt,name=master_key,json=masterKey,proto3" json:"master_key,omitempty"` // Initilization vector (IV) used. Iv []byte `protobuf:"bytes,4,opt,name=iv,proto3" json:"iv,omitempty"` // Encrypted data key generated by KMS and used to actually encrypt data. // Valid only when KMS is used. CiphertextKey []byte `protobuf:"bytes,5,opt,name=ciphertext_key,json=ciphertextKey,proto3" json:"ciphertext_key,omitempty"` }
func (*EncryptedContent) Descriptor ¶
func (*EncryptedContent) Descriptor() ([]byte, []int)
func (*EncryptedContent) GetCiphertextKey ¶
func (m *EncryptedContent) GetCiphertextKey() []byte
func (*EncryptedContent) GetContent ¶
func (m *EncryptedContent) GetContent() []byte
func (*EncryptedContent) GetIv ¶
func (m *EncryptedContent) GetIv() []byte
func (*EncryptedContent) GetMasterKey ¶
func (m *EncryptedContent) GetMasterKey() *MasterKey
func (*EncryptedContent) GetMetadata ¶
func (m *EncryptedContent) GetMetadata() map[string][]byte
func (*EncryptedContent) Marshal ¶
func (m *EncryptedContent) Marshal() (dAtA []byte, err error)
func (*EncryptedContent) MarshalToSizedBuffer ¶
func (m *EncryptedContent) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EncryptedContent) ProtoMessage ¶
func (*EncryptedContent) ProtoMessage()
func (*EncryptedContent) Reset ¶
func (m *EncryptedContent) Reset()
func (*EncryptedContent) Size ¶
func (m *EncryptedContent) Size() (n int)
func (*EncryptedContent) String ¶
func (m *EncryptedContent) String() string
func (*EncryptedContent) Unmarshal ¶
func (m *EncryptedContent) Unmarshal(dAtA []byte) error
func (*EncryptedContent) XXX_DiscardUnknown ¶
func (m *EncryptedContent) XXX_DiscardUnknown()
func (*EncryptedContent) XXX_Marshal ¶
func (m *EncryptedContent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EncryptedContent) XXX_Merge ¶
func (m *EncryptedContent) XXX_Merge(src proto.Message)
func (*EncryptedContent) XXX_Size ¶
func (m *EncryptedContent) XXX_Size() int
func (*EncryptedContent) XXX_Unmarshal ¶
func (m *EncryptedContent) XXX_Unmarshal(b []byte) error
type EncryptionMeta ¶
type EncryptionMeta struct { // ID of the key used to encrypt the data. KeyId uint64 `protobuf:"varint,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` // Initialization vector (IV) of the data. Iv []byte `protobuf:"bytes,2,opt,name=iv,proto3" json:"iv,omitempty"` }
General encryption metadata for any data type.
func (*EncryptionMeta) Descriptor ¶
func (*EncryptionMeta) Descriptor() ([]byte, []int)
func (*EncryptionMeta) GetIv ¶
func (m *EncryptionMeta) GetIv() []byte
func (*EncryptionMeta) GetKeyId ¶
func (m *EncryptionMeta) GetKeyId() uint64
func (*EncryptionMeta) Marshal ¶
func (m *EncryptionMeta) Marshal() (dAtA []byte, err error)
func (*EncryptionMeta) MarshalToSizedBuffer ¶
func (m *EncryptionMeta) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EncryptionMeta) ProtoMessage ¶
func (*EncryptionMeta) ProtoMessage()
func (*EncryptionMeta) Reset ¶
func (m *EncryptionMeta) Reset()
func (*EncryptionMeta) Size ¶
func (m *EncryptionMeta) Size() (n int)
func (*EncryptionMeta) String ¶
func (m *EncryptionMeta) String() string
func (*EncryptionMeta) Unmarshal ¶
func (m *EncryptionMeta) Unmarshal(dAtA []byte) error
func (*EncryptionMeta) XXX_DiscardUnknown ¶
func (m *EncryptionMeta) XXX_DiscardUnknown()
func (*EncryptionMeta) XXX_Marshal ¶
func (m *EncryptionMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EncryptionMeta) XXX_Merge ¶
func (m *EncryptionMeta) XXX_Merge(src proto.Message)
func (*EncryptionMeta) XXX_Size ¶
func (m *EncryptionMeta) XXX_Size() int
func (*EncryptionMeta) XXX_Unmarshal ¶
func (m *EncryptionMeta) XXX_Unmarshal(b []byte) error
type EncryptionMethod ¶
type EncryptionMethod int32
const ( EncryptionMethod_UNKNOWN EncryptionMethod = 0 EncryptionMethod_PLAINTEXT EncryptionMethod = 1 EncryptionMethod_AES128_CTR EncryptionMethod = 2 EncryptionMethod_AES192_CTR EncryptionMethod = 3 EncryptionMethod_AES256_CTR EncryptionMethod = 4 EncryptionMethod_SM4_CTR EncryptionMethod = 5 )
func (EncryptionMethod) EnumDescriptor ¶
func (EncryptionMethod) EnumDescriptor() ([]byte, []int)
func (EncryptionMethod) String ¶
func (x EncryptionMethod) String() string
type FileDictionary ¶
type FileDictionary struct { // A map of file name to file info. Files map[string]*FileInfo `` /* 151-byte string literal not displayed */ }
func (*FileDictionary) Descriptor ¶
func (*FileDictionary) Descriptor() ([]byte, []int)
func (*FileDictionary) GetFiles ¶
func (m *FileDictionary) GetFiles() map[string]*FileInfo
func (*FileDictionary) Marshal ¶
func (m *FileDictionary) Marshal() (dAtA []byte, err error)
func (*FileDictionary) MarshalToSizedBuffer ¶
func (m *FileDictionary) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*FileDictionary) ProtoMessage ¶
func (*FileDictionary) ProtoMessage()
func (*FileDictionary) Reset ¶
func (m *FileDictionary) Reset()
func (*FileDictionary) Size ¶
func (m *FileDictionary) Size() (n int)
func (*FileDictionary) String ¶
func (m *FileDictionary) String() string
func (*FileDictionary) Unmarshal ¶
func (m *FileDictionary) Unmarshal(dAtA []byte) error
func (*FileDictionary) XXX_DiscardUnknown ¶
func (m *FileDictionary) XXX_DiscardUnknown()
func (*FileDictionary) XXX_Marshal ¶
func (m *FileDictionary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FileDictionary) XXX_Merge ¶
func (m *FileDictionary) XXX_Merge(src proto.Message)
func (*FileDictionary) XXX_Size ¶
func (m *FileDictionary) XXX_Size() int
func (*FileDictionary) XXX_Unmarshal ¶
func (m *FileDictionary) XXX_Unmarshal(b []byte) error
type FileEncryptionInfo ¶
type FileEncryptionInfo struct { // Types that are valid to be assigned to Mode: // *FileEncryptionInfo_PlainTextDataKey // *FileEncryptionInfo_MasterKeyBased Mode isFileEncryptionInfo_Mode `protobuf_oneof:"mode"` // file encryption method EncryptionMethod EncryptionMethod `` /* 145-byte string literal not displayed */ // iv to encrypt the file by data key FileIv []byte `protobuf:"bytes,4,opt,name=file_iv,json=fileIv,proto3" json:"file_iv,omitempty"` // file checksum after encryption, optional if using GCM Checksum []byte `protobuf:"bytes,5,opt,name=checksum,proto3" json:"checksum,omitempty"` }
func (*FileEncryptionInfo) Descriptor ¶
func (*FileEncryptionInfo) Descriptor() ([]byte, []int)
func (*FileEncryptionInfo) GetChecksum ¶
func (m *FileEncryptionInfo) GetChecksum() []byte
func (*FileEncryptionInfo) GetEncryptionMethod ¶
func (m *FileEncryptionInfo) GetEncryptionMethod() EncryptionMethod
func (*FileEncryptionInfo) GetFileIv ¶
func (m *FileEncryptionInfo) GetFileIv() []byte
func (*FileEncryptionInfo) GetMasterKeyBased ¶
func (m *FileEncryptionInfo) GetMasterKeyBased() *MasterKeyBased
func (*FileEncryptionInfo) GetMode ¶
func (m *FileEncryptionInfo) GetMode() isFileEncryptionInfo_Mode
func (*FileEncryptionInfo) GetPlainTextDataKey ¶
func (m *FileEncryptionInfo) GetPlainTextDataKey() *PlainTextDataKey
func (*FileEncryptionInfo) Marshal ¶
func (m *FileEncryptionInfo) Marshal() (dAtA []byte, err error)
func (*FileEncryptionInfo) MarshalTo ¶
func (m *FileEncryptionInfo) MarshalTo(dAtA []byte) (int, error)
func (*FileEncryptionInfo) MarshalToSizedBuffer ¶
func (m *FileEncryptionInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*FileEncryptionInfo) ProtoMessage ¶
func (*FileEncryptionInfo) ProtoMessage()
func (*FileEncryptionInfo) Reset ¶
func (m *FileEncryptionInfo) Reset()
func (*FileEncryptionInfo) Size ¶
func (m *FileEncryptionInfo) Size() (n int)
func (*FileEncryptionInfo) String ¶
func (m *FileEncryptionInfo) String() string
func (*FileEncryptionInfo) Unmarshal ¶
func (m *FileEncryptionInfo) Unmarshal(dAtA []byte) error
func (*FileEncryptionInfo) XXX_DiscardUnknown ¶
func (m *FileEncryptionInfo) XXX_DiscardUnknown()
func (*FileEncryptionInfo) XXX_Marshal ¶
func (m *FileEncryptionInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FileEncryptionInfo) XXX_Merge ¶
func (m *FileEncryptionInfo) XXX_Merge(src proto.Message)
func (*FileEncryptionInfo) XXX_OneofWrappers ¶
func (*FileEncryptionInfo) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*FileEncryptionInfo) XXX_Size ¶
func (m *FileEncryptionInfo) XXX_Size() int
func (*FileEncryptionInfo) XXX_Unmarshal ¶
func (m *FileEncryptionInfo) XXX_Unmarshal(b []byte) error
type FileEncryptionInfo_MasterKeyBased ¶
type FileEncryptionInfo_MasterKeyBased struct {
MasterKeyBased *MasterKeyBased `protobuf:"bytes,2,opt,name=master_key_based,json=masterKeyBased,proto3,oneof" json:"master_key_based,omitempty"`
}
func (*FileEncryptionInfo_MasterKeyBased) MarshalTo ¶
func (m *FileEncryptionInfo_MasterKeyBased) MarshalTo(dAtA []byte) (int, error)
func (*FileEncryptionInfo_MasterKeyBased) MarshalToSizedBuffer ¶
func (m *FileEncryptionInfo_MasterKeyBased) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*FileEncryptionInfo_MasterKeyBased) Size ¶
func (m *FileEncryptionInfo_MasterKeyBased) Size() (n int)
type FileEncryptionInfo_PlainTextDataKey ¶
type FileEncryptionInfo_PlainTextDataKey struct {
PlainTextDataKey *PlainTextDataKey `protobuf:"bytes,1,opt,name=plain_text_data_key,json=plainTextDataKey,proto3,oneof" json:"plain_text_data_key,omitempty"`
}
func (*FileEncryptionInfo_PlainTextDataKey) MarshalTo ¶
func (m *FileEncryptionInfo_PlainTextDataKey) MarshalTo(dAtA []byte) (int, error)
func (*FileEncryptionInfo_PlainTextDataKey) MarshalToSizedBuffer ¶
func (m *FileEncryptionInfo_PlainTextDataKey) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*FileEncryptionInfo_PlainTextDataKey) Size ¶
func (m *FileEncryptionInfo_PlainTextDataKey) Size() (n int)
type FileInfo ¶
type FileInfo struct { // ID of the key used to encrypt the file. KeyId uint64 `protobuf:"varint,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` // Initialization vector (IV) of the file. Iv []byte `protobuf:"bytes,2,opt,name=iv,proto3" json:"iv,omitempty"` // Method of encryption algorithm used to encrypted the file. Method EncryptionMethod `protobuf:"varint,3,opt,name=method,proto3,enum=encryptionpb.EncryptionMethod" json:"method,omitempty"` }
Information about an encrypted file.
func (*FileInfo) Descriptor ¶
func (*FileInfo) GetMethod ¶
func (m *FileInfo) GetMethod() EncryptionMethod
func (*FileInfo) MarshalToSizedBuffer ¶
func (*FileInfo) ProtoMessage ¶
func (*FileInfo) ProtoMessage()
func (*FileInfo) XXX_DiscardUnknown ¶
func (m *FileInfo) XXX_DiscardUnknown()
func (*FileInfo) XXX_Marshal ¶
func (*FileInfo) XXX_Unmarshal ¶
type GcpKms ¶
type GcpKms struct {
Credential string `protobuf:"bytes,1,opt,name=credential,proto3" json:"credential,omitempty"`
}
func (*GcpKms) Descriptor ¶
func (*GcpKms) GetCredential ¶
func (*GcpKms) MarshalToSizedBuffer ¶
func (*GcpKms) ProtoMessage ¶
func (*GcpKms) ProtoMessage()
func (*GcpKms) XXX_DiscardUnknown ¶
func (m *GcpKms) XXX_DiscardUnknown()
func (*GcpKms) XXX_Marshal ¶
func (*GcpKms) XXX_Unmarshal ¶
type KeyDictionary ¶
type KeyDictionary struct { // A map of key ID to dat key. Keys map[uint64]*DataKey `` /* 150-byte string literal not displayed */ // ID of a key currently in use. CurrentKeyId uint64 `protobuf:"varint,2,opt,name=current_key_id,json=currentKeyId,proto3" json:"current_key_id,omitempty"` }
func (*KeyDictionary) Descriptor ¶
func (*KeyDictionary) Descriptor() ([]byte, []int)
func (*KeyDictionary) GetCurrentKeyId ¶
func (m *KeyDictionary) GetCurrentKeyId() uint64
func (*KeyDictionary) GetKeys ¶
func (m *KeyDictionary) GetKeys() map[uint64]*DataKey
func (*KeyDictionary) Marshal ¶
func (m *KeyDictionary) Marshal() (dAtA []byte, err error)
func (*KeyDictionary) MarshalToSizedBuffer ¶
func (m *KeyDictionary) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*KeyDictionary) ProtoMessage ¶
func (*KeyDictionary) ProtoMessage()
func (*KeyDictionary) Reset ¶
func (m *KeyDictionary) Reset()
func (*KeyDictionary) Size ¶
func (m *KeyDictionary) Size() (n int)
func (*KeyDictionary) String ¶
func (m *KeyDictionary) String() string
func (*KeyDictionary) Unmarshal ¶
func (m *KeyDictionary) Unmarshal(dAtA []byte) error
func (*KeyDictionary) XXX_DiscardUnknown ¶
func (m *KeyDictionary) XXX_DiscardUnknown()
func (*KeyDictionary) XXX_Marshal ¶
func (m *KeyDictionary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*KeyDictionary) XXX_Merge ¶
func (m *KeyDictionary) XXX_Merge(src proto.Message)
func (*KeyDictionary) XXX_Size ¶
func (m *KeyDictionary) XXX_Size() int
func (*KeyDictionary) XXX_Unmarshal ¶
func (m *KeyDictionary) XXX_Unmarshal(b []byte) error
type MasterKey ¶
type MasterKey struct { // Types that are valid to be assigned to Backend: // *MasterKey_Plaintext // *MasterKey_File // *MasterKey_Kms Backend isMasterKey_Backend `protobuf_oneof:"backend"` }
Master key config.
func (*MasterKey) Descriptor ¶
func (*MasterKey) GetBackend ¶
func (m *MasterKey) GetBackend() isMasterKey_Backend
func (*MasterKey) GetFile ¶
func (m *MasterKey) GetFile() *MasterKeyFile
func (*MasterKey) GetKms ¶
func (m *MasterKey) GetKms() *MasterKeyKms
func (*MasterKey) GetPlaintext ¶
func (m *MasterKey) GetPlaintext() *MasterKeyPlaintext
func (*MasterKey) MarshalToSizedBuffer ¶
func (*MasterKey) ProtoMessage ¶
func (*MasterKey) ProtoMessage()
func (*MasterKey) XXX_DiscardUnknown ¶
func (m *MasterKey) XXX_DiscardUnknown()
func (*MasterKey) XXX_Marshal ¶
func (*MasterKey) XXX_OneofWrappers ¶
func (*MasterKey) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*MasterKey) XXX_Unmarshal ¶
type MasterKeyBased ¶
type MasterKeyBased struct { // encrypted data key with metadata DataKeyEncryptedContent []*EncryptedContent `` /* 134-byte string literal not displayed */ }
func (*MasterKeyBased) Descriptor ¶
func (*MasterKeyBased) Descriptor() ([]byte, []int)
func (*MasterKeyBased) GetDataKeyEncryptedContent ¶
func (m *MasterKeyBased) GetDataKeyEncryptedContent() []*EncryptedContent
func (*MasterKeyBased) Marshal ¶
func (m *MasterKeyBased) Marshal() (dAtA []byte, err error)
func (*MasterKeyBased) MarshalToSizedBuffer ¶
func (m *MasterKeyBased) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MasterKeyBased) ProtoMessage ¶
func (*MasterKeyBased) ProtoMessage()
func (*MasterKeyBased) Reset ¶
func (m *MasterKeyBased) Reset()
func (*MasterKeyBased) Size ¶
func (m *MasterKeyBased) Size() (n int)
func (*MasterKeyBased) String ¶
func (m *MasterKeyBased) String() string
func (*MasterKeyBased) Unmarshal ¶
func (m *MasterKeyBased) Unmarshal(dAtA []byte) error
func (*MasterKeyBased) XXX_DiscardUnknown ¶
func (m *MasterKeyBased) XXX_DiscardUnknown()
func (*MasterKeyBased) XXX_Marshal ¶
func (m *MasterKeyBased) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MasterKeyBased) XXX_Merge ¶
func (m *MasterKeyBased) XXX_Merge(src proto.Message)
func (*MasterKeyBased) XXX_Size ¶
func (m *MasterKeyBased) XXX_Size() int
func (*MasterKeyBased) XXX_Unmarshal ¶
func (m *MasterKeyBased) XXX_Unmarshal(b []byte) error
type MasterKeyFile ¶
type MasterKeyFile struct { // Local file path. Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` }
MasterKeyFile is a master key backed by a file containing encryption key in human-readable hex format.
func (*MasterKeyFile) Descriptor ¶
func (*MasterKeyFile) Descriptor() ([]byte, []int)
func (*MasterKeyFile) GetPath ¶
func (m *MasterKeyFile) GetPath() string
func (*MasterKeyFile) Marshal ¶
func (m *MasterKeyFile) Marshal() (dAtA []byte, err error)
func (*MasterKeyFile) MarshalToSizedBuffer ¶
func (m *MasterKeyFile) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MasterKeyFile) ProtoMessage ¶
func (*MasterKeyFile) ProtoMessage()
func (*MasterKeyFile) Reset ¶
func (m *MasterKeyFile) Reset()
func (*MasterKeyFile) Size ¶
func (m *MasterKeyFile) Size() (n int)
func (*MasterKeyFile) String ¶
func (m *MasterKeyFile) String() string
func (*MasterKeyFile) Unmarshal ¶
func (m *MasterKeyFile) Unmarshal(dAtA []byte) error
func (*MasterKeyFile) XXX_DiscardUnknown ¶
func (m *MasterKeyFile) XXX_DiscardUnknown()
func (*MasterKeyFile) XXX_Marshal ¶
func (m *MasterKeyFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MasterKeyFile) XXX_Merge ¶
func (m *MasterKeyFile) XXX_Merge(src proto.Message)
func (*MasterKeyFile) XXX_Size ¶
func (m *MasterKeyFile) XXX_Size() int
func (*MasterKeyFile) XXX_Unmarshal ¶
func (m *MasterKeyFile) XXX_Unmarshal(b []byte) error
type MasterKeyKms ¶
type MasterKeyKms struct { // KMS vendor. Vendor string `protobuf:"bytes,1,opt,name=vendor,proto3" json:"vendor,omitempty"` // KMS key id. KeyId string `protobuf:"bytes,2,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` // KMS region. Region string `protobuf:"bytes,3,opt,name=region,proto3" json:"region,omitempty"` // KMS endpoint. Normally not needed. Endpoint string `protobuf:"bytes,4,opt,name=endpoint,proto3" json:"endpoint,omitempty"` // optional, used to set up azure master key backend AzureKms *AzureKms `protobuf:"bytes,5,opt,name=azure_kms,json=azureKms,proto3" json:"azure_kms,omitempty"` // optional, used to set up gcp master key backend GcpKms *GcpKms `protobuf:"bytes,6,opt,name=gcp_kms,json=gcpKms,proto3" json:"gcp_kms,omitempty"` // optional, used to set up aws master key backend AwsKms *AwsKms `protobuf:"bytes,7,opt,name=aws_kms,json=awsKms,proto3" json:"aws_kms,omitempty"` }
MasterKeyKms is a master key backed by KMS service that manages the encryption key, and provide API to encrypt and decrypt a data key, which is used to encrypt the content.
func (*MasterKeyKms) Descriptor ¶
func (*MasterKeyKms) Descriptor() ([]byte, []int)
func (*MasterKeyKms) GetAwsKms ¶
func (m *MasterKeyKms) GetAwsKms() *AwsKms
func (*MasterKeyKms) GetAzureKms ¶
func (m *MasterKeyKms) GetAzureKms() *AzureKms
func (*MasterKeyKms) GetEndpoint ¶
func (m *MasterKeyKms) GetEndpoint() string
func (*MasterKeyKms) GetGcpKms ¶
func (m *MasterKeyKms) GetGcpKms() *GcpKms
func (*MasterKeyKms) GetKeyId ¶
func (m *MasterKeyKms) GetKeyId() string
func (*MasterKeyKms) GetRegion ¶
func (m *MasterKeyKms) GetRegion() string
func (*MasterKeyKms) GetVendor ¶
func (m *MasterKeyKms) GetVendor() string
func (*MasterKeyKms) Marshal ¶
func (m *MasterKeyKms) Marshal() (dAtA []byte, err error)
func (*MasterKeyKms) MarshalToSizedBuffer ¶
func (m *MasterKeyKms) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MasterKeyKms) ProtoMessage ¶
func (*MasterKeyKms) ProtoMessage()
func (*MasterKeyKms) Reset ¶
func (m *MasterKeyKms) Reset()
func (*MasterKeyKms) Size ¶
func (m *MasterKeyKms) Size() (n int)
func (*MasterKeyKms) String ¶
func (m *MasterKeyKms) String() string
func (*MasterKeyKms) Unmarshal ¶
func (m *MasterKeyKms) Unmarshal(dAtA []byte) error
func (*MasterKeyKms) XXX_DiscardUnknown ¶
func (m *MasterKeyKms) XXX_DiscardUnknown()
func (*MasterKeyKms) XXX_Marshal ¶
func (m *MasterKeyKms) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MasterKeyKms) XXX_Merge ¶
func (m *MasterKeyKms) XXX_Merge(src proto.Message)
func (*MasterKeyKms) XXX_Size ¶
func (m *MasterKeyKms) XXX_Size() int
func (*MasterKeyKms) XXX_Unmarshal ¶
func (m *MasterKeyKms) XXX_Unmarshal(b []byte) error
type MasterKeyPlaintext ¶
type MasterKeyPlaintext struct { }
MasterKeyPlaintext indicates content is stored as plaintext.
func (*MasterKeyPlaintext) Descriptor ¶
func (*MasterKeyPlaintext) Descriptor() ([]byte, []int)
func (*MasterKeyPlaintext) Marshal ¶
func (m *MasterKeyPlaintext) Marshal() (dAtA []byte, err error)
func (*MasterKeyPlaintext) MarshalTo ¶
func (m *MasterKeyPlaintext) MarshalTo(dAtA []byte) (int, error)
func (*MasterKeyPlaintext) MarshalToSizedBuffer ¶
func (m *MasterKeyPlaintext) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MasterKeyPlaintext) ProtoMessage ¶
func (*MasterKeyPlaintext) ProtoMessage()
func (*MasterKeyPlaintext) Reset ¶
func (m *MasterKeyPlaintext) Reset()
func (*MasterKeyPlaintext) Size ¶
func (m *MasterKeyPlaintext) Size() (n int)
func (*MasterKeyPlaintext) String ¶
func (m *MasterKeyPlaintext) String() string
func (*MasterKeyPlaintext) Unmarshal ¶
func (m *MasterKeyPlaintext) Unmarshal(dAtA []byte) error
func (*MasterKeyPlaintext) XXX_DiscardUnknown ¶
func (m *MasterKeyPlaintext) XXX_DiscardUnknown()
func (*MasterKeyPlaintext) XXX_Marshal ¶
func (m *MasterKeyPlaintext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MasterKeyPlaintext) XXX_Merge ¶
func (m *MasterKeyPlaintext) XXX_Merge(src proto.Message)
func (*MasterKeyPlaintext) XXX_Size ¶
func (m *MasterKeyPlaintext) XXX_Size() int
func (*MasterKeyPlaintext) XXX_Unmarshal ¶
func (m *MasterKeyPlaintext) XXX_Unmarshal(b []byte) error
type MasterKey_File ¶
type MasterKey_File struct {
File *MasterKeyFile `protobuf:"bytes,2,opt,name=file,proto3,oneof" json:"file,omitempty"`
}
func (*MasterKey_File) MarshalToSizedBuffer ¶
func (m *MasterKey_File) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MasterKey_File) Size ¶
func (m *MasterKey_File) Size() (n int)
type MasterKey_Kms ¶
type MasterKey_Kms struct {
Kms *MasterKeyKms `protobuf:"bytes,3,opt,name=kms,proto3,oneof" json:"kms,omitempty"`
}
func (*MasterKey_Kms) MarshalToSizedBuffer ¶
func (m *MasterKey_Kms) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MasterKey_Kms) Size ¶
func (m *MasterKey_Kms) Size() (n int)
type MasterKey_Plaintext ¶
type MasterKey_Plaintext struct {
Plaintext *MasterKeyPlaintext `protobuf:"bytes,1,opt,name=plaintext,proto3,oneof" json:"plaintext,omitempty"`
}
func (*MasterKey_Plaintext) MarshalTo ¶
func (m *MasterKey_Plaintext) MarshalTo(dAtA []byte) (int, error)
func (*MasterKey_Plaintext) MarshalToSizedBuffer ¶
func (m *MasterKey_Plaintext) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MasterKey_Plaintext) Size ¶
func (m *MasterKey_Plaintext) Size() (n int)
type PlainTextDataKey ¶
type PlainTextDataKey struct { }
not recommended in production. user needs to pass back the same data key for restore.
func (*PlainTextDataKey) Descriptor ¶
func (*PlainTextDataKey) Descriptor() ([]byte, []int)
func (*PlainTextDataKey) Marshal ¶
func (m *PlainTextDataKey) Marshal() (dAtA []byte, err error)
func (*PlainTextDataKey) MarshalToSizedBuffer ¶
func (m *PlainTextDataKey) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PlainTextDataKey) ProtoMessage ¶
func (*PlainTextDataKey) ProtoMessage()
func (*PlainTextDataKey) Reset ¶
func (m *PlainTextDataKey) Reset()
func (*PlainTextDataKey) Size ¶
func (m *PlainTextDataKey) Size() (n int)
func (*PlainTextDataKey) String ¶
func (m *PlainTextDataKey) String() string
func (*PlainTextDataKey) Unmarshal ¶
func (m *PlainTextDataKey) Unmarshal(dAtA []byte) error
func (*PlainTextDataKey) XXX_DiscardUnknown ¶
func (m *PlainTextDataKey) XXX_DiscardUnknown()
func (*PlainTextDataKey) XXX_Marshal ¶
func (m *PlainTextDataKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PlainTextDataKey) XXX_Merge ¶
func (m *PlainTextDataKey) XXX_Merge(src proto.Message)
func (*PlainTextDataKey) XXX_Size ¶
func (m *PlainTextDataKey) XXX_Size() int
func (*PlainTextDataKey) XXX_Unmarshal ¶
func (m *PlainTextDataKey) XXX_Unmarshal(b []byte) error