fix imports

`find . -type f -name '*.go' -not -path "./vendor/*" -exec goimports -w {} \;`
This commit is contained in:
Matthew Hooker 2018-01-22 15:32:33 -08:00
parent a831d522be
commit 7a189a83a1
No known key found for this signature in database
GPG Key ID: 7B5F933D9CE8C6A1
265 changed files with 340 additions and 141 deletions

View File

@ -1,6 +1,7 @@
package ecs
import (
"context"
"fmt"
"time"
@ -9,7 +10,6 @@ import (
"github.com/denverdino/aliyungo/ecs"
"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
"time"
)
type stepAttachKeyPar struct {

View File

@ -1,6 +1,7 @@
package ecs
import (
"context"
"fmt"
"github.com/denverdino/aliyungo/common"

View File

@ -1,6 +1,7 @@
package ecs
import (
"context"
"fmt"
"github.com/denverdino/aliyungo/common"

View File

@ -1,6 +1,7 @@
package ecs
import (
"context"
"fmt"
"io/ioutil"
"os"

View File

@ -1,6 +1,7 @@
package ecs
import (
"context"
"fmt"
"github.com/denverdino/aliyungo/ecs"

View File

@ -1,6 +1,7 @@
package ecs
import (
"context"
"errors"
"fmt"
"time"

View File

@ -1,6 +1,7 @@
package ecs
import (
"context"
"errors"
"fmt"
"time"

View File

@ -1,6 +1,7 @@
package ecs
import (
"context"
"errors"
"fmt"
"time"

View File

@ -1,6 +1,7 @@
package ecs
import (
"context"
"fmt"
"github.com/denverdino/aliyungo/common"

View File

@ -1,6 +1,7 @@
package ecs
import (
"context"
"fmt"
"io/ioutil"
"log"

View File

@ -1,6 +1,7 @@
package ecs
import (
"context"
"fmt"
"log"

View File

@ -1,6 +1,7 @@
package ecs
import (
"context"
"fmt"
"github.com/denverdino/aliyungo/ecs"

View File

@ -1,6 +1,7 @@
package ecs
import (
"context"
"fmt"
"github.com/denverdino/aliyungo/common"

View File

@ -1,6 +1,7 @@
package ecs
import (
"context"
"fmt"
"github.com/denverdino/aliyungo/common"

View File

@ -1,6 +1,7 @@
package ecs
import (
"context"
"fmt"
"github.com/denverdino/aliyungo/ecs"

View File

@ -1,6 +1,7 @@
package ecs
import (
"context"
"fmt"
"github.com/denverdino/aliyungo/common"

View File

@ -1,6 +1,7 @@
package ecs
import (
"context"
"fmt"
"github.com/denverdino/aliyungo/ecs"

View File

@ -1,6 +1,7 @@
package chroot
import (
"context"
"errors"
"fmt"
"strings"

View File

@ -1,6 +1,7 @@
package chroot
import (
"context"
"fmt"
"github.com/aws/aws-sdk-go/service/ec2"

View File

@ -1,6 +1,7 @@
package chroot
import (
"context"
"log"
"github.com/hashicorp/packer/helper/multistep"

View File

@ -2,14 +2,13 @@ package chroot
import (
"bytes"
"context"
"fmt"
"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
"log"
"path/filepath"
"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
)
// StepCopyFiles copies some files from the host into the chroot environment.

View File

@ -1,6 +1,7 @@
package chroot
import (
"context"
"fmt"
"log"

View File

@ -1,10 +1,12 @@
package chroot
import (
"context"
"fmt"
"log"
"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
"log"
)
// StepEarlyCleanup performs some of the cleanup steps early in order to

View File

@ -1,10 +1,12 @@
package chroot
import (
"context"
"fmt"
"log"
"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
"log"
)
// StepEarlyUnflock unlocks the flock.

View File

@ -1,15 +1,14 @@
package chroot
import (
"context"
"fmt"
"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
"log"
"os"
"path/filepath"
"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
)
// StepFlock provisions the instance within a chroot.

View File

@ -1,6 +1,7 @@
package chroot
import (
"context"
"fmt"
"log"

View File

@ -2,6 +2,7 @@ package chroot
import (
"bytes"
"context"
"fmt"
"log"
"os"

View File

@ -2,15 +2,14 @@ package chroot
import (
"bytes"
"context"
"fmt"
"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
"os"
"os/exec"
"syscall"
"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
)
// StepMountExtra mounts the attached device.

View File

@ -1,6 +1,8 @@
package chroot
import (
"context"
"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
)

View File

@ -1,6 +1,8 @@
package chroot
import (
"context"
"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
)

View File

@ -1,6 +1,7 @@
package chroot
import (
"context"
"fmt"
"log"
"os"

View File

@ -1,6 +1,7 @@
package chroot
import (
"context"
"fmt"
"github.com/aws/aws-sdk-go/aws"

View File

@ -1,6 +1,7 @@
package chroot
import (
"context"
"errors"
"fmt"
"time"

View File

@ -1,6 +1,7 @@
package common
import (
"context"
"fmt"
"sync"

View File

@ -1,6 +1,7 @@
package common
import (
"context"
"fmt"
"github.com/aws/aws-sdk-go/aws"

View File

@ -1,6 +1,7 @@
package common
import (
"context"
"fmt"
"github.com/aws/aws-sdk-go/aws"

View File

@ -1,6 +1,7 @@
package common
import (
"context"
"fmt"
"log"

View File

@ -1,6 +1,7 @@
package common
import (
"context"
"crypto/rsa"
"crypto/x509"
"encoding/base64"

View File

@ -1,6 +1,7 @@
package common
import (
"context"
"fmt"
"io/ioutil"
"os"

View File

@ -1,6 +1,7 @@
package common
import (
"context"
"fmt"
"github.com/aws/aws-sdk-go/aws"

View File

@ -1,6 +1,7 @@
package common
import (
"context"
"fmt"
"github.com/aws/aws-sdk-go/aws"

View File

@ -1,6 +1,7 @@
package common
import (
"context"
"fmt"
"github.com/aws/aws-sdk-go/aws"

View File

@ -1,6 +1,7 @@
package common
import (
"context"
"encoding/base64"
"fmt"
"io/ioutil"

View File

@ -1,6 +1,7 @@
package common
import (
"context"
"fmt"
"log"
"time"

View File

@ -1,6 +1,7 @@
package common
import (
"context"
"fmt"
"log"
"sort"

View File

@ -1,6 +1,7 @@
package common
import (
"context"
"fmt"
"github.com/aws/aws-sdk-go/aws/awserr"

View File

@ -1,6 +1,7 @@
package ebs
import (
"context"
"fmt"
"github.com/aws/aws-sdk-go/aws"

View File

@ -1,6 +1,7 @@
package ebs
import (
"context"
"fmt"
"github.com/aws/aws-sdk-go/service/ec2"

View File

@ -1,6 +1,7 @@
package ebssurrogate
import (
"context"
"fmt"
"github.com/aws/aws-sdk-go/aws"

View File

@ -1,6 +1,7 @@
package ebssurrogate
import (
"context"
"errors"
"fmt"
"time"

View File

@ -1,6 +1,7 @@
package ebsvolume
import (
"context"
"fmt"
"github.com/aws/aws-sdk-go/service/ec2"

View File

@ -1,6 +1,7 @@
package instance
import (
"context"
"fmt"
"github.com/aws/aws-sdk-go/service/ec2"

View File

@ -1,6 +1,7 @@
package instance
import (
"context"
"fmt"
"github.com/aws/aws-sdk-go/aws"

View File

@ -1,6 +1,7 @@
package instance
import (
"context"
"fmt"
"github.com/hashicorp/packer/helper/multistep"

View File

@ -1,10 +1,12 @@
package instance
import (
"context"
"fmt"
"os"
"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
"os"
)
type StepUploadX509Cert struct{}

View File

@ -1,6 +1,7 @@
package arm
import (
"context"
"fmt"
"github.com/Azure/azure-sdk-for-go/arm/compute"

View File

@ -1,6 +1,7 @@
package arm
import (
"context"
"errors"
"fmt"

View File

@ -1,6 +1,7 @@
package arm
import (
"context"
"errors"
"fmt"
"net/url"

View File

@ -1,6 +1,7 @@
package arm
import (
"context"
"fmt"
"github.com/Azure/go-autorest/autorest"

View File

@ -1,6 +1,7 @@
package arm
import (
"context"
"errors"
"fmt"
"net/url"

View File

@ -1,6 +1,7 @@
package arm
import (
"context"
"fmt"
"time"

View File

@ -1,6 +1,7 @@
package arm
import (
"context"
"fmt"
"github.com/hashicorp/packer/builder/azure/common/constants"

View File

@ -1,6 +1,7 @@
package arm
import (
"context"
"fmt"
"github.com/Azure/azure-sdk-for-go/arm/compute"

View File

@ -1,6 +1,7 @@
package arm
import (
"context"
"fmt"
"github.com/hashicorp/packer/builder/azure/common"

View File

@ -1,6 +1,8 @@
package arm
import (
"context"
"github.com/hashicorp/packer/builder/azure/common/constants"
"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"

View File

@ -7,7 +7,6 @@ import (
"github.com/hashicorp/packer/builder/azure/common"
"github.com/hashicorp/packer/builder/azure/common/constants"
"github.com/hashicorp/packer/helper/multistep"
"testing"
)
func TestProcessStepResultShouldContinueForNonErrors(t *testing.T) {

View File

@ -1,6 +1,7 @@
package arm
import (
"context"
"fmt"
"github.com/hashicorp/packer/builder/azure/common/constants"

View File

@ -1,6 +1,7 @@
package lin
import (
"context"
"crypto/rand"
"crypto/rsa"
"crypto/sha1"

View File

@ -2,10 +2,12 @@ package lin
import (
"bytes"
"context"
"fmt"
"log"
"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
"log"
)
type StepGeneralizeOS struct {

View File

@ -1,6 +1,7 @@
package cloudstack
import (
"context"
"fmt"
"math/rand"
"strings"

View File

@ -1,6 +1,7 @@
package cloudstack
import (
"context"
"encoding/base64"
"errors"
"fmt"

View File

@ -1,6 +1,7 @@
package cloudstack
import (
"context"
"fmt"
"github.com/hashicorp/packer/common/uuid"

View File

@ -1,6 +1,7 @@
package cloudstack
import (
"context"
"fmt"
"time"

View File

@ -1,6 +1,7 @@
package cloudstack
import (
"context"
"fmt"
"io/ioutil"
"os"

View File

@ -1,6 +1,7 @@
package cloudstack
import (
"context"
"fmt"
"io/ioutil"
"regexp"

View File

@ -1,6 +1,7 @@
package cloudstack
import (
"context"
"fmt"
"github.com/hashicorp/packer/helper/multistep"

View File

@ -1,7 +1,9 @@
package docker
import (
"context"
"fmt"
"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
)

View File

@ -2,10 +2,9 @@ package docker
import (
"errors"
"github.com/hashicorp/packer/helper/multistep"
"testing"
"github.com/mitchellh/multistep"
"github.com/hashicorp/packer/helper/multistep"
)
func testStepCommitState(t *testing.T) multistep.StateBag {

View File

@ -1,12 +1,12 @@
package docker
import (
"context"
"fmt"
"github.com/hashicorp/packer/helper/multistep"
"os/exec"
"strings"
"github.com/mitchellh/multistep"
"github.com/hashicorp/packer/helper/multistep"
)
type StepConnectDocker struct{}

View File

@ -1,6 +1,7 @@
package docker
import (
"context"
"fmt"
"os"
"path/filepath"

View File

@ -3,12 +3,11 @@ package docker
import (
"bytes"
"errors"
"github.com/hashicorp/packer/helper/multistep"
"io/ioutil"
"os"
"testing"
"github.com/mitchellh/multistep"
"github.com/hashicorp/packer/helper/multistep"
)
func testStepExportState(t *testing.T) multistep.StateBag {

View File

@ -1,6 +1,7 @@
package docker
import (
"context"
"fmt"
"log"

View File

@ -2,10 +2,9 @@ package docker
import (
"errors"
"github.com/hashicorp/packer/helper/multistep"
"testing"
"github.com/mitchellh/multistep"
"github.com/hashicorp/packer/helper/multistep"
)
func TestStepPull_impl(t *testing.T) {

View File

@ -1,7 +1,9 @@
package docker
import (
"context"
"fmt"
"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
)

View File

@ -1,11 +1,11 @@
package docker
import (
"context"
"errors"
"github.com/hashicorp/packer/helper/multistep"
"testing"
"github.com/mitchellh/multistep"
"github.com/hashicorp/packer/helper/multistep"
)
func testStepRunState(t *testing.T) multistep.StateBag {

View File

@ -1,14 +1,13 @@
package docker
import (
"context"
"fmt"
"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
"io/ioutil"
"os"
"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
)
// StepTempDir creates a temporary directory that we use in order to

View File

@ -2,9 +2,10 @@ package docker
import (
"bytes"
"testing"
"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
"testing"
)
func testState(t *testing.T) multistep.StateBag {

View File

@ -1,6 +1,7 @@
package googlecompute
import (
"context"
"fmt"
"github.com/hashicorp/packer/helper/multistep"

View File

@ -1,10 +1,9 @@
package googlecompute
import (
"github.com/hashicorp/packer/helper/multistep"
"testing"
"github.com/mitchellh/multistep"
"github.com/hashicorp/packer/helper/multistep"
)
func TestStepCheckExistingImage_impl(t *testing.T) {

View File

@ -1,6 +1,7 @@
package googlecompute
import (
"context"
"errors"
"fmt"
"time"

View File

@ -1,6 +1,7 @@
package googlecompute
import (
"context"
"errors"
"fmt"
"io/ioutil"

View File

@ -1,6 +1,7 @@
package googlecompute
import (
"context"
"crypto/rand"
"crypto/rsa"
"crypto/x509"

View File

@ -1,6 +1,7 @@
package googlecompute
import (
"context"
"crypto/rand"
"crypto/rsa"
"crypto/x509"

View File

@ -1,6 +1,7 @@
package googlecompute
import (
"context"
"errors"
"fmt"
"time"

View File

@ -2,11 +2,10 @@ package googlecompute
import (
"errors"
"github.com/hashicorp/packer/helper/multistep"
"testing"
"time"
"github.com/mitchellh/multistep"
"github.com/hashicorp/packer/helper/multistep"
)
func TestStepInstanceInfo_impl(t *testing.T) {

View File

@ -1,6 +1,7 @@
package googlecompute
import (
"context"
"errors"
"fmt"
"time"

View File

@ -1,10 +1,9 @@
package googlecompute
import (
"github.com/hashicorp/packer/helper/multistep"
"testing"
"github.com/mitchellh/multistep"
"github.com/hashicorp/packer/helper/multistep"
)
func TestStepTeardownInstance_impl(t *testing.T) {

View File

@ -1,6 +1,7 @@
package googlecompute
import (
"context"
"errors"
"fmt"

View File

@ -1,6 +1,8 @@
package googlecompute
import (
"testing"
"github.com/hashicorp/packer/helper/multistep"
"github.com/stretchr/testify/assert"
)

View File

@ -1,6 +1,7 @@
package common
import (
"context"
"fmt"
"log"
"path/filepath"

Some files were not shown because too many files have changed in this diff Show More