mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-18 12:20:24 +00:00
590 lines
22 KiB
Go
590 lines
22 KiB
Go
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||
|
// source: metadata/metadata.proto
|
||
|
|
||
|
package metadata
|
||
|
|
||
|
import proto "github.com/golang/protobuf/proto"
|
||
|
import fmt "fmt"
|
||
|
import math "math"
|
||
|
|
||
|
// Reference imports to suppress errors if they are not otherwise used.
|
||
|
var _ = proto.Marshal
|
||
|
var _ = fmt.Errorf
|
||
|
var _ = math.Inf
|
||
|
|
||
|
// This is a compile-time assertion to ensure that this generated file
|
||
|
// is compatible with the proto package it is being compiled against.
|
||
|
// A compilation error at this line likely means your copy of the
|
||
|
// proto package needs to be updated.
|
||
|
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||
|
|
||
|
// Specifies the method in which an outside secret is obtained for a Protector
|
||
|
type SourceType int32
|
||
|
|
||
|
const (
|
||
|
SourceType_default SourceType = 0
|
||
|
SourceType_pam_passphrase SourceType = 1
|
||
|
SourceType_custom_passphrase SourceType = 2
|
||
|
SourceType_raw_key SourceType = 3
|
||
|
)
|
||
|
|
||
|
var SourceType_name = map[int32]string{
|
||
|
0: "default",
|
||
|
1: "pam_passphrase",
|
||
|
2: "custom_passphrase",
|
||
|
3: "raw_key",
|
||
|
}
|
||
|
var SourceType_value = map[string]int32{
|
||
|
"default": 0,
|
||
|
"pam_passphrase": 1,
|
||
|
"custom_passphrase": 2,
|
||
|
"raw_key": 3,
|
||
|
}
|
||
|
|
||
|
func (x SourceType) String() string {
|
||
|
return proto.EnumName(SourceType_name, int32(x))
|
||
|
}
|
||
|
func (SourceType) EnumDescriptor() ([]byte, []int) {
|
||
|
return fileDescriptor_metadata_31965d2849cb292a, []int{0}
|
||
|
}
|
||
|
|
||
|
// Type of encryption; should match declarations of unix.FSCRYPT_MODE
|
||
|
type EncryptionOptions_Mode int32
|
||
|
|
||
|
const (
|
||
|
EncryptionOptions_default EncryptionOptions_Mode = 0
|
||
|
EncryptionOptions_AES_256_XTS EncryptionOptions_Mode = 1
|
||
|
EncryptionOptions_AES_256_GCM EncryptionOptions_Mode = 2
|
||
|
EncryptionOptions_AES_256_CBC EncryptionOptions_Mode = 3
|
||
|
EncryptionOptions_AES_256_CTS EncryptionOptions_Mode = 4
|
||
|
EncryptionOptions_AES_128_CBC EncryptionOptions_Mode = 5
|
||
|
EncryptionOptions_AES_128_CTS EncryptionOptions_Mode = 6
|
||
|
EncryptionOptions_Adiantum EncryptionOptions_Mode = 9
|
||
|
)
|
||
|
|
||
|
var EncryptionOptions_Mode_name = map[int32]string{
|
||
|
0: "default",
|
||
|
1: "AES_256_XTS",
|
||
|
2: "AES_256_GCM",
|
||
|
3: "AES_256_CBC",
|
||
|
4: "AES_256_CTS",
|
||
|
5: "AES_128_CBC",
|
||
|
6: "AES_128_CTS",
|
||
|
9: "Adiantum",
|
||
|
}
|
||
|
var EncryptionOptions_Mode_value = map[string]int32{
|
||
|
"default": 0,
|
||
|
"AES_256_XTS": 1,
|
||
|
"AES_256_GCM": 2,
|
||
|
"AES_256_CBC": 3,
|
||
|
"AES_256_CTS": 4,
|
||
|
"AES_128_CBC": 5,
|
||
|
"AES_128_CTS": 6,
|
||
|
"Adiantum": 9,
|
||
|
}
|
||
|
|
||
|
func (x EncryptionOptions_Mode) String() string {
|
||
|
return proto.EnumName(EncryptionOptions_Mode_name, int32(x))
|
||
|
}
|
||
|
func (EncryptionOptions_Mode) EnumDescriptor() ([]byte, []int) {
|
||
|
return fileDescriptor_metadata_31965d2849cb292a, []int{3, 0}
|
||
|
}
|
||
|
|
||
|
// Cost parameters to be used in our hashing functions.
|
||
|
type HashingCosts struct {
|
||
|
Time int64 `protobuf:"varint,2,opt,name=time,proto3" json:"time,omitempty"`
|
||
|
Memory int64 `protobuf:"varint,3,opt,name=memory,proto3" json:"memory,omitempty"`
|
||
|
Parallelism int64 `protobuf:"varint,4,opt,name=parallelism,proto3" json:"parallelism,omitempty"`
|
||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||
|
XXX_unrecognized []byte `json:"-"`
|
||
|
XXX_sizecache int32 `json:"-"`
|
||
|
}
|
||
|
|
||
|
func (m *HashingCosts) Reset() { *m = HashingCosts{} }
|
||
|
func (m *HashingCosts) String() string { return proto.CompactTextString(m) }
|
||
|
func (*HashingCosts) ProtoMessage() {}
|
||
|
func (*HashingCosts) Descriptor() ([]byte, []int) {
|
||
|
return fileDescriptor_metadata_31965d2849cb292a, []int{0}
|
||
|
}
|
||
|
func (m *HashingCosts) XXX_Unmarshal(b []byte) error {
|
||
|
return xxx_messageInfo_HashingCosts.Unmarshal(m, b)
|
||
|
}
|
||
|
func (m *HashingCosts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
|
return xxx_messageInfo_HashingCosts.Marshal(b, m, deterministic)
|
||
|
}
|
||
|
func (dst *HashingCosts) XXX_Merge(src proto.Message) {
|
||
|
xxx_messageInfo_HashingCosts.Merge(dst, src)
|
||
|
}
|
||
|
func (m *HashingCosts) XXX_Size() int {
|
||
|
return xxx_messageInfo_HashingCosts.Size(m)
|
||
|
}
|
||
|
func (m *HashingCosts) XXX_DiscardUnknown() {
|
||
|
xxx_messageInfo_HashingCosts.DiscardUnknown(m)
|
||
|
}
|
||
|
|
||
|
var xxx_messageInfo_HashingCosts proto.InternalMessageInfo
|
||
|
|
||
|
func (m *HashingCosts) GetTime() int64 {
|
||
|
if m != nil {
|
||
|
return m.Time
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (m *HashingCosts) GetMemory() int64 {
|
||
|
if m != nil {
|
||
|
return m.Memory
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (m *HashingCosts) GetParallelism() int64 {
|
||
|
if m != nil {
|
||
|
return m.Parallelism
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
// This structure is used for our authenticated wrapping/unwrapping of keys.
|
||
|
type WrappedKeyData struct {
|
||
|
IV []byte `protobuf:"bytes,1,opt,name=IV,proto3" json:"IV,omitempty"`
|
||
|
EncryptedKey []byte `protobuf:"bytes,2,opt,name=encrypted_key,json=encryptedKey,proto3" json:"encrypted_key,omitempty"`
|
||
|
Hmac []byte `protobuf:"bytes,3,opt,name=hmac,proto3" json:"hmac,omitempty"`
|
||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||
|
XXX_unrecognized []byte `json:"-"`
|
||
|
XXX_sizecache int32 `json:"-"`
|
||
|
}
|
||
|
|
||
|
func (m *WrappedKeyData) Reset() { *m = WrappedKeyData{} }
|
||
|
func (m *WrappedKeyData) String() string { return proto.CompactTextString(m) }
|
||
|
func (*WrappedKeyData) ProtoMessage() {}
|
||
|
func (*WrappedKeyData) Descriptor() ([]byte, []int) {
|
||
|
return fileDescriptor_metadata_31965d2849cb292a, []int{1}
|
||
|
}
|
||
|
func (m *WrappedKeyData) XXX_Unmarshal(b []byte) error {
|
||
|
return xxx_messageInfo_WrappedKeyData.Unmarshal(m, b)
|
||
|
}
|
||
|
func (m *WrappedKeyData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
|
return xxx_messageInfo_WrappedKeyData.Marshal(b, m, deterministic)
|
||
|
}
|
||
|
func (dst *WrappedKeyData) XXX_Merge(src proto.Message) {
|
||
|
xxx_messageInfo_WrappedKeyData.Merge(dst, src)
|
||
|
}
|
||
|
func (m *WrappedKeyData) XXX_Size() int {
|
||
|
return xxx_messageInfo_WrappedKeyData.Size(m)
|
||
|
}
|
||
|
func (m *WrappedKeyData) XXX_DiscardUnknown() {
|
||
|
xxx_messageInfo_WrappedKeyData.DiscardUnknown(m)
|
||
|
}
|
||
|
|
||
|
var xxx_messageInfo_WrappedKeyData proto.InternalMessageInfo
|
||
|
|
||
|
func (m *WrappedKeyData) GetIV() []byte {
|
||
|
if m != nil {
|
||
|
return m.IV
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (m *WrappedKeyData) GetEncryptedKey() []byte {
|
||
|
if m != nil {
|
||
|
return m.EncryptedKey
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (m *WrappedKeyData) GetHmac() []byte {
|
||
|
if m != nil {
|
||
|
return m.Hmac
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// The associated data for each protector
|
||
|
type ProtectorData struct {
|
||
|
ProtectorDescriptor string `protobuf:"bytes,1,opt,name=protector_descriptor,json=protectorDescriptor,proto3" json:"protector_descriptor,omitempty"`
|
||
|
Source SourceType `protobuf:"varint,2,opt,name=source,proto3,enum=metadata.SourceType" json:"source,omitempty"`
|
||
|
// These are only used by some of the protector types
|
||
|
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
|
||
|
Costs *HashingCosts `protobuf:"bytes,4,opt,name=costs,proto3" json:"costs,omitempty"`
|
||
|
Salt []byte `protobuf:"bytes,5,opt,name=salt,proto3" json:"salt,omitempty"`
|
||
|
Uid int64 `protobuf:"varint,6,opt,name=uid,proto3" json:"uid,omitempty"`
|
||
|
WrappedKey *WrappedKeyData `protobuf:"bytes,7,opt,name=wrapped_key,json=wrappedKey,proto3" json:"wrapped_key,omitempty"`
|
||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||
|
XXX_unrecognized []byte `json:"-"`
|
||
|
XXX_sizecache int32 `json:"-"`
|
||
|
}
|
||
|
|
||
|
func (m *ProtectorData) Reset() { *m = ProtectorData{} }
|
||
|
func (m *ProtectorData) String() string { return proto.CompactTextString(m) }
|
||
|
func (*ProtectorData) ProtoMessage() {}
|
||
|
func (*ProtectorData) Descriptor() ([]byte, []int) {
|
||
|
return fileDescriptor_metadata_31965d2849cb292a, []int{2}
|
||
|
}
|
||
|
func (m *ProtectorData) XXX_Unmarshal(b []byte) error {
|
||
|
return xxx_messageInfo_ProtectorData.Unmarshal(m, b)
|
||
|
}
|
||
|
func (m *ProtectorData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
|
return xxx_messageInfo_ProtectorData.Marshal(b, m, deterministic)
|
||
|
}
|
||
|
func (dst *ProtectorData) XXX_Merge(src proto.Message) {
|
||
|
xxx_messageInfo_ProtectorData.Merge(dst, src)
|
||
|
}
|
||
|
func (m *ProtectorData) XXX_Size() int {
|
||
|
return xxx_messageInfo_ProtectorData.Size(m)
|
||
|
}
|
||
|
func (m *ProtectorData) XXX_DiscardUnknown() {
|
||
|
xxx_messageInfo_ProtectorData.DiscardUnknown(m)
|
||
|
}
|
||
|
|
||
|
var xxx_messageInfo_ProtectorData proto.InternalMessageInfo
|
||
|
|
||
|
func (m *ProtectorData) GetProtectorDescriptor() string {
|
||
|
if m != nil {
|
||
|
return m.ProtectorDescriptor
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (m *ProtectorData) GetSource() SourceType {
|
||
|
if m != nil {
|
||
|
return m.Source
|
||
|
}
|
||
|
return SourceType_default
|
||
|
}
|
||
|
|
||
|
func (m *ProtectorData) GetName() string {
|
||
|
if m != nil {
|
||
|
return m.Name
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (m *ProtectorData) GetCosts() *HashingCosts {
|
||
|
if m != nil {
|
||
|
return m.Costs
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (m *ProtectorData) GetSalt() []byte {
|
||
|
if m != nil {
|
||
|
return m.Salt
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (m *ProtectorData) GetUid() int64 {
|
||
|
if m != nil {
|
||
|
return m.Uid
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (m *ProtectorData) GetWrappedKey() *WrappedKeyData {
|
||
|
if m != nil {
|
||
|
return m.WrappedKey
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// Encryption policy specifics, corresponds to the fscrypt_policy struct
|
||
|
type EncryptionOptions struct {
|
||
|
Padding int64 `protobuf:"varint,1,opt,name=padding,proto3" json:"padding,omitempty"`
|
||
|
Contents EncryptionOptions_Mode `protobuf:"varint,2,opt,name=contents,proto3,enum=metadata.EncryptionOptions_Mode" json:"contents,omitempty"`
|
||
|
Filenames EncryptionOptions_Mode `protobuf:"varint,3,opt,name=filenames,proto3,enum=metadata.EncryptionOptions_Mode" json:"filenames,omitempty"`
|
||
|
PolicyVersion int64 `protobuf:"varint,4,opt,name=policy_version,json=policyVersion,proto3" json:"policy_version,omitempty"`
|
||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||
|
XXX_unrecognized []byte `json:"-"`
|
||
|
XXX_sizecache int32 `json:"-"`
|
||
|
}
|
||
|
|
||
|
func (m *EncryptionOptions) Reset() { *m = EncryptionOptions{} }
|
||
|
func (m *EncryptionOptions) String() string { return proto.CompactTextString(m) }
|
||
|
func (*EncryptionOptions) ProtoMessage() {}
|
||
|
func (*EncryptionOptions) Descriptor() ([]byte, []int) {
|
||
|
return fileDescriptor_metadata_31965d2849cb292a, []int{3}
|
||
|
}
|
||
|
func (m *EncryptionOptions) XXX_Unmarshal(b []byte) error {
|
||
|
return xxx_messageInfo_EncryptionOptions.Unmarshal(m, b)
|
||
|
}
|
||
|
func (m *EncryptionOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
|
return xxx_messageInfo_EncryptionOptions.Marshal(b, m, deterministic)
|
||
|
}
|
||
|
func (dst *EncryptionOptions) XXX_Merge(src proto.Message) {
|
||
|
xxx_messageInfo_EncryptionOptions.Merge(dst, src)
|
||
|
}
|
||
|
func (m *EncryptionOptions) XXX_Size() int {
|
||
|
return xxx_messageInfo_EncryptionOptions.Size(m)
|
||
|
}
|
||
|
func (m *EncryptionOptions) XXX_DiscardUnknown() {
|
||
|
xxx_messageInfo_EncryptionOptions.DiscardUnknown(m)
|
||
|
}
|
||
|
|
||
|
var xxx_messageInfo_EncryptionOptions proto.InternalMessageInfo
|
||
|
|
||
|
func (m *EncryptionOptions) GetPadding() int64 {
|
||
|
if m != nil {
|
||
|
return m.Padding
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (m *EncryptionOptions) GetContents() EncryptionOptions_Mode {
|
||
|
if m != nil {
|
||
|
return m.Contents
|
||
|
}
|
||
|
return EncryptionOptions_default
|
||
|
}
|
||
|
|
||
|
func (m *EncryptionOptions) GetFilenames() EncryptionOptions_Mode {
|
||
|
if m != nil {
|
||
|
return m.Filenames
|
||
|
}
|
||
|
return EncryptionOptions_default
|
||
|
}
|
||
|
|
||
|
func (m *EncryptionOptions) GetPolicyVersion() int64 {
|
||
|
if m != nil {
|
||
|
return m.PolicyVersion
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
type WrappedPolicyKey struct {
|
||
|
ProtectorDescriptor string `protobuf:"bytes,1,opt,name=protector_descriptor,json=protectorDescriptor,proto3" json:"protector_descriptor,omitempty"`
|
||
|
WrappedKey *WrappedKeyData `protobuf:"bytes,2,opt,name=wrapped_key,json=wrappedKey,proto3" json:"wrapped_key,omitempty"`
|
||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||
|
XXX_unrecognized []byte `json:"-"`
|
||
|
XXX_sizecache int32 `json:"-"`
|
||
|
}
|
||
|
|
||
|
func (m *WrappedPolicyKey) Reset() { *m = WrappedPolicyKey{} }
|
||
|
func (m *WrappedPolicyKey) String() string { return proto.CompactTextString(m) }
|
||
|
func (*WrappedPolicyKey) ProtoMessage() {}
|
||
|
func (*WrappedPolicyKey) Descriptor() ([]byte, []int) {
|
||
|
return fileDescriptor_metadata_31965d2849cb292a, []int{4}
|
||
|
}
|
||
|
func (m *WrappedPolicyKey) XXX_Unmarshal(b []byte) error {
|
||
|
return xxx_messageInfo_WrappedPolicyKey.Unmarshal(m, b)
|
||
|
}
|
||
|
func (m *WrappedPolicyKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
|
return xxx_messageInfo_WrappedPolicyKey.Marshal(b, m, deterministic)
|
||
|
}
|
||
|
func (dst *WrappedPolicyKey) XXX_Merge(src proto.Message) {
|
||
|
xxx_messageInfo_WrappedPolicyKey.Merge(dst, src)
|
||
|
}
|
||
|
func (m *WrappedPolicyKey) XXX_Size() int {
|
||
|
return xxx_messageInfo_WrappedPolicyKey.Size(m)
|
||
|
}
|
||
|
func (m *WrappedPolicyKey) XXX_DiscardUnknown() {
|
||
|
xxx_messageInfo_WrappedPolicyKey.DiscardUnknown(m)
|
||
|
}
|
||
|
|
||
|
var xxx_messageInfo_WrappedPolicyKey proto.InternalMessageInfo
|
||
|
|
||
|
func (m *WrappedPolicyKey) GetProtectorDescriptor() string {
|
||
|
if m != nil {
|
||
|
return m.ProtectorDescriptor
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (m *WrappedPolicyKey) GetWrappedKey() *WrappedKeyData {
|
||
|
if m != nil {
|
||
|
return m.WrappedKey
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// The associated data for each policy
|
||
|
type PolicyData struct {
|
||
|
KeyDescriptor string `protobuf:"bytes,1,opt,name=key_descriptor,json=keyDescriptor,proto3" json:"key_descriptor,omitempty"`
|
||
|
Options *EncryptionOptions `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"`
|
||
|
WrappedPolicyKeys []*WrappedPolicyKey `protobuf:"bytes,3,rep,name=wrapped_policy_keys,json=wrappedPolicyKeys,proto3" json:"wrapped_policy_keys,omitempty"`
|
||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||
|
XXX_unrecognized []byte `json:"-"`
|
||
|
XXX_sizecache int32 `json:"-"`
|
||
|
}
|
||
|
|
||
|
func (m *PolicyData) Reset() { *m = PolicyData{} }
|
||
|
func (m *PolicyData) String() string { return proto.CompactTextString(m) }
|
||
|
func (*PolicyData) ProtoMessage() {}
|
||
|
func (*PolicyData) Descriptor() ([]byte, []int) {
|
||
|
return fileDescriptor_metadata_31965d2849cb292a, []int{5}
|
||
|
}
|
||
|
func (m *PolicyData) XXX_Unmarshal(b []byte) error {
|
||
|
return xxx_messageInfo_PolicyData.Unmarshal(m, b)
|
||
|
}
|
||
|
func (m *PolicyData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
|
return xxx_messageInfo_PolicyData.Marshal(b, m, deterministic)
|
||
|
}
|
||
|
func (dst *PolicyData) XXX_Merge(src proto.Message) {
|
||
|
xxx_messageInfo_PolicyData.Merge(dst, src)
|
||
|
}
|
||
|
func (m *PolicyData) XXX_Size() int {
|
||
|
return xxx_messageInfo_PolicyData.Size(m)
|
||
|
}
|
||
|
func (m *PolicyData) XXX_DiscardUnknown() {
|
||
|
xxx_messageInfo_PolicyData.DiscardUnknown(m)
|
||
|
}
|
||
|
|
||
|
var xxx_messageInfo_PolicyData proto.InternalMessageInfo
|
||
|
|
||
|
func (m *PolicyData) GetKeyDescriptor() string {
|
||
|
if m != nil {
|
||
|
return m.KeyDescriptor
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (m *PolicyData) GetOptions() *EncryptionOptions {
|
||
|
if m != nil {
|
||
|
return m.Options
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (m *PolicyData) GetWrappedPolicyKeys() []*WrappedPolicyKey {
|
||
|
if m != nil {
|
||
|
return m.WrappedPolicyKeys
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// Data stored in the config file
|
||
|
type Config struct {
|
||
|
Source SourceType `protobuf:"varint,1,opt,name=source,proto3,enum=metadata.SourceType" json:"source,omitempty"`
|
||
|
HashCosts *HashingCosts `protobuf:"bytes,2,opt,name=hash_costs,json=hashCosts,proto3" json:"hash_costs,omitempty"`
|
||
|
Options *EncryptionOptions `protobuf:"bytes,4,opt,name=options,proto3" json:"options,omitempty"`
|
||
|
UseFsKeyringForV1Policies bool `protobuf:"varint,5,opt,name=use_fs_keyring_for_v1_policies,json=useFsKeyringForV1Policies,proto3" json:"use_fs_keyring_for_v1_policies,omitempty"`
|
||
|
AllowCrossUserMetadata bool `protobuf:"varint,6,opt,name=allow_cross_user_metadata,json=allowCrossUserMetadata,proto3" json:"allow_cross_user_metadata,omitempty"`
|
||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||
|
XXX_unrecognized []byte `json:"-"`
|
||
|
XXX_sizecache int32 `json:"-"`
|
||
|
}
|
||
|
|
||
|
func (m *Config) Reset() { *m = Config{} }
|
||
|
func (m *Config) String() string { return proto.CompactTextString(m) }
|
||
|
func (*Config) ProtoMessage() {}
|
||
|
func (*Config) Descriptor() ([]byte, []int) {
|
||
|
return fileDescriptor_metadata_31965d2849cb292a, []int{6}
|
||
|
}
|
||
|
func (m *Config) XXX_Unmarshal(b []byte) error {
|
||
|
return xxx_messageInfo_Config.Unmarshal(m, b)
|
||
|
}
|
||
|
func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
|
return xxx_messageInfo_Config.Marshal(b, m, deterministic)
|
||
|
}
|
||
|
func (dst *Config) XXX_Merge(src proto.Message) {
|
||
|
xxx_messageInfo_Config.Merge(dst, src)
|
||
|
}
|
||
|
func (m *Config) XXX_Size() int {
|
||
|
return xxx_messageInfo_Config.Size(m)
|
||
|
}
|
||
|
func (m *Config) XXX_DiscardUnknown() {
|
||
|
xxx_messageInfo_Config.DiscardUnknown(m)
|
||
|
}
|
||
|
|
||
|
var xxx_messageInfo_Config proto.InternalMessageInfo
|
||
|
|
||
|
func (m *Config) GetSource() SourceType {
|
||
|
if m != nil {
|
||
|
return m.Source
|
||
|
}
|
||
|
return SourceType_default
|
||
|
}
|
||
|
|
||
|
func (m *Config) GetHashCosts() *HashingCosts {
|
||
|
if m != nil {
|
||
|
return m.HashCosts
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (m *Config) GetOptions() *EncryptionOptions {
|
||
|
if m != nil {
|
||
|
return m.Options
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (m *Config) GetUseFsKeyringForV1Policies() bool {
|
||
|
if m != nil {
|
||
|
return m.UseFsKeyringForV1Policies
|
||
|
}
|
||
|
return false
|
||
|
}
|
||
|
|
||
|
func (m *Config) GetAllowCrossUserMetadata() bool {
|
||
|
if m != nil {
|
||
|
return m.AllowCrossUserMetadata
|
||
|
}
|
||
|
return false
|
||
|
}
|
||
|
|
||
|
func init() {
|
||
|
proto.RegisterType((*HashingCosts)(nil), "metadata.HashingCosts")
|
||
|
proto.RegisterType((*WrappedKeyData)(nil), "metadata.WrappedKeyData")
|
||
|
proto.RegisterType((*ProtectorData)(nil), "metadata.ProtectorData")
|
||
|
proto.RegisterType((*EncryptionOptions)(nil), "metadata.EncryptionOptions")
|
||
|
proto.RegisterType((*WrappedPolicyKey)(nil), "metadata.WrappedPolicyKey")
|
||
|
proto.RegisterType((*PolicyData)(nil), "metadata.PolicyData")
|
||
|
proto.RegisterType((*Config)(nil), "metadata.Config")
|
||
|
proto.RegisterEnum("metadata.SourceType", SourceType_name, SourceType_value)
|
||
|
proto.RegisterEnum("metadata.EncryptionOptions_Mode", EncryptionOptions_Mode_name, EncryptionOptions_Mode_value)
|
||
|
}
|
||
|
|
||
|
func init() { proto.RegisterFile("metadata/metadata.proto", fileDescriptor_metadata_31965d2849cb292a) }
|
||
|
|
||
|
var fileDescriptor_metadata_31965d2849cb292a = []byte{
|
||
|
// 748 bytes of a gzipped FileDescriptorProto
|
||
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x55, 0xdb, 0x6a, 0xf3, 0x46,
|
||
|
0x10, 0xae, 0x24, 0xc7, 0x87, 0xf1, 0xa1, 0xca, 0xfe, 0x69, 0xaa, 0xb4, 0x50, 0x8c, 0x4b, 0x20,
|
||
|
0x94, 0x90, 0x62, 0x97, 0x94, 0x06, 0x4a, 0x21, 0x75, 0x92, 0x36, 0x09, 0xa1, 0xe9, 0xda, 0x75,
|
||
|
0x5b, 0x28, 0x88, 0x8d, 0xb4, 0xb6, 0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