Benjamin Tan
10/21/2022, 2:48 PMpackage main
import (
"fmt"
"<http://github.com/heroku/docker-registry-client/registry|github.com/heroku/docker-registry-client/registry>"
)
func main() {
url := "<https://asia.gcr.io/>"
username := "_json_key"
password := `{
"type": "service_account",
...
}`
hub, err := registry.New(url, username, password)
if err != nil {
fmt.Println(err)
}
if hub != nil {
manifest, err := hub.Tags("jago-data-sandbox/ktp-ocr")
if err != nil {
fmt.Println(err)
}
if manifest != nil {
fmt.Println(manifest)
}
}
}