使用Go SDK如何获取GCP Artifact Registry中图像的清单?

huangapple go评论88阅读模式
英文:

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/

huangapple
  • 本文由 发表于 2023年3月15日 11:21:40
  • 转载请务必保留本文链接:https://go.coder-hub.com/75740249.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定