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

Function isLocalConfigRef

cmd/root/agent_picker.go:779–781  ·  view source on GitHub ↗

isLocalConfigRef reports whether ref points at a local agent config file (as opposed to a built-in name, OCI image, or URL).

(ref string)

Source from the content-addressed store, hash-verified

777// isLocalConfigRef reports whether ref points at a local agent config file
778// (as opposed to a built-in name, OCI image, or URL).
779func isLocalConfigRef(ref string) bool {
780 return !config.IsURLReference(ref) && isConfigFileName(ref)
781}
782
783// displayRef returns the ref as shown to the user: local config paths are
784// shortened with "~", everything else is unchanged.

Callers 3

displayRefFunction · 0.85
renderCardMethod · 0.85
TestIsLocalConfigRefFunction · 0.85

Calls 2

IsURLReferenceFunction · 0.92
isConfigFileNameFunction · 0.85

Tested by 1

TestIsLocalConfigRefFunction · 0.68