...

Package notmain

import "github.com/letsencrypt/boulder/cmd/akamai-purger"
Overview
Index

Overview ▾

Index ▾

Package files

main.go

type Config

type Config struct {
    AkamaiPurger struct {
        cmd.ServiceConfig

        // MaxQueueSize is the maximum size of the purger stack. If this value
        // isn't provided it will default to `defaultQueueSize`.
        MaxQueueSize int

        BaseURL      string `validate:"required,url"`
        ClientToken  string `validate:"required"`
        ClientSecret string `validate:"required"`
        AccessToken  string `validate:"required"`
        V3Network    string `validate:"required,oneof=staging production"`

        // Throughput is a container for all throughput related akamai-purger
        // settings.
        Throughput Throughput

        // PurgeRetries is the maximum number of attempts that will be made to purge a
        // batch of URLs before the batch is added back to the stack.
        PurgeRetries int

        // PurgeRetryBackoff is the base duration that will be waited before
        // attempting to purge a batch of URLs which previously failed to be
        // purged.
        PurgeRetryBackoff config.Duration `validate:"-"`
    }
    Syslog        cmd.SyslogConfig
    OpenTelemetry cmd.OpenTelemetryConfig
}

type Throughput

Throughput is a container for all throuput related akamai-purger configuration settings.

type Throughput struct {
    // QueueEntriesPerBatch the number of cached OCSP responses to included in each
    // purge request. One cached OCSP response is composed of 3 URLs totaling <
    // 400 bytes. If this value isn't provided it will default to
    // 'defaultQueueEntriesPerBatch'.
    QueueEntriesPerBatch int

    // PurgeBatchInterval is the duration waited between dispatching an Akamai
    // purge request containing 'QueueEntriesPerBatch' * 3 URLs. If this value
    // isn't provided it will default to 'defaultPurgeBatchInterval'.
    PurgeBatchInterval config.Duration `validate:"-"`
}