secrets

package
v0.0.0-...-9dff3f7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileSpec

type FileSpec struct {
	Name string `json:"name,omitempty"`
	Path string `json:"path,omitempty"`
}

type Secrets

type Secrets struct {
	Files []FileSpec `json:"files,omitempty"`
	// contains filtered or unexported fields
}

func (Secrets) CaddyModule

func (Secrets) CaddyModule() caddy.ModuleInfo

func (*Secrets) Provision

func (s *Secrets) Provision(_ caddy.Context) error

Provision reads files and stores values in memory.

func (Secrets) ServeHTTP

func (s Secrets) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler) error

ServeHTTP seeds the replacer with secret values then calls next.

func (*Secrets) UnmarshalCaddyfile

func (s *Secrets) UnmarshalCaddyfile(d *caddyfile.Dispenser) error

UnmarshalCaddyfile parses the Caddyfile block.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL