restic/internal/backend/layout/layout.go

15 lines
299 B
Go
Raw Normal View History

package layout
2017-03-26 19:52:49 +00:00
import (
"github.com/restic/restic/internal/backend"
2017-03-26 19:52:49 +00:00
)
// Layout computes paths for file name storage.
type Layout interface {
Filename(backend.Handle) string
Dirname(backend.Handle) string
Basedir(backend.FileType) (dir string, subdirs bool)
2017-03-26 19:52:49 +00:00
Paths() []string
2017-06-07 19:59:41 +00:00
Name() string
2017-03-26 19:52:49 +00:00
}