certscache

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package certscache provides for issuing and caching of cloudlet rootLB certificates.

Index

Constants

View Source
const DefaultRefreshThreshold = 20 * 24 * time.Hour
View Source
const LETS_ENCRYPT_MAX_DOMAINS_PER_CERT = 100

Variables

This section is empty.

Functions

func GetWildcardName

func GetWildcardName(fqdn string) string

Types

type ProxyCertsCache

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

func NewProxyCertsCache

func NewProxyCertsCache(publicCertAPI cloudcommon.GetPublicCertApi) *ProxyCertsCache

func (*ProxyCertsCache) Count

func (s *ProxyCertsCache) Count(key *edgeproto.CloudletKey) int

func (*ProxyCertsCache) GetCert

func (s *ProxyCertsCache) GetCert(ctx context.Context, key *edgeproto.CloudletKey, fqdn string, commercialCerts bool) (access.TLSCert, error)

func (*ProxyCertsCache) Has

func (s *ProxyCertsCache) Has(key *edgeproto.CloudletKey, wildcardName string) bool

func (*ProxyCertsCache) RefreshCert

func (s *ProxyCertsCache) RefreshCert(ctx context.Context, key *edgeproto.CloudletKey, wildcardName string, commercialCerts bool) (access.TLSCert, bool, error)

RefreshCert returns the new cert and true if was refreshed

func (*ProxyCertsCache) RemoveUnused

func (s *ProxyCertsCache) RemoveUnused(ctx context.Context, key *edgeproto.CloudletKey, inUseWildcardNames map[string][]string)

func (*ProxyCertsCache) SetRefreshThreshold

func (s *ProxyCertsCache) SetRefreshThreshold(refreshThreshold time.Duration)

Jump to

Keyboard shortcuts

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