Skip to content

Commit

Permalink
chore: migrate cloudavenue sdk to infrapi (#556)
Browse files Browse the repository at this point in the history
  • Loading branch information
azrod authored Oct 5, 2023
1 parent ee8cccf commit 0d970b8
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ linters-settings:
- prefix(github.com/hashicorp/terraform-plugin-framework-validators/)
- prefix(github.com/hashicorp)
- prefix(github.com/FrangipaneTeam)
- prefix(github.com/orange-cloudavenue/terraform-provider-cloudavenue,github.com/orange-cloudavenue/cloudavenue-sdk-go)
- prefix(github.com/orange-cloudavenue/terraform-provider-cloudavenue,github.com/orange-cloudavenue/cloudavenue-sdk-go,github.com/orange-cloudavenue/infrapi-sdk-go)
- blank # Blank section: contains all blank imports. This section is not present unless explicitly enabled.
- dot # Dot section: contains all dot imports. This section is not present unless explicitly enabled.
skip-generated: true
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ require (
github.com/hashicorp/terraform-plugin-log v0.9.0
github.com/hashicorp/terraform-plugin-sdk/v2 v2.29.0
github.com/iancoleman/strcase v0.3.0
github.com/orange-cloudavenue/cloudavenue-sdk-go v0.1.3
github.com/orange-cloudavenue/infrapi-sdk-go v0.1.4-0.20231005074857-89878ea119fb
github.com/orange-cloudavenue/netbackup-sdk-go v0.0.2-0.20230928095122-108fd1ec28ae
github.com/rs/zerolog v1.31.0
github.com/thanhpk/randstr v1.0.6
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@ github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA=
github.com/oklog/run v1.1.0/go.mod h1:sVPdnTZT1zYwAJeCMu2Th4T21pA3FPOQRfWjQlk7DVU=
github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE=
github.com/onsi/gomega v1.18.1 h1:M1GfJqGRrBrrGGsbxzV5dqM2U2ApXefZCQpkukxYRLE=
github.com/orange-cloudavenue/cloudavenue-sdk-go v0.1.3 h1:nnFO5vxf70gWZkPcM153LYwHA1fa+0QqtzH2t71AMFA=
github.com/orange-cloudavenue/cloudavenue-sdk-go v0.1.3/go.mod h1:bMSQ+EQ0CtwIca1J133sM9fc/4cAfLXN3r4TpnS0BDY=
github.com/orange-cloudavenue/infrapi-sdk-go v0.1.4-0.20231005074857-89878ea119fb h1:1/Wc21Tp9RnDOUTjKBm9x3wi+UgUkDc2bv0fHJc5f2o=
github.com/orange-cloudavenue/infrapi-sdk-go v0.1.4-0.20231005074857-89878ea119fb/go.mod h1:pGa9mB6s+weCi5QtNe5nicp7yL0C/e+i+3wHRh4cjBE=
github.com/orange-cloudavenue/netbackup-sdk-go v0.0.2-0.20230928095122-108fd1ec28ae h1:eOxAQKxWiC1iJzhhLW2bD4UCe55viWa0v3IejsbKjdE=
github.com/orange-cloudavenue/netbackup-sdk-go v0.0.2-0.20230928095122-108fd1ec28ae/go.mod h1:KaxPSw6c1JNm+F9YRydHVEhoNjIfrjadKl0BPhRLPvM=
github.com/peterhellberg/link v1.2.0 h1:UA5pg3Gp/E0F2WdX7GERiNrPQrM1K6CVJUUWfHa4t6c=
Expand Down
2 changes: 1 addition & 1 deletion internal/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

"github.com/vmware/go-vcloud-director/v2/govcd"

apiclient "github.com/orange-cloudavenue/cloudavenue-sdk-go"
apiclient "github.com/orange-cloudavenue/infrapi-sdk-go"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion internal/client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"reflect"
"testing"

apiclient "github.com/orange-cloudavenue/cloudavenue-sdk-go"
apiclient "github.com/orange-cloudavenue/infrapi-sdk-go"
)

func TestCloudAvenueClient(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion internal/helpers/api_errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/hashicorp/terraform-plugin-framework/diag"

"github.com/orange-cloudavenue/cloudavenue-sdk-go"
cloudavenue "github.com/orange-cloudavenue/infrapi-sdk-go"
)

// APIError is an error returned by the CloudAvenue API.
Expand Down
2 changes: 1 addition & 1 deletion internal/helpers/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"context"
"errors"

apiclient "github.com/orange-cloudavenue/cloudavenue-sdk-go"
apiclient "github.com/orange-cloudavenue/infrapi-sdk-go"
)

// GetAuthContextWithTO is a helper function to create the auth context with the token api and the terraform context with timeout.
Expand Down
2 changes: 1 addition & 1 deletion internal/helpers/auth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"testing"
"time"

apiclient "github.com/orange-cloudavenue/cloudavenue-sdk-go"
apiclient "github.com/orange-cloudavenue/infrapi-sdk-go"
)

func TestGetAuthContextWithTO(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/edgegw/edgegateway_datasource.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

"github.com/hashicorp/terraform-plugin-framework/datasource"

apiclient "github.com/orange-cloudavenue/cloudavenue-sdk-go"
apiclient "github.com/orange-cloudavenue/infrapi-sdk-go"
"github.com/orange-cloudavenue/terraform-provider-cloudavenue/internal/client"
"github.com/orange-cloudavenue/terraform-provider-cloudavenue/internal/helpers"
"github.com/orange-cloudavenue/terraform-provider-cloudavenue/internal/metrics"
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/edgegw/edgegateway_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/retry"

apiclient "github.com/orange-cloudavenue/cloudavenue-sdk-go"
apiclient "github.com/orange-cloudavenue/infrapi-sdk-go"
"github.com/orange-cloudavenue/terraform-provider-cloudavenue/internal/client"
"github.com/orange-cloudavenue/terraform-provider-cloudavenue/internal/helpers"
"github.com/orange-cloudavenue/terraform-provider-cloudavenue/internal/metrics"
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/publicip/publicip_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/retry"

apiclient "github.com/orange-cloudavenue/cloudavenue-sdk-go"
apiclient "github.com/orange-cloudavenue/infrapi-sdk-go"
"github.com/orange-cloudavenue/terraform-provider-cloudavenue/internal/client"
"github.com/orange-cloudavenue/terraform-provider-cloudavenue/internal/helpers"
"github.com/orange-cloudavenue/terraform-provider-cloudavenue/internal/metrics"
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/vdc/vdc_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/retry"

apiclient "github.com/orange-cloudavenue/cloudavenue-sdk-go"
apiclient "github.com/orange-cloudavenue/infrapi-sdk-go"
"github.com/orange-cloudavenue/terraform-provider-cloudavenue/internal/client"
"github.com/orange-cloudavenue/terraform-provider-cloudavenue/internal/helpers"
"github.com/orange-cloudavenue/terraform-provider-cloudavenue/internal/metrics"
Expand Down

0 comments on commit 0d970b8

Please sign in to comment.