Documentation ¶
Overview ¶
Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0
Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0
Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0 Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0
Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0 Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0
Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0
Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0
Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0
Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0
Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0
Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0
Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0
Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0
Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0 SPDX-License-Identifier: MPL-2.0
Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0
Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0
Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0
Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0
Index ¶
- Variables
- func DataSourceGoogleSignedUrl() *schema.Resource
- func DataSourceGoogleStorageBucket() *schema.Resource
- func DataSourceGoogleStorageBucketObject() *schema.Resource
- func DataSourceGoogleStorageBucketObjectContent() *schema.Resource
- func DataSourceGoogleStorageBucketObjects() *schema.Resource
- func DataSourceGoogleStorageBuckets() *schema.Resource
- func DataSourceGoogleStorageProjectServiceAccount() *schema.Resource
- func ResourceStorageBucket() *schema.Resource
- func ResourceStorageBucketAccessControl() *schema.Resource
- func ResourceStorageBucketAcl() *schema.Resource
- func ResourceStorageBucketObject() *schema.Resource
- func ResourceStorageBucketStateUpgradeV0(_ context.Context, rawState map[string]interface{}, meta interface{}) (map[string]interface{}, error)
- func ResourceStorageBucketStateUpgradeV1(_ context.Context, rawState map[string]interface{}, meta interface{}) (map[string]interface{}, error)
- func ResourceStorageBucketStateUpgradeV2(_ context.Context, rawState map[string]interface{}, meta interface{}) (map[string]interface{}, error)
- func ResourceStorageDefaultObjectAccessControl() *schema.Resource
- func ResourceStorageDefaultObjectAcl() *schema.Resource
- func ResourceStorageHmacKey() *schema.Resource
- func ResourceStorageManagedFolder() *schema.Resource
- func ResourceStorageNotification() *schema.Resource
- func ResourceStorageNotificationParseID(id string) (string, string)
- func ResourceStorageObjectAccessControl() *schema.Resource
- func ResourceStorageObjectAcl() *schema.Resource
- func SignString(toSign []byte, cfg *jwt.Config) ([]byte, error)
- func StorageBucketDiffSuppress(_, old, new string, _ *schema.ResourceData) bool
- func StorageBucketIamUpdaterProducer(d tpgresource.TerraformResourceData, config *transport_tpg.Config) (tpgiamresource.ResourceIamUpdater, error)
- func StorageBucketIdParseFunc(d *schema.ResourceData, config *transport_tpg.Config) error
- func StorageManagedFolderIamUpdaterProducer(d tpgresource.TerraformResourceData, config *transport_tpg.Config) (tpgiamresource.ResourceIamUpdater, error)
- func StorageManagedFolderIdParseFunc(d *schema.ResourceData, config *transport_tpg.Config) error
- type RoleEntity
- type StorageBucketIamUpdater
- func (u *StorageBucketIamUpdater) DescribeResource() string
- func (u *StorageBucketIamUpdater) GetMutexKey() string
- func (u *StorageBucketIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)
- func (u *StorageBucketIamUpdater) GetResourceId() string
- func (u *StorageBucketIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error
- type StorageManagedFolderIamUpdater
- func (u *StorageManagedFolderIamUpdater) DescribeResource() string
- func (u *StorageManagedFolderIamUpdater) GetMutexKey() string
- func (u *StorageManagedFolderIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)
- func (u *StorageManagedFolderIamUpdater) GetResourceId() string
- func (u *StorageManagedFolderIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error
- type UrlData
Constants ¶
This section is empty.
Variables ¶
var StorageBucketIamSchema = map[string]*schema.Schema{ "bucket": { Type: schema.TypeString, Required: true, ForceNew: true, DiffSuppressFunc: StorageBucketDiffSuppress, }, }
var StorageManagedFolderIamSchema = map[string]*schema.Schema{ "bucket": { Type: schema.TypeString, Required: true, ForceNew: true, }, "managed_folder": { Type: schema.TypeString, Required: true, ForceNew: true, DiffSuppressFunc: tpgresource.CompareSelfLinkOrResourceName, ValidateFunc: verify.ValidateRegexp(`/$`), }, }
Functions ¶
func ResourceStorageBucket ¶
func ResourceStorageHmacKey ¶
func SignString ¶
SignString calculates the SHA256 signature of the input string
func StorageBucketDiffSuppress ¶
func StorageBucketDiffSuppress(_, old, new string, _ *schema.ResourceData) bool
func StorageBucketIamUpdaterProducer ¶
func StorageBucketIamUpdaterProducer(d tpgresource.TerraformResourceData, config *transport_tpg.Config) (tpgiamresource.ResourceIamUpdater, error)
func StorageBucketIdParseFunc ¶
func StorageBucketIdParseFunc(d *schema.ResourceData, config *transport_tpg.Config) error
func StorageManagedFolderIamUpdaterProducer ¶
func StorageManagedFolderIamUpdaterProducer(d tpgresource.TerraformResourceData, config *transport_tpg.Config) (tpgiamresource.ResourceIamUpdater, error)
func StorageManagedFolderIdParseFunc ¶
func StorageManagedFolderIdParseFunc(d *schema.ResourceData, config *transport_tpg.Config) error
Types ¶
type RoleEntity ¶
func GetRoleEntityPair ¶
func GetRoleEntityPair(role_entity string) (*RoleEntity, error)
type StorageBucketIamUpdater ¶
type StorageBucketIamUpdater struct { Config *transport_tpg.Config // contains filtered or unexported fields }
func (*StorageBucketIamUpdater) DescribeResource ¶
func (u *StorageBucketIamUpdater) DescribeResource() string
func (*StorageBucketIamUpdater) GetMutexKey ¶
func (u *StorageBucketIamUpdater) GetMutexKey() string
func (*StorageBucketIamUpdater) GetResourceIamPolicy ¶
func (u *StorageBucketIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)
func (*StorageBucketIamUpdater) GetResourceId ¶
func (u *StorageBucketIamUpdater) GetResourceId() string
func (*StorageBucketIamUpdater) SetResourceIamPolicy ¶
func (u *StorageBucketIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error
type StorageManagedFolderIamUpdater ¶
type StorageManagedFolderIamUpdater struct { Config *transport_tpg.Config // contains filtered or unexported fields }
func (*StorageManagedFolderIamUpdater) DescribeResource ¶
func (u *StorageManagedFolderIamUpdater) DescribeResource() string
func (*StorageManagedFolderIamUpdater) GetMutexKey ¶
func (u *StorageManagedFolderIamUpdater) GetMutexKey() string
func (*StorageManagedFolderIamUpdater) GetResourceIamPolicy ¶
func (u *StorageManagedFolderIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)
func (*StorageManagedFolderIamUpdater) GetResourceId ¶
func (u *StorageManagedFolderIamUpdater) GetResourceId() string
func (*StorageManagedFolderIamUpdater) SetResourceIamPolicy ¶
func (u *StorageManagedFolderIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error
type UrlData ¶
type UrlData struct { JwtConfig *jwt.Config ContentMd5 string ContentType string HttpMethod string Expires int HttpHeaders map[string]string Path string }
UrlData stores the values required to create a Signed Url
func (*UrlData) EncodedSignature ¶
EncodedSignature returns the Signature() after base64 encoding and url escaping
func (*UrlData) SignedUrl ¶
SignedUrl constructs the final signed URL a client can use to retrieve storage object
func (*UrlData) SigningString ¶
SigningString creates a string representation of the UrlData in a form ready for signing: see https://cloud.google.com/storage/docs/access-control/create-signed-urls-program Example output: ------------------- GET
1388534400 bucket/objectname -------------------
Source Files ¶
- data_source_google_storage_bucket.go
- data_source_google_storage_bucket_object.go
- data_source_google_storage_bucket_objects.go
- data_source_google_storage_buckets.go
- data_source_google_storage_project_service_account.go
- data_source_storage_bucket_object_content.go
- data_source_storage_object_signed_url.go
- iam_storage_bucket.go
- iam_storage_managed_folder.go
- resource_storage_bucket.go
- resource_storage_bucket_600_migration.go
- resource_storage_bucket_access_control.go
- resource_storage_bucket_acl.go
- resource_storage_bucket_migrate.go
- resource_storage_bucket_object.go
- resource_storage_bucket_sweeper.go
- resource_storage_default_object_access_control.go
- resource_storage_default_object_acl.go
- resource_storage_hmac_key.go
- resource_storage_managed_folder.go
- resource_storage_notification.go
- resource_storage_object_access_control.go
- resource_storage_object_acl.go