Documentation
¶
Index ¶
- type Storage
- func (s *Storage) Delete(key string) error
- func (s *Storage) Exists(key string) bool
- func (s *Storage) List(prefix string, recursive bool) ([]string, error)
- func (s *Storage) Load(key string) ([]byte, error)
- func (s *Storage) Lock(ctx context.Context, key string) error
- func (s *Storage) Stat(key string) (certmagic.KeyInfo, error)
- func (s *Storage) Store(key string, value []byte) error
- func (s *Storage) Unlock(key string) error
- type StorageOption
- Bugs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage implements certmagic.Storage using Ceph's RADOS object store.
func NewStorage ¶
func NewStorage(ioctx *rados.IOContext, oid string, opts ...StorageOption) *Storage
type StorageOption ¶
type StorageOption func(*Storage)
A StorageOption may be passed to NewStorage to customize the Storage's behaviour.
func WithLockTimeout ¶
func WithLockTimeout(d time.Duration) StorageOption
WithLockTimeout sets up RADOS locks to expire after d has passed.
func WithLogger ¶
func WithLogger(l *zap.Logger) StorageOption
Notes ¶
Bugs ¶
grow backoff duration with number of retries!
Click to show internal directories.
Click to hide internal directories.