gcsBackend implements fstable.Backend on top of Google Cloud Storage. One instance is created per FilesystemConfig at engine init. Auth follows the standard Application Default Credentials chain (GOOGLE_APPLICATION_CREDENTIALS, metadata server on GCE/GKE, gcloud user creds), so deployments configur
| 25 | // user creds), so deployments configure auth out-of-band rather than |
| 26 | // through GraphJin config. |
| 27 | type gcsBackend struct { |
| 28 | client *storage.Client |
| 29 | bucket *storage.BucketHandle |
| 30 | bucketName string |
| 31 | prefix string |
| 32 | listMaxKeys int |
| 33 | } |
| 34 | |
| 35 | func newGCSBackend(conf core.FilesystemConfig) (fstable.Backend, error) { |
| 36 | if conf.Bucket == "" { |
nothing calls this directly
no outgoing calls
no test coverage detected