2024-01-25 21:30:35 +00:00
|
|
|
package interfaces
|
|
|
|
|
|
|
|
import (
|
|
|
|
"git.lumeweb.com/LumeWeb/libs5-go/encoding"
|
|
|
|
"git.lumeweb.com/LumeWeb/portal/db/models"
|
|
|
|
"io"
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
|
|
|
type File interface {
|
|
|
|
Record() (*models.Upload, error)
|
|
|
|
Hash() []byte
|
|
|
|
HashString() string
|
|
|
|
Name() string
|
|
|
|
Modtime() time.Time
|
|
|
|
Size() uint64
|
|
|
|
CID() *encoding.CID
|
2024-01-25 21:32:37 +00:00
|
|
|
Exists() bool
|
2024-01-25 21:30:35 +00:00
|
|
|
io.ReadSeekCloser
|
|
|
|
}
|