safari

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

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 profile's data ready for extraction. Passwords come from the shared macOS Keychain; everything else reads from the profile's directories.

func NewBrowsers

func NewBrowsers(cfg types.BrowserConfig) ([]*Browser, error)

NewBrowsers returns one Browser per Safari profile with resolvable data. Named profiles are enumerated from SafariTabs.db.

func (*Browser) BrowserName

func (b *Browser) BrowserName() string

func (*Browser) CountEntries

func (b *Browser) CountEntries(categories []types.Category) (map[types.Category]int, error)

func (*Browser) Extract

func (b *Browser) Extract(categories []types.Category) (*types.BrowserData, error)

func (*Browser) ProfileDir

func (b *Browser) ProfileDir() string

func (*Browser) ProfileName

func (b *Browser) ProfileName() string

func (*Browser) SetKeychainPassword

func (b *Browser) SetKeychainPassword(password string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL