add parameter to allow ignore cert

Signed-off-by: shaowenchen <mail@chenshaowen.com>
This commit is contained in:
shaowenchen
2021-01-28 14:06:03 +08:00
parent 38eaa5cde0
commit 774cefcbee
7 changed files with 42 additions and 26 deletions

View File

@@ -23,7 +23,7 @@ import (
func TestDigestFromDockerHub(t *testing.T) {
testImage := Image{Domain: "docker.io", Path: "library/alpine", Tag: "latest"}
r, err := CreateRegistryClient("", "", "docker.io", true)
r, err := CreateRegistryClient("", "", "docker.io", true, false)
if err != nil {
t.Fatalf("Could not get client: %s", err)
}