encoding

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2019 License: Apache-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigEncodeCertificate

func ConfigEncodeCertificate(certificate *x509.Certificate) string

ConfigEncodeCertificate returns a X.509 certificate encoded for use in an IdentityConfig.

func ConfigEncodeCertificates

func ConfigEncodeCertificates(certificates []*x509.Certificate) string

ConfigEncodeCertificates returns X.509 certificates encoded for use in an IdentityConfig.

func ConfigEncodeKey

func ConfigEncodeKey(key *rsa.PrivateKey) string

ConfigEncodeKey returns an RSA key encoded for use in an IdentityConfig.

func PEMEncodeCertificate

func PEMEncodeCertificate(certificate *x509.Certificate) string

PEMEncodeCertificate returns the PEM encoded string for an X.509 certificate.

func PEMEncodeCertificates

func PEMEncodeCertificates(certificates []*x509.Certificate) []string

PEMEncodeCertificates returns the PEM encoded strings for an array of X.509 certificates.

func PEMEncodeKey

func PEMEncodeKey(key *rsa.PrivateKey) string

PEMEncodeKey returns the PEM encoded string for an RSA key.

Types

This section is empty.

Jump to

Keyboard shortcuts

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