github.com/qiniu/go-sdk/v7@v7.27.0/examples/sandbox_resources/.env.example (about) 1 # Sandbox resource example configuration. 2 # Copy this file to examples/sandbox_resources/.env or set these variables in your shell. 3 4 # Required for all sandbox API calls. 5 QINIU_API_KEY= 6 7 # Optional sandbox API endpoint. Leave empty to use the SDK default endpoint. 8 QINIU_SANDBOX_API_URL= 9 10 # GitHub repository resource. 11 # Set both GITHUB_TOKEN and QINIU_SANDBOX_GIT_REPO_URL to enable Git repository 12 # mounting and basic write/status checks. 13 GITHUB_TOKEN= 14 QINIU_SANDBOX_GIT_REPO_URL= 15 QINIU_SANDBOX_GIT_TEST_FILE=sandbox-resource-write-test.txt 16 17 # Keep push disabled unless you intentionally want the example to commit and push. 18 QINIU_SANDBOX_GIT_PUSH_TEST=false 19 QINIU_SANDBOX_GIT_PUSH_BRANCH= 20 QINIU_SANDBOX_GIT_COMMIT_NAME="Sandbox Resource Demo" 21 QINIU_SANDBOX_GIT_COMMIT_EMAIL=sandbox-resource-demo@example.com 22 QINIU_SANDBOX_GIT_COMMIT_MESSAGE="test: update sandbox resource write file" 23 24 # Kodo bucket resource. 25 # Set QINIU_SANDBOX_KODO_BUCKET to enable Kodo mounting. 26 # Kodo resources require Qiniu AK/SK credentials on the client. 27 QINIU_ACCESS_KEY= 28 QINIU_SECRET_KEY= 29 QINIU_SANDBOX_KODO_BUCKET= 30 QINIU_SANDBOX_KODO_MOUNT_PATH=/workspace/kodo 31 QINIU_SANDBOX_KODO_PREFIX= 32 QINIU_SANDBOX_KODO_READ_ONLY=true 33 QINIU_SANDBOX_KODO_TEST_FILE=sandbox-resource-write-test.txt 34 35 # Keep write disabled for a safe first run. Set true to write a test file into the mounted bucket. 36 QINIU_SANDBOX_KODO_WRITE_TEST=false