2024-01-15 04:52:54 +00:00
|
|
|
package interfaces
|
|
|
|
|
2024-01-16 06:01:57 +00:00
|
|
|
import (
|
|
|
|
"git.lumeweb.com/LumeWeb/portal/db/models"
|
|
|
|
"io"
|
|
|
|
)
|
2024-01-15 04:52:54 +00:00
|
|
|
|
|
|
|
type StorageService interface {
|
2024-01-15 13:38:05 +00:00
|
|
|
Init()
|
2024-01-15 04:52:54 +00:00
|
|
|
PutFile(file io.ReadSeeker, bucket string, generateProof bool) ([]byte, error)
|
2024-01-16 06:01:57 +00:00
|
|
|
FileExists(hash []byte) (bool, models.Upload)
|
2024-01-16 05:48:06 +00:00
|
|
|
GetHash(file io.ReadSeeker) ([]byte, error)
|
2024-01-15 04:52:54 +00:00
|
|
|
}
|