mirror of
https://github.com/hashicorp/packer.git
synced 2026-02-24 10:21:20 -05:00
24 lines
679 B
Go
24 lines
679 B
Go
package winrm
|
|
|
|
// Parameters struct defines
|
|
// metadata information and http transport config
|
|
type Parameters struct {
|
|
Timeout string
|
|
Locale string
|
|
EnvelopeSize int
|
|
TransportDecorator func() Transporter
|
|
}
|
|
|
|
// DefaultParameters return constant config
|
|
// of type Parameters
|
|
var DefaultParameters = NewParameters("PT60S", "en-US", 153600)
|
|
|
|
// NewParameters return new struct of type Parameters
|
|
// this struct makes the configuration for the request, size message, etc.
|
|
func NewParameters(timeout, locale string, envelopeSize int) *Parameters {
|
|
return &Parameters{
|
|
Timeout: timeout,
|
|
Locale: locale,
|
|
EnvelopeSize: envelopeSize,
|
|
}
|
|
}
|