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

Method GetObjectFunction

cmd/dagger/module_inspect.go:479–485  ·  view source on GitHub ↗
(objectName, functionName string)

Source from the content-addressed store, hash-verified

477}
478
479func (m *moduleDef) GetObjectFunction(objectName, functionName string) (*modFunction, error) {
480 fp := m.GetFunctionProvider(objectName)
481 if fp == nil {
482 return nil, fmt.Errorf("module %q does not have a %q object or interface", m.Name, objectName)
483 }
484 return m.GetFunction(fp, functionName)
485}
486
487func (m *moduleDef) GetFunction(fp functionProvider, functionName string) (*modFunction, error) {
488 for _, fn := range fp.GetFunctions() {

Callers 2

GetDefMethod · 0.80
GetNextDefMethod · 0.80

Calls 2

GetFunctionProviderMethod · 0.95
GetFunctionMethod · 0.95

Tested by

no test coverage detected