renew_strategy

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: GPL-3.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPercentage

func GetPercentage(cert x509.Certificate) float32

Types

type Percentage

type Percentage struct {
	PercentageMinThreshold float32
}

func NewPercentage

func NewPercentage(percentage float32) (*Percentage, error)

func (*Percentage) Renew

func (p *Percentage) Renew(cert *x509.Certificate) (bool, error)

type StaticRenewal

type StaticRenewal struct {
	Decision bool
}

func NewStaticRenewal

func NewStaticRenewal(renew bool) (*StaticRenewal, error)

func (*StaticRenewal) Renew

func (p *StaticRenewal) Renew(cert *x509.Certificate) (bool, error)

Jump to

Keyboard shortcuts

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