mirror of
https://github.com/octoleo/restic.git
synced 2024-11-22 21:05:10 +00:00
Add comments to exported methods
This commit is contained in:
parent
4a1cb65645
commit
b335de6b81
@ -12,6 +12,7 @@ import (
|
|||||||
"github.com/juju/errors"
|
"github.com/juju/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// Restorer is used to restore a snapshot to a directory.
|
||||||
type Restorer struct {
|
type Restorer struct {
|
||||||
s *server.Server
|
s *server.Server
|
||||||
sn *Snapshot
|
sn *Snapshot
|
||||||
@ -103,6 +104,7 @@ func (res *Restorer) RestoreTo(dir string) error {
|
|||||||
return res.restoreTo(dir, "", res.sn.Tree)
|
return res.restoreTo(dir, "", res.sn.Tree)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Snapshot returns the snapshot this restorer is configured to use.
|
||||||
func (res *Restorer) Snapshot() *Snapshot {
|
func (res *Restorer) Snapshot() *Snapshot {
|
||||||
return res.sn
|
return res.sn
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user