Skip to content

Commit

Permalink
rename s3 go sdk module occurrences (#696)
Browse files Browse the repository at this point in the history
  • Loading branch information
digna-ionos authored Oct 23, 2024
1 parent 0480ac6 commit 74218de
Show file tree
Hide file tree
Showing 158 changed files with 714 additions and 928 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 6.6.0
### Refactor
- Rename `S3` occurrences to `Object Storage`

## 6.5.9
### Features
- Add new, required `sni_mode` attribute for `ionoscloud_cdn_distribution` resource and data source
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ require (
github.com/ionos-cloud/sdk-go-dns v1.2.1
github.com/ionos-cloud/sdk-go-kafka v1.0.0
github.com/ionos-cloud/sdk-go-nfs v1.0.0
github.com/ionos-cloud/sdk-go-s3 v1.1.0
github.com/ionos-cloud/sdk-go-object-storage v1.0.0
github.com/ionos-cloud/sdk-go-vm-autoscaling v1.0.1
github.com/ionos-cloud/sdk-go/v6 v6.2.1
github.com/mitchellh/go-homedir v1.1.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ github.com/ionos-cloud/sdk-go-kafka v1.0.0 h1:S0Tfy/KlYW7UJW6DoU43fF0/iNPc1YKC+A
github.com/ionos-cloud/sdk-go-kafka v1.0.0/go.mod h1:yIq1FjRtdcbwmybb42puagpLjmD2wbWAew8UMHO5wqU=
github.com/ionos-cloud/sdk-go-nfs v1.0.0 h1:CyiemTDPg2jAjtTT4JHzvOpjq6lqe7YbXx2iq2gx98s=
github.com/ionos-cloud/sdk-go-nfs v1.0.0/go.mod h1:ffyMIPVknZ7dpi/+RomWXNNYV7ZjtK8KYSsGjVlbqgA=
github.com/ionos-cloud/sdk-go-s3 v1.1.0 h1:UA7D5hxGBRltepWOWiQU4eR9CBRouvn/JEAM+dF1wa4=
github.com/ionos-cloud/sdk-go-s3 v1.1.0/go.mod h1:3oghiEnuoXm12Fa3oXm6fxZKLWsT3iU3jfRxb2WrfTo=
github.com/ionos-cloud/sdk-go-object-storage v1.0.0 h1:9tmV6jBUBN19o1gLoxI4B57Y8jyLC7D3tNl49m1EyFk=
github.com/ionos-cloud/sdk-go-object-storage v1.0.0/go.mod h1:GMNkyZp5B70QInLTS79LWbZ7hoEy4F8TWL82zeInwBo=
github.com/ionos-cloud/sdk-go-vm-autoscaling v1.0.1 h1:KABL25MC7DrIHn9lQzKSPkwXhqvRkPYtFd+1HEogmAE=
github.com/ionos-cloud/sdk-go-vm-autoscaling v1.0.1/go.mod h1:Q5d1R6silarsX5jWLPBHd/1PSC5zZNf2ONvXB+fygC0=
github.com/ionos-cloud/sdk-go/v6 v6.2.1 h1:mxxN+frNVmbFrmmFfXnBC3g2USYJrl6mc1LW2iNYbFY=
Expand Down
2 changes: 1 addition & 1 deletion internal/acctest/acctest.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/hashicorp/terraform-plugin-mux/tf6muxserver"

"github.com/hashicorp/terraform-plugin-framework/providerserver"
objstorage "github.com/ionos-cloud/sdk-go-s3"
objstorage "github.com/ionos-cloud/sdk-go-object-storage"

"github.com/ionos-cloud/terraform-provider-ionoscloud/v6/internal/envar"
"github.com/ionos-cloud/terraform-provider-ionoscloud/v6/internal/framework/provider"
Expand Down
2 changes: 1 addition & 1 deletion internal/framework/services/objectstorage/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"errors"
"fmt"

objstorage "github.com/ionos-cloud/sdk-go-s3"
objstorage "github.com/ionos-cloud/sdk-go-object-storage"
)

func formatXMLError(err error) error {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"fmt"
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
"github.com/hashicorp/terraform-plugin-testing/terraform"
objstorage "github.com/ionos-cloud/sdk-go-s3"
objstorage "github.com/ionos-cloud/sdk-go-object-storage"
"github.com/ionos-cloud/terraform-provider-ionoscloud/v6/utils"
"io"
"os"
Expand Down
2 changes: 1 addition & 1 deletion internal/tags/tags.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"

"github.com/hashicorp/terraform-plugin-framework/types"
objstorage "github.com/ionos-cloud/sdk-go-s3"
objstorage "github.com/ionos-cloud/sdk-go-object-storage"
)

// KeyValueTags is a map of key-value tags.
Expand Down
2 changes: 1 addition & 1 deletion ionoscloud/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"os"
"runtime"

objstorage "github.com/ionos-cloud/sdk-go-s3"
objstorage "github.com/ionos-cloud/sdk-go-object-storage"

"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
Expand Down
2 changes: 1 addition & 1 deletion services/objectstorage/bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/cenkalti/backoff/v4"
"github.com/hashicorp/terraform-plugin-framework-timeouts/resource/timeouts"
"github.com/hashicorp/terraform-plugin-framework/types"
objstorage "github.com/ionos-cloud/sdk-go-s3"
objstorage "github.com/ionos-cloud/sdk-go-object-storage"

tftags "github.com/ionos-cloud/terraform-provider-ionoscloud/v6/internal/tags"
)
Expand Down
2 changes: 1 addition & 1 deletion services/objectstorage/bucket_delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/ionos-cloud/sdk-go-bundle/shared"

objstorage "github.com/ionos-cloud/sdk-go-s3"
objstorage "github.com/ionos-cloud/sdk-go-object-storage"
)

const errAccessDenied = "AccessDenied"
Expand Down
2 changes: 1 addition & 1 deletion services/objectstorage/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/aws/aws-sdk-go/aws/credentials"
awsv4 "github.com/aws/aws-sdk-go/aws/signer/v4"

objstorage "github.com/ionos-cloud/sdk-go-s3"
objstorage "github.com/ionos-cloud/sdk-go-object-storage"
)

// Client is a wrapper around the Object Storage client.
Expand Down
2 changes: 1 addition & 1 deletion services/objectstorage/cors.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"

"github.com/hashicorp/terraform-plugin-framework/types"
objstorage "github.com/ionos-cloud/sdk-go-s3"
objstorage "github.com/ionos-cloud/sdk-go-object-storage"

"github.com/ionos-cloud/terraform-provider-ionoscloud/v6/utils/convptr"
)
Expand Down
2 changes: 1 addition & 1 deletion services/objectstorage/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"errors"
"log"

objstorage "github.com/ionos-cloud/sdk-go-s3"
objstorage "github.com/ionos-cloud/sdk-go-object-storage"
)

func isBucketNotEmptyError(err error) bool {
Expand Down
2 changes: 1 addition & 1 deletion services/objectstorage/lifecycle.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"fmt"

"github.com/hashicorp/terraform-plugin-framework/types"
objstorage "github.com/ionos-cloud/sdk-go-s3"
objstorage "github.com/ionos-cloud/sdk-go-object-storage"

convptr "github.com/ionos-cloud/terraform-provider-ionoscloud/v6/utils/convptr"
hash2 "github.com/ionos-cloud/terraform-provider-ionoscloud/v6/utils/hash"
Expand Down
2 changes: 1 addition & 1 deletion services/objectstorage/object.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"time"

"github.com/hashicorp/terraform-plugin-framework/types"
objstorage "github.com/ionos-cloud/sdk-go-s3"
objstorage "github.com/ionos-cloud/sdk-go-object-storage"
"github.com/mitchellh/go-homedir"

"github.com/ionos-cloud/terraform-provider-ionoscloud/v6/internal/tags"
Expand Down
2 changes: 1 addition & 1 deletion services/objectstorage/object_copy.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"time"

"github.com/hashicorp/terraform-plugin-framework/types"
objstorage "github.com/ionos-cloud/sdk-go-s3"
objstorage "github.com/ionos-cloud/sdk-go-object-storage"
)

// ObjectCopyResourceModel defines the fields for the Terraform resource model.
Expand Down
2 changes: 1 addition & 1 deletion services/objectstorage/object_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"time"

"github.com/hashicorp/terraform-plugin-framework/types"
objstorage "github.com/ionos-cloud/sdk-go-s3"
objstorage "github.com/ionos-cloud/sdk-go-object-storage"
)

// GetObjectForDataSource retrieves an object for a data source.
Expand Down
2 changes: 1 addition & 1 deletion services/objectstorage/object_delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/ionos-cloud/sdk-go-bundle/shared"

objstorage "github.com/ionos-cloud/sdk-go-s3"
objstorage "github.com/ionos-cloud/sdk-go-object-storage"
)

// DeleteRequest represents a request to delete an object from a general purpose bucket.
Expand Down
2 changes: 1 addition & 1 deletion services/objectstorage/object_lock.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"fmt"

"github.com/hashicorp/terraform-plugin-framework/types"
objstorage "github.com/ionos-cloud/sdk-go-s3"
objstorage "github.com/ionos-cloud/sdk-go-object-storage"

convptr "github.com/ionos-cloud/terraform-provider-ionoscloud/v6/utils/convptr"
hash2 "github.com/ionos-cloud/terraform-provider-ionoscloud/v6/utils/hash"
Expand Down
2 changes: 1 addition & 1 deletion services/objectstorage/objects_paginator.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"fmt"

objstorage "github.com/ionos-cloud/sdk-go-s3"
objstorage "github.com/ionos-cloud/sdk-go-object-storage"
)

// ListObjectsV2Input represents the input for the ListObjectsV2Paginator.
Expand Down
2 changes: 1 addition & 1 deletion services/objectstorage/paginator.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"fmt"

objstorage "github.com/ionos-cloud/sdk-go-s3"
objstorage "github.com/ionos-cloud/sdk-go-object-storage"
)

// ListObjectVersionsInput represents the input for the ListObjectVersionsPaginator.
Expand Down
2 changes: 1 addition & 1 deletion services/objectstorage/policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/hashicorp/terraform-plugin-framework-jsontypes/jsontypes"
"github.com/hashicorp/terraform-plugin-framework/diag"
"github.com/hashicorp/terraform-plugin-framework/types"
objstorage "github.com/ionos-cloud/sdk-go-s3"
objstorage "github.com/ionos-cloud/sdk-go-object-storage"

"github.com/ionos-cloud/terraform-provider-ionoscloud/v6/utils"
"github.com/ionos-cloud/terraform-provider-ionoscloud/v6/utils/constant"
Expand Down
2 changes: 1 addition & 1 deletion services/objectstorage/public_access_block.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"

"github.com/hashicorp/terraform-plugin-framework/types"
objstorage "github.com/ionos-cloud/sdk-go-s3"
objstorage "github.com/ionos-cloud/sdk-go-object-storage"
)

// BucketPublicAccessBlockResourceModel defines the expected inputs for creating a new BucketPublicAccessBlock.
Expand Down
2 changes: 1 addition & 1 deletion services/objectstorage/sse.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"

"github.com/hashicorp/terraform-plugin-framework/types"
objstorage "github.com/ionos-cloud/sdk-go-s3"
objstorage "github.com/ionos-cloud/sdk-go-object-storage"
)

// ServerSideEncryptionConfigurationModel defines the expected inputs for creating a new ServerSideEncryptionConfiguration.
Expand Down
2 changes: 1 addition & 1 deletion services/objectstorage/tags.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"fmt"

objstorage "github.com/ionos-cloud/sdk-go-s3"
objstorage "github.com/ionos-cloud/sdk-go-object-storage"

"github.com/ionos-cloud/terraform-provider-ionoscloud/v6/internal/tags"
)
Expand Down
2 changes: 1 addition & 1 deletion services/objectstorage/versioning.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/hashicorp/terraform-plugin-framework/attr"
"github.com/hashicorp/terraform-plugin-framework/types"
objstorage "github.com/ionos-cloud/sdk-go-s3"
objstorage "github.com/ionos-cloud/sdk-go-object-storage"
)

// BucketVersioningResourceModel defines the expected inputs for creating a new BucketVersioning.
Expand Down
2 changes: 1 addition & 1 deletion services/objectstorage/website.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"

"github.com/hashicorp/terraform-plugin-framework/types"
objstorage "github.com/ionos-cloud/sdk-go-s3"
objstorage "github.com/ionos-cloud/sdk-go-object-storage"
)

// BucketWebsiteConfigurationModel defines the expected inputs for creating a new BucketWebsiteConfiguration.
Expand Down

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

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

Loading

0 comments on commit 74218de

Please sign in to comment.