Documentation
¶
Overview ¶
Package browsercfg defines browser discovery metadata shared by the loaders.
Index ¶
- type ChromiumPlatform
- type ChromiumSpec
- func (s ChromiumSpec) CookiePatterns(goos string) []string
- func (s ChromiumSpec) CurrentCookiePatterns() []string
- func (s ChromiumSpec) CurrentLinuxKWalletRefs() []LinuxKWalletRef
- func (s ChromiumSpec) CurrentLinuxLibsecretRefs() []LinuxLibsecretRef
- func (s ChromiumSpec) CurrentLocalStatePaths() []string
- func (s ChromiumSpec) CurrentSecrets() []Secret
- func (s ChromiumSpec) CurrentWindowsKeySources() []WindowsKeySource
- func (s ChromiumSpec) LinuxKWalletRefs(goos string) []LinuxKWalletRef
- func (s ChromiumSpec) LinuxLibsecretRefs(goos string) []LinuxLibsecretRef
- func (s ChromiumSpec) LocalStatePaths(goos string) []string
- func (s ChromiumSpec) Secrets(goos string) []Secret
- func (s ChromiumSpec) WindowsKeySources(goos string) []WindowsKeySource
- type LinuxKWalletRef
- type LinuxLibsecretRef
- type MozillaPlatform
- type MozillaSpec
- type SafariPlatform
- type SafariSpec
- type Secret
- type WindowsKeySource
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 ¶
LinuxKWalletRef identifies one KWallet lookup target.
type LinuxLibsecretRef ¶
LinuxLibsecretRef identifies one libsecret lookup target.
type MozillaPlatform ¶
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 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" )