package
0.0.0-20250204174719-2471e0a70201
Repository: https://github.com/chromium/hstspreload.git
Documentation: pkg.go.dev
# Functions
NewFromChromiumURL retrieves the PreloadList from a URL that returns the list in base 64.
NewFromFile reads a PreloadList from a JSON file.
NewFromLatest retrieves the latest PreloadList from the Chromium source at https://chromium.googlesource.com/chromium/src/+/master/net/http/transport_security_state_static.json
Note that this list may be up to 12 weeks fresher than the list used by the current stable version of Chrome.
Parse reads a preload list in JSON format (with certain possible comments) and returns a parsed version.
# Constants
AncestorEntryFound indicates that the domain is preloaded because one of its ancestor domains is on the preload list and has "include_subdomains" set to true.
Bulk entries with max-age >= 18 weeks (Chrome 50-63).
Bulk entries with max-age >= 1 year (after Chrome 63).
Bulk entries preloaded before Chrome 50.
Entries without includeSubdomains or with HPKP.
EntryNotFound indicates that domain not preloaded.
ExactEntryFound indicates that the domain itself is on the preload list.
ForceHTTPS indicates that all requests should be upgraded from HTTP to HTTPS using the HSTS mechanism (https://tools.ietf.org/html/rfc6797).
Google-owned sites.
LatestChromiumURL is the URL of the latest preload list in the Chromium source.
Public suffixes (e.g.
Domains under a public suffix that have been preloaded at the request of the the public suffix owner (e.g.
Test domains.
Domains with an unspecified policy type.
# Structs
A Entry contains the data from an entry in the Chromium Preload list.
IndexedEntries is case-insensitive index of the entries from the given PreloadList.
PreloadList contains a parsed form of the Chromium Preload list.
# Type aliases
HstsPreloadEntryFound indicates if a domain is preloaded.
PolicyType represents the policy under which the domain was added to the preload list.