find

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindCookieStoreFiles

func FindCookieStoreFiles(rootsFunc iter.Seq2[string, error], browserName, fileName string) iter.Seq2[*CookieStoreFile, error]

FindCookieStoreFiles lazily iterates profiles from the given root directories and yields cookie store file entries with fileName appended to each profile path. Used by netscape which has a different store type but reuses profile discovery.

func FindFirefoxProfiles added in v0.2.9

func FindFirefoxProfiles() iter.Seq2[Profile, error]

FindFirefoxProfiles returns all Firefox profiles from known root directories.

func FindProfiles added in v0.2.9

func FindProfiles(rootsFunc iter.Seq2[string, error], browserName string) iter.Seq2[Profile, error]

FindProfiles lazily iterates root directories, parses profiles.ini in each, and yields discovered profiles.

Types

type CookieStoreFile added in v0.2.9

type CookieStoreFile struct {
	Path             string
	Browser          string
	Profile          string
	IsDefaultProfile bool
}

CookieStoreFile represents a cookie store file discovered within a profile.

type Profile added in v0.2.9

type Profile struct {
	Path             string
	Browser          string
	Name             string
	IsDefaultProfile bool
}

Profile represents a Firefox-based browser profile discovered from profiles.ini.

func FindProfilesInRoot added in v0.2.9

func FindProfilesInRoot(rootDir, browserName string) ([]Profile, error)

FindProfilesInRoot parses a single profiles.ini from rootDir and returns the discovered profiles.

Jump to

Keyboard shortcuts

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