MCPcopy Create free account
hub / github.com/docker/cli / LookupValue

FuncType LookupValue

cli/compose/interpolation/interpolation.go:28–28  ·  view source on GitHub ↗

LookupValue is a function which maps from variable names to values. Returns the value as a string and a bool indicating whether the value is present, to distinguish between an empty string and the absence of a value.

func(key string) (string, bool)

Source from the content-addressed store, hash-verified

26// the value is present, to distinguish between an empty string
27// and the absence of a value.
28type LookupValue func(key string) (string, bool)
29
30// Cast a value to a new type, or return an error if the value can't be cast
31type Cast func(value string) (any, error)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…