r2store

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2026 License: MIT Imports: 11 Imported by: 0

README

togo

togo-framework/storage-r2

marketplace pkg.go.dev MIT

Part of the togo framework.

Install

togo install togo-framework/storage-r2

storage-r2

A Cloudflare R2 driver for togo storage. R2 is S3-compatible, so this uses the AWS S3 SDK pointed at your R2 endpoint. Implements togo.Storage and overrides the default filesystem storage when installed.

Install

togo install togo-framework/storage-r2

Configure (.env)

R2_ACCOUNT_ID=…
R2_ACCESS_KEY_ID=…
R2_SECRET_ACCESS_KEY=…
R2_BUCKET=my-bucket

If the R2 env isn't fully set the plugin no-ops and the default storage stays active.

MIT © togo-framework


Premium sponsors

ID8 Media  ·  One Studio

Support togo — become a sponsor.

Documentation

Overview

Package r2store is a Cloudflare R2 driver for togo storage. R2 is S3-compatible, so this uses the AWS S3 SDK pointed at the R2 endpoint. Implements togo.Storage and overrides the default filesystem storage when installed.

togo install togo-framework/storage-r2

Env: R2_ACCOUNT_ID, R2_ACCESS_KEY_ID, R2_SECRET_ACCESS_KEY, R2_BUCKET (all required).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL