Versions in this module Expand all Collapse all v1 v1.0.1 Sep 9, 2025 v1.0.0 Sep 8, 2025 Changes in this version + type AES256Encrypter struct + func NewAES256Encrypter(key string) *AES256Encrypter + func (e *AES256Encrypter) Decrypt(src []byte) ([]byte, error) + func (e *AES256Encrypter) Encrypt(src []byte) []byte + type EncryptedStorage struct + func NewEncryptedStorage(source certmagic.Storage, encrypter Encrypter) *EncryptedStorage + func (e *EncryptedStorage) Load(ctx context.Context, key string) ([]byte, error) + func (e *EncryptedStorage) Stat(ctx context.Context, key string) (certmagic.KeyInfo, error) + func (e *EncryptedStorage) Store(ctx context.Context, key string, value []byte) error + type Encrypter interface + Decrypt func([]byte) ([]byte, error) + Encrypt func([]byte) []byte + type Locker struct + func NewLocker(pool *pgxpool.Pool) *Locker + func (l *Locker) Lock(ctx context.Context, name string) error + func (l *Locker) TryLock(ctx context.Context, name string) (acquired bool, err error) + func (l *Locker) Unlock(ctx context.Context, name string) error + type Storage struct + func NewStorage(pool *pgxpool.Pool) *Storage + func (s *Storage) Delete(ctx context.Context, key string) error + func (s *Storage) Exists(ctx context.Context, key string) bool + func (s *Storage) List(ctx context.Context, path string, recursive bool) ([]string, error) + func (s *Storage) Load(ctx context.Context, key string) ([]byte, error) + func (s *Storage) Lock(ctx context.Context, name string) error + func (s *Storage) Migrate(ctx context.Context) error + func (s *Storage) Stat(ctx context.Context, key string) (certmagic.KeyInfo, error) + func (s *Storage) Store(ctx context.Context, key string, value []byte) error + func (s *Storage) Unlock(ctx context.Context, name string) error