Documentation
¶
Index ¶
Constants ¶
View Source
const ( EnvDisableSSHConfig = "NB_DISABLE_SSH_CONFIG" EnvForceSSHConfig = "NB_FORCE_SSH_CONFIG" MaxPeersForSSHConfig = 200 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager handles SSH client configuration for NetBird peers
func (*Manager) GetSSHConfigDir ¶
GetSSHConfigDir returns the SSH config directory path
func (*Manager) GetSSHConfigFile ¶
GetSSHConfigFile returns the SSH config file name
func (*Manager) RemoveSSHClientConfig ¶
RemoveSSHClientConfig removes NetBird SSH configuration
func (*Manager) SetupSSHClientConfig ¶
func (m *Manager) SetupSSHClientConfig(peers []PeerSSHInfo) error
SetupSSHClientConfig creates SSH client configuration for NetBird peers
type PeerSSHInfo ¶
PeerSSHInfo represents a peer's SSH configuration information
type ShutdownState ¶
ShutdownState represents SSH configuration state that needs to be cleaned up.
func (*ShutdownState) Cleanup ¶
func (s *ShutdownState) Cleanup() error
Cleanup removes SSH client configuration files.
func (*ShutdownState) Name ¶
func (s *ShutdownState) Name() string
Name returns the state name for the state manager.
Click to show internal directories.
Click to hide internal directories.