cert

package
v0.0.0-...-4aaab71 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Now provider defaults to time.Now() when not provided
	Now        func() time.Time
	ServerName string
}

Config for evaluating metrics

type Metrics

type Metrics struct {
	EvaluatedAt         time.Time
	SecondsSinceIssued  int
	SecondsUntilExpires int
	Tags                map[string]string
}

func CollectMetrics

func CollectMetrics(ctx context.Context, path string, cfg Config) (Metrics, error)

CollectMetrics Loads a certificate at a particular location and

func (Metrics) Output

func (m Metrics) Output() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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