portal/interfaces/storage.go

12 lines
220 B
Go
Raw Normal View History

2024-01-15 04:52:54 +00:00
package interfaces
import "io"
type StorageService interface {
Init()
2024-01-15 04:52:54 +00:00
PutFile(file io.ReadSeeker, bucket string, generateProof bool) ([]byte, error)
2024-01-16 05:40:50 +00:00
CIDExists(cid interface {
ToString() (string, error)
}) bool
2024-01-15 04:52:54 +00:00
}