Versions in this module Expand all Collapse all v0 v0.5.0 Oct 14, 2026 Changes in this version + func NewS3ClientFromEnv(ctx context.Context) (*s3.Client, error) + func ObjectSize(r io.Reader) (int64, bool) + func UsesS3() bool type ObjectStorage + func NewFromEnv(ctx context.Context) (ObjectStorage, error) + type ServiceError struct + Code string + HTTPStatus int + Message string + func DescribeServiceError(err error) (ServiceError, bool) + type SizedReader interface + ObjectSize func() int64 v0.4.0 Oct 7, 2026 Changes in this version + var ErrObjectNotFound = errors.New("object not found in storage backend") + func FetchFileFromGCSWithZstd(ctx context.Context, client ObjectStorage, gsURL string, localFile *os.File) error + func FetchFromGCS(ctx context.Context, client ObjectStorage, gsURL string) ([]byte, error) + func FetchLocalFileFromGCSWithZstd(ctx context.Context, client ObjectStorage, gsURL string, localFilePath string) (err error) + func Open(ctx context.Context, client ObjectStorage, gsURL string) (io.ReadCloser, error) + func SendBytesToGCS(ctx context.Context, client ObjectStorage, gsURL string, content []byte) error + func SendFileToGCSWithZstd(ctx context.Context, client ObjectStorage, gsURL string, localFile *os.File) error + func SendLocalFileToGCSWithZstd(ctx context.Context, client ObjectStorage, gsURL string, localFilePath string) (err error) + type ObjectStorage interface + GetObject func(ctx context.Context, bucket, object string) (io.ReadCloser, error) + PutObject func(ctx context.Context, bucket, object string, reader io.Reader) error + func NewGCSClient(ctx context.Context, opts ...option.ClientOption) (ObjectStorage, error) + func NewS3Client(client *s3.Client) ObjectStorage