Versions in this module Expand all Collapse all v0 v0.1.0 Sep 2, 2026 Changes in this version + var ErrLockLost = errors.New("lock lease was lost") + var ErrLockNotHeld = errors.New("lock is not held by this storage instance") + var ErrStorageClosed = errors.New("storage is closed") + type PostgresStorage struct + AutoCreate *bool + ConnMaxLifetime caddy.Duration + DatabaseURL string + LockPollInterval caddy.Duration + LockTTL caddy.Duration + MaxIdleConns int + MaxOpenConns int + OperationTimeout caddy.Duration + Schema string + func (PostgresStorage) CaddyModule() caddy.ModuleInfo + func (p *PostgresStorage) CertMagicStorage() (certmagic.Storage, error) + func (p *PostgresStorage) Cleanup() error + func (p *PostgresStorage) Provision(ctx caddy.Context) error + func (p *PostgresStorage) UnmarshalCaddyfile(d *caddyfile.Dispenser) error + func (p *PostgresStorage) Validate() error + type Storage struct + 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, prefix 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) RenewLockLease(ctx context.Context, name string, leaseDuration time.Duration) 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) TryLock(ctx context.Context, name string) (bool, error) + func (s *Storage) Unlock(ctx context.Context, name string) error