Versions in this module Expand all Collapse all v0 v0.0.2 Oct 13, 2022 Changes in this version type NomadStorage + func (ns NomadStorage) Lock(ctx context.Context, key string) error + func (ns NomadStorage) Unlock(ctx context.Context, key string) error v0.0.1 Oct 13, 2022 Changes in this version + const DefaultPrefix + const DefaultTimeout + const DefaultValuePrefix + const EnvNamePrefix + const EnvValuePrefix + func NomaWriteDefaults(ctx context.Context) *nomad.WriteOptions + func NomadQueryDefaults(ctx context.Context) *nomad.QueryOptions + type NomadStorage struct + Address string + NomadClient *nomad.Client + Prefix string + Timeout int + TlsEnabled bool + TlsInsecure bool + Token string + ValuePrefix string + func New() *NomadStorage + func (NomadStorage) CaddyModule() caddy.ModuleInfo + func (ns *NomadStorage) CertMagicStorage() (certmagic.Storage, error) + func (ns *NomadStorage) Provision(ctx caddy.Context) error + func (ns *NomadStorage) UnmarshalCaddyfile(d *caddyfile.Dispenser) error + func (ns NomadStorage) Delete(ctx context.Context, key string) error + func (ns NomadStorage) Exists(ctx context.Context, key string) bool + func (ns NomadStorage) List(ctx context.Context, prefix string, recursive bool) ([]string, error) + func (ns NomadStorage) Load(ctx context.Context, key string) ([]byte, error) + func (ns NomadStorage) Stat(ctx context.Context, key string) (certmagic.KeyInfo, error) + func (ns NomadStorage) Store(ctx context.Context, key string, value []byte) error + type StorageData struct + Modified time.Time + Value []byte