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 is a fork of the upstream docker/docker/reference package.
|
Package reference is a fork of the upstream docker/docker/reference package. |
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. |
Click to show internal directories.
Click to hide internal directories.