browsercfg

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package browsercfg defines browser discovery metadata shared by the loaders.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChromiumPlatform

type ChromiumPlatform struct {
	CookiePathTemplates []string
	Channels            []string
	Secrets             []Secret
	LinuxLibsecretRefs  []LinuxLibsecretRef
	LinuxKWalletRefs    []LinuxKWalletRef
	LocalStatePaths     []string
	WindowsKeySources   []WindowsKeySource
}

ChromiumPlatform defines Chromium-family paths and secrets for one OS.

type ChromiumSpec

type ChromiumSpec struct {
	Name      string
	Platforms map[string]ChromiumPlatform
}

ChromiumSpec describes one Chromium-family browser across supported OSes.

func MustChromium

func MustChromium(name string) ChromiumSpec

MustChromium returns a Chromium spec and panics when the name is unknown.

func (ChromiumSpec) CookiePatterns

func (s ChromiumSpec) CookiePatterns(goos string) []string

CookiePatterns returns the expanded cookie DB globs for the requested OS.

func (ChromiumSpec) CurrentCookiePatterns

func (s ChromiumSpec) CurrentCookiePatterns() []string

CurrentCookiePatterns returns the expanded cookie DB globs for the current OS.

func (ChromiumSpec) CurrentLinuxKWalletRefs

func (s ChromiumSpec) CurrentLinuxKWalletRefs() []LinuxKWalletRef

CurrentLinuxKWalletRefs returns Linux KWallet lookups for the current OS.

func (ChromiumSpec) CurrentLinuxLibsecretRefs

func (s ChromiumSpec) CurrentLinuxLibsecretRefs() []LinuxLibsecretRef

CurrentLinuxLibsecretRefs returns Linux libsecret lookups for the current OS.

func (ChromiumSpec) CurrentLocalStatePaths

func (s ChromiumSpec) CurrentLocalStatePaths() []string

CurrentLocalStatePaths returns Local State resolution hints for the current OS.

func (ChromiumSpec) CurrentSecrets

func (s ChromiumSpec) CurrentSecrets() []Secret

CurrentSecrets returns the decryption secrets for the current OS.

func (ChromiumSpec) CurrentWindowsKeySources

func (s ChromiumSpec) CurrentWindowsKeySources() []WindowsKeySource

CurrentWindowsKeySources returns allowed Local State key sources for the current OS.

func (ChromiumSpec) LinuxKWalletRefs

func (s ChromiumSpec) LinuxKWalletRefs(goos string) []LinuxKWalletRef

LinuxKWalletRefs returns Linux KWallet lookups for the requested OS.

func (ChromiumSpec) LinuxLibsecretRefs

func (s ChromiumSpec) LinuxLibsecretRefs(goos string) []LinuxLibsecretRef

LinuxLibsecretRefs returns Linux libsecret lookups for the requested OS.

func (ChromiumSpec) LocalStatePaths

func (s ChromiumSpec) LocalStatePaths(goos string) []string

LocalStatePaths returns Local State resolution hints for the requested OS.

func (ChromiumSpec) Secrets

func (s ChromiumSpec) Secrets(goos string) []Secret

Secrets returns the decryption secrets for the requested OS.

func (ChromiumSpec) WindowsKeySources

func (s ChromiumSpec) WindowsKeySources(goos string) []WindowsKeySource

WindowsKeySources returns allowed Local State key sources for the requested OS.

type LinuxKWalletRef

type LinuxKWalletRef struct {
	Folder string
	Key    string
}

LinuxKWalletRef identifies one KWallet lookup target.

type LinuxLibsecretRef

type LinuxLibsecretRef struct {
	Schema      string
	Application string
}

LinuxLibsecretRef identifies one libsecret lookup target.

type MozillaPlatform

type MozillaPlatform struct {
	ProfilePathTemplates []string
	Channels             []string
}

MozillaPlatform defines Firefox-family profile roots for one OS.

type MozillaSpec

type MozillaSpec struct {
	Name      string
	Platforms map[string]MozillaPlatform
}

MozillaSpec describes one Firefox-family browser across supported OSes.

func MustMozilla

func MustMozilla(name string) MozillaSpec

MustMozilla returns a Mozilla spec and panics when the name is unknown.

func (MozillaSpec) CurrentProfilePatterns

func (s MozillaSpec) CurrentProfilePatterns() []string

CurrentProfilePatterns returns the Firefox profile roots for the current OS.

func (MozillaSpec) ProfilePatterns

func (s MozillaSpec) ProfilePatterns(goos string) []string

ProfilePatterns returns the expanded Firefox profile roots for the requested OS.

type SafariPlatform

type SafariPlatform struct {
	CookiePathTemplates []string
}

SafariPlatform defines Safari cookie paths for one OS.

type SafariSpec

type SafariSpec struct {
	Name      string
	Platforms map[string]SafariPlatform
}

SafariSpec describes Safari-family browser metadata across supported OSes.

func MustSafari

func MustSafari(name string) SafariSpec

MustSafari returns a Safari spec and panics when the name is unknown.

func (SafariSpec) CookiePatterns

func (s SafariSpec) CookiePatterns(goos string) []string

CookiePatterns returns the Safari cookie-store globs for the requested OS.

func (SafariSpec) CurrentCookiePatterns

func (s SafariSpec) CurrentCookiePatterns() []string

CurrentCookiePatterns returns the Safari cookie-store globs for the current OS.

type Secret

type Secret struct {
	Service string
	Account string
}

Secret identifies a browser decryption secret.

type WindowsKeySource

type WindowsKeySource string

WindowsKeySource identifies which Local State key entry can decrypt cookies.

const (
	// WindowsEncryptedKey is the classic DPAPI-protected key.
	WindowsEncryptedKey WindowsKeySource = "encrypted_key"
	// WindowsAppBoundEncryptedKey is the app-bound elevation-service key.
	WindowsAppBoundEncryptedKey WindowsKeySource = "app_bound_encrypted_key"
)

Jump to

Keyboard shortcuts

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