mirror of https://github.com/restic/restic.git
Update Server to match new Backend interface
This commit is contained in:
parent
92e2647505
commit
0f36b19a4c
|
@ -318,10 +318,18 @@ func (s Server) Get(t backend.Type, id backend.ID) ([]byte, error) {
|
||||||
return s.be.Get(t, id)
|
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) {
|
func (s Server) Create(t backend.Type, data []byte) (backend.ID, error) {
|
||||||
return s.be.Create(t, data)
|
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) {
|
func (s Server) Test(t backend.Type, id backend.ID) (bool, error) {
|
||||||
return s.be.Test(t, id)
|
return s.be.Test(t, id)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue