Documentation
¶
Index ¶
- type VaultStorage
- func (vs *VaultStorage) CaddyModule() caddy.ModuleInfo
- func (vs *VaultStorage) CertMagicStorage() (certmagic.Storage, error)
- func (vs *VaultStorage) Delete(ctx context.Context, key string) error
- func (vs *VaultStorage) Exists(ctx context.Context, key string) bool
- func (vs *VaultStorage) List(ctx context.Context, prefix string, recursive bool) ([]string, error)
- func (vs *VaultStorage) Load(ctx context.Context, key string) ([]byte, error)
- func (vs *VaultStorage) Lock(c context.Context, key string) error
- func (vs *VaultStorage) Provision(ctx caddy.Context) error
- func (vs *VaultStorage) Stat(ctx context.Context, key string) (certmagic.KeyInfo, error)
- func (vs *VaultStorage) Store(ctx context.Context, key string, value []byte) error
- func (vs *VaultStorage) Unlock(ctx context.Context, key string) error
- func (vs *VaultStorage) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VaultStorage ¶
type VaultStorage struct { // API is the vault server address, including scheme, host and port. If it is empty, module looks up for VAULT_ADDR env variable. API string // Prefix is the vault server store path. A secret engine **v2** must be created at this path. Defaults to 'caddycerts'. Prefix string // Token should generally be passed via the VAULT_TOKEN env variable, but can be set manually here. Token string }
VaultStorage is a certmagic.Storage implementation for storing for ACME certificates inside an Hashicorp Vault server.
func (*VaultStorage) CaddyModule ¶
func (vs *VaultStorage) CaddyModule() caddy.ModuleInfo
func (*VaultStorage) CertMagicStorage ¶
func (vs *VaultStorage) CertMagicStorage() (certmagic.Storage, error)
CertMagicStorage converts vs to a certmagic.Storage instance.
func (*VaultStorage) Delete ¶
func (vs *VaultStorage) Delete(ctx context.Context, key string) error
Delete deletes the certificate from vault.
func (*VaultStorage) Exists ¶
func (vs *VaultStorage) Exists(ctx context.Context, key string) bool
Exists returns existance of certificate with key
func (*VaultStorage) Lock ¶
func (vs *VaultStorage) Lock(c context.Context, key string) error
Lock locks operations on certificate with particular key
func (*VaultStorage) Provision ¶
func (vs *VaultStorage) Provision(ctx caddy.Context) error
func (*VaultStorage) Unlock ¶
func (vs *VaultStorage) Unlock(ctx context.Context, key string) error
Unlock unlocks operations on certificate data
func (*VaultStorage) UnmarshalCaddyfile ¶
func (vs *VaultStorage) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
Click to show internal directories.
Click to hide internal directories.