objstore

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: MIT Imports: 2 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 objstore is the object store seam of the store service. One Store is one bucket. Implementations: Google Cloud Storage (internal/objstore/gcs) and a filesystem directory (internal/objstore/fs).

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("objstore: object not found")

Functions

This section is empty.

Types

type Store

type Store interface {
	// Create writes data when key is absent and reports whether it wrote. A
	// stored object is never replaced or deleted.
	Create(ctx context.Context, key string, data []byte) (created bool, err error)
	Get(ctx context.Context, key string) ([]byte, error)
	// GetRange returns up to n bytes from off, fewer at the end of the object.
	GetRange(ctx context.Context, key string, off, n int64) ([]byte, error)
}

Directories

Path Synopsis
Package fs backs the objstore seam with a directory.
Package fs backs the objstore seam with a directory.
Package gcs backs the objstore seam with Google Cloud Storage.
Package gcs backs the objstore seam with Google Cloud Storage.

Jump to

Keyboard shortcuts

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