engine-api
engine-api copied to clipboard
RestartPolicy constants
I think it would make sense to provide constants or an enumerate type for valid Restart Policies. Before I submit a PR, I'd like to know what's the more idiomatic way to do that. Can somebody help?
We actually have a RestartPolicy type already, maybe adding some default values would be good:
https://github.com/docker/engine-api/blob/master/types/container/host_config.go#L124-L152
@calavera You mean default instances of RestartPolicy? I meant a list of valid Names
having both sounds actually good to me.