Documentation ¶
Index ¶
- Variables
- func EncodePrivateKeyToPEM(privateKey *rsa.PrivateKey) []byte
- func GeneratePrivateKey(bitSize int) (*rsa.PrivateKey, error)
- func GeneratePublicKey(privatekey *rsa.PublicKey) ([]byte, error)
- func TryCreateMachineSshCertificate(settings *config.Settings) error
- func TryWriteSshConfigFile(username string, sshDirectory string, certFileName string) error
- type ConfigEntry
- type Field
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrEndOfRecord = errors.New("end of record") ErrInvalidPortValue = errors.New("invalid port value") )
Functions ¶
func EncodePrivateKeyToPEM ¶
func EncodePrivateKeyToPEM(privateKey *rsa.PrivateKey) []byte
encodePrivateKeyToPEM encodes Private Key from RSA to PEM format
func GeneratePrivateKey ¶
func GeneratePrivateKey(bitSize int) (*rsa.PrivateKey, error)
generatePrivateKey creates a RSA Private Key of specified byte size
func GeneratePublicKey ¶
generatePublicKey take a rsa.PublicKey and return bytes suitable for writing to .pub file returns in the format "ssh-rsa ..."
func TryCreateMachineSshCertificate ¶
TryCreateMachineSshCertificate - creates a Cert for SSH access of the new machine if the user didn't provide one in settings
Types ¶
type ConfigEntry ¶
func (ConfigEntry) Compare ¶
func (e1 ConfigEntry) Compare(e2 ConfigEntry) bool
Click to show internal directories.
Click to hide internal directories.