Documentation ¶
Index ¶
- func AddEntry(eo EntryOptions) error
- func BuildHostname(name string) string
- func DefaultKeyExists() (bool, error)
- func GenerateKeys() error
- func GetPort(name string) (int, error)
- func GetPrivateKey() (string, error)
- func GetPrivateKeyOrPanic() string
- func GetPublicKey() (string, error)
- func GetPublicKeyOrPanic() string
- func KeyExists(public, private string) bool
- func RemoveEntry(name string) error
- func ReplaceKeyManagedByEnvd(oldKey string, newKey string) error
- type EntryOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildHostname ¶ added in v0.3.18
func DefaultKeyExists ¶ added in v0.2.0
func GetPrivateKey ¶
GetPrivateKey returns the path to the private key
func GetPrivateKeyOrPanic ¶ added in v0.2.0
func GetPrivateKeyOrPanic() string
GetPrivateKeyOrPanic returns the path to the private key or panic.
func GetPublicKey ¶
GetPublicKey returns the path to the public key
func GetPublicKeyOrPanic ¶ added in v0.2.0
func GetPublicKeyOrPanic() string
GetPublicKeyOrPanic returns the path to the public key or panic.
func RemoveEntry ¶
RemoveEntry removes the entry to the user's sshconfig if found
func ReplaceKeyManagedByEnvd ¶ added in v0.2.0
Types ¶
Click to show internal directories.
Click to hide internal directories.