MCPcopy Index your code
hub / github.com/docker/cli / validateDetachKeys

Function validateDetachKeys

cli/command/container/hijack.go:33–41  ·  view source on GitHub ↗
(keys string)

Source from the content-addressed store, hash-verified

31}
32
33func validateDetachKeys(keys string) error {
34 if keys == "" {
35 return nil
36 }
37 if _, err := term.ToBytes(keys); err != nil {
38 return invalidParameter(fmt.Errorf("invalid detach keys (%s): %w", keys, err))
39 }
40 return nil
41}
42
43// A hijackedIOStreamer handles copying input to and output from streams to the
44// connection.

Callers 5

RunStartFunction · 0.85
RunAttachFunction · 0.85
setupInputMethod · 0.85
parseExecFunction · 0.85
runContainerFunction · 0.85

Calls 1

invalidParameterFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…