484e6b784c
The `ContainerCreateConfig` and `ContainerRmConfig` structs are used for options to be passed to the backend, and are not used in client code. Thess struct currently is intended for internal use only (for example, the `AdjustCPUShares` is an internal implementation details to adjust the container's config when older API versions are used). Somewhat ironically, the signature of the Backend has a nicer UX than that of the client's `ContainerCreate` signature (which expects all options to be passed as separate arguments), so we may want to update that signature to be closer to what the backend is using, but that can be left as a future exercise. This patch moves the `ContainerCreateConfig` and `ContainerRmConfig` structs to the backend package to prevent it being imported in the client, and to make it more clear that this is part of internal APIs, and not public-facing. Signed-off-by: Sebastiaan van Stijn <github@gone.nl> |
||
---|---|---|
.. | ||
buildargs.go | ||
buildargs_test.go | ||
builder.go | ||
builder_unix.go | ||
builder_windows.go | ||
containerbackend.go | ||
copy.go | ||
copy_test.go | ||
copy_unix.go | ||
copy_windows.go | ||
dispatchers.go | ||
dispatchers_test.go | ||
dispatchers_unix.go | ||
dispatchers_unix_test.go | ||
dispatchers_windows.go | ||
dispatchers_windows_test.go | ||
evaluator.go | ||
evaluator_test.go | ||
imagecontext.go | ||
imagecontext_test.go | ||
imageprobe.go | ||
internals.go | ||
internals_linux.go | ||
internals_linux_test.go | ||
internals_test.go | ||
internals_windows.go | ||
internals_windows_test.go | ||
metrics.go | ||
mockbackend_test.go | ||
utils_test.go |