ssh

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertInfo

type CertInfo struct {
	Type        string
	Serial      uint64
	ValidAfter  time.Time
	ValidBefore time.Time
}

func ParseCertData

func ParseCertData(pubKeyBytes []byte) (CertInfo, error)

func ReadCertFromDisk

func ReadCertFromDisk(publicKeyFile string) (CertInfo, error)

func (*CertInfo) GetPercentage

func (l *CertInfo) GetPercentage() float32

type PercentageRenewStrategy

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

func NewPercentageStrategy

func NewPercentageStrategy(minPercentageLeft float32) (*PercentageRenewStrategy, error)

func (*PercentageRenewStrategy) NeedsNewSignature

func (s *PercentageRenewStrategy) NeedsNewSignature(lifetime *CertInfo) bool

type RefreshSignatureStrategy

type RefreshSignatureStrategy interface {
	NeedsNewSignature(*CertInfo) bool
}

type SimpleStrategy

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

func NewSimpleStrategy

func NewSimpleStrategy(renew bool) *SimpleStrategy

func (*SimpleStrategy) NeedsNewSignature

func (s *SimpleStrategy) NeedsNewSignature(lifetime *CertInfo) bool

Jump to

Keyboard shortcuts

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