Implement Google Cloud Storage (GCS) module#46
Merged
Conversation
Co-authored-by: intel352 <77607+intel352@users.noreply.github.com>
Co-authored-by: intel352 <77607+intel352@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Implement GCS storage functionality in storage module
Implement Google Cloud Storage (GCS) module
Feb 22, 2026
intel352
approved these changes
Feb 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
module/storage_gcs.gowas a registeredstorage.gcsmodule type that returned"GCS storage not yet implemented"on every operation, making it unusable at runtime.Changes
module/storage_gcs.go*storage.Clientfield; wired up real GCS SDK (cloud.google.com/go/storage)Start(): callsstorage.NewClient(); supports explicit service account credentials viacredentialsFile(using non-deprecatedoption.WithAuthCredentialsFile(option.ServiceAccount, ...)) or falls back to Application Default CredentialsStop(): closes the client; safe to call beforeStart()List(): iteratesbucket.Objects()with prefix filterGet(): returnsio.ReadCloserviaobject.NewReader()Put(): streams fromio.Readerviaobject.NewWriter()+io.CopyDelete(): delegates toobject.Delete()Stat(): mapsobject.Attrs()→store.FileInfo(name, size, modified time)MkdirAll(): no-op (object storage has no directories)"GCS client not initialized; call Start first"when called beforeStart()(stub)from theStart()log messagemodule/storage_gcs_test.goNew test file mirroring
s3_storage_test.go:Name(),Init(),ProvidesServices(),RequiresServices()SetBucket,SetProject,SetCredentialsFile)Stop()withoutStart()is safeMkdirAll()is a no-opgo.mod/go.sumAdded
cloud.google.com/go/storage v1.60.0.Original prompt
This pull request was created from Copilot chat.
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.