package
0.10.6
Repository: https://github.com/goto/meteor.git
Documentation: pkg.go.dev

# README

GCS

Sinks json data to a file as ndjson format in Google Cloud Storage bucket

Usage

sinks:
  - name: gcs
    config:
     project_id: google-project-id
     url: gcs://bucket_name/target_folder
     object_prefix : github-users
     service_account_base64: <base64 encoded service account key>
     service_account_json:
      {
        "type": "service_account",
        "private_key_id": "xxxxxxx",
        "private_key": "xxxxxxx",
        "client_email": "xxxxxxx",
        "client_id": "xxxxxxx",
        "auth_uri": "https://accounts.google.com/o/oauth2/auth",
        "token_uri": "https://oauth2.googleapis.com/token",
        "auth_provider_x509_cert_url": "xxxxxxx",
        "client_x509_cert_url": "xxxxxxx",
      }

Config Definition

KeyValueExampleDescription
project_idstringgoogle-project-idGoogle Cloud Storage Project IDrequired
urlstringgcs://bucket_name/target_folderthe URL with bucket name and path of the folder with format gcs://<bucket_name>/<optional_folder_path>required
object_prefixstringgithub-usersthe .ndjson file name prefix where json data will be inserted with timestamp Note: If prefix is not provided, the output data will be put in a timestamp.ndjson file in the provided path. Otherwise in the given example the output file will be github-users-timestamp.ndjsonoptional
service_account_base64stringewog....fQo=Service Account Key in base64 encoded string. Takes precedence over service_account_json valueoptional
service_account_jsonstring{"private_key": .., "private_id": ...}Service Account Key in JSON stringoptional

Contributing

Refer to the contribution guidelines for information on contributing to this module.

# Packages

No description provided by the author

# Functions

No description provided by the author

# Structs

No description provided by the author
No description provided by the author