Documentation
¶
Index ¶
- type Browser
- func (b *Browser) BrowserName() string
- func (b *Browser) CountEntries(categories []types.Category) ([]types.CountResult, error)
- func (b *Browser) Extract(categories []types.Category) ([]types.ExtractResult, error)
- func (b *Browser) Profiles() []types.Profile
- func (b *Browser) SetKeychainPassword(password string)
- func (b *Browser) UserDataDir() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Browser ¶
type Browser struct {
// contains filtered or unexported fields
}
Browser is one Safari installation, holding the default profile and any named profiles. Passwords come from the shared macOS Keychain; the login password is set on the installation and threaded to each profile at extract time.
func NewBrowser ¶ added in v1.1.0
func NewBrowser(cfg types.BrowserConfig) (*Browser, error)
NewBrowser returns the Safari installation with one profile per Safari profile that has resolvable data, or nil if none. Named profiles are enumerated from SafariTabs.db.
func (*Browser) BrowserName ¶
func (*Browser) CountEntries ¶
CountEntries counts entries per category for every profile.
func (*Browser) Extract ¶
Extract extracts every profile, threading the installation's keychain password.
func (*Browser) Profiles ¶ added in v1.1.0
Profiles returns the identity of every Safari profile in this installation.
func (*Browser) SetKeychainPassword ¶
SetKeychainPassword sets the macOS login password used to unlock the Keychain.