sshconfig

package
v0.0.1-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddEntry

func AddEntry(name, iface string, port int, privateKeyPath string) error

AddEntry adds an entry to the user's sshconfig

func GenerateKeys

func GenerateKeys() error

GenerateKeys generates a SSH key pair on path

func GetPort

func GetPort(name string) (int, error)

GetPort returns the corresponding SSH port for the dev env

func GetPrivateKey

func GetPrivateKey() string

GetPrivateKey returns the path to the private key

func GetPublicKey

func GetPublicKey() string

GetPublicKey returns the path to the public key

func KeyExists

func KeyExists(public, private string) bool

KeyExists returns true if the okteto key pair exists

func RemoveEntry

func RemoveEntry(name string) error

RemoveEntry removes the entry to the user's sshconfig if found

Types

This section is empty.

Jump to

Keyboard shortcuts

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