github.com/code-to-go/safepool.lib@v0.0.0-20221205180519-ee25e63c226e/transport/DESIGN.md (about) 1 # Introduction 2 The transport folder contains the drivers to write and read from storage services, including _SFTP_ and _S3_. 3 4 # Key Principles 5 - Simple interface 6 - Optimized for cloud storage services (e.g. use of multi-uploader) 7 8 # Interfaces 9 10 interface Exchanger { 11 Read(name, dest) error 12 Write(name, source) error 13 Stat(name) stat 14 Delete(name) error 15 Close() 16 } 17 18 func NewStorer(config) Exchanger 19 20 21