Google Cloud Storage
Google Cloud Storage bucket を Squid に接続します
Squid を通じて Google Cloud Storage bucket に access するには、まず Squid Console で connector を追加します。
-
Squid Console で Connectors page に移動し、Google Cloud Storage connector を選択します。
-
次の detail を指定します。
- Connector ID - 簡潔で connector の識別に役立つ ID を選択します。
- Bucket name - 接続する GCS bucket の name。
- Credentials JSON string - Squid に付与する storage bucket permission を持つ Google Cloud service account を指定します。この value は private に保たれるよう、Squid Secretsを使用して安全に保存されます。
-
Test connection をクリックして connector information を検証します。検証後、Add connector をクリックします。

client から storage bucket に access するには、storage connector ID を渡して storage() method を使用し、StorageClient への reference を作成します。
Client code
const topic = squid.storage('YOUR_STORAGE_CONNECTOR_ID');
この storage instance では、file の upload、metadata の read、download URL の生成、content の download を実行できます。client から file を管理する方法の詳細については、Squid storage documentationを参照してください。