Chapters
Concepts
- What transport does: The problem transport solves: one way to reach bytes on local disk, object stores, SFTP servers and HTTP endpoints.
- Transport in the Mountainash ecosystem: How transport fits with auth-client, settings, files and mountainash, and which package owns what.
Using the package
- 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.
- Paths and scheme dispatch: How a path's scheme chooses a backend, and the helpers for building and splitting storage paths.
- Storage profiles and credentials: Describing a store with a storage profile, supplying credentials separately, and loading named profiles.
- Opening storage with StorageFacade: Creating a StorageFacade, checking what a store supports, and opening and closing it.
- File operations: Reading, writing, streaming, listing, inspecting, deleting and copying files.
- Location policy: Limiting which local directories and remote hosts your code is allowed to reach.
- Read access modes: Choosing sequential, random or buffered reads, and who owns the streams you get back.
- Stream transforms and cross-backend copy: Compressing and encrypting streams on read, write and copy, including copies between different stores.
- Connections, SSH and tunnels: Using connections directly: HTTP, S3, SSH, SFTP and SSH bastion tunnels.
- The HTTP request engine: Making HTTP requests with retries, authentication and safe error messages.
Internals
- Architecture: protocols and dispatch: The protocols, registry and dispatch that sit behind the facade.
- Backends: What each backend supports, how it is built, and where backends behave differently.
- Maintaining and extending transport: The tests that protect the package's contracts and the steps for adding a backend.