Fun experiment I made with my mum, building a storage independent dropbox like UI [1] for anything that implement this interface:
type IBackend interface {
Ls(path string) ([]os.FileInfo, error)
Cat(path string) (io.ReadCloser, error)
Mkdir(path string) error
Rm(path string) error
Mv(from string, to string) error
Save(path string, file io.Reader) error
Touch(path string) error
}
My mum really couldn't care less about the posix semantic as soon as she can see the pictures of my kid which happen to be on S3