Skip to content

Commit

Permalink
move files out of osc
Browse files Browse the repository at this point in the history
Signed-off-by: matthias.gatto <[email protected]>
  • Loading branch information
outscale-mgo committed Feb 20, 2024
1 parent 54df6a2 commit 35975ce
Show file tree
Hide file tree
Showing 89 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion builder/osc/bsu/builder.go → builder/bsu/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
packersdk "github.com/hashicorp/packer-plugin-sdk/packer"
"github.com/hashicorp/packer-plugin-sdk/template/config"
"github.com/hashicorp/packer-plugin-sdk/template/interpolate"
osccommon "github.com/outscale/packer-plugin-outscale/builder/osc/common"
osccommon "github.com/outscale/packer-plugin-outscale/builder/common"
)

// The unique ID for this builder
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/hashicorp/packer-plugin-sdk/multistep"
packersdk "github.com/hashicorp/packer-plugin-sdk/packer"
oscgo "github.com/outscale/osc-sdk-go/v2"
osccommon "github.com/outscale/packer-plugin-outscale/builder/osc/common"
osccommon "github.com/outscale/packer-plugin-outscale/builder/common"
)

type stepCreateOMI struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
packersdk "github.com/hashicorp/packer-plugin-sdk/packer"
"github.com/hashicorp/packer-plugin-sdk/template/config"
"github.com/hashicorp/packer-plugin-sdk/template/interpolate"
osccommon "github.com/outscale/packer-plugin-outscale/builder/osc/common"
osccommon "github.com/outscale/packer-plugin-outscale/builder/common"
)

const BuilderId = "oapi.outscale.bsusurrogate"
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
packersdk "github.com/hashicorp/packer-plugin-sdk/packer"
"github.com/outscale/osc-sdk-go/v2"
oscgo "github.com/outscale/osc-sdk-go/v2"
osccommon "github.com/outscale/packer-plugin-outscale/builder/osc/common"
osccommon "github.com/outscale/packer-plugin-outscale/builder/common"
)

// StepRegisterOMI creates the OMI.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/hashicorp/packer-plugin-sdk/multistep"
packersdk "github.com/hashicorp/packer-plugin-sdk/packer"
oscgo "github.com/outscale/osc-sdk-go/v2"
osccommon "github.com/outscale/packer-plugin-outscale/builder/osc/common"
osccommon "github.com/outscale/packer-plugin-outscale/builder/common"
)

// StepSnapshotVolumes creates snapshots of the created volumes.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
packersdk "github.com/hashicorp/packer-plugin-sdk/packer"
registryimage "github.com/hashicorp/packer-plugin-sdk/packer/registry/image"
oscgo "github.com/outscale/osc-sdk-go/v2"
osccommon "github.com/outscale/packer-plugin-outscale/builder/osc/common"
osccommon "github.com/outscale/packer-plugin-outscale/builder/common"
)

// map of region to list of volume IDs
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package bsuvolume

import (
"github.com/hashicorp/packer-plugin-sdk/template/interpolate"
osccommon "github.com/outscale/packer-plugin-outscale/builder/osc/common"
osccommon "github.com/outscale/packer-plugin-outscale/builder/common"
)

type BlockDevice struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
packersdk "github.com/hashicorp/packer-plugin-sdk/packer"
"github.com/hashicorp/packer-plugin-sdk/template/config"
"github.com/hashicorp/packer-plugin-sdk/template/interpolate"
osccommon "github.com/outscale/packer-plugin-outscale/builder/osc/common"
osccommon "github.com/outscale/packer-plugin-outscale/builder/common"
)

const BuilderId = "oapi.outscale.bsuvolume"
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
packersdk "github.com/hashicorp/packer-plugin-sdk/packer"
"github.com/hashicorp/packer-plugin-sdk/template/interpolate"
oscgo "github.com/outscale/osc-sdk-go/v2"
osccommon "github.com/outscale/packer-plugin-outscale/builder/osc/common"
osccommon "github.com/outscale/packer-plugin-outscale/builder/common"
)

type stepTagBSUVolumes struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
packersdk "github.com/hashicorp/packer-plugin-sdk/packer"
"github.com/hashicorp/packer-plugin-sdk/template/config"
"github.com/hashicorp/packer-plugin-sdk/template/interpolate"
osccommon "github.com/outscale/packer-plugin-outscale/builder/osc/common"
osccommon "github.com/outscale/packer-plugin-outscale/builder/common"
)

// The unique ID for this builder
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/hashicorp/packer-plugin-sdk/multistep"
packersdk "github.com/hashicorp/packer-plugin-sdk/packer"
oscgo "github.com/outscale/osc-sdk-go/v2"
osccommon "github.com/outscale/packer-plugin-outscale/builder/osc/common"
osccommon "github.com/outscale/packer-plugin-outscale/builder/common"
)

// StepCreateOMI creates the OMI.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
packersdk "github.com/hashicorp/packer-plugin-sdk/packer"
"github.com/hashicorp/packer-plugin-sdk/template/interpolate"
oscgo "github.com/outscale/osc-sdk-go/v2"
osccommon "github.com/outscale/packer-plugin-outscale/builder/osc/common"
osccommon "github.com/outscale/packer-plugin-outscale/builder/common"
)

// StepCreateVolume creates a new volume from the snapshot of the root
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/hashicorp/packer-plugin-sdk/multistep"
packersdk "github.com/hashicorp/packer-plugin-sdk/packer"
oscgo "github.com/outscale/osc-sdk-go/v2"
osccommon "github.com/outscale/packer-plugin-outscale/builder/osc/common"
osccommon "github.com/outscale/packer-plugin-outscale/builder/common"
)

// StepLinkVolume attaches the previously created volume to an
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/hashicorp/packer-plugin-sdk/multistep"
packersdk "github.com/hashicorp/packer-plugin-sdk/packer"
oscgo "github.com/outscale/osc-sdk-go/v2"
osccommon "github.com/outscale/packer-plugin-outscale/builder/osc/common"
osccommon "github.com/outscale/packer-plugin-outscale/builder/common"
)

// StepSnapshot creates a snapshot of the created volume.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/hashicorp/packer-plugin-sdk/multistep"
packersdk "github.com/hashicorp/packer-plugin-sdk/packer"
oscgo "github.com/outscale/osc-sdk-go/v2"
osccommon "github.com/outscale/packer-plugin-outscale/builder/osc/common"
osccommon "github.com/outscale/packer-plugin-outscale/builder/common"
)

// StepVmInfo verifies that this builder is running on an Outscale vm.
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion builder/osc/common/state.go → builder/common/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"log"

oscgo "github.com/outscale/osc-sdk-go/v2"
"github.com/outscale/packer-plugin-outscale/builder/osc/common/retry"
"github.com/outscale/packer-plugin-outscale/builder/common/retry"
)

type stateRefreshFunc func() (string, error)
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
packersdk "github.com/hashicorp/packer-plugin-sdk/packer"
"github.com/hashicorp/packer-plugin-sdk/template/interpolate"
oscgo "github.com/outscale/osc-sdk-go/v2"
"github.com/outscale/packer-plugin-outscale/builder/osc/common/retry"
"github.com/outscale/packer-plugin-outscale/builder/common/retry"
)

type StepCreateTags struct {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"github.com/hashicorp/packer-plugin-sdk/multistep"
packersdk "github.com/hashicorp/packer-plugin-sdk/packer"
"github.com/hashicorp/packer-plugin-sdk/template/interpolate"
"github.com/outscale/packer-plugin-outscale/builder/osc/common/retry"
"github.com/outscale/packer-plugin-outscale/builder/common/retry"
)

const (
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/hashicorp/packer-plugin-sdk/multistep"
packersdk "github.com/hashicorp/packer-plugin-sdk/packer"
oscgo "github.com/outscale/osc-sdk-go/v2"
"github.com/outscale/packer-plugin-outscale/builder/osc/common/retry"
"github.com/outscale/packer-plugin-outscale/builder/common/retry"
)

type StepStopBSUBackedVm struct {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion datasource/omi/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/hashicorp/packer-plugin-sdk/template/config"
"github.com/hashicorp/packer-plugin-sdk/template/interpolate"
oscgo "github.com/outscale/osc-sdk-go/v2"
osccommon "github.com/outscale/packer-plugin-outscale/builder/osc/common"
osccommon "github.com/outscale/packer-plugin-outscale/builder/common"
"github.com/zclconf/go-cty/cty"
)

Expand Down
2 changes: 1 addition & 1 deletion datasource/omi/data_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"testing"

"github.com/hashicorp/packer-plugin-sdk/template/config"
"github.com/outscale/packer-plugin-outscale/builder/osc/common"
"github.com/outscale/packer-plugin-outscale/builder/common"
)

func TestDatasourceConfigure_FilterBlank(t *testing.T) {
Expand Down
8 changes: 4 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (

"github.com/hashicorp/packer-plugin-sdk/plugin"

"github.com/outscale/packer-plugin-outscale/builder/osc/bsu"
"github.com/outscale/packer-plugin-outscale/builder/osc/bsusurrogate"
"github.com/outscale/packer-plugin-outscale/builder/osc/bsuvolume"
"github.com/outscale/packer-plugin-outscale/builder/osc/chroot"
"github.com/outscale/packer-plugin-outscale/builder/bsu"
"github.com/outscale/packer-plugin-outscale/builder/bsusurrogate"
"github.com/outscale/packer-plugin-outscale/builder/bsuvolume"
"github.com/outscale/packer-plugin-outscale/builder/chroot"
"github.com/outscale/packer-plugin-outscale/datasource/omi"
"github.com/outscale/packer-plugin-outscale/version"
)
Expand Down

0 comments on commit 35975ce

Please sign in to comment.