Documentation
¶
Index ¶
- func Compare(first, second *Session) bool
- func CompareWithKeys(first, second *SessionWithPrivateKeys) bool
- type AgentPrivateKey
- type AgentSettings
- type Host
- type Input
- type 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
- type SortByName
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareWithKeys ¶
func CompareWithKeys(first, second *SessionWithPrivateKeys) bool
Types ¶
type AgentPrivateKey ¶
type AgentSettings ¶
type AgentSettings struct {
PrivateKeys []AgentPrivateKey
// runtime
AuthSock string
}
func (*AgentSettings) AuthSockEnv ¶
func (s *AgentSettings) AuthSockEnv() string
func (*AgentSettings) Clone ¶
func (s *AgentSettings) Clone() *AgentSettings
type Session ¶
type Session struct {
// input
User string
Port string
BastionHost string
BastionPort string
BastionUser string
BastionPassword string
ExtraArgs string
BecomePass string
AgentSettings *AgentSettings
// contains filtered or unexported fields
}
TODO rename to Settings Session is used to store ssh settings
func NewSession ¶
func (*Session) AddAvailableHosts ¶
func (*Session) AvailableHosts ¶
func (*Session) ChoiceNewHost ¶
func (s *Session) ChoiceNewHost()
ChoiceNewHost choice new host for connection
func (*Session) CountHosts ¶
func (*Session) RemoteAddress ¶
RemoteAddress returns host or username@host
func (*Session) RemoveAvailableHosts ¶
func (*Session) SetAvailableHosts ¶
SetAvailableHosts Set Available hosts. Current host can choice
type SessionWithPrivateKeys ¶
type SessionWithPrivateKeys struct {
Session *Session
Keys []AgentPrivateKey
}
type SortByName ¶
type SortByName []Host
func (SortByName) Len ¶
func (h SortByName) Len() int
func (SortByName) Less ¶
func (h SortByName) Less(i, j int) bool
func (SortByName) Swap ¶
func (h SortByName) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.