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

Method GetTypeDef

cmd/dagger/module_inspect.go:532–539  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

530}
531
532func (m *moduleDef) GetTypeDef(name string) *modTypeDef {
533 for _, t := range append(m.Objects, m.Interfaces...) {
534 if name == t.String() {
535 return t
536 }
537 }
538 return nil
539}
540
541// GetInput retrieves a saved input type definition from the module.
542func (m *moduleDef) GetInput(name string) *modInput {

Callers 1

loadTypeDefsMethod · 0.95

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected