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).
Click to show internal directories.
Click to hide internal directories.