MCPcopy Index your code
hub / github.com/docker/docker-agent / configSkillNames

Function configSkillNames

pkg/runtime/runtime.go:868–876  ·  view source on GitHub ↗

configSkillNames lists the cleanly-resolvable skill names from the agent config: inline skill names, the Include allow-list, and referenced skill groups (UseSkills). Skills auto-discovered from Sources (e.g. a local directory) are not enumerated here because doing so would require loading them from

(cfg latest.AgentConfig)

Source from the content-addressed store, hash-verified

866// directory) are not enumerated here because doing so would require loading
867// them from disk; the inspector notes this rather than starting that work.
868func configSkillNames(cfg latest.AgentConfig) []string {
869 var names []string
870 for _, s := range cfg.Skills.Inline {
871 names = append(names, s.Name)
872 }
873 names = append(names, cfg.Skills.Include...)
874 names = append(names, cfg.UseSkills...)
875 return uniqueNames(names, true)
876}
877
878// toolsetDetails builds one ToolsetDetail per live toolset of the agent,
879// combining the side-effect-free lifecycle status with tool names: live names

Callers 1

AgentConfigInfoMethod · 0.85

Calls 1

uniqueNamesFunction · 0.85

Tested by

no test coverage detected