Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadObjstoreConfig ¶
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)
Click to show internal directories.
Click to hide internal directories.