I want clientcmd.ParseTimeout(duration string) (time.Duration, error) so callers can parse Kubernetes…
I want clientcmd.ParseTimeout(duration string) (time.Duration, error) so callers can parse Kubernetes…: a task in MiMo-V2.6-RL-harbor-code: MiMo-V2.6-RL Code (Harbor) (Harbor dataset). For invalid input such as ParseTimeout("abc") , the function should return a zero duration and a non-nil error…
The task
For invalid input such as `ParseTimeout("abc")`, the function should return a zero duration and a non-nil error whose message contains `Invalid timeout value`. Calling it repeatedly with the same input should return the same result, and it should not read or write files, use the network, or mutate global state.
Part of FineEnvs/MiMo-V2.6-RL-harbor-code.