Documentation ¶
Index ¶
- type GoWinRMErr
- type HttpRequestWrapper
- type InteractiveCommand
- type ResultCommand
- type SSP
- type SSPImpl
- type Shell
- func (s *Shell) Close() error
- func (s *Shell) Disconnect() error
- func (s *Shell) ExecuteInteractive(command string, arguments ...string) (*InteractiveCommand, error)
- func (s *Shell) ExecuteResult(command string, arguments ...string) (*ResultCommand, error)
- func (s *Shell) Open() error
- func (s *Shell) Reconnect() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoWinRMErr ¶
func (*GoWinRMErr) Error ¶
func (e *GoWinRMErr) Error() string
type InteractiveCommand ¶
type InteractiveCommand struct {
*ResultCommand
}
type ResultCommand ¶
type ResultCommand struct {
// contains filtered or unexported fields
}
func (*ResultCommand) Close ¶
func (c *ResultCommand) Close() error
func (*ResultCommand) Receive ¶
func (c *ResultCommand) Receive(outputStreamsMap map[string]io.Writer) error
func (*ResultCommand) Stop ¶
func (c *ResultCommand) Stop() error
type SSP ¶
type SSP interface { io.Closer GetRemoteEndpointAddress() string Dial(requestTimeout time.Duration, requestMsg []byte) ([]byte, error) }
Security Support Provider
type SSPImpl ¶
type SSPImpl struct { HttpClient *http.Client UseTLS bool Host string Port int64 WrapHttpRequest HttpRequestWrapper }
The implementation of Security Support Provider
func (*SSPImpl) GetRemoteEndpointAddress ¶
type Shell ¶
type Shell struct {
// contains filtered or unexported fields
}
func (*Shell) Disconnect ¶
func (*Shell) ExecuteInteractive ¶
func (s *Shell) ExecuteInteractive(command string, arguments ...string) (*InteractiveCommand, error)
func (*Shell) ExecuteResult ¶
func (s *Shell) ExecuteResult(command string, arguments ...string) (*ResultCommand, error)
Click to show internal directories.
Click to hide internal directories.