Documentation
¶
Index ¶
- type SshCommand
- type SshCommandInterface
- type SshConfig
- func (s *SshConfig) GetHost() string
- func (s *SshConfig) GetPassword() string
- func (s *SshConfig) GetPort() string
- func (s *SshConfig) GetPrivateKey() string
- func (s *SshConfig) GetPrivateKeyPassphrase() string
- func (s *SshConfig) GetUser() string
- func (s *SshConfig) HasChanged(other *SshConfig) bool
- func (s *SshConfig) IsValid() error
- type SshHandler
- func (s *SshHandler) Close() error
- func (s *SshHandler) WithSession(ssCommand SshCommandInterface, input *bytes.Buffer) error
- func (s *SshHandler) WithSessionReturning(ssCommand SshCommandInterface, input *bytes.Buffer) ([]byte, error)
- func (s *SshHandler) WithTerminalMode(modes *ssh.TerminalModes) (*context.Context, *context.CancelFunc)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SshCommand ¶
type SshCommand struct { CommandPrefix string BaseCommand string EnvVars map[string]string Args []string }
func (*SshCommand) GetParsedCommand ¶
func (s *SshCommand) GetParsedCommand() (string, error)
type SshCommandInterface ¶
type SshConfig ¶
type SshConfig struct {
// contains filtered or unexported fields
}
func NewSshConfig ¶
func (*SshConfig) GetPassword ¶
func (*SshConfig) GetPrivateKey ¶
func (*SshConfig) GetPrivateKeyPassphrase ¶
func (*SshConfig) HasChanged ¶
type SshHandler ¶
type SshHandler struct {
// contains filtered or unexported fields
}
func NewSshHandler ¶
func NewSshHandler(sshConfig *SshConfig) (*SshHandler, error)
func (*SshHandler) Close ¶
func (s *SshHandler) Close() error
func (*SshHandler) WithSession ¶
func (s *SshHandler) WithSession(ssCommand SshCommandInterface, input *bytes.Buffer) error
func (*SshHandler) WithSessionReturning ¶ added in v1.1.0
func (s *SshHandler) WithSessionReturning(ssCommand SshCommandInterface, input *bytes.Buffer) ([]byte, error)
func (*SshHandler) WithTerminalMode ¶
func (s *SshHandler) WithTerminalMode(modes *ssh.TerminalModes) (*context.Context, *context.CancelFunc)
Click to show internal directories.
Click to hide internal directories.