Documentation ¶
Index ¶
- func After(d time.Duration) pki.Expiry
- func AfterProgress(progress float32) pki.Expiry
- func AfterProgressT(progress float32, now Now) pki.Expiry
- func AfterT(d time.Duration, now Now) pki.Expiry
- func AfterValid(d time.Duration) pki.Expiry
- func AfterValidT(d time.Duration, now Now) pki.Expiry
- func Always(cert *tls.Certificate, pool []*x509.Certificate, err error) bool
- func BeforeInvalid(d time.Duration) pki.Expiry
- func BeforeInvalidT(d time.Duration, now Now) pki.Expiry
- func Manually() (expiry pki.Expiry, expire func())
- func Never(cert *tls.Certificate, pool []*x509.Certificate, err error) bool
- type Now
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AfterProgress ¶
AfterProgress is like AfterProgressT using time.Now.
func AfterProgressT ¶
AfterProgressT returns a pki.Expiry that returns true if age >= cert.NotAfter-cert.NotBefore * progress. For example if progress were 0.5 then true is returned when now is half way between NotAfter and NotBefore.
func AfterT ¶
AfterT returns a pki.Expiry that returns true the first time it is called after d multiples of time have passed.
func AfterValid ¶
AfterValid is like AfterValidT using time.Now.
func AfterValidT ¶
AfterValidT returns a pki.Expiry that returns true if now >= cert.NotBefore + d.
func Always ¶
func Always(cert *tls.Certificate, pool []*x509.Certificate, err error) bool
Always is a pki.Expiry that always returns true.
func BeforeInvalid ¶
BeforeInvalid is like BeforeInvalidT using time.Now.
func BeforeInvalidT ¶
BeforeInvalidT returns a pki.Expiry that returns true if now >= cert.NotAfter - d.
func Manually ¶
Manually returns a pki.Expiry that returns true the first time it is called after expire is invoked.
func Never ¶
func Never(cert *tls.Certificate, pool []*x509.Certificate, err error) bool
Never is a pki.Expiry that always returns false.