sshpool

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2025 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager manages SSH connection pools for multiple hosts

func NewManager

func NewManager(cfg *config.Config) *Manager

NewManager creates a new SSH pool manager

func (*Manager) ClearAuthMethodCache

func (m *Manager) ClearAuthMethodCache(host string)

ClearAuthMethodCache clears the authentication method cache for a specific host or all hosts This is useful for testing or when you want to force re-detection of authentication methods

func (*Manager) Close

func (m *Manager) Close() error

Close closes all SSH pools

func (*Manager) CloseHost

func (m *Manager) CloseHost(host string)

CloseHost closes the SSH pool for a specific host

func (*Manager) GetPool

func (m *Manager) GetPool(host string, hostVars map[string]interface{}) (*desopssshpool.Pool, error)

GetPool returns or creates an SSH pool for the given host

Jump to

Keyboard shortcuts

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