Skip to main content

parse_go_duration

Function parse_go_duration 

Source
pub fn parse_go_duration(s: &str) -> Option<Duration>
Expand description

Parse a Go-style duration string used in the CRDs (30m, 1h, 90s, or a bare number of seconds). Returns None for unparseable input.