objectstore

package
v0.6.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotModified = errors.New("object not modified")

ErrNotModified is returned by Upload when the content already matches what is stored and no upload was performed.

Functions

This section is empty.

Types

type ObjectStorage

type ObjectStorage interface {
	// Upload stores a bundle artifact in object storage.
	// Implementations may return ErrNotModified to indicate that the upload
	// was skipped because the content has not changed.
	Upload(ctx context.Context, body io.ReadSeeker, name string, revision string, totalSize int64) error

	// Download retrieves a bundle artifact from object storage.
	Download(ctx context.Context) (io.Reader, error)
}

ObjectStorage defines the interface for uploading and downloading bundle artifacts to/from object storage systems (e.g., S3, GCS, Azure Blob Storage).

Jump to

Keyboard shortcuts

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