repo

package
v0.0.0-...-e455ca1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2020 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package repo gathers and maintains OCSP responses

Index

Constants

View Source
const UnknownIssuerError = OcspStoreError("unknown issuer")
View Source
const UpstreamError = OcspStoreError("upstream")

Variables

This section is empty.

Functions

This section is empty.

Types

type CompressedResponse

type CompressedResponse struct {
	RawResp                                   []byte
	CacheControl, ETag, LastModified, Expires string
}

func NewCompressedResponseFromBinaryString

func NewCompressedResponseFromBinaryString(s string, serial storage.Serial) (CompressedResponse, error)

func NewCompressedResponseFromRawResponseAndHeaders

func NewCompressedResponseFromRawResponseAndHeaders(RawResp []byte, headers map[string]string) (*CompressedResponse, error)

func (*CompressedResponse) BinaryString

func (cr *CompressedResponse) BinaryString() (string, error)

func (*CompressedResponse) Headers

func (cr *CompressedResponse) Headers() map[string]string

type OcspStore

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

func NewOcspStore

func NewOcspStore(logger blog.Logger, cache storage.RemoteCache, lifespan time.Duration, minimumCacheLife time.Duration) OcspStore

func (*OcspStore) AddFetcherForIssuer

func (c *OcspStore) AddFetcherForIssuer(issuer storage.Issuer, uf *fetcher.UpstreamFetcher) error

func (*OcspStore) Get

func (c *OcspStore) Get(ctx context.Context, req *ocsp.Request, reqBytes []byte) ([]byte, map[string]string, error)

type OcspStoreError

type OcspStoreError string

func (OcspStoreError) Error

func (e OcspStoreError) Error() string

func (OcspStoreError) OcspStoreError

func (OcspStoreError) OcspStoreError()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL