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

Method loadModDef

cmd/dagger/shell_exec.go:985–992  ·  view source on GitHub ↗

loadModDef returns the module definition for a module ref, if it exists

(ref string)

Source from the content-addressed store, hash-verified

983
984// loadModDef returns the module definition for a module ref, if it exists
985func (h *shellCallHandler) loadModDef(ref string) *moduleDef {
986 if v, exists := h.modDefs.Load(ref); exists {
987 if def, ok := v.(*moduleDef); ok {
988 return def
989 }
990 }
991 return nil
992}
993
994// GetDef returns the type definitions for a given state
995//

Callers 2

getOrInitDefMethod · 0.95
GetDefMethod · 0.95

Calls 1

LoadMethod · 0.65

Tested by

no test coverage detected