Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
packer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
packer
Commits
23a48d66
Commit
23a48d66
authored
Jun 08, 2015
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
go fmt
parent
fa2bcb8b
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
16 additions
and
17 deletions
+16
-17
builder/digitalocean/ssh.go
builder/digitalocean/ssh.go
+1
-1
builder/googlecompute/ssh.go
builder/googlecompute/ssh.go
+1
-1
builder/null/ssh.go
builder/null/ssh.go
+1
-1
builder/openstack/ssh.go
builder/openstack/ssh.go
+1
-1
builder/parallels/common/ssh.go
builder/parallels/common/ssh.go
+1
-1
builder/qemu/ssh.go
builder/qemu/ssh.go
+1
-1
builder/virtualbox/common/ssh.go
builder/virtualbox/common/ssh.go
+1
-1
builder/vmware/common/ssh.go
builder/vmware/common/ssh.go
+1
-1
builder/vmware/iso/step_upload_vmx.go
builder/vmware/iso/step_upload_vmx.go
+4
-5
common/step_connect_ssh.go
common/step_connect_ssh.go
+1
-1
communicator/ssh/communicator.go
communicator/ssh/communicator.go
+1
-1
communicator/ssh/communicator_test.go
communicator/ssh/communicator_test.go
+1
-1
post-processor/atlas/util_test.go
post-processor/atlas/util_test.go
+1
-1
No files found.
builder/digitalocean/ssh.go
View file @
23a48d66
package
digitalocean
import
(
"golang.org/x/crypto/ssh"
"fmt"
"github.com/mitchellh/multistep"
"golang.org/x/crypto/ssh"
)
func
sshAddress
(
state
multistep
.
StateBag
)
(
string
,
error
)
{
...
...
builder/googlecompute/ssh.go
View file @
23a48d66
package
googlecompute
import
(
"golang.org/x/crypto/ssh"
"fmt"
"github.com/mitchellh/multistep"
"golang.org/x/crypto/ssh"
)
// sshAddress returns the ssh address.
...
...
builder/null/ssh.go
View file @
23a48d66
package
null
import
(
gossh
"golang.org/x/crypto/ssh"
"fmt"
"github.com/mitchellh/multistep"
"github.com/mitchellh/packer/communicator/ssh"
gossh
"golang.org/x/crypto/ssh"
"io/ioutil"
)
...
...
builder/openstack/ssh.go
View file @
23a48d66
package
openstack
import
(
"golang.org/x/crypto/ssh"
"errors"
"fmt"
"github.com/mitchellh/multistep"
"golang.org/x/crypto/ssh"
"time"
"github.com/mitchellh/gophercloud-fork-40444fb"
...
...
builder/parallels/common/ssh.go
View file @
23a48d66
...
...
@@ -3,10 +3,10 @@ package common
import
(
"fmt"
"golang.org/x/crypto/ssh"
"github.com/mitchellh/multistep"
commonssh
"github.com/mitchellh/packer/common/ssh"
packerssh
"github.com/mitchellh/packer/communicator/ssh"
"golang.org/x/crypto/ssh"
)
func
SSHAddress
(
state
multistep
.
StateBag
)
(
string
,
error
)
{
...
...
builder/qemu/ssh.go
View file @
23a48d66
...
...
@@ -3,10 +3,10 @@ package qemu
import
(
"fmt"
gossh
"golang.org/x/crypto/ssh"
"github.com/mitchellh/multistep"
commonssh
"github.com/mitchellh/packer/common/ssh"
"github.com/mitchellh/packer/communicator/ssh"
gossh
"golang.org/x/crypto/ssh"
)
func
sshAddress
(
state
multistep
.
StateBag
)
(
string
,
error
)
{
...
...
builder/virtualbox/common/ssh.go
View file @
23a48d66
...
...
@@ -3,10 +3,10 @@ package common
import
(
"fmt"
gossh
"golang.org/x/crypto/ssh"
"github.com/mitchellh/multistep"
commonssh
"github.com/mitchellh/packer/common/ssh"
"github.com/mitchellh/packer/communicator/ssh"
gossh
"golang.org/x/crypto/ssh"
)
func
SSHAddress
(
state
multistep
.
StateBag
)
(
string
,
error
)
{
...
...
builder/vmware/common/ssh.go
View file @
23a48d66
...
...
@@ -7,10 +7,10 @@ import (
"log"
"os"
gossh
"golang.org/x/crypto/ssh"
"github.com/mitchellh/multistep"
commonssh
"github.com/mitchellh/packer/common/ssh"
"github.com/mitchellh/packer/communicator/ssh"
gossh
"golang.org/x/crypto/ssh"
)
func
SSHAddressFunc
(
config
*
SSHConfig
)
func
(
multistep
.
StateBag
)
(
string
,
error
)
{
...
...
builder/vmware/iso/step_upload_vmx.go
View file @
23a48d66
...
...
@@ -3,12 +3,11 @@ package iso
import
(
"fmt"
"github.com/mitchellh/multistep"
"github.com/mitchellh/packer/packer"
vmwcommon
"github.com/mitchellh/packer/builder/vmware/common"
"github.com/mitchellh/packer/packer"
"path/filepath"
)
// This step upload the VMX to the remote host
//
// Uses:
...
...
@@ -18,8 +17,8 @@ import (
//
// Produces:
// <nothing>
type
StepUploadVMX
struct
{
RemoteType
string
type
StepUploadVMX
struct
{
RemoteType
string
}
func
(
c
*
StepUploadVMX
)
Run
(
state
multistep
.
StateBag
)
multistep
.
StepAction
{
...
...
@@ -31,7 +30,7 @@ func (c *StepUploadVMX) Run(state multistep.StateBag) multistep.StepAction {
if
c
.
RemoteType
==
"esx5"
{
remoteDriver
,
ok
:=
driver
.
(
RemoteDriver
)
if
ok
{
remoteVmxPath
:=
filepath
.
ToSlash
(
filepath
.
Join
(
fmt
.
Sprintf
(
"%s"
,
remoteDriver
),
filepath
.
Base
(
vmxPath
)))
remoteVmxPath
:=
filepath
.
ToSlash
(
filepath
.
Join
(
fmt
.
Sprintf
(
"%s"
,
remoteDriver
),
filepath
.
Base
(
vmxPath
)))
if
err
:=
remoteDriver
.
upload
(
remoteVmxPath
,
vmxPath
);
err
!=
nil
{
state
.
Put
(
"error"
,
fmt
.
Errorf
(
"Error writing VMX: %s"
,
err
))
return
multistep
.
ActionHalt
...
...
common/step_connect_ssh.go
View file @
23a48d66
package
common
import
(
gossh
"golang.org/x/crypto/ssh"
"errors"
"fmt"
"github.com/mitchellh/multistep"
"github.com/mitchellh/packer/communicator/ssh"
"github.com/mitchellh/packer/packer"
gossh
"golang.org/x/crypto/ssh"
"log"
"strings"
"time"
...
...
communicator/ssh/communicator.go
View file @
23a48d66
...
...
@@ -3,10 +3,10 @@ package ssh
import
(
"bufio"
"bytes"
"golang.org/x/crypto/ssh"
"errors"
"fmt"
"github.com/mitchellh/packer/packer"
"golang.org/x/crypto/ssh"
"io"
"io/ioutil"
"log"
...
...
communicator/ssh/communicator_test.go
View file @
23a48d66
...
...
@@ -4,9 +4,9 @@ package ssh
import
(
"bytes"
"golang.org/x/crypto/ssh"
"fmt"
"github.com/mitchellh/packer/packer"
"golang.org/x/crypto/ssh"
"net"
"testing"
)
...
...
post-processor/atlas/util_test.go
View file @
23a48d66
...
...
@@ -6,7 +6,7 @@ import (
func
TestLongestCommonPrefix
(
t
*
testing
.
T
)
{
cases
:=
[]
struct
{
Input
[]
string
Input
[]
string
Output
string
}{
{
...
...
Write
Preview
Markdown
is supported
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