MCPcopy
hub / github.com/dosco/graphjin / gcsBackend

Struct gcsBackend

serv/fstable_gcs.go:27–33  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

25// user creds), so deployments configure auth out-of-band rather than
26// through GraphJin config.
27type gcsBackend struct {
28 client *storage.Client
29 bucket *storage.BucketHandle
30 bucketName string
31 prefix string
32 listMaxKeys int
33}
34
35func newGCSBackend(conf core.FilesystemConfig) (fstable.Backend, error) {
36 if conf.Bucket == "" {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected