Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Artifact Registry mendukung modul Go dan pembuatan versi semantik yang tidak bergantung pada
sistem kontrol versi Anda. Modul Go yang disimpan di Artifact Registry dapat digunakan
bersama modul publik atau pribadi lainnya dalam project Go Anda.
Ringkasan
Untuk memahami cara menyimpan modul Go di Artifact Registry, Anda dapat mencoba
panduan memulai.
Jika Anda siap mempelajari lebih lanjut, baca informasi berikut:
Berikan izin ke akun yang
akan terhubung dengan repositori. Akun layanan untuk integrasi umum dengan Artifact Registry memiliki izin default untuk repositori dalam project yang sama.
Untuk melihat entri log Go di Cloud Logging, Anda harus mengaktifkan logging DATA_WRITE.
Saat Anda mengupload modul Go ke repositori, operasi akan dicatat ke dalam log sebagai
UploadGoModule. Artifact Registry mencatat metode spesifik berikut untuk
repositori Go:
Mencantumkan versi dalam modul
Go-ListVersions
Melihat informasi modul
Go-ViewModInfo
Mendownload File go.mod
Go-DownloadModFile
Mendownload File ZIP
Go-DownloadZipFile
Untuk informasi tentang entri log Artifact Registry lainnya, lihat
Melihat log audit.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-08-18 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)."]]