util

package
v1.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMetricsCounterValueWithTags

func GetMetricsCounterValueWithTags(metricName string, tags map[string]string) (float64, error)

GetMetricsCounterValueWithTags returns counter value in float64. For test purpose only.

func OutputKeyCertToDir

func OutputKeyCertToDir(dir string, privateKey, certChain, rootCert []byte) error

Output the key and certificate to the given directory. If directory string is empty, return nil.

func ParseCertAndGetExpiryTimestamp

func ParseCertAndGetExpiryTimestamp(certByte []byte) (time.Time, error)

ParseCertAndGetExpiryTimestamp parses the first certificate in certByte and returns cert expire time, or return error if fails to parse certificate.

Types

This section is empty.

Jump to

Keyboard shortcuts

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