MCPcopy Create free account
hub / github.com/dagger/dagger / installInterfaceLocked

Method installInterfaceLocked

dagql/server.go:588–596  ·  view source on GitHub ↗

installInterfaceLocked is the lock-held implementation of InstallInterface.

(iface *Interface)

Source from the content-addressed store, hash-verified

586
587// installInterfaceLocked is the lock-held implementation of InstallInterface.
588func (s *Server) installInterfaceLocked(iface *Interface) *Interface {
589 if existing, ok := s.interfaces[iface.TypeName()]; ok {
590 return existing
591 }
592 s.interfaces[iface.TypeName()] = iface
593 s.interfacesDirty = true
594 s.invalidateSchemaCache()
595 return iface
596}
597
598// interfaceRelationSet records "type implements interface" pairs, keyed by type
599// name then interface name.

Callers 1

InstallInterfaceMethod · 0.95

Calls 2

invalidateSchemaCacheMethod · 0.95
TypeNameMethod · 0.65

Tested by

no test coverage detected