objectstore

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2026 License: Apache-2.0 Imports: 11 Imported by: ? 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.

README

object-storage

object-storage is a Go library of backend-neutral object storage contracts with exact semantics — atomic conditional writes, exact byte ranges, verified SHA-256 digests, explicit multipart uploads — and implementations for memory, local filesystems, S3-compatible services, Google Cloud Storage, Azure Blob Storage, SFTP servers and read-only HTTP(S) origins. On top of the contract it provides content-addressed storage, immutable pack files, parallel multipart uploads, fenced leases and lifecycle artifact handoff. It is for Go services and tools that keep data or coordination state in object storage and want the same behaviour, and the same tests, on every backend.

Features

  • One Store / MultipartStore contract with identical semantics on seven backends; optional BatchStater, BatchDeleter, Copier and Presigner capabilities discovered by type assertion.
  • IfAbsent and IfMatchVersion: atomic create-only writes and compare-and-swap on every read/write backend, across processes for the filesystem store.
  • Declared digests and sizes verified before publication; digests reported without downloading objects (Object.SHA256Known).
  • Streaming writes with bounded memory; exact half-open ranged reads.
  • Content-addressed storage with fenced duplicate suppression (cas), packs with one ranged read per blob (pack), bounded-parallel multipart uploads (multipart), fenced leases (lease) and lifecycle artifact envelopes (handoff) on any store.
  • A public conformance suite (storetest) and in-process GCS, Azure Blob and SFTP servers (gcstest, azuretest, sftptest) for hermetic tests.
  • Provider SDKs isolated in nested modules: the root module depends only on the standard library and four small sibling libraries.

Installation

go get github.com/justusschock/object-storage@latest

Each remote backend is a nested module, so you add only the SDK you use:

go get github.com/justusschock/object-storage/backend/s3@latest    # AWS SDK v2, S3-compatible stores
go get github.com/justusschock/object-storage/backend/gcs@latest   # Google Cloud Storage
go get github.com/justusschock/object-storage/backend/azure@latest # Azure Blob Storage
go get github.com/justusschock/object-storage/backend/sftp@latest  # SFTP over SSH
go get github.com/justusschock/object-storage/backend/http@latest  # read-only HTTP(S)

Requires Go 1.25 or newer (the tests use testing/synctest).

Quick start

This program (the package's Example) uses the in-memory reference backend: it writes an immutable object with a create-only condition and a declared digest, then reads an exact range. The same calls work on every backend.

package main

import (
	"bytes"
	"context"
	"crypto/sha256"
	"fmt"
	"io"

	objectstore "github.com/justusschock/object-storage"
	"github.com/justusschock/object-storage/backend/memory"
)

func main() {
	ctx := context.Background()
	store := memory.New()
	data := []byte("hello object storage")
	digest := sha256.Sum256(data)

	object, err := store.Put(ctx, "assets", "greeting.txt", bytes.NewReader(data), objectstore.PutOptions{
		IfAbsent: true,
		SHA256:   &digest,
		Metadata: map[string]string{"content": "example"},
	})
	if err != nil {
		panic(err)
	}

	body, metadata, err := store.Get(ctx, object.Bucket, object.Key, objectstore.GetOptions{
		Range: &objectstore.ByteRange{Offset: 6, Length: 6},
	})
	if err != nil {
		panic(err)
	}
	defer func() { _ = body.Close() }()

	rangeBytes, err := io.ReadAll(body)
	if err != nil {
		panic(err)
	}
	fmt.Printf("%s (%d-byte object)\n", rangeBytes, metadata.Size)
}

Output:

object (20-byte object)

Remote backends take caller-owned clients, so credentials, endpoints, transports and retries stay under your control:

import (
	"cloud.google.com/go/storage"
	"github.com/Azure/azure-sdk-for-go/sdk/storage/azblob"
	pkgsftp "github.com/pkg/sftp"

	objectstore "github.com/justusschock/object-storage"
	azureadapter "github.com/justusschock/object-storage/backend/azure"
	gcsadapter "github.com/justusschock/object-storage/backend/gcs"
	httpstore "github.com/justusschock/object-storage/backend/http"
	sftpadapter "github.com/justusschock/object-storage/backend/sftp"
)

func newStores(gcsClient *storage.Client, azureClient *azblob.Client, sftpClient *pkgsftp.Client, token string) ([]objectstore.Store, error) {
	gcsStore, err := gcsadapter.New(gcsClient, gcsadapter.Options{}) // Bucket = GCS bucket
	if err != nil {
		return nil, err
	}
	azureStore, err := azureadapter.New(azureClient, azureadapter.Options{}) // Bucket = existing container
	if err != nil {
		return nil, err
	}
	sftpStore, err := sftpadapter.New(sftpClient, "/srv/objects", sftpadapter.Options{}) // Bucket = directory below root
	if err != nil {
		return nil, err
	}
	httpStore, err := httpstore.New("https://cdn.example.com/remote", httpstore.Options{BearerToken: token}) // read-only
	if err != nil {
		return nil, err
	}
	return []objectstore.Store{gcsStore, azureStore, sftpStore, httpStore}, nil
}

The S3 adapter is constructed the same way with s3adapter.NewWithOptions(client, s3adapter.Options{}) from an *s3.Client of the AWS SDK v2. Each backend's example_test.go has a complete program.

Packages

Package Module Purpose
objectstore (root) root Contract: Store, MultipartStore, optional capabilities, value types, sentinel errors, progress helpers
backend/memory root Race-safe in-memory reference store
backend/fs root Filesystem store, safe across goroutines and processes
storetest root Conformance suite for Store implementations
cas root SHA-256 content-addressed storage with fenced duplicate suppression
pack root Deterministic immutable pack and index files, one ranged read per blob
multipart root Bounded-parallel multipart uploads from an io.ReaderAt
lease root Fenced distributed-coordination leases stored as objects
handoff root lifecycle artifact envelopes stored as objects
backend/s3 backend/s3 AWS SDK v2 adapter for S3-compatible stores
backend/gcs, backend/gcs/gcstest backend/gcs Google Cloud Storage adapter; in-process GCS server
backend/azure, backend/azure/azuretest backend/azure Azure Blob Storage adapter; in-process Blob service
backend/sftp, backend/sftp/sftptest backend/sftp SFTP adapter; in-process SSH/SFTP server
backend/http backend/http Read-only HTTP(S) store

Packages under internal/ are not part of the API.

Backend capabilities
Backend Constructor CAS (IfAbsent, IfMatchVersion) Multipart Copy Presign Batch delete
memory memory.New() yes yes yes no yes
fs fs.New(directory) yes (OS file lock) yes yes (hard link) no yes
s3 s3adapter.NewWithOptions yes (If-None-Match/If-Match) yes (native) yes (CopyObject/UploadPartCopy) yes (SigV4) yes (DeleteObjects)
gcs gcs.New yes (generation preconditions) yes (compose) yes (rewrite) yes (V4 signed URLs) yes (parallel)
azure azure.New yes (ETag conditions) yes (staged blocks) yes (Copy Blob) yes (service SAS) yes (parallel)
sftp sftp.New yes (lock file; see below) yes (assembled remotely) yes (hard link or stream) no yes
http http.New no (read-only) no no no no

Every backend supports exact ranged reads and implements BatchStater.

Design and guarantees

  • Immutable versions and compare-and-swap. Put publishes a new version atomically. IfAbsent and IfMatchVersion are evaluated with publication; ErrPrecondition means another writer won. Versions identify contents (S3 entity tags repeat for identical bytes), so encode a changing value such as a counter in CAS-managed objects.
  • Integrity. PutOptions.SHA256 and a positive PutOptions.Size are checked before an object becomes visible. Object.SHA256Known is false when a digest is not available cheaply (objects written by other tools, listings without ListOptions.IncludeMetadata, multipart uploads without a declared digest); backends never download an object to compute one. cas, pack and handoff verify the bytes they stream.
  • Ranges. ByteRange is half-open, [Offset, Offset+Length); stores return exactly those bytes or ErrInvalidRange.
  • Errors. Failures are classified by ErrNotFound, ErrPrecondition, ErrInvalidBucket, ErrInvalidKey, ErrInvalidRange and ErrInvalidPart; test them with errors.Is. Each error has one class; provider detail is in the message. Context errors are returned unchanged.
  • Concurrency and cancellation. Every store and layer is safe for concurrent use. Every operation takes a context.Context and honours it; Get bodies are bound to it. The library never logs.
  • Ownership. Returned objects, options and pages own their mutable fields; Clone methods copy them.
  • Filesystem and SFTP. Writes stream into a staging file and publish by renaming a metadata file that names an immutable data file, so readers never see partial objects. The filesystem store makes conditions atomic across processes with flock / LockFileEx. The SFTP store uses a heartbeated lock file created with O_EXCL and broken as stale after sftp.Options.StaleLockAge; its conditions are exact among goroutines sharing one store and across processes when the server implements exclusive create atomically.
  • Leases. lease.New(store, bucket, prefix, lease.Options{}) grants fenced leases with strictly increasing tokens. Expiry uses the participants' clocks, which must agree to well within one TTL; protected resources must still check fencing tokens. The backend passes the distributed-coordination conformance.Run suite.
  • Stability. The module is v0.x: a minor release may change the API. Every change is listed in CHANGELOG.md and backed by an ADR.
Testing your own backend
func TestConformance(t *testing.T) {
	storetest.Run(t, func(t *testing.T) objectstore.MultipartStore {
		return newEmptyStore(t) // must accept the buckets "objects" and "objects-copy"
	})
}

gcstest.NewServer, azuretest.NewServer and sftptest.NewServer give downstream tests real SDK clients against in-process servers, without Docker or cloud accounts. The S3 module's tests use gofakes3; an opt-in conformance run against a real endpoint is behind -tags=integration and reads S3_ENDPOINT, S3_REGION and S3_BUCKET (credentials come from the default AWS provider chain).

Documentation

  • API reference: pkg.go.dev/github.com/justusschock/object-storage and the nested modules under backend/.
  • Requirements and design decisions: docs/ — the PRD and the ADRs on the store contract, module layout, dependencies, errors, concurrency, persistence formats, conformance testing, API boundary, Go versions and testing.

Contributing

Changes go through pull requests with green CI; see AGENTS.md for the rules (docs first, ADRs for API and format changes, synctest, the pre-PR checks for every module) and the release procedure for the nested modules.

License

Apache License 2.0. See LICENSE and NOTICE.

Documentation

Overview

Package objectstore defines backend-neutral object storage contracts.

A Store keeps immutable object versions addressed by Bucket and Key: Put publishes a new version atomically, Get and Stat read the current one, Delete removes it and List pages through a bucket in key order. MultipartStore adds explicit multipart uploads. Optional capabilities (BatchStater, BatchDeleter, Copier, Presigner) are discovered with type assertions.

PutOptions.IfAbsent and PutOptions.IfMatchVersion are evaluated atomically with publication and form the portable compare-and-swap primitive. A declared SHA-256 digest and size are verified before an object becomes visible. Failures are classified by the sentinel errors ErrNotFound, ErrPrecondition, ErrInvalidBucket, ErrInvalidKey, ErrInvalidRange and ErrInvalidPart; test them with errors.Is. Context cancellation is returned as the context's error.

Implementations live in backend/memory and backend/fs (this module) and in the nested modules backend/s3, backend/gcs, backend/azure, backend/sftp and backend/http. Every implementation is safe for concurrent use, and every read/write implementation passes the conformance suite in package storetest. The packages cas, pack, multipart, lease and handoff build on any Store.

Example

Example writes an immutable object with a create-only condition and a declared digest, then reads an exact byte range. It is the README's quick start; keep the two in sync.

package main

import (
	"bytes"
	"context"
	"crypto/sha256"
	"fmt"
	"io"

	objectstore "github.com/justusschock/object-storage"
	"github.com/justusschock/object-storage/backend/memory"
)

func main() {
	ctx := context.Background()
	store := memory.New()
	data := []byte("hello object storage")
	digest := sha256.Sum256(data)

	object, err := store.Put(ctx, "assets", "greeting.txt", bytes.NewReader(data), objectstore.PutOptions{
		IfAbsent: true,
		SHA256:   &digest,
		Metadata: map[string]string{"content": "example"},
	})
	if err != nil {
		panic(err)
	}

	body, metadata, err := store.Get(ctx, object.Bucket, object.Key, objectstore.GetOptions{
		Range: &objectstore.ByteRange{Offset: 6, Length: 6},
	})
	if err != nil {
		panic(err)
	}
	defer func() { _ = body.Close() }()

	rangeBytes, err := io.ReadAll(body)
	if err != nil {
		panic(err)
	}
	fmt.Printf("%s (%d-byte object)\n", rangeBytes, metadata.Size)
}
Output:
object (20-byte object)

Index

Examples

Constants

This section is empty.

Variables

View Source
var (
	// ErrNotFound identifies an absent object or multipart upload.
	ErrNotFound = errors.New("object storage: not found")
	// ErrPrecondition identifies a failed conditional operation.
	ErrPrecondition = errors.New("object storage: precondition failed")
	// ErrInvalidBucket identifies a malformed bucket.
	ErrInvalidBucket = errors.New("object storage: invalid bucket")
	// ErrInvalidKey identifies a malformed object key.
	ErrInvalidKey = errors.New("object storage: invalid key")
	// ErrInvalidRange identifies an invalid byte range.
	ErrInvalidRange = errors.New("object storage: invalid byte range")
	// ErrInvalidPart identifies invalid multipart input or ordering.
	ErrInvalidPart = errors.New("object storage: invalid multipart part")
)

Functions

func ValidateBucket

func ValidateBucket(bucket Bucket) error

ValidateBucket checks the portable bucket invariants.

func ValidateKey

func ValidateKey(key Key) error

ValidateKey checks the portable key invariants.

func WithProgress

func WithProgress(reader io.Reader, total int64, progress ProgressFunc) io.Reader

WithProgress wraps reader so that every successful Read reports cumulative progress. Wrap a Put body to observe uploads (pass PutOptions.Size, because the wrapper hides the reader's own length) or a Get body to observe downloads. A nil progress function returns reader unchanged.

func WithProgressReadCloser

func WithProgressReadCloser(body io.ReadCloser, total int64, progress ProgressFunc) io.ReadCloser

WithProgressReadCloser is WithProgress for bodies that must be closed, such as the reader returned by Store.Get.

Types

type BatchDeleter

type BatchDeleter interface {
	// DeleteMany unconditionally deletes keys and returns exactly one error
	// per key, in input order. Deleting an absent key succeeds, because batch
	// deletion is idempotent on every supported backend. The error return is
	// reserved for whole-call failures such as cancellation or an invalid
	// bucket.
	DeleteMany(context.Context, Bucket, []Key) ([]error, error)
}

BatchDeleter removes many objects with backend-native batching.

type BatchStater

type BatchStater interface {
	// StatMany returns exactly one result per key, in input order. Per-key
	// failures such as ErrNotFound are reported in StatResult.Err; the error
	// return is reserved for whole-call failures such as cancellation or an
	// invalid bucket. Successful results carry the fields Stat returns.
	StatMany(context.Context, Bucket, []Key) ([]StatResult, error)
}

BatchStater returns metadata for many keys with backend-native batching or bounded parallelism.

type Bucket

type Bucket string

Bucket identifies a backend-neutral object namespace.

type ByteRange

type ByteRange struct {
	Offset int64
	Length int64
}

ByteRange identifies the half-open interval [Offset, Offset+Length).

func (ByteRange) Validate

func (byteRange ByteRange) Validate() error

Validate rejects negative offsets, non-positive lengths, and overflow.

type CompletedPart

type CompletedPart struct {
	Number int
	ETag   string
	Size   int64
	SHA256 [32]byte
}

CompletedPart identifies one immutable uploaded part.

type Copier

type Copier interface {
	// Copy publishes the source bytes under the destination key. The
	// destination keeps the source SHA-256 digest when it is known. A missing
	// source returns ErrNotFound; a failed SourceVersion or destination
	// condition returns ErrPrecondition. Source and destination may be in
	// different buckets of the same store.
	Copy(ctx context.Context, srcBucket Bucket, srcKey Key, dstBucket Bucket, dstKey Key, options CopyOptions) (Object, error)
}

Copier copies objects without routing bytes through the caller.

type CopyOptions

type CopyOptions struct {
	// SourceVersion, when non-empty, requires the source's current Version.
	SourceVersion string
	// IfAbsent and IfMatchVersion are atomic destination write conditions
	// with the same meaning as in PutOptions.
	IfAbsent       bool
	IfMatchVersion string
	// Metadata, when non-nil, replaces the destination user metadata; nil
	// copies the source metadata. ContentType, when non-empty, replaces the
	// source content type.
	Metadata    map[string]string
	ContentType string
}

CopyOptions configures one server-side copy.

func (CopyOptions) Clone

func (options CopyOptions) Clone() CopyOptions

Clone returns options with independently owned reference fields.

type GetOptions

type GetOptions struct {
	Range          *ByteRange
	IfMatchVersion string
}

GetOptions configures one conditional object read.

func (GetOptions) Clone

func (options GetOptions) Clone() GetOptions

Clone returns options with an independently owned range.

type Key

type Key string

Key identifies an object within a bucket.

type ListOptions

type ListOptions struct {
	Prefix          string
	After           Key
	Limit           int
	IncludeMetadata bool
}

ListOptions configures a stable, key-ordered page.

Listed objects always carry Bucket, Key, Version, ETag, Size, and ModifiedAt. User Metadata and SHA256 may be omitted (nil Metadata and SHA256Known false) unless IncludeMetadata is set, in which case every listed object carries the fields Stat returns. Backends that hold full metadata cheaply may always include it.

type MultipartStore

type MultipartStore interface {
	Store
	BeginMultipart(context.Context, Bucket, Key, PutOptions) (Upload, error)
	PutPart(context.Context, Upload, int, io.Reader, int64, [32]byte) (CompletedPart, error)
	CompleteMultipart(context.Context, Upload, []CompletedPart) (Object, error)
	AbortMultipart(context.Context, Upload) error
}

MultipartStore extends Store with explicit multipart custody.

type Object

type Object struct {
	Bucket      Bucket
	Key         Key
	Version     string
	ETag        string
	Size        int64
	ModifiedAt  time.Time
	SHA256      [32]byte
	SHA256Known bool
	Metadata    map[string]string
}

Object describes one immutable object version.

SHA256 is meaningful only when SHA256Known is true. Backends report an unknown digest instead of reading object bytes when the digest is not recorded in cheap metadata: for example foreign objects written by other tools, listings without IncludeMetadata, or multipart uploads completed without a declared digest. An unknown digest leaves SHA256 zero, so code that compares SHA256 against an expected digest fails closed.

func (Object) Clone

func (object Object) Clone() Object

Clone returns metadata storage owned by the caller.

func (Object) Digest

func (object Object) Digest() ([32]byte, bool)

Digest returns the object SHA-256 digest and whether it is known.

type Page

type Page struct {
	Objects   []Object
	NextAfter Key
}

Page is one page of key-ordered object metadata.

func (Page) Clone

func (page Page) Clone() Page

Clone returns a page with independently owned object and metadata storage.

type PresignedRequest

type PresignedRequest struct {
	Method string
	URL    string
	// Header lists the headers the client must send verbatim. Content-Length,
	// when present, is informational: HTTP clients derive it from the body.
	Header    http.Header
	ExpiresAt time.Time
}

PresignedRequest is an HTTP request that a third party can execute without credentials until ExpiresAt.

func (PresignedRequest) Clone

func (request PresignedRequest) Clone() PresignedRequest

Clone returns a request with independently owned headers.

type Presigner

type Presigner interface {
	// PresignGet authorizes reading an object or exact byte range.
	PresignGet(ctx context.Context, bucket Bucket, key Key, expires time.Duration, byteRange *ByteRange) (PresignedRequest, error)
	// PresignPut authorizes one object write. ContentType, Metadata,
	// IfAbsent, IfMatchVersion, SHA256, and Size are bound into the request;
	// the backend enforces a supplied SHA-256 digest before publication.
	// Objects written without SHA256 may later report SHA256Known false.
	PresignPut(ctx context.Context, bucket Bucket, key Key, expires time.Duration, options PutOptions) (PresignedRequest, error)
	// PresignUploadPart authorizes uploading one multipart part of an exact
	// size and SHA-256 digest. The ETag response header of the executed
	// request identifies the part: complete the upload with
	// CompletedPart{Number: number, ETag: etag, Size: size, SHA256: digest}.
	PresignUploadPart(ctx context.Context, upload Upload, number int, size int64, digest [32]byte, expires time.Duration) (PresignedRequest, error)
}

Presigner issues time-limited URLs for direct client transfers.

type ProgressFunc

type ProgressFunc func(transferred, total int64)

ProgressFunc observes transfer progress. transferred is the cumulative byte count and total is the expected byte count, or -1 when unknown. Callbacks run synchronously on the reading goroutine and must be fast.

type PutOptions

type PutOptions struct {
	ContentType    string
	Metadata       map[string]string
	IfAbsent       bool
	IfMatchVersion string
	SHA256         *[32]byte
	Size           int64
}

PutOptions configures one conditional object write.

IfAbsent and IfMatchVersion are evaluated atomically with publication and together form the portable compare-and-swap primitive: read an object's Version, then write with IfMatchVersion set to it; ErrPrecondition reports that another writer won. Versions identify stored contents, and an S3 entity tag repeats when identical bytes are written again, so CAS users should encode a changing value (a counter, token, or timestamp) in the object.

A non-nil SHA256 is verified before the object becomes visible. Size, when positive, is the exact expected body length: it lets backends stream bodies without buffering, and a mismatch fails with ErrPrecondition. Zero means the length is unknown; negative values are invalid.

func (PutOptions) Clone

func (options PutOptions) Clone() PutOptions

Clone returns options with independently owned reference fields.

func (PutOptions) ValidateSize

func (options PutOptions) ValidateSize() error

ValidateSize rejects negative expected sizes with ErrInvalidRange.

type StatResult

type StatResult struct {
	Object Object
	Err    error
}

StatResult is the outcome of one key in a batch metadata lookup.

type Store

Store provides immutable-version object operations.

Example (CompareAndSwap)

ExampleStore_compareAndSwap updates an object only if nobody replaced it since it was read: IfMatchVersion is the portable compare-and-swap.

package main

import (
	"bytes"
	"context"
	"errors"
	"fmt"

	objectstore "github.com/justusschock/object-storage"
	"github.com/justusschock/object-storage/backend/memory"
)

func main() {
	ctx := context.Background()
	store := memory.New()
	first, err := store.Put(ctx, "state", "counter", bytes.NewReader([]byte("1")), objectstore.PutOptions{IfAbsent: true})
	if err != nil {
		panic(err)
	}
	if _, err := store.Put(ctx, "state", "counter", bytes.NewReader([]byte("2")), objectstore.PutOptions{IfMatchVersion: first.Version}); err != nil {
		panic(err)
	}
	// A second writer still holding the first version loses.
	_, err = store.Put(ctx, "state", "counter", bytes.NewReader([]byte("2")), objectstore.PutOptions{IfMatchVersion: first.Version})
	fmt.Println(errors.Is(err, objectstore.ErrPrecondition))
}
Output:
true
Example (ExactRange)
package main

import (
	"bytes"
	"context"
	"fmt"
	"io"

	objectstore "github.com/justusschock/object-storage"
	"github.com/justusschock/object-storage/backend/memory"
)

func main() {
	store := memory.New()
	_, err := store.Put(context.Background(), "assets", "digits.txt", bytes.NewReader([]byte("0123456789")), objectstore.PutOptions{})
	if err != nil {
		panic(err)
	}
	body, object, err := store.Get(context.Background(), "assets", "digits.txt", objectstore.GetOptions{Range: &objectstore.ByteRange{Offset: 3, Length: 4}})
	if err != nil {
		panic(err)
	}
	defer func() { _ = body.Close() }()
	data, err := io.ReadAll(body)
	if err != nil {
		panic(err)
	}
	fmt.Printf("%s %d\n", data, object.Size)
}
Output:
3456 10

type Upload

type Upload struct {
	ID      string
	Bucket  Bucket
	Key     Key
	Options PutOptions
}

Upload identifies one in-progress multipart object.

func (Upload) Clone

func (upload Upload) Clone() Upload

Clone returns an upload with independently owned options.

Directories

Path Synopsis
backend
fs
Package fs provides a filesystem object store that is safe for concurrent use by many goroutines and many processes sharing one root directory.
Package fs provides a filesystem object store that is safe for concurrent use by many goroutines and many processes sharing one root directory.
memory
Package memory provides an in-memory object store for tests and local use.
Package memory provides an in-memory object store for tests and local use.
azure module
gcs module
http module
s3 module
sftp module
Package cas stores immutable content addressed by its SHA-256 digest.
Package cas stores immutable content addressed by its SHA-256 digest.
Package handoff transports lifecycle artifacts through object storage.
Package handoff transports lifecycle artifacts through object storage.
Package lease implements distributed-coordination fenced leases on top of any object store that honors conditional writes.
Package lease implements distributed-coordination fenced leases on top of any object store that honors conditional writes.
Package multipart provides bounded multipart upload orchestration.
Package multipart provides bounded multipart upload orchestration.
Package pack bundles many content-addressed blobs into one immutable data object plus a binary index, so a reader fetches any blob with one exact ranged read.
Package pack bundles many content-addressed blobs into one immutable data object plus a binary index, so a reader fetches any blob with one exact ranged read.
Package storetest is the conformance suite for implementations of objectstore.Store and objectstore.MultipartStore.
Package storetest is the conformance suite for implementations of objectstore.Store and objectstore.MultipartStore.

Jump to

Keyboard shortcuts

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