(keys string)
| 31 | } |
| 32 | |
| 33 | func 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. |
no test coverage detected
searching dependent graphs…