- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for isDefaultRegistryMatch (0.27 sec)
-
pkg/credentialprovider/keyring.go
} const ( defaultRegistryHost = "index.docker.io" defaultRegistryKey = defaultRegistryHost + "/v1/" ) // isDefaultRegistryMatch determines whether the given image will // pull from the default registry (DockerHub) based on the // characteristics of its name. func isDefaultRegistryMatch(image string) bool { parts := strings.SplitN(image, "/", 2) if len(parts[0]) == 0 { return false }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 26 17:14:05 UTC 2022 - 9.2K bytes - Viewed (0) -
pkg/credentialprovider/keyring_test.go
{false: "registry.tld/foo/bar"}, {false: "registry:5000/foo/bar"}, {false: "myhostdocker.io/foo/bar"}, } for _, sample := range samples { for expected, imageName := range sample { if got := isDefaultRegistryMatch(imageName); got != expected { t.Errorf("Expected '%s' to be %t, got %t", imageName, expected, got) } } } } func TestProvidersDockerKeyring(t *testing.T) { provider := &testProvider{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 15 10:47:22 UTC 2023 - 15.1K bytes - Viewed (0)