Documentation ¶
Overview ¶
Package backup wraps an iOS backup directory.
Index ¶
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MobileBackup ¶
type MobileBackup struct { Dir string Manifest Manifest Records []Record Keybag keybag.Keybag BlobKey []byte }
MobileBackup encapsulates a mobile backup manifest
func Open ¶
func Open(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.
Click to show internal directories.
Click to hide internal directories.