Repository navigation
Generic Object Storage
A unified Go library for performing CRUD operations on cloud object storage services. Supports Google Cloud Storage (GCS) and Amazon S3 with a consistent interface.
Features
- Unified Interface: Single
IStorageBackendinterface works with both GCS and S3 - Full CRUD Operations: Get, Put, Delete, Copy, and List objects
- Context Support: All operations accept context for cancellation and timeouts
- Structured Errors: Consistent error handling with detailed error codes
- Prefix Support: Organize objects with path prefixes
- Testable: Interfaces designed for easy mocking in tests
Installation
go get github.com/piyushkumar96/generic-object-storage