b57ed27352
WinRM exposes an HTTP transport decorator that can be used for different authentication schemes. Windows on Azures requires this if one is to use the out of the box configuration.
19 lines
371 B
Go
19 lines
371 B
Go
package winrm
|
|
|
|
import (
|
|
"net/http"
|
|
"time"
|
|
)
|
|
|
|
// Config is used to configure the WinRM connection
|
|
type Config struct {
|
|
Host string
|
|
Port int
|
|
Username string
|
|
Password string
|
|
Timeout time.Duration
|
|
Https bool
|
|
Insecure bool
|
|
TransportDecorator func(*http.Transport) http.RoundTripper
|
|
}
|