Versions in this module Expand all Collapse all v0 v0.2.0 Feb 10, 2026 v0.1.0 Feb 9, 2026 Changes in this version + func Compare(first, second *Session) bool + func CompareWithKeys(first, second *SessionWithPrivateKeys) bool + type AgentPrivateKey struct + Key string + Passphrase string + type AgentSettings struct + AuthSock string + PrivateKeys []AgentPrivateKey + func (s *AgentSettings) AuthSockEnv() string + func (s *AgentSettings) Clone() *AgentSettings + type Host struct + Host string + Name string + func (h *Host) String() string + type Input struct + AvailableHosts []Host + BastionHost string + BastionPassword string + BastionPort string + BastionUser string + BecomePass string + ExtraArgs string + Port string + User string + type Session struct + AgentSettings *AgentSettings + BastionHost string + BastionPassword string + BastionPort string + BastionUser string + BecomePass string + ExtraArgs string + Port string + User string + func NewSession(input Input) *Session + func (s *Session) AddAvailableHosts(hosts ...Host) + func (s *Session) AvailableHosts() []Host + func (s *Session) ChoiceNewHost() + func (s *Session) Copy() *Session + func (s *Session) CountHosts() int + func (s *Session) Host() string + func (s *Session) RemoteAddress() string + func (s *Session) RemoveAvailableHosts(hosts ...Host) + func (s *Session) SetAvailableHosts(hosts []Host) + func (s *Session) String() string + type SessionWithPrivateKeys struct + Keys []AgentPrivateKey + Session *Session + type SortByName []Host + func (h SortByName) Len() int + func (h SortByName) Less(i, j int) bool + func (h SortByName) Swap(i, j int)