safari

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: MIT Imports: 25 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package safari is the Safari base: default and named profiles under ~/Library, their files, and the login keychain.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Discover

func Discover(safariBrowser browser.Browser, options browser.DiscoverOptions) ([]browser.UserDataDir, error)

Discover makes the Safari directory the default profile's Dir; -p names another, whose parent replaces ~/Library.

func Extractors

func Extractors(dir browser.UserDataDir, profile browser.Profile, loginKeychain LoginKeychain) browser.Extractors

Extractors builds a named profile's file specs from Profile.Dir; its files sit under two dirs named for its UUID. The keychain, Bookmarks.plist, and the extension plists carry no profile tag, so only the default profile reads them.

Types

type LoginKeychain

type LoginKeychain interface {
	InternetPasswords(ctx context.Context) ([]keychainbreaker.InternetPassword, error)
}

LoginKeychain is the one method the password extractor reads from the run's login keychain.

Jump to

Keyboard shortcuts

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