aboutsummaryrefslogtreecommitdiff
path: root/weed/command/scaffold.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2018-10-04 01:14:44 -0700
committerChris Lu <chris.lu@gmail.com>2018-10-04 01:14:44 -0700
commit56c5c7b1b6ecd5b43ee0d47a72a74049a3d54264 (patch)
tree79a21ac7bc6110a667152fe0019254f6bd57958e /weed/command/scaffold.go
parente8ef501f02217d29e35f4a52c86be3d93939ae6f (diff)
downloadseaweedfs-56c5c7b1b6ecd5b43ee0d47a72a74049a3d54264.tar.xz
seaweedfs-56c5c7b1b6ecd5b43ee0d47a72a74049a3d54264.zip
add google cloud storage
Diffstat (limited to 'weed/command/scaffold.go')
-rw-r--r--weed/command/scaffold.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/weed/command/scaffold.go b/weed/command/scaffold.go
index e0bd48c8c..fbe6934e1 100644
--- a/weed/command/scaffold.go
+++ b/weed/command/scaffold.go
@@ -178,6 +178,7 @@ collection = ""
ttlSec = 0
[sink.s3]
+# experimental
# See https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/sessions.html
# default loads credentials from the shared credentials file (~/.aws/credentials).
enabled = false
@@ -187,5 +188,14 @@ region = "us-east-2"
bucket = "your_bucket_name" # an existing bucket
directory = "" # destination directory (do not prefix or suffix with "/")
+[sink.google_cloud_storage]
+# experimental
+# see https://cloud.google.com/docs/authentication/getting-started
+enabled = false
+google_application_credentials = "/path/to/x.json" # path to json credential file
+projectId = "your_project_id"
+bucket = "your_bucket_name" # an existing bucket
+directory = "/" # destination directory
+
`
)