fixup! Revert "feat: HTTP API"

This commit is contained in:
Richard Anthony 2023-01-28 19:48:20 +11:00
parent ad1f844cea
commit ac10f62295
1 changed files with 32 additions and 0 deletions

32
activ.go Normal file
View File

@ -0,0 +1,32 @@
package restic
import (
"context"
"time"
"github.com/restic/restic/internal/restic"
)
type Snapshot struct {
paths, tags []string
hostname string
time time.Time
}
type Filter struct {
ctx context.Context
be restic.Lister
loader restic.LoaderUnpacked
hosts, snapshotIDs []string
tags restic.TagList
paths []restic.TagList
cb restic.SnapshotFindCb
}
func New(s *Snapshot) (*restic.Snapshot, error) {
return restic.NewSnapshot(s.paths, s.tags, s.hostname, s.time)
}
func Find(f *Filter) {
restic.FindFilteredSnapshots(f.ctx, f.be, f.loader, f.hosts, f.paths, f.tags, f.snapshotIDs, f.cb)
}