Documentation
¶
Index ¶
- Constants
- type CaddyStorageValkey
- func (c *CaddyStorageValkey) Close() error
- func (c *CaddyStorageValkey) Delete(ctx context.Context, key string) error
- func (c *CaddyStorageValkey) Exists(ctx context.Context, key string) bool
- func (c *CaddyStorageValkey) List(ctx context.Context, prefix string, recursive bool) ([]string, error)
- func (c *CaddyStorageValkey) Load(ctx context.Context, key string) ([]byte, error)
- func (c *CaddyStorageValkey) Lock(ctx context.Context, key string) error
- func (c *CaddyStorageValkey) Stat(ctx context.Context, key string) (certmagic.KeyInfo, error)
- func (c *CaddyStorageValkey) Store(ctx context.Context, key string, value []byte) error
- func (c *CaddyStorageValkey) Unlock(ctx context.Context, key string) error
- type CaddyStorageValkeyOptions
- type StorageValkeyModule
- func (StorageValkeyModule) CaddyModule() caddy.ModuleInfo
- func (m *StorageValkeyModule) CertMagicStorage() (certmagic.Storage, error)
- func (m StorageValkeyModule) Cleanup() error
- func (m *StorageValkeyModule) Provision(ctx caddy.Context) error
- func (m *StorageValkeyModule) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
- func (m *StorageValkeyModule) Validate() error
Constants ¶
View Source
const ( LOCKER_PREFIX = "caddylock" ENTRY_KEY_VALUE = "value" ENTRY_KEY_LASTMODIFIED = "last_modified" ENTRY_KEY_SIZE = "size" TIMEFORMAT = time.RFC3339 // The default scan count is only ten. However, when having a lot of certificates // in the storage, iterating or listing the files can take quite a long time. // Increasing this allows for faster iteration. SCAN_COUNT = 50 )
View Source
const (
ID_MODULE_STATE = "caddy.storage.valkey"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CaddyStorageValkey ¶
type CaddyStorageValkey struct {
// contains filtered or unexported fields
}
func NewCaddyStorageValkey ¶
func NewCaddyStorageValkey(clientOptions valkey.ClientOption, options CaddyStorageValkeyOptions) (*CaddyStorageValkey, error)
func (*CaddyStorageValkey) Close ¶
func (c *CaddyStorageValkey) Close() error
func (*CaddyStorageValkey) Delete ¶
func (c *CaddyStorageValkey) Delete(ctx context.Context, key string) error
func (*CaddyStorageValkey) Exists ¶
func (c *CaddyStorageValkey) Exists(ctx context.Context, key string) bool
func (*CaddyStorageValkey) Lock ¶
func (c *CaddyStorageValkey) Lock(ctx context.Context, key string) error
type CaddyStorageValkeyOptions ¶
type CaddyStorageValkeyOptions struct {
LockMajority int
}
type StorageValkeyModule ¶
type StorageValkeyModule struct {
Url string `json:"url,omitempty"`
InitAddress []string `json:"address,omitempty"`
ReplicaAddress []string `json:"replica,omitempty"`
SelectDb int `json:"db,omitempty"`
ShuffleInit bool `json:"shuffle_init,omitempty"`
SentinelMasterSet string `json:"sentinel_master_set,omitempty"`
LockMajority int `json:"lock_majority,omitempty"`
DisableClientCache bool `json:"disable_client_cache,omitempty"`
SendToReplicas string `json:"send_to_replicas,omitempty"`
Username string `json:"username,omitempty"`
Password string `json:"password,omitempty"`
TlsInsecure bool `json:"tls_insecure,omitempty"`
TlsMinVersion string `json:"tls_min_version,omitempty"`
TlsCaCert string `json:"tls_ca_cert,omitempty"`
TlsClientCert string `json:"tls_client_cert,omitempty"`
TlsClientKey string `json:"tls_client_key,omitempty"`
// contains filtered or unexported fields
}
func (StorageValkeyModule) CaddyModule ¶
func (StorageValkeyModule) CaddyModule() caddy.ModuleInfo
func (*StorageValkeyModule) CertMagicStorage ¶
func (m *StorageValkeyModule) CertMagicStorage() (certmagic.Storage, error)
func (StorageValkeyModule) Cleanup ¶
func (m StorageValkeyModule) Cleanup() error
func (*StorageValkeyModule) Provision ¶
func (m *StorageValkeyModule) Provision(ctx caddy.Context) error
func (*StorageValkeyModule) UnmarshalCaddyfile ¶
func (m *StorageValkeyModule) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
func (*StorageValkeyModule) Validate ¶
func (m *StorageValkeyModule) Validate() error
Click to show internal directories.
Click to hide internal directories.