package storage import ( "io" "alin.ovh/homestead/domain/content" ) type Reader interface { GetFile(path string) (*File, error) CanonicalisePath(path string) (string, bool) } type Writer interface { Mkdirp(path string) error NewFileFromPost(*content.Post) *File Write(string, string, io.WriterTo) error WritePost(*content.Post, io.WriterTo) error WriteFile(*File, io.WriterTo) error }
shared/storage/interface.go (view raw)