config

package
v0.3.45 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 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(eo EntryOptions) error

AddEntry adds an entry to the user's sshconfig

func BuildHostname added in v0.3.18

func BuildHostname(name string) string

func DefaultKeyExists added in v0.2.0

func DefaultKeyExists() (bool, error)

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, error)

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

func GetPublicKey() (string, error)

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 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

func ReplaceKeyManagedByEnvd added in v0.2.0

func ReplaceKeyManagedByEnvd(oldKey string, newKey string) error

Types

type EntryOptions added in v0.2.4

type EntryOptions struct {
	Name           string
	IFace          string
	Port           int
	PrivateKeyPath string

	EnableHostKeyCheck bool
	EnableAgentForward bool
	User               string
}

Jump to

Keyboard shortcuts

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