Documentation ¶
Index ¶
- Variables
- func AuthHttpRequestWrapperFactory() transport.HttpRequestWrapper
- func ChallengeHttpRequestWrapperFactory(username, password string) transport.HttpRequestWrapper
- func NewBasicSSP(username, password string, host string, useTLS bool, security *Security) *transport.SSPImpl
- func NewCertificateSSP(host string, security *Security) *transport.SSPImpl
- func NewNtlmSSP(username, password string, host string, security *Security) *transport.SSPImpl
- type Security
- func (s *Security) Error() error
- func (s *Security) HasError() bool
- func (s *Security) WithClientCert(clientCertPem []byte, clientKeyPem []byte) *Security
- func (s *Security) WithServerCAs(serverCAsPem []byte) *Security
- func (s *Security) WithoutSSL() *Security
- func (s *Security) WithoutVerify() *Security
- type Session
- func (s *Session) Close() error
- func (s *Session) NewInteractiveCommand(shellType ShellType, cmdExpression string, arguments ...string) (*transport.InteractiveCommand, error)
- func (s *Session) NewResultCommand(shellType ShellType, cmdExpression string, arguments ...string) (*transport.ResultCommand, error)
- type ShellType
Constants ¶
This section is empty.
Variables ¶
View Source
var (
UTF16LeEncoder = unicode.UTF16(unicode.LittleEndian, unicode.IgnoreBOM).NewEncoder()
)
Functions ¶
func AuthHttpRequestWrapperFactory ¶
func AuthHttpRequestWrapperFactory() transport.HttpRequestWrapper
func ChallengeHttpRequestWrapperFactory ¶
func ChallengeHttpRequestWrapperFactory(username, password string) transport.HttpRequestWrapper
func NewBasicSSP ¶
func NewBasicSSP(username, password string, host string, useTLS bool, security *Security) *transport.SSPImpl
Create a Basic Security Support Provider
func NewCertificateSSP ¶
Create a Certificate Security Support Provider
Types ¶
type Security ¶
func NewSecurity ¶
func NewSecurity() *Security
func (*Security) WithClientCert ¶
func (*Security) WithServerCAs ¶
func (*Security) WithoutSSL ¶
func (*Security) WithoutVerify ¶
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
func NewSession ¶
func (*Session) NewInteractiveCommand ¶
func (*Session) NewResultCommand ¶
Click to show internal directories.
Click to hide internal directories.