storage

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package storage defines the platform file-storage contract.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage interface {
	// UploadURL returns a URL the client can PUT a file to directly.
	UploadURL(ctx context.Context, path string, expiry time.Duration) (string, error)
	// DownloadURL returns a URL the client can GET a file from directly.
	DownloadURL(ctx context.Context, path string, expiry time.Duration) (string, error)
	// Delete deletes file by path.
	Delete(ctx context.Context, path string) error
	// Move relocates a file from src to dst within the same backend.
	Move(ctx context.Context, src, dst string) error
}

Storage defines an interface for interacting with the file storage system.

Directories

Path Synopsis
Package s3 implements the storage contract with AWS S3 (or a compatible API such as LocalStack/MinIO).
Package s3 implements the storage contract with AWS S3 (or a compatible API such as LocalStack/MinIO).

Jump to

Keyboard shortcuts

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