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

Method addImplementor

dagql/interfaces.go:381–385  ·  view source on GitHub ↗

addImplementor records that an object type implements this interface.

(typeName string)

Source from the content-addressed store, hash-verified

379
380// addImplementor records that an object type implements this interface.
381func (iface *Interface) addImplementor(typeName string) {
382 iface.relationsL.Lock()
383 defer iface.relationsL.Unlock()
384 iface.implementors[typeName] = struct{}{}
385}
386
387// HasImplementor returns true if the named object or interface type implements
388// this interface.

Callers 3

ImplementsMethod · 0.80
ImplementInterfaceMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected