Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
O Artifact Registry suporta módulos Go e versões semânticas independentemente do seu sistema de controlo de versões. Os módulos Go armazenados no Artifact Registry podem ser usados
juntamente com outros módulos públicos ou privados nos seus projetos Go.
Vista geral
Para se familiarizar com o armazenamento de módulos Go no Artifact Registry, pode experimentar o início rápido.
Quando quiser saber mais, leia as seguintes informações:
Conceda autorizações à conta que
vai associar-se ao repositório. As contas de serviço para integrações comuns com o Artifact Registry têm autorizações predefinidas para repositórios no mesmo projeto.
Para ver as entradas de registo do Go no Cloud Logging, tem de ativar
o registo DATA_WRITE.
Quando carrega um módulo Go para um repositório, a operação é registada como
UploadGoModule. O Artifact Registry regista os seguintes métodos específicos para repositórios Go:
Apresente as versões num módulo
Go-ListVersions
Veja informações do módulo
Go-ViewModInfo
Transfira o ficheiro go.mod
Go-DownloadModFile
Transfira o ficheiro ZIP
Go-DownloadZipFile
Para obter informações sobre outras entradas de registo do Artifact Registry, consulte o artigo
Ver registos de auditoria.
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2025-08-21 UTC."],[[["\u003cp\u003eArtifact Registry allows storing Go modules with semantic versioning, independent of your version control.\u003c/p\u003e\n"],["\u003cp\u003eYou can use Go modules in Artifact Registry alongside other public or private modules in your Go projects.\u003c/p\u003e\n"],["\u003cp\u003eSetting up Artifact Registry for Go involves creating a repository, granting permissions, and configuring authentication.\u003c/p\u003e\n"],["\u003cp\u003eArtifact Registry logs various operations for Go repositories, including listing versions, viewing module info, and downloading files.\u003c/p\u003e\n"],["\u003cp\u003eTo view Go log entries, \u003ccode\u003eDATA_WRITE\u003c/code\u003e logging must be enabled in Cloud Logging.\u003c/p\u003e\n"]]],[],null,["# Work with Go modules\n\nArtifact Registry supports Go modules and semantic versioning independent of your\nversion control system. Go modules stored in Artifact Registry can be used\nalongside other public or private modules in your Go projects.\n\nOverview\n--------\n\nTo get familiar with storing Go modules in Artifact Registry, you can try\nthe [quickstart](/artifact-registry/docs/go/store-go).\n\nWhen you're ready to learn more, read the following information:\n\n- [Create a Go module repository](/artifact-registry/docs/repositories/create-repos) for your packages.\n- [Grant permissions](/artifact-registry/docs/access-control) to the account that will connect with the repository. Service accounts for common integrations with Artifact Registry have default [permissions](/artifact-registry/docs/access-control#gcp) for repositories in the same project.\n- [Set up authentication to Artifact Registry for Go](/artifact-registry/docs/go/authentication).\n- [Manage your Go modules](/artifact-registry/docs/go/manage-modules).\n- Learn about [semantic versioning in Go](https://go.dev/doc/modules/version-numbers).\n- Learn how to create [remote](/artifact-registry/docs/repositories/remote-repo#go) and [virtual repositories](/artifact-registry/docs/repositories/virtual-repo).\n- Read about how remote and virtual repositories can be used in this [repository usage example](/artifact-registry/docs/repositories#example).\n\nAudit logging\n-------------\n\nTo view Go log entries in Cloud Logging, you must [enable](/logging/docs/audit/configure-data-access#config-console-enable)\n`DATA_WRITE` logging.\n\nWhen you upload a Go module to a repository, the operation is logged as\n`UploadGoModule`. Artifact Registry logs the following specific methods for\nGo repositories:\n\nList versions in a module\n\n- `Go-ListVersions`\n\nView module information\n\n- `Go-ViewModInfo`\n\nDownload the `go.mod` File\n\n- `Go-DownloadModFile`\n\nDownload the zip File\n\n- `Go-DownloadZipFile`\n\nFor information about other Artifact Registry log entries, see\n[View audit logs](/artifact-registry/docs/audit-logging)."]]