datastoredemo

command
v1.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 25, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Command datastoredemo exercises nosql/datastore against the Datastore emulator, or against a real project when credentials are present.

gcloud beta emulators datastore start --host-port=127.0.0.1:8081
DATASTORE_EMULATOR_HOST=127.0.0.1:8081 DATASTORE_PROJECT_ID=demo \
    tinygo run ./examples/datastoredemo

Against a real project the emulator variable is unset and GOOGLE_APPLICATION_CREDENTIALS names a service account key file. That path signs a self-signed JWT; the emulator ignores Authorization entirely, so a green run here does not exercise the token.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL