Skip to content

Chapters

Concepts

  1. What transport does: The problem transport solves: one way to reach bytes on local disk, object stores, SFTP servers and HTTP endpoints.
  2. Transport in the Mountainash ecosystem: How transport fits with auth-client, settings, files and mountainash, and which package owns what.

Using the package

  1. Installation and the package surface: Installing the base package and the extras each backend needs, and the errors you will see when one is missing.
  2. Paths and scheme dispatch: How a path's scheme chooses a backend, and the helpers for building and splitting storage paths.
  3. Storage profiles and credentials: Describing a store with a storage profile, supplying credentials separately, and loading named profiles.
  4. Opening storage with StorageFacade: Creating a StorageFacade, checking what a store supports, and opening and closing it.
  5. File operations: Reading, writing, streaming, listing, inspecting, deleting and copying files.
  6. Location policy: Limiting which local directories and remote hosts your code is allowed to reach.
  7. Read access modes: Choosing sequential, random or buffered reads, and who owns the streams you get back.
  8. Stream transforms and cross-backend copy: Compressing and encrypting streams on read, write and copy, including copies between different stores.
  9. Connections, SSH and tunnels: Using connections directly: HTTP, S3, SSH, SFTP and SSH bastion tunnels.
  10. The HTTP request engine: Making HTTP requests with retries, authentication and safe error messages.

Internals

  1. Architecture: protocols and dispatch: The protocols, registry and dispatch that sit behind the facade.
  2. Backends: What each backend supports, how it is built, and where backends behave differently.
  3. Maintaining and extending transport: The tests that protect the package's contracts and the steps for adding a backend.