boulder: github.com/letsencrypt/boulder/akamai Index | Files | Directories

package akamai

import "github.com/letsencrypt/boulder/akamai"

Index

Package Files

cache-client.go

Variables

var (
    // ErrAllRetriesFailed lets the caller of Purge to know if all the purge submission
    // attempts failed
    ErrAllRetriesFailed = errors.New("All attempts to submit purge request failed")
)

func CheckSignature Uses

func CheckSignature(secret string, url string, r *http.Request, body []byte) error

CheckSignature is used for tests, it exported so that it can be used in akamai-test-srv

func GeneratePurgeURLs Uses

func GeneratePurgeURLs(der []byte, issuer *x509.Certificate) ([]string, error)

GeneratePurgeURLs ...

type CachePurgeClient Uses

type CachePurgeClient struct {
    // contains filtered or unexported fields
}

CachePurgeClient talks to the Akamai CCU REST API. It is safe to make concurrent purge requests.

func NewCachePurgeClient Uses

func NewCachePurgeClient(
    endpoint,
    clientToken,
    clientSecret,
    accessToken string,
    v3Network string,
    retries int,
    retryBackoff time.Duration,
    log blog.Logger,
    stats metrics.Scope,
) (*CachePurgeClient, error)

NewCachePurgeClient constructs a new CachePurgeClient

func (*CachePurgeClient) Purge Uses

func (cpc *CachePurgeClient) Purge(urls []string) error

Purge attempts to send a purge request to the Akamai CCU API cpc.retries number

of times before giving up and returning ErrAllRetriesFailed

Directories

PathSynopsis
proto

Package akamai imports 19 packages (graph) and is imported by 44 packages. Updated 2019-04-21. Refresh now. Tools for package owners.