MCPcopy Index your code
hub / github.com/dagger/dagger / GetInterface

Method GetInterface

cmd/dagger/module_inspect.go:500–508  ·  view source on GitHub ↗

GetInterface retrieves a saved interface type definition from the module.

(name string)

Source from the content-addressed store, hash-verified

498
499// GetInterface retrieves a saved interface type definition from the module.
500func (m *moduleDef) GetInterface(name string) *modInterface {
501 for _, iface := range m.AsInterfaces() {
502 // Normalize name in case an SDK uses a different convention for interface names.
503 if gqlObjectName(iface.Name) == gqlObjectName(name) {
504 return iface
505 }
506 }
507 return nil
508}
509
510// GetEnum retrieves a saved enum type definition from the module.
511func (m *moduleDef) GetEnum(name string) *modEnum {

Callers 2

GetFunctionProviderMethod · 0.95
functionCallMethod · 0.80

Calls 2

AsInterfacesMethod · 0.95
gqlObjectNameFunction · 0.70

Tested by

no test coverage detected