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

Method CallInput

core/modfunc.go:326–335  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

324}
325
326func (udp *UserDefaultPrimitive) CallInput() (*FunctionCallArgValue, error) {
327 jsonValue, err := udp.JSONValue()
328 if err != nil {
329 return nil, udp.errorf(err, "get json value")
330 }
331 return &FunctionCallArgValue{
332 Name: udp.Arg.Name,
333 Value: jsonValue,
334 }, nil
335}
336
337func (udp *UserDefaultPrimitive) Value() (any, error) {
338 switch udp.Arg.TypeDef.Self().Kind {

Callers

nothing calls this directly

Calls 2

JSONValueMethod · 0.95
errorfMethod · 0.95

Tested by

no test coverage detected