Skip to main content

validate_signal

Function validate_signal 

Source
pub fn validate_signal(signal: &str) -> Result<String>
Expand description

Validate a signal name for Runtime::kill_container.

Accepts both the SIG-prefixed form ("SIGKILL") and the bare form ("KILL"). Returns the canonical uppercase SIG-prefixed name on success.

ยงErrors

Returns AgentError::InvalidSpec when signal is not one of the supported signals: SIGKILL, SIGTERM, SIGINT, SIGHUP, SIGUSR1, SIGUSR2.