portal/interfaces/storage.go

13 lines
265 B
Go

package interfaces
import "io"
type StorageService interface {
Init()
PutFile(file io.ReadSeeker, bucket string, generateProof bool) ([]byte, error)
CIDExists(cid interface {
ToString() (string, error)
}) bool
GetHash(file io.ReadSeeker) ([]byte, error)
}