formatting

This commit is contained in:
Matthew Hooker 2017-06-01 17:14:51 -07:00
parent 0348b2d3da
commit fdfd01eaea
No known key found for this signature in database
GPG Key ID: 7B5F933D9CE8C6A1
11 changed files with 22 additions and 11 deletions

View File

@ -2,12 +2,13 @@ package ecs
import ( import (
"fmt" "fmt"
"github.com/denverdino/aliyungo/common"
"github.com/denverdino/aliyungo/ecs"
"github.com/hashicorp/packer/packer"
"log" "log"
"sort" "sort"
"strings" "strings"
"github.com/denverdino/aliyungo/common"
"github.com/denverdino/aliyungo/ecs"
"github.com/hashicorp/packer/packer"
) )
type Artifact struct { type Artifact struct {

View File

@ -5,6 +5,7 @@ import (
"testing" "testing"
"fmt" "fmt"
"github.com/denverdino/aliyungo/common" "github.com/denverdino/aliyungo/common"
"github.com/denverdino/aliyungo/ecs" "github.com/denverdino/aliyungo/ecs"
builderT "github.com/hashicorp/packer/helper/builder/testing" builderT "github.com/hashicorp/packer/helper/builder/testing"

View File

@ -2,6 +2,7 @@ package ecs
import ( import (
"fmt" "fmt"
"github.com/denverdino/aliyungo/common" "github.com/denverdino/aliyungo/common"
"github.com/hashicorp/packer/template/interpolate" "github.com/hashicorp/packer/template/interpolate"
) )

View File

@ -1,8 +1,9 @@
package ecs package ecs
import ( import (
"github.com/denverdino/aliyungo/common"
"testing" "testing"
"github.com/denverdino/aliyungo/common"
) )
func testAlicloudImageConfig() *AlicloudImageConfig { func testAlicloudImageConfig() *AlicloudImageConfig {

View File

@ -2,6 +2,7 @@ package ecs
import ( import (
"fmt" "fmt"
"github.com/hashicorp/packer/packer" "github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep" "github.com/mitchellh/multistep"
) )

View File

@ -3,10 +3,11 @@ package ecs
import ( import (
"errors" "errors"
"fmt" "fmt"
"os"
"github.com/hashicorp/packer/common/uuid" "github.com/hashicorp/packer/common/uuid"
"github.com/hashicorp/packer/helper/communicator" "github.com/hashicorp/packer/helper/communicator"
"github.com/hashicorp/packer/template/interpolate" "github.com/hashicorp/packer/template/interpolate"
"os"
) )
type RunConfig struct { type RunConfig struct {

View File

@ -2,13 +2,14 @@ package ecs
import ( import (
"fmt" "fmt"
"net"
"os"
"time"
packerssh "github.com/hashicorp/packer/communicator/ssh" packerssh "github.com/hashicorp/packer/communicator/ssh"
"github.com/mitchellh/multistep" "github.com/mitchellh/multistep"
"golang.org/x/crypto/ssh" "golang.org/x/crypto/ssh"
"golang.org/x/crypto/ssh/agent" "golang.org/x/crypto/ssh/agent"
"net"
"os"
"time"
) )
var ( var (

View File

@ -2,6 +2,7 @@ package ecs
import ( import (
"fmt" "fmt"
"github.com/denverdino/aliyungo/common" "github.com/denverdino/aliyungo/common"
"github.com/denverdino/aliyungo/ecs" "github.com/denverdino/aliyungo/ecs"
"github.com/hashicorp/packer/packer" "github.com/hashicorp/packer/packer"

View File

@ -2,13 +2,14 @@ package ecs
import ( import (
"fmt" "fmt"
"io/ioutil"
"os"
"runtime"
"github.com/denverdino/aliyungo/common" "github.com/denverdino/aliyungo/common"
"github.com/denverdino/aliyungo/ecs" "github.com/denverdino/aliyungo/ecs"
"github.com/hashicorp/packer/packer" "github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep" "github.com/mitchellh/multistep"
"io/ioutil"
"os"
"runtime"
) )
type StepConfigAlicloudKeyPair struct { type StepConfigAlicloudKeyPair struct {

View File

@ -2,6 +2,7 @@ package ecs
import ( import (
"fmt" "fmt"
"github.com/denverdino/aliyungo/common" "github.com/denverdino/aliyungo/common"
"github.com/denverdino/aliyungo/ecs" "github.com/denverdino/aliyungo/ecs"
"github.com/hashicorp/packer/packer" "github.com/hashicorp/packer/packer"

View File

@ -2,6 +2,7 @@ package ecs
import ( import (
"fmt" "fmt"
"github.com/denverdino/aliyungo/ecs" "github.com/denverdino/aliyungo/ecs"
"github.com/hashicorp/packer/packer" "github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep" "github.com/mitchellh/multistep"