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

Method Extend

dagql/types.go:53–53  ·  view source on GitHub ↗

Extend registers an additional field onto the type. Unlike natively added fields, the extended func is limited to the external Object interface. cacheConfigFunc is optional, if not set the default dagql ID cache key will be used.

(spec FieldSpec, fun FieldFunc)

Source from the content-addressed store, hash-verified

51 // Object interface.
52 // cacheConfigFunc is optional, if not set the default dagql ID cache key will be used.
53 Extend(spec FieldSpec, fun FieldFunc)
54 // FieldSpec looks up a field spec by name.
55 FieldSpec(name string, view call.View) (FieldSpec, bool)
56 // FieldSpecs returns all field specs visible under the given view.

Callers 10

InstallViewerFunction · 0.65
InstallObjectMethod · 0.65
NewServerFunction · 0.65
ExtendEnvTypeMethod · 0.65
installConstructorMethod · 0.65
installLegacyIDMethod · 0.65
InstallMethod · 0.65
InstallMethod · 0.65
InstallMethod · 0.65

Calls

no outgoing calls

Tested by 2

InstallViewerFunction · 0.52
InstallObjectMethod · 0.52