1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-22 15:57:07 +00:00
restic/internal/backend/layout/layout.go
2024-08-31 17:25:24 +02:00

14 lines
299 B
Go

package layout
import (
"github.com/restic/restic/internal/backend"
)
// 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)
Paths() []string
Name() string
}