From b335de6b8143c3dbe7df0dfe694d1524510c0134 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Sat, 2 May 2015 15:23:28 +0200 Subject: [PATCH] Add comments to exported methods --- restorer.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/restorer.go b/restorer.go index 740677473..cebd9c894 100644 --- a/restorer.go +++ b/restorer.go @@ -12,6 +12,7 @@ import ( "github.com/juju/errors" ) +// Restorer is used to restore a snapshot to a directory. type Restorer struct { s *server.Server sn *Snapshot @@ -103,6 +104,7 @@ func (res *Restorer) RestoreTo(dir string) error { return res.restoreTo(dir, "", res.sn.Tree) } +// Snapshot returns the snapshot this restorer is configured to use. func (res *Restorer) Snapshot() *Snapshot { return res.sn }