bucket

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: AGPL-3.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package bucket opens the object storage dbbat talks to.

There are exactly two drivers: s3:// (AWS S3 and anything that speaks its API: MinIO, Ceph, R2, Scaleway, Google Cloud Storage through its XML API) and file:// (a directory). No Google or Azure SDK is linked into the binary.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNoScheme is returned for a URL with no scheme.
	ErrNoScheme = errors.New("bucket URL has no scheme (expected e.g. s3://bucket/prefix)")

	// ErrUnsupportedScheme is returned for a scheme dbbat has no driver for.
	ErrUnsupportedScheme = errors.New("bucket URL scheme is not supported")
)

Errors returned by Normalize and Open.

Functions

func Normalize

func Normalize(raw string) (string, error)

Normalize validates the scheme of a bucket URL and turns the documented "s3://bucket/prefix" form into what gocloud.dev understands.

The s3 opener reads the bucket from the URL host and ignores the path, so the path is folded into the "prefix" query parameter. file:// and mem:// URLs are passed through untouched (their path is the location).

func Open

func Open(ctx context.Context, raw string) (*blob.Bucket, error)

Open opens the bucket behind a dbbat bucket URL.

Types

This section is empty.

Jump to

Keyboard shortcuts

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