Documentation
¶
Overview ¶
Package certscache provides for issuing and caching of cloudlet rootLB certificates.
Index ¶
- Constants
- func GetWildcardName(fqdn string) string
- type ProxyCertsCache
- func (s *ProxyCertsCache) Count(key *edgeproto.CloudletKey) int
- func (s *ProxyCertsCache) GetCert(ctx context.Context, key *edgeproto.CloudletKey, fqdn string, ...) (access.TLSCert, error)
- func (s *ProxyCertsCache) Has(key *edgeproto.CloudletKey, wildcardName string) bool
- func (s *ProxyCertsCache) RefreshCert(ctx context.Context, key *edgeproto.CloudletKey, wildcardName string, ...) (access.TLSCert, bool, error)
- func (s *ProxyCertsCache) RemoveUnused(ctx context.Context, key *edgeproto.CloudletKey, ...)
- func (s *ProxyCertsCache) SetRefreshThreshold(refreshThreshold time.Duration)
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 ¶
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)
Click to show internal directories.
Click to hide internal directories.