Versions in this module Expand all Collapse all v0 v0.8.0 Nov 26, 2017 Changes in this version + type Backend struct + func (b *Backend) IsNotExist(err error) bool + func (b *Backend) Load(ctx context.Context, h restic.Handle, length int, offset int64) (io.ReadCloser, error) + func (b *Backend) Remove(ctx context.Context, h restic.Handle) error + func (b *Backend) Save(ctx context.Context, h restic.Handle, rd io.Reader) (err error) + func (b *Backend) Stat(ctx context.Context, h restic.Handle) (restic.FileInfo, error) + type Cache struct + Base string + Path string + PerformReadahead func(restic.Handle) bool + func New(id string, basedir string) (c *Cache, err error) + func TestNewCache(t testing.TB) (*Cache, func()) + func (c *Cache) BaseDir() string + func (c *Cache) Clear(t restic.FileType, valid restic.IDSet) error + func (c *Cache) Has(h restic.Handle) bool + func (c *Cache) IsNotExist(err error) bool + func (c *Cache) Load(h restic.Handle, length int, offset int64) (io.ReadCloser, error) + func (c *Cache) Remove(h restic.Handle) error + func (c *Cache) Save(h restic.Handle, rd io.Reader) error + func (c *Cache) SaveWriter(h restic.Handle) (io.WriteCloser, error) + func (c *Cache) Wrap(be restic.Backend) restic.Backend