Help us shape the future of Go! Take the 2026 Go Developer Survey

objectstorage

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

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