MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / checkUsed

Function checkUsed

agent/app/service/image.go:542–549  ·  view source on GitHub ↗
(imageID string, containers []container.Summary)

Source from the content-addressed store, hash-verified

540}
541
542func checkUsed(imageID string, containers []container.Summary) bool {
543 for _, container := range containers {
544 if container.ImageID == imageID {
545 return true
546 }
547 }
548 return false
549}
550
551func loadAuthInfo(image string) (bool, string) {
552 if !strings.Contains(image, "/") {

Callers 2

PageMethod · 0.85
ListAllMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected