2
2
mirror of https://github.com/octoleo/restic.git synced 2025-01-24 15:48:25 +00:00

15 lines
299 B
Go
Raw Normal View History

package layout
2017-03-26 21:52:49 +02:00
import (
"github.com/restic/restic/internal/backend"
2017-03-26 21:52:49 +02: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 21:52:49 +02:00
Paths() []string
2017-06-07 21:59:41 +02:00
Name() string
2017-03-26 21:52:49 +02:00
}