mirror of
https://github.com/kopia/kopia.git
synced 2026-03-14 12:16:46 -04:00
13 lines
329 B
Go
13 lines
329 B
Go
package vault
|
|
|
|
import "github.com/kopia/kopia/repo"
|
|
|
|
// Reader allows reading from a vault.
|
|
type Reader interface {
|
|
Get(id string, content interface{}) error
|
|
GetRaw(id string) ([]byte, error)
|
|
List(prefix string) ([]string, error)
|
|
ResolveObjectID(id string) (repo.ObjectID, error)
|
|
OpenRepository() (repo.Repository, error)
|
|
}
|