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

Method AddField

dagql/interfaces.go:79–83  ·  view source on GitHub ↗

AddField adds a field spec to the interface.

(spec InterfaceFieldSpec)

Source from the content-addressed store, hash-verified

77
78// AddField adds a field spec to the interface.
79func (iface *Interface) AddField(spec InterfaceFieldSpec) {
80 iface.fieldsL.Lock()
81 defer iface.fieldsL.Unlock()
82 iface.fields[spec.Name] = append(iface.fields[spec.Name], &spec)
83}
84
85// FieldSpecs returns the interface's field specs visible under the given view.
86func (iface *Interface) FieldSpecs(view call.View) []FieldSpec {

Callers 4

TestInterfacesFunction · 0.95
NewServerFunction · 0.95
InstallMethod · 0.95
installCoreInterfacesFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestInterfacesFunction · 0.76