Documentation
¶
Index ¶
Constants ¶
View Source
const (
DefaultPort = 22
)
Variables ¶
This section is empty.
Functions ¶
func DeleteKeyPairFiles ¶
func DeleteKeyPairFiles(files *KeyPairFiles) error
DeleteKeyPairFiles deletes the keypair files.
func GenerateSSHKey ¶
func GenerateSSHKey(basePath string, keyName string) (*KeyPair, *KeyPairFiles, error)
GenerateSSHKey generates SSH keypair based on a base path.
Types ¶
type KeyPair ¶
KeyPair represents a private & public keypair.
func NewKeyPair ¶
NewKeyPair generates a new SSH keypair This will return a private & public key encoded as DER.
type KeyPairFiles ¶
type KeyPairFiles struct {
PrivateKeyPath string `json:"publicKeyPath"`
PublicKeyPath string `json:"privateKeyPath"`
}
KeyPairFiles holds the paths to a private & public key files.
Click to show internal directories.
Click to hide internal directories.