Versions in this module Expand all Collapse all v1 v1.0.1 Nov 17, 2023 Changes in this version + const CertNotPrecert + const EmptyChain + const FirstCert + const InvalidBase64 + const LastCert + const NewCert + const NoChainToRoot + const Param2TooBig + const ParamInvalid + const ParamNegative + const ParamTooBig + const ParamsInverted + const PrecertNotCert + const UnparsableCert + var DefaultTransport = &http.Transport + func CertsFromPEM(data []byte) []ct.ASN1Cert + func GetChain(dir, path string) ([]ct.ASN1Cert, error) + func HammerCTLog(ctx context.Context, cfg HammerConfig) error + func MakeSigner(testDir string) (crypto.Signer, error) + func NotAfterForLog(c *configpb.LogConfig) (time.Time, error) + func RunCTIntegrationForLog(cfg *configpb.LogConfig, servers, metricsServers, testdir string, ...) error + func RunCTLifecycleForLog(cfg *configpb.LogConfig, servers, metricsServers, adminServer string, ...) error + type CTLogEnv struct + CTAddr string + func NewCTLogEnv(ctx context.Context, cfgs []*configpb.LogConfig, numSequencers int, ...) (*CTLogEnv, error) + func (env *CTLogEnv) Close() + type ChainGenerator interface + CertChain func() ([]ct.ASN1Cert, error) + PreCertChain func() ([]ct.ASN1Cert, []byte, error) + func NewCopyChainGenerator(ctx context.Context, client *client.LogClient, cfg *configpb.LogConfig, ...) (ChainGenerator, error) + func NewCopyChainGeneratorFromOpts(ctx context.Context, client *client.LogClient, cfg *configpb.LogConfig, ...) (ChainGenerator, error) + func NewSyntheticChainGenerator(chain []ct.ASN1Cert, signer crypto.Signer, notAfter time.Time) (ChainGenerator, error) + type Choice string + type ClientPool interface + Next func() *client.LogClient + func NewRandomPool(servers string, pubKey *keyspb.PublicKey, prefix string) (ClientPool, error) + type CopyChainGenerator struct + func (g *CopyChainGenerator) CertChain() ([]ct.ASN1Cert, error) + func (g *CopyChainGenerator) PreCertChain() ([]ct.ASN1Cert, []byte, error) + type CopyChainOptions struct + BatchSize int + BufSize int + ParallelFetch int + StartIndex int64 + type GeneratorFactory func(c *configpb.LogConfig) (ChainGenerator, error) + func SyntheticGeneratorFactory(testDir, leafNotAfter string) (GeneratorFactory, error) + type HammerBias struct + Bias map[ctfe.EntrypointName]int + InvalidChance map[ctfe.EntrypointName]int + func (hb HammerBias) Choose() ctfe.EntrypointName + func (hb HammerBias) Invalid(ep ctfe.EntrypointName) bool + type HammerConfig struct + ChainGenerator ChainGenerator + ClientPool ClientPool + DuplicateChance int + EPBias HammerBias + EmitInterval time.Duration + IgnoreErrors bool + Limiter Limiter + LogCfg *configpb.LogConfig + MMD time.Duration + MaxGetEntries int + MaxParallelChains int + MaxRetryDuration time.Duration + MetricFactory monitoring.MetricFactory + MinGetEntries int + Operations uint64 + OversizedGetEntries bool + RequestDeadline time.Duration + StrictSTHConsistencySize bool + type Limiter interface + Wait func(context.Context) error + type RandomPool []*client.LogClient + func (p RandomPool) Next() *client.LogClient + type SyntheticChainGenerator struct + func (g *SyntheticChainGenerator) CertChain() ([]ct.ASN1Cert, error) + func (g *SyntheticChainGenerator) PreCertChain() ([]ct.ASN1Cert, []byte, error)