英文:
How do you get the manifest of an image in GCP artifact registry using the Go SDK?
问题
我正在寻找使用这个库,但它没有提供这个选项。https://cloud.google.com/go/docs/reference/cloud.google.com/go/artifactregistry/latest/apiv1。看起来artifactregistrypb.DockerImage
结构体没有这个选项。
英文:
I am looking to use this library but it does not offer this option. https://cloud.google.com/go/docs/reference/cloud.google.com/go/artifactregistry/latest/apiv1. It seems the struct artifactregistrypb.DockerImage
simply does not have the option.
答案1
得分: 1
我被建议直接使用Docker Registry HTTP API V2,而不是使用SDK,因为目前不支持SDK。你可以在这里查看API文档:https://docs.docker.com/registry/spec/api/
英文:
I was advised to use: Docker Registry HTTP API V2 directly instead of SDK as it is not supported right now:https://docs.docker.com/registry/spec/api/
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论