Documentation ¶
Index ¶
- Constants
- type Config
- func (c Config) AddOrReplaceHost(hostKey string, hostName string, identityFile string, user string, port int64) error
- func (c Config) CountEntriesWithHostPrefix(hostPrefix string) (int, error)
- func (c Config) RemoveHostIfExists(hostKey string) error
- func (c Config) UpdateHost(hostKey string, hostName *string, identityFile *string, user *string) error
- type Keys
- type KnownHosts
- type PortForwarder
- type PortForwarderReadyResp
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) CountEntriesWithHostPrefix ¶
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.