Documentation ¶
Overview ¶
Package image consolidates knowledge about various container image formats (as opposed to image storage mechanisms, which are handled by types.ImageSource) and exposes all of them using an unified interface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromSource ¶
func FromSource(src types.ImageSource) types.Image
FromSource returns a types.Image implementation for source. The caller must call .Close() on the returned Image.
FromSource “takes ownership” of the input ImageSource and will call src.Close() when the image is closed. (This does not prevent callers from using both the Image and ImageSource objects simultaneously, but it means that they only need to the Image.)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.