Documentation ¶
Overview ¶
Package image provides libraries and commands to interact with containers images.
package main import ( "fmt" "github.com/containers/image/docker" ) func main() { ref, err := docker.ParseReference("//fedora") if err != nil { panic(err) } img, err := ref.NewImage(nil) if err != nil { panic(err) } defer img.Close() b, _, err := img.Manifest() if err != nil { panic(err) } fmt.Printf("%s", string(b)) }
TODO(runcom)
Directories ¶
Path | Synopsis |
---|---|
reference
Package reference provides a general type to represent any way of referencing images within the registry.
|
Package reference provides a general type to represent any way of referencing images within the registry. |
tarfile
Package tarfile is an internal implementation detail of some transports.
|
Package tarfile is an internal implementation detail of some transports. |
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.
|
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. |
internal
|
|
testing/explicitfilepath-tmpdir
Package tmpdir is a TESTING-ONLY utility.
|
Package tmpdir is a TESTING-ONLY utility. |
pkg
|
|
Package tarball provides a way to generate images using one or more layer tarballs and an optional template configuration.
|
Package tarball provides a way to generate images using one or more layer tarballs and an optional template configuration. |
Click to show internal directories.
Click to hide internal directories.