Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Packer
Commits
ab364187
Commit
ab364187
authored
9 years ago
by
Chris Bednarski
Browse files
Options
Download
Email Patches
Plain Diff
Udpated winrmcp dep
parent
29700382
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vendor/github.com/packer-community/winrmcp/winrmcp/winrmcp.go
+6
-0
...or/github.com/packer-community/winrmcp/winrmcp/winrmcp.go
with
6 additions
and
0 deletions
+6
-0
vendor/github.com/packer-community/winrmcp/winrmcp/winrmcp.go
+
6
-
0
View file @
ab364187
...
...
@@ -4,6 +4,7 @@ import (
"errors"
"fmt"
"io"
"net/http"
"os"
"path/filepath"
"time"
...
...
@@ -24,6 +25,7 @@ type Config struct {
CACertBytes
[]
byte
OperationTimeout
time
.
Duration
MaxOperationsPerShell
int
TransportDecorator
func
(
*
http
.
Transport
)
http
.
RoundTripper
}
type
Auth
struct
{
...
...
@@ -41,6 +43,10 @@ func New(addr string, config *Config) (*Winrmcp, error) {
}
params
:=
winrm
.
DefaultParameters
()
if
config
.
TransportDecorator
!=
nil
{
params
.
TransportDecorator
=
config
.
TransportDecorator
}
if
config
.
OperationTimeout
.
Seconds
()
>
0
{
params
.
Timeout
=
iso8601
.
FormatDuration
(
config
.
OperationTimeout
)
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help