Debian Codegraph @

storage/backend.go

raw
1 package storage
2
3 // Backend is an encapsulation of a set of read-only and read-write interfaces
4 // for reading and writing objects.
5 type Backend interface {
6 // Storage returns a read source and optionally a write source.
7 // Generally, the write location, if present, should also be a read
8 // location.
9 Storage() (Storage, WritableStorage)
10 }