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

Function isConfigFileName

cmd/root/agent_picker.go:72–79  ·  view source on GitHub ↗

isConfigFileName reports whether name has an agent config file extension.

(name string)

Source from the content-addressed store, hash-verified

70
71// isConfigFileName reports whether name has an agent config file extension.
72func isConfigFileName(name string) bool {
73 switch strings.ToLower(filepath.Ext(name)) {
74 case ".yaml", ".yml", ".hcl":
75 return true
76 default:
77 return false
78 }
79}
80
81// errAgentPickerCancelled is returned when the user aborts the picker
82// (Esc / Ctrl-C) without choosing an agent.

Callers 2

agentRefsInDirFunction · 0.85
isLocalConfigRefFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected