gcpbox

package module
v1.25.2 Latest Latest
Warning

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

Go to latest
Published: May 31, 2025 License: MIT Imports: 0 Imported by: 1

README

gcpbox

Google Cloud Platform Utility

@sinmetal が GCP でよく利用する処理をまとめている Utility。 @sinmetal のユースケースに特化しているので、他の人が使うことは気にしていないが、参考程度に見るのはいいかもしれない。

cloudtasks

  • Handlerの Header を取得
  • TaskをAdd

metadata

GCPのmetadata周りを扱うutility

GCP上では Metadata Server を参照し、Localでは環境変数を利用し、設定値を取得する。 GCPとLocalで同じロジックを使いつつ、設定値を持ち回るために作成した

動作確認した環境
  • Google App Engine Standard for Go 1.15
  • Google Compute Engine
  • Google Kubernetes Engine

storage

Documentation

Index

Constants

View Source
const (
	// 東京 Region
	// asia-northeast1
	TokyoRegion = "asia-northeast1"

	// 大阪 Region
	// "asia-northeast2"
	OsakaRegion = "asia-northeast2"

	// 台湾 Region
	// "asia-east1"
	TaiwanRegion = "asia-east1"

	// アイオワ Region
	// "us-central1"
	IowaRegion = "us-central1"
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
asset
v0
v2
v3
iap
internal
appengine
appengine is App Engine 固有のmetadataを扱う https://cloud.google.com/appengine/docs/standard/go/runtime#environment_variables
appengine is App Engine 固有のmetadataを扱う https://cloud.google.com/appengine/docs/standard/go/runtime#environment_variables
cloudrun
cloudrun is Cloud Run 固有のmetadataを扱う https://cloud.google.com/run/docs/reference/container-contract#env-vars
cloudrun is Cloud Run 固有のmetadataを扱う https://cloud.google.com/run/docs/reference/container-contract#env-vars
mole
v0
monitoring
policytroubleshooter
v0

Jump to

Keyboard shortcuts

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