Documentation
¶
Index ¶
- type IDataStore
- type MinioStore
- func (m MinioStore) BucketExists(bucketName string) (bool, error)
- func (m MinioStore) CreateBucket(bucketName string) error
- func (m MinioStore) DeleteObservation(imgRef string, bucketName string) (bool, error)
- func (m MinioStore) SaveFile(fileInfo *zip.File, openFile io.ReadCloser, bucketName string) (string, error)
- func (m MinioStore) SaveObservation(observationCommand Commands.CreateObservationCommand) (string, error)
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)
Click to show internal directories.
Click to hide internal directories.