()
| 1086 | } |
| 1087 | |
| 1088 | func (n *daemonNativeTools) registryAvailability() toolspkg.NativeAvailabilityFunc { |
| 1089 | return func(context.Context, toolspkg.Scope) toolspkg.Availability { |
| 1090 | if n.registry() == nil { |
| 1091 | return toolspkg.Unavailable(toolspkg.ReasonDependencyMissing) |
| 1092 | } |
| 1093 | return toolspkg.Available() |
| 1094 | } |
| 1095 | } |
| 1096 | |
| 1097 | func (n *daemonNativeTools) dependencyAvailability(ready func() bool) toolspkg.NativeAvailabilityFunc { |
| 1098 | return func(context.Context, toolspkg.Scope) toolspkg.Availability { |
no test coverage detected