sinmetal
sinmetal
`Recv.` ってのが何なんだろう?ってずっと悩んでたけど、通りがかりの人が、 SpanKindがServerだと `Recv.` で、Clientだと `Sent.` なんじゃないか?と言われて、なるほど!!!って気持ちになって解決した・・・!
先週ぐらいにこの記事を見たかったw
今日からかな?と思ったけど、7月からに延期されてるっぽいな。 *Charges between January 1st, 2020 and June 30th, 2020 are waived. https://cloud.google.com/compute/network-pricing#ipaddress
# sinmetalの構成 [実践的なGAE/Goの構成について #golang #gcpja](https://qiita.com/koki_cheese/items/216fe73caf958db34aa2) と同じ。 serviceごとにdirを分けたりしないので、 基本1つのdirにすべてが入ってる。 https://github.com/sinmetal/gcpugjp なんかがそう。 ## GOPATH `"$HOME/go"`
以下のような感じで、 `request.email` を見てあげればよいっぽい ``` service cloud.firestore { match /databases/{database}/documents { match /{document=**} { allow read, write: if false; } match /users/{userId} { allow create,delete,update: if request.auth.uid == userId && request.auth.token.email.matches('.*@gcpug[.]jp');...
カスタムAuthでがんばるという手もある https://github.com/firebase/functions-samples/tree/master/instagram-auth
Service Accountではなく、Google Accountで行う場合は、基本的にResourceが存在するProjectにQuotaやPriceは入る。 Account Limitが存在するAPIの場合は、利用しているAccountに入る。
ちなみに作ろうとするとないよ!って言われる ``` gcloud iam service-accounts keys create ~/sinmetal-lab-cloudbuild-key.json \ --iam-account [email protected] --project sinmetal-lab ERROR: (gcloud.iam.service-accounts.keys.create) NOT_FOUND: Service account projects/-/serviceAccounts/[email protected] does not exist. ```
# Google Cloud Datastore ## Emulator https://cloud.google.com/datastore/docs/tools/datastore-emulator Google Cloud SDKに含まれているDatastoreのEmulator Javaで作られている # Google Cloud Firestore ## Emulator https://firebase.google.com/docs/rules/emulator-setup https://cloud.google.com/sdk/gcloud/reference/beta/emulators/firestore/ Firebase側にはドキュメントがあるが、GCP側にはドキュメントが無い Google Cloud SDKとしては `cloud-firestore-emulator` という名前のcomponentとなっている # Google Cloud Bigtable https://cloud.google.com/bigtable/docs/emulator...
Google Cloud Spanner Emulator (β) https://cloud.google.com/spanner/docs/emulator