mirror of
https://github.com/octoleo/restic.git
synced 2024-11-26 14:56:29 +00:00
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)
|
||||
}
|
||||
|
||||
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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user