Documentation
¶
Index ¶
- type CloudflareKVStorage
- func (CloudflareKVStorage) CaddyModule() caddy.ModuleInfo
- func (s *CloudflareKVStorage) CertMagicStorage() (certmagic.Storage, error)
- func (s *CloudflareKVStorage) Delete(ctx context.Context, key string) error
- func (s *CloudflareKVStorage) Exists(ctx context.Context, key string) bool
- func (s *CloudflareKVStorage) List(_ context.Context, path string, recursive bool) ([]string, error)
- func (s *CloudflareKVStorage) Load(_ context.Context, key string) ([]byte, error)
- func (s *CloudflareKVStorage) Lock(ctx context.Context, key string) error
- func (s *CloudflareKVStorage) Provision(ctx caddy.Context) error
- func (s *CloudflareKVStorage) Stat(ctx context.Context, key string) (certmagic.KeyInfo, error)
- func (s *CloudflareKVStorage) Store(_ context.Context, key string, value []byte) error
- func (s CloudflareKVStorage) String() string
- func (s *CloudflareKVStorage) Unlock(_ context.Context, key string) error
- func (s *CloudflareKVStorage) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
- type LoadValueResponse
- type Metadata
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudflareKVStorage ¶
type CloudflareKVStorage struct { Logger *zap.SugaredLogger `json:"-"` APIToken string `json:"api_token,omitempty"` // The Cloudflare API token AccountID string `json:"account_id,omitempty"` // Cloudflare Account ID NamespaceID string `json:"namespace_id,omitempty"` // KV Namespace ID // contains filtered or unexported fields }
CloudflareKVStorage implements a Caddy storage backend for Cloudflare KV
func (CloudflareKVStorage) CaddyModule ¶
func (CloudflareKVStorage) CaddyModule() caddy.ModuleInfo
func (*CloudflareKVStorage) CertMagicStorage ¶
func (s *CloudflareKVStorage) CertMagicStorage() (certmagic.Storage, error)
func (*CloudflareKVStorage) Delete ¶
func (s *CloudflareKVStorage) Delete(ctx context.Context, key string) error
func (*CloudflareKVStorage) Exists ¶
func (s *CloudflareKVStorage) Exists(ctx context.Context, key string) bool
func (*CloudflareKVStorage) Lock ¶
func (s *CloudflareKVStorage) Lock(ctx context.Context, key string) error
func (*CloudflareKVStorage) Provision ¶
func (s *CloudflareKVStorage) Provision(ctx caddy.Context) error
func (CloudflareKVStorage) String ¶
func (s CloudflareKVStorage) String() string
func (*CloudflareKVStorage) Unlock ¶
func (s *CloudflareKVStorage) Unlock(_ context.Context, key string) error
func (*CloudflareKVStorage) UnmarshalCaddyfile ¶
func (s *CloudflareKVStorage) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
type LoadValueResponse ¶
Click to show internal directories.
Click to hide internal directories.