# Packages
Package cache defines the IssuanceChainCache type, which allows different cache implementation with Get and Set operations.
The ct_server binary runs the CT personality.
Package storage defines the IssuanceChainStorage type, which allows different storage implementation for the key-value pairs of issuance chains.
Package testonly contains code and data that should only be used by tests.
# Functions
BuildLogBackendMap returns a map from log backend names to the corresponding LogBackend objects.
GetCTLogID takes the key manager for a log and returns the LogID.
IsPrecertificate tests if a certificate is a pre-certificate as defined in CT.
LogConfigFromFile creates a slice of LogConfig options from the given filename, which should contain text or binary-encoded protobuf configuration data.
MultiLogConfigFromFile creates a LogMultiConfig proto from the given filename, which should contain text or binary-encoded protobuf configuration data.
NewCertValidationOpts builds validation options based on parameters.
ParseBodyAsJSONChain tries to extract cert-chain out of request.
QuotaUserForCert returns a User quota id string for the passed in certificate.
SetUpInstance sets up a log (or log mirror) instance using the provided configuration, and returns an object containing a set of handlers for this log, and an STH getter.
ToMultiLogConfig creates a multi backend config proto from the data loaded from a single-backend configuration file.
ValidateChain takes the certificate chain as it was parsed from a JSON request.
ValidateLogConfig checks that a single log config is valid.
ValidateLogConfigs checks that a config is valid for use with a single log server.
ValidateLogMultiConfig checks that a config is valid for use with multiple backend log servers.
# Constants
Constants for entrypoint names, as exposed in statistics/logging.
Constants for entrypoint names, as exposed in statistics/logging.
CertificateQuotaUserPrefix is prepended to all User quota ids association with intermediate certificates.
Constants for entrypoint names, as exposed in statistics/logging.
Constants for entrypoint names, as exposed in statistics/logging.
Constants for entrypoint names, as exposed in statistics/logging.
Constants for entrypoint names, as exposed in statistics/logging.
Constants for entrypoint names, as exposed in statistics/logging.
Constants for entrypoint names, as exposed in statistics/logging.
# Variables
Entrypoints is a list of entrypoint names as exposed in statistics/logging.
MaxGetEntriesAllowed is the number of entries we allow in a get-entries request.
# Structs
AppHandler holds a logInfo and a handler function that uses it, and is an implementation of the http.Handler interface.
CertValidationOpts contains various parameters for certificate chain validation.
DefaultMirrorSTHFactory creates DefaultMirrorSTHStorage instances.
DefaultMirrorSTHStorage is a dummy STH storage that always returns an error.
DefaultRequestLog is an implementation of RequestLog that does nothing except log the calls at a high level of verbosity.
FrozenSTHGetter is an STHGetter implementation returning a constant STH.
Instance is a set up log/mirror instance.
InstanceOptions describes the options for a log instance.
LogSTHGetter is an STHGetter implementation for regular (non-mirror) logs, i.e.
MirrorSTHGetter is an STHGetter implementation for mirror logs.
SignatureCache is a one-entry cache that stores the last generated signature for a given bytes input.
ValidatedLogConfig represents the LogConfig with the information that has been successfully parsed as a result of validating it.
# Interfaces
MirrorSTHStorage provides STHs of a source log to be served from a mirror.
RequestLog allows implementations to do structured logging of CTFE request parameters, submitted chains and other internal details that are useful for log operators when debugging issues.
STHGetter provides latest STHs for a log.
# Type aliases
EntrypointName identifies a CT entrypoint as defined in section 4 of RFC 6962.
LogBackendMap is a map from log backend names to LogBackend objects.
PathHandlers maps from a path to the relevant AppHandler instance.