# Packages
ct_hammer is a stress/load test for a CT log.
# Functions
CertsFromPEM loads X.509 certificates from the provided PEM-encoded data.
GetChain retrieves a certificate from a file of the given name and directory.
HammerCTLog performs load/stress operations according to given config.
MakeSigner creates a signer using the private key in the test directory.
NewCopyChainGenerator builds a certificate chain generator that sources chains from another source log, starting at startIndex (or a random index in the current tree size if startIndex is negative).
NewCopyChainGeneratorFromOpts builds a certificate chain generator that sources chains from another source log, starting at opts.StartIndex (or a random index in the current tree size if this is negative).
NewCTLogEnv creates a fresh DB, log server, and CT personality.
NewRandomPool creates a pool which returns a random client from list of servers.
NewSyntheticChainGenerator returns a ChainGenerator that mints synthetic certificates based on the given template chain.
NotAfterForLog returns a NotAfter time to be used for certs submitted to the given log instance, allowing for any temporal shard configuration.
RunCTIntegrationForLog tests against the log with configuration cfg, with a set of comma-separated server addresses given by servers, assuming that testdir holds a variety of test data files.
RunCTLifecycleForLog does a simple log lifecycle test.
SyntheticGeneratorFactory returns a function that creates per-Log ChainGenerator instances that create synthetic certificates (details of which are specified by the arguments).
# Constants
Constants for per-operation choices.
Constants for per-operation choices.
Constants for per-operation choices.
Constants for per-operation choices.
Constants for per-operation choices.
Constants for per-operation choices.
Constants for per-operation choices.
Constants for per-operation choices.
Constants for per-operation choices.
Constants for per-operation choices.
Constants for per-operation choices.
Constants for per-operation choices.
Constants for per-operation choices.
Constants for per-operation choices.
# Variables
DefaultTransport is a http Transport more suited for use in the hammer context.
# Structs
CopyChainGenerator creates certificate chains by copying suitable examples from a source log.
CopyChainOptions describes the parameters for a CopyChainGenerator instance.
CTLogEnv is a test environment that contains both a log server and a CT personality connected to it.
HammerBias indicates the bias for selecting different log operations.
HammerConfig provides configuration for a stress/load test.
SyntheticChainGenerator builds synthetic certificate chains based on a template chain and intermediate CA private key.
# Interfaces
ChainGenerator encapsulates objects that can generate certificate chains for testing.
ClientPool describes an entity which produces LogClient instances.
Limiter is an interface to allow different rate limiters to be used with the hammer.
# Type aliases
Choice represents a random decision about a hammer operation.
GeneratorFactory is a method that builds a Log-specific ChainGenerator.
RandomPool holds a collection of CT LogClient instances.