Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LocalStorage ¶
type LocalStorage struct {
// contains filtered or unexported fields
}
LocalStorage keeps objets in the specified local directory. It's intended to be used only for unit tests.
func NewLocalStorage ¶
func NewLocalStorage(baseFolder string) *LocalStorage
func (*LocalStorage) Read ¶
func (ls *LocalStorage) Read(uri string) (io.ReadCloser, error)
type Storage ¶
type Storage interface { // Store returns a URI to use later. Store(source io.Reader) (string, error) Update(key string, source io.Reader) error Read(uri string) (io.ReadCloser, error) }
Storage is not assumed to be used for partciularly large objects (e.g. GB of size), but rather for blobs that risk overwhelming Spanner column size limits.
Click to show internal directories.
Click to hide internal directories.