(ready func() bool)
| 1095 | } |
| 1096 | |
| 1097 | func (n *daemonNativeTools) dependencyAvailability(ready func() bool) toolspkg.NativeAvailabilityFunc { |
| 1098 | return func(context.Context, toolspkg.Scope) toolspkg.Availability { |
| 1099 | if ready == nil || !ready() { |
| 1100 | return toolspkg.Unavailable(toolspkg.ReasonDependencyMissing) |
| 1101 | } |
| 1102 | return toolspkg.Available() |
| 1103 | } |
| 1104 | } |
| 1105 | |
| 1106 | func (n *daemonNativeTools) registry() toolspkg.Registry { |
| 1107 | if n == nil || n.deps.Registry == nil { |
no outgoing calls
no test coverage detected