jacygao / filesystem

Filesystem abstraction. One interface, many implementations.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

One interface, many filesystem implementations.

type FileStore interface {
	Get(ctx context.Context, resourceKey string) (io.ReadCloser, error)
	Put(ctx context.Context, resourceKey string, body io.Reader) error
	Delete(ctx context.Context, resourceKey string) error
}

About

Filesystem abstraction. One interface, many implementations.


Languages

Language:Go 100.0%