MCPcopy Create free account
hub / github.com/compozy/agh / registryAvailability

Method registryAvailability

internal/daemon/native_tools.go:1088–1095  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1086}
1087
1088func (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
1097func (n *daemonNativeTools) dependencyAvailability(ready func() bool) toolspkg.NativeAvailabilityFunc {
1098 return func(context.Context, toolspkg.Scope) toolspkg.Availability {

Callers 1

Calls 1

registryMethod · 0.95

Tested by

no test coverage detected