MCPcopy
hub / github.com/cortexlabs/cortex / IsValidDockerImage

Function IsValidDockerImage

pkg/lib/regex/regex.go:88–90  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

86)
87
88func IsValidDockerImage(s string) bool {
89 return _dockerValidImage.MatchString(s)
90}
91
92var _ecrPattern = regexp.MustCompile(
93 `(^[a-zA-Z0-9][a-zA-Z0-9-_]*)\.dkr\.ecr(\-fips)?\.([a-zA-Z0-9][a-zA-Z0-9-_]*)\.amazonaws\.com(\.cn)?`,

Callers 1

ValidateStringValFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected