containerd/cmd/ctr/commands/run
Stephen Day 2a1bd7414b
oci: introduce WithSpecFromFile combinator
We introduce a WithSpecFromFile option combinator to allow creation
simpler creation of OCI specs from a file name. Often used as the first
option in a `SpecOpts` slice, it simplifies choosing between a local
file and the built-in default.

The code in `ctr run` has been updated to use the new option, with out
changing the order of operations or functionality present there.

Signed-off-by: Stephen Day <stephen.day@getcruise.com>
2018-07-27 14:25:42 -07:00
..
run_unix.go oci: introduce WithSpecFromFile combinator 2018-07-27 14:25:42 -07:00
run_windows.go oci: introduce WithSpecFromFile combinator 2018-07-27 14:25:42 -07:00
run.go oci: introduce WithSpecFromFile combinator 2018-07-27 14:25:42 -07:00