Versions in this module Expand all Collapse all v1 v1.0.2 Dec 7, 2022 v1.0.1 Dec 7, 2022 Changes in this version + const DefaultAESKey + const DefaultPrefix + const DefaultTimeout + const DefaultValuePrefix + const EnvNameAESKey + const EnvNamePrefix + const EnvValuePrefix + func ConsulQueryDefaults(ctx context.Context) *consul.QueryOptions + type ConsulStorage struct + AESKey []byte + Address string + ConsulClient *consul.Client + Prefix string + Timeout int + TlsEnabled bool + TlsInsecure bool + Token string + ValuePrefix string + func New() *ConsulStorage + func (ConsulStorage) CaddyModule() caddy.ModuleInfo + func (cs *ConsulStorage) CertMagicStorage() (certmagic.Storage, error) + func (cs *ConsulStorage) DecryptStorageData(bytes []byte) (*StorageData, error) + func (cs *ConsulStorage) EncryptStorageData(data *StorageData) ([]byte, error) + func (cs *ConsulStorage) GetLock(key string) (*consul.Lock, bool) + func (cs *ConsulStorage) Lock(ctx context.Context, key string) error + func (cs *ConsulStorage) Provision(ctx caddy.Context) error + func (cs *ConsulStorage) Unlock(_ context.Context, key string) error + func (cs *ConsulStorage) UnmarshalCaddyfile(d *caddyfile.Dispenser) error + func (cs ConsulStorage) Delete(ctx context.Context, key string) error + func (cs ConsulStorage) Exists(ctx context.Context, key string) bool + func (cs ConsulStorage) List(ctx context.Context, prefix string, recursive bool) ([]string, error) + func (cs ConsulStorage) Load(ctx context.Context, key string) ([]byte, error) + func (cs ConsulStorage) Stat(ctx context.Context, key string) (certmagic.KeyInfo, error) + func (cs ConsulStorage) Store(ctx context.Context, key string, value []byte) error + type StorageData struct + Modified time.Time + Value []byte