package
12.0.0+incompatible
Repository: https://github.com/kubernetes/client-go.git
Documentation: pkg.go.dev
# Functions
LoadOrGenerateKeyFile looks for a key in the file at the given path.
MakeEllipticPrivateKeyPEM creates an ECDSA private key.
MarshalPrivateKeyToPEM converts a known private key type of RSA or ECDSA to a PEM encoded block or returns an error.
ParsePrivateKeyPEM returns a private key parsed from a PEM block in the supplied data.
ParsePublicKeysPEM is a helper function for reading an array of rsa.PublicKey or ecdsa.PublicKey from a PEM-encoded byte array.
PrivateKeyFromFile returns the private key in rsa.PrivateKey or ecdsa.PrivateKey format from a given PEM-encoded file.
PublicKeysFromFile returns the public keys in rsa.PublicKey or ecdsa.PublicKey format from a given PEM-encoded file.
WriteKey writes the pem-encoded key data to keyPath.
# Constants
ECPrivateKeyBlockType is a possible value for pem.Block.Type.
PrivateKeyBlockType is a possible value for pem.Block.Type.
PublicKeyBlockType is a possible value for pem.Block.Type.
RSAPrivateKeyBlockType is a possible value for pem.Block.Type.