mirror of
https://github.com/docker/docker-agent.git
synced 2026-11-04 10:02:15 +00:00
Agent inspector datasets and lifecycle presentation are read-only views, not execution policy. Move inspection and execution-capability types into runtime/inspection and migrate consumers directly, without runtime re-exports. Keep runtime methods as bindings to the current team and agent. Separate startup emission from construction code while preserving progressive discovery and timeouts.
19 lines
507 B
Go
19 lines
507 B
Go
package runtime
|
|
|
|
import (
|
|
"github.com/docker/docker-agent/pkg/runtime/inspection"
|
|
)
|
|
|
|
// AgentExecutionCapabilities inspects the named agent without starting tools or drivers.
|
|
// Unknown agents return nil; callers must not interpret absence as native support.
|
|
func (r *LocalRuntime) AgentExecutionCapabilities(name string) *inspection.ExecutionCapabilities {
|
|
if r == nil || r.team == nil {
|
|
return nil
|
|
}
|
|
a, err := r.team.Agent(name)
|
|
if err != nil {
|
|
return nil
|
|
}
|
|
return inspection.Capabilities(a)
|
|
}
|