Skip to content
callcount

github.com/goharbor/harbor/src/lib/orm.FromContext

third-party

The 2970th most-called third-party function by production calls. Called 235 times across 1 modules; 216 of those run outside tests and generated code.

No change in production calls since 2026-W48.

All of github.com/goharbor/harbor/src/lib/orm → Docs on pkg.go.dev ↗

prod calls
216
non-test, non-generated
all calls
235
total callsites
modules
1
distinct callers
in loop
0%
of prod calls
in tests
8%
19 calls
resolved
100%
to a known target

resolution mix

How each call resolves

How each call was attributed. Only resolved kinds, where the target function is known, count toward the ranking. Interface dispatch and unresolved receivers are reported separately and never guessed. Read the taxonomy →

  • Package function100%A direct call to an exported package function, resolved by type.

who calls this

Notable callers

Production calls into FromContext from notable Go projects. Open one on the map to see what else it hammers.

where it's called

Callsites in the wild

12 representative callsites of 235, prioritizing in-loop and non-test usage. We link to source, never display it.

FromContext · 12 of 235 callsites
  • goharbor/harbor/src @v0.0.0-20261127072106-3cc8b5c161d3

    pkg/retention/dao/retention.go:27

  • goharbor/harbor/src @v0.0.0-20261127072106-3cc8b5c161d3

    pkg/retention/dao/retention.go:36

  • goharbor/harbor/src @v0.0.0-20261127072106-3cc8b5c161d3

    pkg/scan/dao/scanner/registration.go:40

  • goharbor/harbor/src @v0.0.0-20261127072106-3cc8b5c161d3

    pkg/joblog/dao/dao.go:45

  • goharbor/harbor/src @v0.0.0-20261127072106-3cc8b5c161d3

    pkg/immutable/dao/dao.go:46

  • goharbor/harbor/src @v0.0.0-20261127072106-3cc8b5c161d3

    pkg/retention/dao/retention.go:46

  • goharbor/harbor/src @v0.0.0-20261127072106-3cc8b5c161d3

    pkg/config/db/dao/dao.go:47

  • goharbor/harbor/src @v0.0.0-20261127072106-3cc8b5c161d3

    pkg/artifactrash/dao/dao.go:48

  • goharbor/harbor/src @v0.0.0-20261127072106-3cc8b5c161d3

    pkg/reg/dao/dao.go:50

  • goharbor/harbor/src @v0.0.0-20261127072106-3cc8b5c161d3

    pkg/project/metadata/dao/dao.go:50

  • goharbor/harbor/src @v0.0.0-20261127072106-3cc8b5c161d3

    pkg/oidc/dao/meta.go:50

  • goharbor/harbor/src @v0.0.0-20261127072106-3cc8b5c161d3

    pkg/allowlist/dao/dao.go:52

top callers

The modules that reach for it

The modules that call FromContext most in this snapshot.

  • github.com/goharbor/harbor/src235100%