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

Method UserDefaults

core/modfunc.go:614–624  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

612}
613
614func (fn *ModuleFunction) UserDefaults(ctx context.Context) (*EnvFile, error) {
615 objDefaults, err := fn.mod.Self().ObjectUserDefaults(ctx, fn.objDef.OriginalName)
616 if err != nil {
617 return nil, err
618 }
619 isConstructor := (fn.metadata.Name == "")
620 if isConstructor {
621 return objDefaults, nil
622 }
623 return objDefaults.Namespace(ctx, fn.metadata.OriginalName)
624}
625
626//nolint:gocyclo // intrinsically long state machine; refactoring would hurt clarity
627func (fn *ModuleFunction) DynamicInputsForCall(

Callers 1

UserDefaultMethod · 0.95

Calls 3

ObjectUserDefaultsMethod · 0.80
SelfMethod · 0.80
NamespaceMethod · 0.45

Tested by

no test coverage detected