Documentation ¶
Index ¶
- Constants
- Variables
- type EmbeddedTaggable
- func (*EmbeddedTaggable) Descriptor() ([]byte, []int)deprecated
- func (x *EmbeddedTaggable) GetEPublicString() string
- func (x *EmbeddedTaggable) GetESecretString() string
- func (x *EmbeddedTaggable) GetETaggableAttributes() *structpb.Struct
- func (*EmbeddedTaggable) ProtoMessage()
- func (x *EmbeddedTaggable) ProtoReflect() protoreflect.Message
- func (x *EmbeddedTaggable) Reset()
- func (x *EmbeddedTaggable) String() string
- type WithTaggable
- func (*WithTaggable) Descriptor() ([]byte, []int)deprecated
- func (x *WithTaggable) GetCreateTime() *timestamppb.Timestamp
- func (x *WithTaggable) GetEmbeddedTaggable() *EmbeddedTaggable
- func (x *WithTaggable) GetNontaggableAttributes() *structpb.Struct
- func (x *WithTaggable) GetPublicBytes() []byte
- func (x *WithTaggable) GetPublicBytesValue() *wrapperspb.BytesValue
- func (x *WithTaggable) GetPublicString() string
- func (x *WithTaggable) GetPublicStringValue() *wrapperspb.StringValue
- func (x *WithTaggable) GetSecretBytes() []byte
- func (x *WithTaggable) GetSecretBytesValue() *wrapperspb.BytesValue
- func (x *WithTaggable) GetSecretString() string
- func (x *WithTaggable) GetSecretStringValue() *wrapperspb.StringValue
- func (x *WithTaggable) GetSensitiveBytes() []byte
- func (x *WithTaggable) GetSensitiveBytesValue() *wrapperspb.BytesValue
- func (x *WithTaggable) GetSensitiveString() string
- func (x *WithTaggable) GetSensitiveStringValue() *wrapperspb.StringValue
- func (x *WithTaggable) GetTaggableAttributes() *structpb.Struct
- func (x *WithTaggable) GetUnclassifiedBytes() []byte
- func (x *WithTaggable) GetUnclassifiedBytesValue() *wrapperspb.BytesValue
- func (x *WithTaggable) GetUnclassifiedString() string
- func (x *WithTaggable) GetUnclassifiedStringValue() *wrapperspb.StringValue
- func (x *WithTaggable) GetUnsetStringValue() *wrapperspb.StringValue
- func (*WithTaggable) ProtoMessage()
- func (x *WithTaggable) ProtoReflect() protoreflect.Message
- func (x *WithTaggable) Reset()
- func (x *WithTaggable) String() string
- func (pp *WithTaggable) Tags() ([]encrypt.PointerTag, error)
Constants ¶
View Source
const ( TaggedStringField = "tagged_string_field" UntaggedStringField = "not_tagged_string" TaggedBytesField = "tagged_bytes_field" IntField = "int_field" )
Variables ¶
View Source
var File_proto_payload_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type EmbeddedTaggable ¶
type EmbeddedTaggable struct { // @inject_tag: `class:"public"` EPublicString string `protobuf:"bytes,10,opt,name=e_public_string,json=ePublicString,proto3" json:"e_public_string,omitempty" class:"public"` // @inject_tag: `class:"secret"` ESecretString string `protobuf:"bytes,30,opt,name=e_secret_string,json=eSecretString,proto3" json:"e_secret_string,omitempty" class:"secret"` ETaggableAttributes *structpb.Struct `protobuf:"bytes,180,opt,name=e_taggable_attributes,json=eTaggableAttributes,proto3" json:"e_taggable_attributes,omitempty"` // contains filtered or unexported fields }
func (*EmbeddedTaggable) Descriptor
deprecated
func (*EmbeddedTaggable) Descriptor() ([]byte, []int)
Deprecated: Use EmbeddedTaggable.ProtoReflect.Descriptor instead.
func (*EmbeddedTaggable) GetEPublicString ¶
func (x *EmbeddedTaggable) GetEPublicString() string
func (*EmbeddedTaggable) GetESecretString ¶
func (x *EmbeddedTaggable) GetESecretString() string
func (*EmbeddedTaggable) GetETaggableAttributes ¶
func (x *EmbeddedTaggable) GetETaggableAttributes() *structpb.Struct
func (*EmbeddedTaggable) ProtoMessage ¶
func (*EmbeddedTaggable) ProtoMessage()
func (*EmbeddedTaggable) ProtoReflect ¶
func (x *EmbeddedTaggable) ProtoReflect() protoreflect.Message
func (*EmbeddedTaggable) Reset ¶
func (x *EmbeddedTaggable) Reset()
func (*EmbeddedTaggable) String ¶
func (x *EmbeddedTaggable) String() string
type WithTaggable ¶
type WithTaggable struct { // @inject_tag: `class:"public"` PublicString string `protobuf:"bytes,10,opt,name=public_string,json=publicString,proto3" json:"public_string,omitempty" class:"public"` // @inject_tag: `class:"sensitive"` SensitiveString string `protobuf:"bytes,20,opt,name=sensitive_string,json=sensitiveString,proto3" json:"sensitive_string,omitempty" class:"sensitive"` // @inject_tag: `class:"secret"` SecretString string `protobuf:"bytes,30,opt,name=secret_string,json=secretString,proto3" json:"secret_string,omitempty" class:"secret"` // intentionally unclassified UnclassifiedString string `protobuf:"bytes,40,opt,name=unclassified_string,json=unclassifiedString,proto3" json:"unclassified_string,omitempty"` // @inject_tag: `class:"public"` PublicBytes []byte `protobuf:"bytes,50,opt,name=public_bytes,json=publicBytes,proto3" json:"public_bytes,omitempty" class:"public"` // @inject_tag: `class:"sensitive"` SensitiveBytes []byte `protobuf:"bytes,60,opt,name=sensitive_bytes,json=sensitiveBytes,proto3" json:"sensitive_bytes,omitempty" class:"sensitive"` // @inject_tag: `class:"secret"` SecretBytes []byte `protobuf:"bytes,70,opt,name=secret_bytes,json=secretBytes,proto3" json:"secret_bytes,omitempty" class:"secret"` // intentionally unclassified UnclassifiedBytes []byte `protobuf:"bytes,80,opt,name=unclassified_bytes,json=unclassifiedBytes,proto3" json:"unclassified_bytes,omitempty"` // @inject_tag: `class:"public"` PublicStringValue *wrapperspb.StringValue `` /* 130-byte string literal not displayed */ // @inject_tag: `class:"sensitive"` SensitiveStringValue *wrapperspb.StringValue `` /* 143-byte string literal not displayed */ // @inject_tag: `class:"secret"` SecretStringValue *wrapperspb.StringValue `` /* 131-byte string literal not displayed */ // intentionally unclassified UnclassifiedStringValue *wrapperspb.StringValue `` /* 134-byte string literal not displayed */ // @inject_tag: `class:"public"` PublicBytesValue *wrapperspb.BytesValue `` /* 128-byte string literal not displayed */ // @inject_tag: `class:"sensitive"` SensitiveBytesValue *wrapperspb.BytesValue `` /* 140-byte string literal not displayed */ // @inject_tag: `class:"secret"` SecretBytesValue *wrapperspb.BytesValue `` /* 128-byte string literal not displayed */ // intentionally unclassified UnclassifiedBytesValue *wrapperspb.BytesValue `` /* 131-byte string literal not displayed */ // will always be unset and unclassified UnsetStringValue *wrapperspb.StringValue `protobuf:"bytes,170,opt,name=unset_string_value,json=unsetStringValue,proto3" json:"unset_string_value,omitempty"` // attributes will need to be redacted via Taggable TaggableAttributes *structpb.Struct `protobuf:"bytes,180,opt,name=taggable_attributes,json=taggableAttributes,proto3" json:"taggable_attributes,omitempty"` NontaggableAttributes *structpb.Struct `` /* 126-byte string literal not displayed */ EmbeddedTaggable *EmbeddedTaggable `protobuf:"bytes,200,opt,name=embedded_taggable,json=embeddedTaggable,proto3" json:"embedded_taggable,omitempty"` CreateTime *timestamppb.Timestamp `protobuf:"bytes,210,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // contains filtered or unexported fields }
func (*WithTaggable) Descriptor
deprecated
func (*WithTaggable) Descriptor() ([]byte, []int)
Deprecated: Use WithTaggable.ProtoReflect.Descriptor instead.
func (*WithTaggable) GetCreateTime ¶
func (x *WithTaggable) GetCreateTime() *timestamppb.Timestamp
func (*WithTaggable) GetEmbeddedTaggable ¶
func (x *WithTaggable) GetEmbeddedTaggable() *EmbeddedTaggable
func (*WithTaggable) GetNontaggableAttributes ¶
func (x *WithTaggable) GetNontaggableAttributes() *structpb.Struct
func (*WithTaggable) GetPublicBytes ¶
func (x *WithTaggable) GetPublicBytes() []byte
func (*WithTaggable) GetPublicBytesValue ¶
func (x *WithTaggable) GetPublicBytesValue() *wrapperspb.BytesValue
func (*WithTaggable) GetPublicString ¶
func (x *WithTaggable) GetPublicString() string
func (*WithTaggable) GetPublicStringValue ¶
func (x *WithTaggable) GetPublicStringValue() *wrapperspb.StringValue
func (*WithTaggable) GetSecretBytes ¶
func (x *WithTaggable) GetSecretBytes() []byte
func (*WithTaggable) GetSecretBytesValue ¶
func (x *WithTaggable) GetSecretBytesValue() *wrapperspb.BytesValue
func (*WithTaggable) GetSecretString ¶
func (x *WithTaggable) GetSecretString() string
func (*WithTaggable) GetSecretStringValue ¶
func (x *WithTaggable) GetSecretStringValue() *wrapperspb.StringValue
func (*WithTaggable) GetSensitiveBytes ¶
func (x *WithTaggable) GetSensitiveBytes() []byte
func (*WithTaggable) GetSensitiveBytesValue ¶
func (x *WithTaggable) GetSensitiveBytesValue() *wrapperspb.BytesValue
func (*WithTaggable) GetSensitiveString ¶
func (x *WithTaggable) GetSensitiveString() string
func (*WithTaggable) GetSensitiveStringValue ¶
func (x *WithTaggable) GetSensitiveStringValue() *wrapperspb.StringValue
func (*WithTaggable) GetTaggableAttributes ¶
func (x *WithTaggable) GetTaggableAttributes() *structpb.Struct
func (*WithTaggable) GetUnclassifiedBytes ¶
func (x *WithTaggable) GetUnclassifiedBytes() []byte
func (*WithTaggable) GetUnclassifiedBytesValue ¶
func (x *WithTaggable) GetUnclassifiedBytesValue() *wrapperspb.BytesValue
func (*WithTaggable) GetUnclassifiedString ¶
func (x *WithTaggable) GetUnclassifiedString() string
func (*WithTaggable) GetUnclassifiedStringValue ¶
func (x *WithTaggable) GetUnclassifiedStringValue() *wrapperspb.StringValue
func (*WithTaggable) GetUnsetStringValue ¶
func (x *WithTaggable) GetUnsetStringValue() *wrapperspb.StringValue
func (*WithTaggable) ProtoMessage ¶
func (*WithTaggable) ProtoMessage()
func (*WithTaggable) ProtoReflect ¶
func (x *WithTaggable) ProtoReflect() protoreflect.Message
func (*WithTaggable) Reset ¶
func (x *WithTaggable) Reset()
func (*WithTaggable) String ¶
func (x *WithTaggable) String() string
func (*WithTaggable) Tags ¶
func (pp *WithTaggable) Tags() ([]encrypt.PointerTag, error)
Tags satisfy the encrypt.Taggable interface and return the "tagged" fields/attributes within both the TaggableAttributes and EmbeddedTaggableAttributes fields. This is used only for testing purposes.
Click to show internal directories.
Click to hide internal directories.