objectstorage

package
v1.19.2 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: Apache-2.0 Imports: 18 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.

Documentation

Overview

Package objectstorage provides a BinaryStore implementation backed by OCI Object Storage. Each named file maps 1:1 to an object inside the configured bucket.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewOCIObjectStorage

func NewOCIObjectStorage(log logger.Logger) binarystore.BinaryStore

NewOCIObjectStorage returns a new OCI Object Storage binary store.

Types

type ObjectStorage

type ObjectStorage struct {
	// contains filtered or unexported fields
}

ObjectStorage implements binarystore.BinaryStore using OCI Object Storage.

func (*ObjectStorage) Close

func (o *ObjectStorage) Close() error

Close releases the resources held by the underlying OCI client.

func (*ObjectStorage) Delete

Delete removes an object from OCI Object Storage. If the object does not exist, binarystore.ErrFileNotFound is returned.

func (*ObjectStorage) Features

func (o *ObjectStorage) Features() []binarystore.Feature

Features returns the optional features supported by this component.

func (*ObjectStorage) Get

Get downloads binary data from OCI Object Storage as a streaming reader.

func (*ObjectStorage) GetComponentMetadata

func (o *ObjectStorage) GetComponentMetadata() (metadataInfo contribMetadata.MetadataMap)

GetComponentMetadata returns the metadata schema for this component.

func (*ObjectStorage) Init

Init initialises the OCI Object Storage client from component metadata.

func (*ObjectStorage) Set

Set uploads binary data to OCI Object Storage.

When req.Overwrite is false, an If-None-Match: * condition is applied so the service atomically rejects the upload if the object already exists. When req.Overwrite is true, the object is created or replaced.

Jump to

Keyboard shortcuts

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