encryptionpb

package
v0.0.0-...-e8eeb94 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 6 Imported by: 19

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthEncryptionpb        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEncryptionpb          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEncryptionpb = fmt.Errorf("proto: unexpected end of group")
)
View Source
var EncryptionMethod_name = map[int32]string{
	0: "UNKNOWN",
	1: "PLAINTEXT",
	2: "AES128_CTR",
	3: "AES192_CTR",
	4: "AES256_CTR",
	5: "SM4_CTR",
}
View Source
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) Descriptor() ([]byte, []int)

func (*AwsKms) GetAccessKey

func (m *AwsKms) GetAccessKey() string

func (*AwsKms) GetSecretAccessKey

func (m *AwsKms) GetSecretAccessKey() string

func (*AwsKms) Marshal

func (m *AwsKms) Marshal() (dAtA []byte, err error)

func (*AwsKms) MarshalTo

func (m *AwsKms) MarshalTo(dAtA []byte) (int, error)

func (*AwsKms) MarshalToSizedBuffer

func (m *AwsKms) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AwsKms) ProtoMessage

func (*AwsKms) ProtoMessage()

func (*AwsKms) Reset

func (m *AwsKms) Reset()

func (*AwsKms) Size

func (m *AwsKms) Size() (n int)

func (*AwsKms) String

func (m *AwsKms) String() string

func (*AwsKms) Unmarshal

func (m *AwsKms) Unmarshal(dAtA []byte) error

func (*AwsKms) XXX_DiscardUnknown

func (m *AwsKms) XXX_DiscardUnknown()

func (*AwsKms) XXX_Marshal

func (m *AwsKms) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AwsKms) XXX_Merge

func (m *AwsKms) XXX_Merge(src proto.Message)

func (*AwsKms) XXX_Size

func (m *AwsKms) XXX_Size() int

func (*AwsKms) XXX_Unmarshal

func (m *AwsKms) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*AzureKms) GetClientCertificate

func (m *AzureKms) GetClientCertificate() string

func (*AzureKms) GetClientCertificatePassword

func (m *AzureKms) GetClientCertificatePassword() string

func (*AzureKms) GetClientCertificatePath

func (m *AzureKms) GetClientCertificatePath() string

func (*AzureKms) GetClientId

func (m *AzureKms) GetClientId() string

func (*AzureKms) GetClientSecret

func (m *AzureKms) GetClientSecret() string

func (*AzureKms) GetHsmName

func (m *AzureKms) GetHsmName() string

func (*AzureKms) GetHsmUrl

func (m *AzureKms) GetHsmUrl() string

func (*AzureKms) GetKeyVaultUrl

func (m *AzureKms) GetKeyVaultUrl() string

func (*AzureKms) GetTenantId

func (m *AzureKms) GetTenantId() string

func (*AzureKms) Marshal

func (m *AzureKms) Marshal() (dAtA []byte, err error)

func (*AzureKms) MarshalTo

func (m *AzureKms) MarshalTo(dAtA []byte) (int, error)

func (*AzureKms) MarshalToSizedBuffer

func (m *AzureKms) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AzureKms) ProtoMessage

func (*AzureKms) ProtoMessage()

func (*AzureKms) Reset

func (m *AzureKms) Reset()

func (*AzureKms) Size

func (m *AzureKms) Size() (n int)

func (*AzureKms) String

func (m *AzureKms) String() string

func (*AzureKms) Unmarshal

func (m *AzureKms) Unmarshal(dAtA []byte) error

func (*AzureKms) XXX_DiscardUnknown

func (m *AzureKms) XXX_DiscardUnknown()

func (*AzureKms) XXX_Marshal

func (m *AzureKms) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AzureKms) XXX_Merge

func (m *AzureKms) XXX_Merge(src proto.Message)

func (*AzureKms) XXX_Size

func (m *AzureKms) XXX_Size() int

func (*AzureKms) XXX_Unmarshal

func (m *AzureKms) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*DataKey) GetCreationTime

func (m *DataKey) GetCreationTime() uint64

func (*DataKey) GetKey

func (m *DataKey) GetKey() []byte

func (*DataKey) GetMethod

func (m *DataKey) GetMethod() EncryptionMethod

func (*DataKey) GetWasExposed

func (m *DataKey) GetWasExposed() bool

func (*DataKey) Marshal

func (m *DataKey) Marshal() (dAtA []byte, err error)

func (*DataKey) MarshalTo

func (m *DataKey) MarshalTo(dAtA []byte) (int, error)

func (*DataKey) MarshalToSizedBuffer

func (m *DataKey) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DataKey) ProtoMessage

func (*DataKey) ProtoMessage()

func (*DataKey) Reset

func (m *DataKey) Reset()

func (*DataKey) Size

func (m *DataKey) Size() (n int)

func (*DataKey) String

func (m *DataKey) String() string

func (*DataKey) Unmarshal

func (m *DataKey) Unmarshal(dAtA []byte) error

func (*DataKey) XXX_DiscardUnknown

func (m *DataKey) XXX_DiscardUnknown()

func (*DataKey) XXX_Marshal

func (m *DataKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DataKey) XXX_Merge

func (m *DataKey) XXX_Merge(src proto.Message)

func (*DataKey) XXX_Size

func (m *DataKey) XXX_Size() int

func (*DataKey) XXX_Unmarshal

func (m *DataKey) XXX_Unmarshal(b []byte) error

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) MarshalTo

func (m *EncryptedContent) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *EncryptionMeta) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *FileDictionary) MarshalTo(dAtA []byte) (int, 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

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) Descriptor() ([]byte, []int)

func (*FileInfo) GetIv

func (m *FileInfo) GetIv() []byte

func (*FileInfo) GetKeyId

func (m *FileInfo) GetKeyId() uint64

func (*FileInfo) GetMethod

func (m *FileInfo) GetMethod() EncryptionMethod

func (*FileInfo) Marshal

func (m *FileInfo) Marshal() (dAtA []byte, err error)

func (*FileInfo) MarshalTo

func (m *FileInfo) MarshalTo(dAtA []byte) (int, error)

func (*FileInfo) MarshalToSizedBuffer

func (m *FileInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*FileInfo) ProtoMessage

func (*FileInfo) ProtoMessage()

func (*FileInfo) Reset

func (m *FileInfo) Reset()

func (*FileInfo) Size

func (m *FileInfo) Size() (n int)

func (*FileInfo) String

func (m *FileInfo) String() string

func (*FileInfo) Unmarshal

func (m *FileInfo) Unmarshal(dAtA []byte) error

func (*FileInfo) XXX_DiscardUnknown

func (m *FileInfo) XXX_DiscardUnknown()

func (*FileInfo) XXX_Marshal

func (m *FileInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FileInfo) XXX_Merge

func (m *FileInfo) XXX_Merge(src proto.Message)

func (*FileInfo) XXX_Size

func (m *FileInfo) XXX_Size() int

func (*FileInfo) XXX_Unmarshal

func (m *FileInfo) XXX_Unmarshal(b []byte) error

type GcpKms

type GcpKms struct {
	Credential string `protobuf:"bytes,1,opt,name=credential,proto3" json:"credential,omitempty"`
}

func (*GcpKms) Descriptor

func (*GcpKms) Descriptor() ([]byte, []int)

func (*GcpKms) GetCredential

func (m *GcpKms) GetCredential() string

func (*GcpKms) Marshal

func (m *GcpKms) Marshal() (dAtA []byte, err error)

func (*GcpKms) MarshalTo

func (m *GcpKms) MarshalTo(dAtA []byte) (int, error)

func (*GcpKms) MarshalToSizedBuffer

func (m *GcpKms) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GcpKms) ProtoMessage

func (*GcpKms) ProtoMessage()

func (*GcpKms) Reset

func (m *GcpKms) Reset()

func (*GcpKms) Size

func (m *GcpKms) Size() (n int)

func (*GcpKms) String

func (m *GcpKms) String() string

func (*GcpKms) Unmarshal

func (m *GcpKms) Unmarshal(dAtA []byte) error

func (*GcpKms) XXX_DiscardUnknown

func (m *GcpKms) XXX_DiscardUnknown()

func (*GcpKms) XXX_Marshal

func (m *GcpKms) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GcpKms) XXX_Merge

func (m *GcpKms) XXX_Merge(src proto.Message)

func (*GcpKms) XXX_Size

func (m *GcpKms) XXX_Size() int

func (*GcpKms) XXX_Unmarshal

func (m *GcpKms) XXX_Unmarshal(b []byte) error

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) MarshalTo

func (m *KeyDictionary) MarshalTo(dAtA []byte) (int, 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) Descriptor() ([]byte, []int)

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) Marshal

func (m *MasterKey) Marshal() (dAtA []byte, err error)

func (*MasterKey) MarshalTo

func (m *MasterKey) MarshalTo(dAtA []byte) (int, error)

func (*MasterKey) MarshalToSizedBuffer

func (m *MasterKey) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MasterKey) ProtoMessage

func (*MasterKey) ProtoMessage()

func (*MasterKey) Reset

func (m *MasterKey) Reset()

func (*MasterKey) Size

func (m *MasterKey) Size() (n int)

func (*MasterKey) String

func (m *MasterKey) String() string

func (*MasterKey) Unmarshal

func (m *MasterKey) Unmarshal(dAtA []byte) error

func (*MasterKey) XXX_DiscardUnknown

func (m *MasterKey) XXX_DiscardUnknown()

func (*MasterKey) XXX_Marshal

func (m *MasterKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MasterKey) XXX_Merge

func (m *MasterKey) XXX_Merge(src proto.Message)

func (*MasterKey) XXX_OneofWrappers

func (*MasterKey) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*MasterKey) XXX_Size

func (m *MasterKey) XXX_Size() int

func (*MasterKey) XXX_Unmarshal

func (m *MasterKey) XXX_Unmarshal(b []byte) error

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) MarshalTo

func (m *MasterKeyBased) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *MasterKeyFile) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *MasterKeyKms) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *MasterKey_File) MarshalTo(dAtA []byte) (int, error)

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) MarshalTo

func (m *MasterKey_Kms) MarshalTo(dAtA []byte) (int, error)

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) MarshalTo

func (m *PlainTextDataKey) MarshalTo(dAtA []byte) (int, 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL