package
0.0.0-20250123211610-e19011b973a2
Repository: https://github.com/chromium/hstspreload.org.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
EntryToDomainState converts a preloadlist.Entry to a DomainState with no accompanying message.
ToDomainStateWithMessage converts a preloadlist.Entry to a DomainState.
MatchWanted checks that:
- All `wanted` domain names are unique.
NewMock constructs a new mock, along with a MockController pointer to control the behaviour of the new Mock.
ProdDatabase gives a Database that will call out to the real production instance of Google Cloud Datastore.
SetPendingAutomatedRemoval sets the status of a list of domains to StatusPendingAutoamtedRemoval.
TempLocalDatabase spin up an local in-memory database based on a Google Cloud Datastore emulator.
# Constants
Values for PreloadStatus.
Values for PreloadStatus.
Values for PreloadStatus.
Values for PreloadStatus.
StatusRejected is deprecated.
Values for PreloadStatus.
NOTE: If changing (or adding) these values, also update frontend/static/js/form.js.
# Structs
DatastoreBacked is a database backed by a gcd.Backend.
DomainState represents the state stored for a domain in the hstspreload submission app database.
IneligibleDomainState contains the state about a domain name that is potentially ineligible to remain on the list and is at risk for being removed from the list.
Mock is a very simple Mock for our database.
MockController keeps track of mocking behaviour.
Scan stores the Unix time this domain was scanned and the issues that arose.
# Interfaces
A Database is an abstraction over Datastore with hstspreload-specific database functions.
# Type aliases
PreloadStatus represents the current status of a domain, e.g.