certificate

package
v0.0.0-...-48c0e9e Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateSecretData

func GenerateSecretData(notBefore, notAfter time.Time) (map[string][]byte, error)

GenerateSecretData generates the content of Secret.Data of the Webhook Secret.

func GetCABundle

func GetCABundle(data map[string][]byte) []byte

GetCABundle returns the CA certificate contained in the provided Secret.Data.

func GetDurationBeforeExpiration

func GetDurationBeforeExpiration(data map[string][]byte) (time.Duration, error)

GetDurationBeforeExpiration returns the time.Duration before the TLS certificate contained in the provided Secret.Data expires.

func ParseSecretData

func ParseSecretData(data map[string][]byte) (tls.Certificate, error)

ParseSecretData return the tls.Certificate contained in the provided Secret.Data.

Types

This section is empty.

Jump to

Keyboard shortcuts

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