storage

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package storage defines provider-neutral object storage contracts.

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = fs.ErrNotExist

ErrNotFound identifies a missing object.

Functions

This section is empty.

Types

type Range

type Range struct {
	Start int64
	End   int64
}

Range identifies an inclusive byte range.

type Reader

type Reader interface {
	// Size returns an object's size without reading its contents.
	Size(context.Context, string) (int64, error)
	// Open opens a full object when the range is nil or one inclusive range.
	// It returns the length of the opened stream.
	Open(context.Context, string, *Range) (io.ReadCloser, int64, error)
}

Reader is the narrow read-only contract used by the registry handler.

Directories

Path Synopsis
Package gcs adapts Google Cloud Storage to the provider-neutral storage contracts.
Package gcs adapts Google Cloud Storage to the provider-neutral storage contracts.
Package s3 adapts AWS S3 to the provider-neutral storage contracts.
Package s3 adapts AWS S3 to the provider-neutral storage contracts.

Jump to

Keyboard shortcuts

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