Documentation ¶
Index ¶
- func DataSourceGoogleSignedUrl() *schema.Resource
- func DataSourceGoogleStorageBucket() *schema.Resource
- func DataSourceGoogleStorageBucketObject() *schema.Resource
- func DataSourceGoogleStorageBucketObjectContent() *schema.Resource
- func DataSourceGoogleStorageProjectServiceAccount() *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 ResourceStorageDefaultObjectAcl() *schema.Resource
- func ResourceStorageNotification() *schema.Resource
- func ResourceStorageNotificationParseID(id string) (string, string)
- func ResourceStorageObjectAcl() *schema.Resource
- func SignString(toSign []byte, cfg *jwt.Config) ([]byte, error)
- type RoleEntity
- type UrlData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RoleEntity ¶
func GetRoleEntityPair ¶
func GetRoleEntityPair(role_entity string) (*RoleEntity, 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_project_service_account.go
- data_source_storage_bucket_object_content.go
- data_source_storage_object_signed_url.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_acl.go
- resource_storage_notification.go
- resource_storage_object_acl.go
Click to show internal directories.
Click to hide internal directories.