2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-22 12:55:18 +00:00

Update Server to match new Backend interface

This commit is contained in:
Alexander Neumann 2015-02-11 22:46:40 +01:00
parent 92e2647505
commit 0f36b19a4c

View File

@ -318,10 +318,18 @@ func (s Server) Get(t backend.Type, id backend.ID) ([]byte, error) {
return s.be.Get(t, id)
}
func (s Server) GetReader(t backend.Type, id backend.ID) (io.ReadCloser, error) {
return s.be.GetReader(t, id)
}
func (s Server) Create(t backend.Type, data []byte) (backend.ID, error) {
return s.be.Create(t, data)
}
func (s Server) CreateFrom(t backend.Type, r io.Reader) (backend.ID, error) {
return s.be.CreateFrom(t, r)
}
func (s Server) Test(t backend.Type, id backend.ID) (bool, error) {
return s.be.Test(t, id)
}