Documentation ¶
Overview ¶
Package backup wraps an iOS backup directory.
Index ¶
- Constants
- type Backup
- type DBReader
- type Manifest
- type MetaData
- type MobileBackup
- func (mb *MobileBackup) Domains() []string
- func (mb *MobileBackup) FileKey(rec Record) []byte
- func (mb *MobileBackup) FileReader(rec Record) (io.ReadCloser, error)
- func (mb *MobileBackup) Load() error
- func (mb *MobileBackup) ReadFile(rec Record) ([]byte, error)
- func (mb *MobileBackup) SetPassword(pass string) error
- type Record
- type StatusPlist
Constants ¶
const BackupVersioniOS10 string = "3.0"
const BackupVersioniOS101 string = "3.1"
const BackupVersioniOS102 string = "3.2"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backup ¶
type MobileBackup ¶
type MobileBackup struct { Dir string Manifest Manifest Records []Record Keybag keybag.Keybag Version string BlobKey []byte }
MobileBackup encapsulates a mobile backup manifest
func Open ¶
func Open(pathToBackups string, guid string) (*MobileBackup, error)
Open opens a MobileBackup directory corresponding to a given guid.
func (*MobileBackup) Domains ¶
func (mb *MobileBackup) Domains() []string
Domains lists the file domains in a backup manifest.
func (*MobileBackup) FileKey ¶
func (mb *MobileBackup) FileKey(rec Record) []byte
FileKey finds the key for a given file record
func (*MobileBackup) FileReader ¶
func (mb *MobileBackup) FileReader(rec Record) (io.ReadCloser, error)
FileReader returns an io.Reader for the unencrypted contents of a file record
func (*MobileBackup) Load ¶
func (mb *MobileBackup) Load() error
Load loads the backup. It must be called after "SetPassword" for ios 10.2+ encrypted backups, and must be called before attempting to use any other methods on MobileBackup.
func (*MobileBackup) ReadFile ¶
func (mb *MobileBackup) ReadFile(rec Record) ([]byte, error)
ReadFile reads the contents of an encrypted file.
func (*MobileBackup) SetPassword ¶
func (mb *MobileBackup) SetPassword(pass string) error
SetPassword decrypts the keychain.
type Record ¶
type StatusPlist ¶
type StatusPlist struct {
Version string
}
StatusPlist encapsulates a mobile backup status file