github.com/machinefi/w3bstream@v1.6.5-rc9.0.20240426031326-b8c7c4876e72/pkg/depends/conf/filesystem/file_system.go (about) 1 package filesystem 2 3 import "errors" 4 5 type FileSystemOp interface { 6 Upload(key string, file []byte) error 7 Read(key string) ([]byte, error) 8 Delete(key string) error 9 StatObject(key string) (*ObjectMeta, error) 10 } 11 12 var ( 13 ErrInvalidObjectKey = errors.New("invalid object key") 14 ErrNotExistObjectKey = errors.New("not exist object key") 15 )