Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Packer
Commits
88b7b0e1
Commit
88b7b0e1
authored
4 years ago
by
Megan Marsh
Browse files
Options
Download
Email Patches
Plain Diff
remove sdk
parent
dd9a8b26
Changes
1000
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
.github/CONTRIBUTING.md
+2
-2
.github/CONTRIBUTING.md
builder/alicloud/ecs/access_config.go
+1
-1
builder/alicloud/ecs/access_config.go
builder/alicloud/ecs/artifact.go
+1
-1
builder/alicloud/ecs/artifact.go
builder/alicloud/ecs/artifact_test.go
+1
-1
builder/alicloud/ecs/artifact_test.go
builder/alicloud/ecs/builder.go
+7
-7
builder/alicloud/ecs/builder.go
builder/alicloud/ecs/builder.hcl2spec.go
+1
-1
builder/alicloud/ecs/builder.hcl2spec.go
builder/alicloud/ecs/builder_acc_test.go
+2
-2
builder/alicloud/ecs/builder_acc_test.go
builder/alicloud/ecs/builder_test.go
+2
-2
builder/alicloud/ecs/builder_test.go
builder/alicloud/ecs/image_config.go
+2
-2
builder/alicloud/ecs/image_config.go
builder/alicloud/ecs/packer_helper.go
+2
-2
builder/alicloud/ecs/packer_helper.go
builder/alicloud/ecs/run_config.go
+4
-4
builder/alicloud/ecs/run_config.go
builder/alicloud/ecs/run_config_test.go
+1
-1
builder/alicloud/ecs/run_config_test.go
builder/alicloud/ecs/ssh_helper.go
+1
-1
builder/alicloud/ecs/ssh_helper.go
builder/alicloud/ecs/step_attach_keypair.go
+2
-2
builder/alicloud/ecs/step_attach_keypair.go
builder/alicloud/ecs/step_check_source_image.go
+2
-2
builder/alicloud/ecs/step_check_source_image.go
builder/alicloud/ecs/step_config_eip.go
+3
-3
builder/alicloud/ecs/step_config_eip.go
builder/alicloud/ecs/step_config_key_pair.go
+3
-3
builder/alicloud/ecs/step_config_key_pair.go
builder/alicloud/ecs/step_config_public_ip.go
+2
-2
builder/alicloud/ecs/step_config_public_ip.go
builder/alicloud/ecs/step_config_security_group.go
+3
-3
builder/alicloud/ecs/step_config_security_group.go
builder/alicloud/ecs/step_config_vpc.go
+3
-3
builder/alicloud/ecs/step_config_vpc.go
with
45 additions
and
45 deletions
+45
-45
Too many changes to show.
To preserve performance only
20 of 1000+
files are displayed.
Plain diff
Email patch
.github/CONTRIBUTING.md
+
2
-
2
View file @
88b7b0e1
...
...
@@ -462,8 +462,8 @@ The following example has been adapted from a shell-local provisioner test:
```
import (
"github.com/hashicorp/packer
/packer
-plugin-sdk/acctest/provisioneracc"
"github.com/hashicorp/packer
/packer
-plugin-sdk/acctest/testutils"
"github.com/hashicorp/packer-plugin-sdk/acctest/provisioneracc"
"github.com/hashicorp/packer-plugin-sdk/acctest/testutils"
)
// ...
...
...
This diff is collapsed.
Click to expand it.
builder/alicloud/ecs/access_config.go
+
1
-
1
View file @
88b7b0e1
...
...
@@ -11,8 +11,8 @@ import (
"time"
"github.com/aliyun/alibaba-cloud-sdk-go/services/ecs"
"github.com/hashicorp/packer-plugin-sdk/template/interpolate"
"github.com/hashicorp/packer/builder/alicloud/version"
"github.com/hashicorp/packer/packer-plugin-sdk/template/interpolate"
"github.com/mitchellh/go-homedir"
)
...
...
This diff is collapsed.
Click to expand it.
builder/alicloud/ecs/artifact.go
+
1
-
1
View file @
88b7b0e1
...
...
@@ -7,7 +7,7 @@ import (
"strings"
"github.com/aliyun/alibaba-cloud-sdk-go/services/ecs"
packersdk
"github.com/hashicorp/packer
/packer
-plugin-sdk/packer"
packersdk
"github.com/hashicorp/packer-plugin-sdk/packer"
)
type
Artifact
struct
{
...
...
This diff is collapsed.
Click to expand it.
builder/alicloud/ecs/artifact_test.go
+
1
-
1
View file @
88b7b0e1
...
...
@@ -4,7 +4,7 @@ import (
"reflect"
"testing"
packersdk
"github.com/hashicorp/packer
/packer
-plugin-sdk/packer"
packersdk
"github.com/hashicorp/packer-plugin-sdk/packer"
)
func
TestArtifact_Impl
(
t
*
testing
.
T
)
{
...
...
This diff is collapsed.
Click to expand it.
builder/alicloud/ecs/builder.go
+
7
-
7
View file @
88b7b0e1
...
...
@@ -9,13 +9,13 @@ import (
"fmt"
"github.com/hashicorp/hcl/v2/hcldec"
"github.com/hashicorp/packer
/packer
-plugin-sdk/common"
"github.com/hashicorp/packer
/packer
-plugin-sdk/communicator"
"github.com/hashicorp/packer
/packer
-plugin-sdk/multistep"
"github.com/hashicorp/packer
/packer
-plugin-sdk/multistep/commonsteps"
packersdk
"github.com/hashicorp/packer
/packer
-plugin-sdk/packer"
"github.com/hashicorp/packer
/packer
-plugin-sdk/template/config"
"github.com/hashicorp/packer
/packer
-plugin-sdk/template/interpolate"
"github.com/hashicorp/packer-plugin-sdk/common"
"github.com/hashicorp/packer-plugin-sdk/communicator"
"github.com/hashicorp/packer-plugin-sdk/multistep"
"github.com/hashicorp/packer-plugin-sdk/multistep/commonsteps"
packersdk
"github.com/hashicorp/packer-plugin-sdk/packer"
"github.com/hashicorp/packer-plugin-sdk/template/config"
"github.com/hashicorp/packer-plugin-sdk/template/interpolate"
)
// The unique ID for this builder
...
...
This diff is collapsed.
Click to expand it.
builder/alicloud/ecs/builder.hcl2spec.go
+
1
-
1
View file @
88b7b0e1
...
...
@@ -4,7 +4,7 @@ package ecs
import
(
"github.com/hashicorp/hcl/v2/hcldec"
"github.com/hashicorp/packer
/packer
-plugin-sdk/template/config"
"github.com/hashicorp/packer-plugin-sdk/template/config"
"github.com/zclconf/go-cty/cty"
)
...
...
This diff is collapsed.
Click to expand it.
builder/alicloud/ecs/builder_acc_test.go
+
2
-
2
View file @
88b7b0e1
...
...
@@ -8,8 +8,8 @@ import (
"testing"
"github.com/aliyun/alibaba-cloud-sdk-go/services/ecs"
builderT
"github.com/hashicorp/packer
/packer
-plugin-sdk/acctest"
packersdk
"github.com/hashicorp/packer
/packer
-plugin-sdk/packer"
builderT
"github.com/hashicorp/packer-plugin-sdk/acctest"
packersdk
"github.com/hashicorp/packer-plugin-sdk/packer"
)
const
defaultTestRegion
=
"cn-beijing"
...
...
This diff is collapsed.
Click to expand it.
builder/alicloud/ecs/builder_test.go
+
2
-
2
View file @
88b7b0e1
...
...
@@ -4,8 +4,8 @@ import (
"reflect"
"testing"
packersdk
"github.com/hashicorp/packer
/packer
-plugin-sdk/packer"
helperconfig
"github.com/hashicorp/packer
/packer
-plugin-sdk/template/config"
packersdk
"github.com/hashicorp/packer-plugin-sdk/packer"
helperconfig
"github.com/hashicorp/packer-plugin-sdk/template/config"
)
func
testBuilderConfig
()
map
[
string
]
interface
{}
{
...
...
This diff is collapsed.
Click to expand it.
builder/alicloud/ecs/image_config.go
+
2
-
2
View file @
88b7b0e1
...
...
@@ -7,8 +7,8 @@ import (
"regexp"
"strings"
"github.com/hashicorp/packer
/packer
-plugin-sdk/template/config"
"github.com/hashicorp/packer
/packer
-plugin-sdk/template/interpolate"
"github.com/hashicorp/packer-plugin-sdk/template/config"
"github.com/hashicorp/packer-plugin-sdk/template/interpolate"
)
// The "AlicloudDiskDevice" object us used for the `ECSSystemDiskMapping` and
...
...
This diff is collapsed.
Click to expand it.
builder/alicloud/ecs/packer_helper.go
+
2
-
2
View file @
88b7b0e1
...
...
@@ -4,8 +4,8 @@ import (
"fmt"
"strconv"
"github.com/hashicorp/packer
/packer
-plugin-sdk/multistep"
packersdk
"github.com/hashicorp/packer
/packer
-plugin-sdk/packer"
"github.com/hashicorp/packer-plugin-sdk/multistep"
packersdk
"github.com/hashicorp/packer-plugin-sdk/packer"
)
func
cleanUpMessage
(
state
multistep
.
StateBag
,
module
string
)
{
...
...
This diff is collapsed.
Click to expand it.
builder/alicloud/ecs/run_config.go
+
4
-
4
View file @
88b7b0e1
...
...
@@ -8,10 +8,10 @@ import (
"os"
"strings"
"github.com/hashicorp/packer
/packer
-plugin-sdk/communicator"
"github.com/hashicorp/packer
/packer
-plugin-sdk/template/config"
"github.com/hashicorp/packer
/packer
-plugin-sdk/template/interpolate"
"github.com/hashicorp/packer
/packer
-plugin-sdk/uuid"
"github.com/hashicorp/packer-plugin-sdk/communicator"
"github.com/hashicorp/packer-plugin-sdk/template/config"
"github.com/hashicorp/packer-plugin-sdk/template/interpolate"
"github.com/hashicorp/packer-plugin-sdk/uuid"
)
type
RunConfig
struct
{
...
...
This diff is collapsed.
Click to expand it.
builder/alicloud/ecs/run_config_test.go
+
1
-
1
View file @
88b7b0e1
...
...
@@ -5,7 +5,7 @@ import (
"os"
"testing"
"github.com/hashicorp/packer
/packer
-plugin-sdk/communicator"
"github.com/hashicorp/packer-plugin-sdk/communicator"
)
func
testConfig
()
*
RunConfig
{
...
...
This diff is collapsed.
Click to expand it.
builder/alicloud/ecs/ssh_helper.go
+
1
-
1
View file @
88b7b0e1
...
...
@@ -3,7 +3,7 @@ package ecs
import
(
"time"
"github.com/hashicorp/packer
/packer
-plugin-sdk/multistep"
"github.com/hashicorp/packer-plugin-sdk/multistep"
)
var
(
...
...
This diff is collapsed.
Click to expand it.
builder/alicloud/ecs/step_attach_keypair.go
+
2
-
2
View file @
88b7b0e1
...
...
@@ -6,8 +6,8 @@ import (
"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
"github.com/aliyun/alibaba-cloud-sdk-go/services/ecs"
"github.com/hashicorp/packer
/packer
-plugin-sdk/multistep"
packersdk
"github.com/hashicorp/packer
/packer
-plugin-sdk/packer"
"github.com/hashicorp/packer-plugin-sdk/multistep"
packersdk
"github.com/hashicorp/packer-plugin-sdk/packer"
)
type
stepAttachKeyPair
struct
{
...
...
This diff is collapsed.
Click to expand it.
builder/alicloud/ecs/step_check_source_image.go
+
2
-
2
View file @
88b7b0e1
...
...
@@ -5,8 +5,8 @@ import (
"fmt"
"github.com/aliyun/alibaba-cloud-sdk-go/services/ecs"
"github.com/hashicorp/packer
/packer
-plugin-sdk/multistep"
packersdk
"github.com/hashicorp/packer
/packer
-plugin-sdk/packer"
"github.com/hashicorp/packer-plugin-sdk/multistep"
packersdk
"github.com/hashicorp/packer-plugin-sdk/packer"
)
type
stepCheckAlicloudSourceImage
struct
{
...
...
This diff is collapsed.
Click to expand it.
builder/alicloud/ecs/step_config_eip.go
+
3
-
3
View file @
88b7b0e1
...
...
@@ -5,12 +5,12 @@ import (
"fmt"
"github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors"
"github.com/hashicorp/packer
/packer
-plugin-sdk/uuid"
"github.com/hashicorp/packer-plugin-sdk/uuid"
"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
"github.com/aliyun/alibaba-cloud-sdk-go/services/ecs"
"github.com/hashicorp/packer
/packer
-plugin-sdk/multistep"
packersdk
"github.com/hashicorp/packer
/packer
-plugin-sdk/packer"
"github.com/hashicorp/packer-plugin-sdk/multistep"
packersdk
"github.com/hashicorp/packer-plugin-sdk/packer"
)
type
stepConfigAlicloudEIP
struct
{
...
...
This diff is collapsed.
Click to expand it.
builder/alicloud/ecs/step_config_key_pair.go
+
3
-
3
View file @
88b7b0e1
...
...
@@ -7,9 +7,9 @@ import (
"runtime"
"github.com/aliyun/alibaba-cloud-sdk-go/services/ecs"
"github.com/hashicorp/packer
/packer
-plugin-sdk/communicator"
"github.com/hashicorp/packer
/packer
-plugin-sdk/multistep"
packersdk
"github.com/hashicorp/packer
/packer
-plugin-sdk/packer"
"github.com/hashicorp/packer-plugin-sdk/communicator"
"github.com/hashicorp/packer-plugin-sdk/multistep"
packersdk
"github.com/hashicorp/packer-plugin-sdk/packer"
)
type
stepConfigAlicloudKeyPair
struct
{
...
...
This diff is collapsed.
Click to expand it.
builder/alicloud/ecs/step_config_public_ip.go
+
2
-
2
View file @
88b7b0e1
...
...
@@ -5,8 +5,8 @@ import (
"fmt"
"github.com/aliyun/alibaba-cloud-sdk-go/services/ecs"
"github.com/hashicorp/packer
/packer
-plugin-sdk/multistep"
packersdk
"github.com/hashicorp/packer
/packer
-plugin-sdk/packer"
"github.com/hashicorp/packer-plugin-sdk/multistep"
packersdk
"github.com/hashicorp/packer-plugin-sdk/packer"
)
type
stepConfigAlicloudPublicIP
struct
{
...
...
This diff is collapsed.
Click to expand it.
builder/alicloud/ecs/step_config_security_group.go
+
3
-
3
View file @
88b7b0e1
...
...
@@ -6,9 +6,9 @@ import (
"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
"github.com/aliyun/alibaba-cloud-sdk-go/services/ecs"
"github.com/hashicorp/packer
/packer
-plugin-sdk/multistep"
packersdk
"github.com/hashicorp/packer
/packer
-plugin-sdk/packer"
"github.com/hashicorp/packer
/packer
-plugin-sdk/uuid"
"github.com/hashicorp/packer-plugin-sdk/multistep"
packersdk
"github.com/hashicorp/packer-plugin-sdk/packer"
"github.com/hashicorp/packer-plugin-sdk/uuid"
)
type
stepConfigAlicloudSecurityGroup
struct
{
...
...
This diff is collapsed.
Click to expand it.
builder/alicloud/ecs/step_config_vpc.go
+
3
-
3
View file @
88b7b0e1
...
...
@@ -7,9 +7,9 @@ import (
"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
"github.com/aliyun/alibaba-cloud-sdk-go/services/ecs"
"github.com/hashicorp/packer
/packer
-plugin-sdk/multistep"
packersdk
"github.com/hashicorp/packer
/packer
-plugin-sdk/packer"
"github.com/hashicorp/packer
/packer
-plugin-sdk/uuid"
"github.com/hashicorp/packer-plugin-sdk/multistep"
packersdk
"github.com/hashicorp/packer-plugin-sdk/packer"
"github.com/hashicorp/packer-plugin-sdk/uuid"
)
type
stepConfigAlicloudVPC
struct
{
...
...
This diff is collapsed.
Click to expand it.
Prev
1
2
3
4
5
…
50
Next
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