package
0.11.0
Repository: https://github.com/raystack/meteor.git
Documentation: pkg.go.dev

# README

google cloud storage

Usage

source:
  name: gcs
  config:
    project_id: google-project-id
    extract_blob: true
     # Only one of service_account_base64 / service_account_json is needed. 
    # If both are present, service_account_base64 takes precedence
    service_account_base64: _________BASE64_ENCODED_SERVICE_ACCOUNT_________________
    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",
      }
    exclude: [bucket_a, bucket_b]

Inputs

KeyValueExampleDescription
project_idstringmy-projectCloud Storage Project IDrequired
extract_blobbooleantrueExtract blob metadata inside a bucketoptional
service_account_base64string____BASE64_ENCODED_SERVICE_ACCOUNT____Service Account in base64 encoded string. Takes precedence over service_account_json valueoptional
service_account_jsonstring{"private_key": .., "private_id": ...}Service Account in JSON stringoptional
exclude[]string["bucket_a","bucket_b"]Array of bucket names to excluded from crawlingoptional

Notes

Leaving service_account_base64 and service_account_json blank will default to Google's default authentication. It is recommended if Meteor instance runs inside the same Google Cloud environment as the Google Cloud Storage project.

Outputs

FieldSample Value
resource.urnproject_id/bucket_name
resource.namebucket_name
resource.servicegcs
locationASIA
storage_typeSTANDARD
labels[]{key:value}
timestamps.created_at.seconds1551082913
timestamps.created_at.nanos1551082913

Blob

FieldSample Value
urnproject_id/bucket_name/blob_path
nameblob_path
size311
deleted_at.seconds1551082913
expired_at.seconds1551082913
labels[]{key:value}
ownership.owners[]{name:[email protected]}
timestamps.created_at.seconds1551082913
timestamps.created_at.nanos1551082913
timestamps.updated_at.seconds1551082913
timestamps.updated_at.nanos1551082913

Contributing

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

# Functions

New returns a pointer to an initialized Extractor Object.

# Structs

Config holds the set of configuration for the extractor.
Extractor manages the extraction of data from the google cloud storage.

# Type aliases

No description provided by the author