{"modulePath":"github.com/recode-sh/cli","version":"v0.1.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package ssh\n\n## Constants\n\n```go\nconst ConfigFilePerm os.FileMode = 0644\n```\n\n```go\nconst KnownHostsFilePerm os.FileMode = 0644\n```\n\n```go\nconst PrivateKeyFilePerm os.FileMode = 0600\n```\n\n## Types\n\n```go\ntype Config struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewConfig(configFilePath string) Config\n```\n\n```go\nfunc NewConfigWithDefaultConfigFilePath() Config\n```\n\n```go\nfunc (c Config) AddOrReplaceHost(\n\thostKey string,\n\thostName string,\n\tidentityFile string,\n\tuser string,\n\tport int64,\n) error\n```\n\n```go\nfunc (c Config) RemoveHostIfExists(hostKey string) error\n```\n\n```go\nfunc (c Config) UpdateHost(\n\thostKey string,\n\thostName *string,\n\tidentityFile *string,\n\tuser *string,\n) error\n```\n\n```go\ntype Keys struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewKeys(SSHDir string) Keys\n```\n\n```go\nfunc NewKeysWithDefaultDir() Keys\n```\n\n```go\nfunc (k Keys) CreateOrReplacePEM(\n\tPEMName string,\n\tPEMContent string,\n) (pathWritten string, err error)\n```\n\n```go\nfunc (k Keys) GetPEMFilePath(PEMName string) string\n```\n\n```go\nfunc (k Keys) RemovePEMIfExists(PEMName string) error\n```\n\n```go\ntype KnownHosts struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewKnownHosts(knownHostsFilePath string) KnownHosts\n```\n\n```go\nfunc NewKnownHostsWithDefaultKnownHostsFilePath() KnownHosts\n```\n\n```go\nfunc (k KnownHosts) AddOrReplace(hostname, algorithm, fingerprint string) error\n```\n\n```go\nfunc (k KnownHosts) RemoveIfExists(hostname string) error\n```\n\n```go\ntype PortForwarder struct{}\n```\n\n```go\nfunc NewPortForwarder() PortForwarder\n```\n\n```go\nfunc (p PortForwarder) Forward(\n\tonReadyChan chan\u003c- PortForwarderReadyResp,\n\tprivateKeyBytes []byte,\n\tuser string,\n\tserverAddr string,\n\tlocalAddr string,\n\tremoteAddrProtocol string,\n\tremoteAddr string,\n) error\n```\n\n```go\ntype PortForwarderReadyResp struct {\n\tError     error\n\tLocalAddr string\n}\n```\n\n","path":"github.com/recode-sh/cli/internal/ssh","name":"ssh","synopsis":"","isRedistributable":true}
