MCPcopy Index your code
hub / github.com/docker/docker-agent / hasCagentAnnotation

Function hasCagentAnnotation

pkg/remote/pull.go:290–296  ·  view source on GitHub ↗
(annotations map[string]string)

Source from the content-addressed store, hash-verified

288}
289
290func hasCagentAnnotation(annotations map[string]string) bool {
291 _, exists := annotations["io.docker.agent.version"]
292 if !exists {
293 _, exists = annotations["io.docker.cagent.version"]
294 }
295 return exists
296}
297
298// separator returns the separator used between repository and identifier.
299// For digests it returns "@", for tags it returns ":".

Callers 2

PullFunction · 0.85
storeArtifactFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected