objectStore

package
v0.0.0-...-adfec57 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IDataStore

type IDataStore interface {
	SaveFile(fileInfo *zip.File, openFile io.ReadCloser, bucketName string) (string, error)
	SaveObservation(observationCommand Commands.CreateObservationCommand) (string, error)
	BucketExists(bucketName string) (bool, error)
	DeleteObservation(imgRef string, bucketName string) (bool, error)
}

type MinioStore

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

func NewMinioStore

func NewMinioStore() *MinioStore

func (MinioStore) BucketExists

func (m MinioStore) BucketExists(bucketName string) (bool, error)

func (MinioStore) CreateBucket

func (m MinioStore) CreateBucket(bucketName string) error

func (MinioStore) DeleteObservation

func (m MinioStore) DeleteObservation(imgRef string, bucketName string) (bool, error)

func (MinioStore) SaveFile

func (m MinioStore) SaveFile(fileInfo *zip.File, openFile io.ReadCloser, bucketName string) (string, error)

func (MinioStore) SaveObservation

func (m MinioStore) SaveObservation(observationCommand Commands.CreateObservationCommand) (string, error)

Jump to

Keyboard shortcuts

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