Documentation ¶
Index ¶
- type AsyncSubKey
- type DataEncryptor
- type Encrypted
- type EncryptedAsyncColumn
- type EncryptedColumn
- type EncryptedIdentityColumn
- type EncryptedTimelineColumn
- type IdentityKeySubKey
- type KeyStoreProvider
- type OptionalEncryptedAsyncColumn
- type OptionalEncryptedTimelineColumn
- type SubKey
- type TimelineSubKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AsyncSubKey ¶
type AsyncSubKey struct{}
AsyncSubKey is a type that represents the subkey for async.
func (AsyncSubKey) SubKey ¶
func (AsyncSubKey) SubKey() string
type DataEncryptor ¶
type EncryptedAsyncColumn ¶
type EncryptedAsyncColumn = EncryptedColumn[AsyncSubKey]
type EncryptedColumn ¶
type EncryptedColumn[SK SubKey] struct { // contains filtered or unexported fields }
EncryptedColumn is a type that represents an encrypted column.
It can be used by sqlc to map to/from a bytea column in the database.
func (*EncryptedColumn[SK]) Bytes ¶
func (e *EncryptedColumn[SK]) Bytes() []byte
func (*EncryptedColumn[SK]) GoString ¶
func (e *EncryptedColumn[SK]) GoString() string
func (*EncryptedColumn[SK]) Scan ¶
func (e *EncryptedColumn[SK]) Scan(src interface{}) error
func (*EncryptedColumn[SK]) Set ¶
func (e *EncryptedColumn[SK]) Set(b []byte)
func (*EncryptedColumn[SK]) SubKey ¶
func (e *EncryptedColumn[SK]) SubKey() string
type EncryptedIdentityColumn ¶ added in v0.370.0
type EncryptedIdentityColumn = EncryptedColumn[IdentityKeySubKey]
type EncryptedTimelineColumn ¶
type EncryptedTimelineColumn = EncryptedColumn[TimelineSubKey]
type IdentityKeySubKey ¶ added in v0.370.0
type IdentityKeySubKey struct{}
IdentityKeySubKey is a type that represents the subkey for identity keys.
func (IdentityKeySubKey) SubKey ¶ added in v0.370.0
func (IdentityKeySubKey) SubKey() string
type KeyStoreProvider ¶
type KeyStoreProvider interface { // EnsureKey asks a provider to check for an encrypted key. // If not available, call the generateKey function to create a new key. // The provider should handle transactions around checking and setting the key, to prevent race conditions. EnsureKey(ctx context.Context, generateKey func() ([]byte, error)) ([]byte, error) }
type OptionalEncryptedAsyncColumn ¶
type OptionalEncryptedAsyncColumn = optional.Option[EncryptedAsyncColumn]
type OptionalEncryptedTimelineColumn ¶
type OptionalEncryptedTimelineColumn = optional.Option[EncryptedTimelineColumn]
type SubKey ¶
type SubKey interface{ SubKey() string }
SubKey is an interface for types that specify their own encryption subkey.
type TimelineSubKey ¶
type TimelineSubKey struct{}
TimelineSubKey is a type that represents the subkey for logs.
func (TimelineSubKey) SubKey ¶
func (TimelineSubKey) SubKey() string
Click to show internal directories.
Click to hide internal directories.