storage

package
v0.0.0-...-5154e19 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadObjstoreConfig

func ReadObjstoreConfig(objstoreString, objstoreConfigFile string) ([]byte, error)

Types

type ObjectStore

type ObjectStore interface {
	// Exists checks if an object exists in the object store
	Exists(ctx context.Context, key string) (bool, error)
	// GetObject retrieves an object from the object store
	GetObject(ctx context.Context, key string) ([]byte, error)
	// PutObject stores an object in the object store
	PutObject(ctx context.Context, key string, data []byte) error
	// DeleteObject removes an object from the object store
	DeleteObject(ctx context.Context, key string) error
}

ObjectStore is an interface for storing and retrieving objects

func NewObjectStore

func NewObjectStore(componentName string, bucketConf []byte) (ObjectStore, error)

Jump to

Keyboard shortcuts

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