Documentation ¶
Index ¶
Constants ¶
View Source
const ConfigFilePerm os.FileMode = 0644
View Source
const KnownHostsFilePerm os.FileMode = 0644
View Source
const PrivateKeyFilePerm os.FileMode = 0600
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func NewConfigWithDefaultConfigFilePath ¶
func NewConfigWithDefaultConfigFilePath() Config
func (Config) AddOrReplaceHost ¶
func (Config) RemoveHostIfExists ¶
type Keys ¶
type Keys struct {
// contains filtered or unexported fields
}
func NewKeysWithDefaultDir ¶
func NewKeysWithDefaultDir() Keys
func (Keys) CreateOrReplacePEM ¶
func (Keys) GetPEMFilePath ¶
func (Keys) RemovePEMIfExists ¶
type KnownHosts ¶
type KnownHosts struct {
// contains filtered or unexported fields
}
func NewKnownHosts ¶
func NewKnownHosts(knownHostsFilePath string) KnownHosts
func NewKnownHostsWithDefaultKnownHostsFilePath ¶
func NewKnownHostsWithDefaultKnownHostsFilePath() KnownHosts
func (KnownHosts) AddOrReplace ¶
func (k KnownHosts) AddOrReplace(hostname, algorithm, fingerprint string) error
func (KnownHosts) RemoveIfExists ¶
func (k KnownHosts) RemoveIfExists(hostname string) error
type PortForwarder ¶
type PortForwarder struct{}
func NewPortForwarder ¶
func NewPortForwarder() PortForwarder
type PortForwarderReadyResp ¶
Click to show internal directories.
Click to hide internal directories.