Skip to main content

Crate hasp_backend_file

Crate hasp_backend_file 

Source
Expand description

file:// backend for hasp.

Grammar:

  • file:///absolute/path — absolute path (host empty or localhost)
  • file://./relative/path — relative to current working directory (host = .)
  • ?raw=true — disables the default newline trim (get only)

list supports glob patterns in the path component:

  • file:///etc/secrets/*.key
  • file:///etc/secrets/**/*.key

Query params for list:

  • ?hidden=1 — include dotfiles (default: exclude)
  • ?follow_symlinks=1 — follow symlinks during ** traversal (default: skip — prevents escaping the intended tree)

Supported operations: get, put, exists, delete, list.

Structs§

FileBackend
Stdlib-only backend that reads secrets from files.
FileUrl
URL shape for file:// addresses.