メインコンテンツまでスキップ

Built-in Storage

Squid Client SDK を使用し、任意の client から storage bucket 内の file を安全に管理します​

すべての Squid application には、configuration 不要で自動 provision される built-in storage が含まれます。内部では、Squid instance が実行される cloud の storage system を使用します。AWS 上で host される application は Amazon S3、Google Cloud 上の application は Google Cloud Storage、Azure 上の application は Azure Blob Storage を使用します。underlying provider に関係なく storage API は同じです。

client から storage bucket に access するには、storage() method を使用して Storage Client への reference を作成します。

Client code
const topic = squid.storage();

この storage instance では、file の upload、metadata の read、download URL の生成、content の download を実行できます。client から file を管理する方法について詳しくは、Squid storage documentationを参照してください。