Documentation
¶
Index ¶
- type ArchiveSource
- type Browser
- func (b *Browser) ArchiveSources(categories []types.Category) []ArchiveSource
- func (b *Browser) BrowserKey() string
- func (b *Browser) BrowserName() string
- func (b *Browser) CountEntries(categories []types.Category) ([]types.CountResult, error)
- func (b *Browser) ExportKeys() (masterkey.MasterKeys, error)
- func (b *Browser) Extract(categories []types.Category) ([]types.ExtractResult, error)
- func (b *Browser) Kind() types.BrowserKind
- func (b *Browser) Profiles() []types.Profile
- func (b *Browser) SetRetrievers(r masterkey.Retrievers)
- func (b *Browser) UserDataDir() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArchiveSource ¶ added in v1.1.0
ArchiveSource is one decryption-relevant file or directory plus its path inside the browser's User Data tree (forward-slash), so an archive can be re-expanded into a working profile layout.
type Browser ¶ added in v0.5.0
type Browser struct {
// contains filtered or unexported fields
}
Browser is one Chromium installation: a single UserDataDir holding profiles that share a master key. The key is derived once and reused across profiles.
func NewBrowser ¶ added in v1.1.0
func NewBrowser(cfg types.BrowserConfig) (*Browser, error)
NewBrowser discovers the profiles under cfg.UserDataDir, or returns nil if none resolve. Call SetRetrievers before Extract to enable decryption.
func (*Browser) ArchiveSources ¶ added in v1.1.0
func (b *Browser) ArchiveSources(categories []types.Category) []ArchiveSource
ArchiveSources lists the files an archive must capture for the given categories: the User Data root files (Local State), every resolved category source per profile, plus each profile's Preferences marker so a restore can rediscover the profile. LayoutRel is forward-slash, relative to the root.
func (*Browser) BrowserKey ¶ added in v1.1.0
func (*Browser) BrowserName ¶ added in v0.5.0
func (*Browser) CountEntries ¶ added in v0.5.0
CountEntries counts entries per category for every profile without decryption.
func (*Browser) ExportKeys ¶ added in v1.1.0
func (b *Browser) ExportKeys() (masterkey.MasterKeys, error)
ExportKeys derives the master keys without extracting. Returns the tiers that succeeded plus a joined error for those that failed — partial results matter (a v20-only failure keeps the v10 key).
func (*Browser) Extract ¶ added in v0.5.0
Extract derives the installation's master key once, then extracts every profile.
func (*Browser) Kind ¶ added in v1.1.0
func (b *Browser) Kind() types.BrowserKind
func (*Browser) Profiles ¶ added in v1.1.0
Profiles returns the identity of every profile in this installation.
func (*Browser) SetRetrievers ¶ added in v1.1.0
func (b *Browser) SetRetrievers(r masterkey.Retrievers)
SetRetrievers wires the per-tier master-key retrievers (V10/V11/V20) used by Extract; unused tiers stay nil.