Documentation ¶
Overview ¶
Package image provides libraries and commands to interact with containers images.
package main import ( "context" "fmt" "github.com/containers/image/docker" ) func main() { ref, err := docker.ParseReference("//fedora") if err != nil { panic(err) } ctx := context.Background() img, err := ref.NewImage(ctx, nil) if err != nil { panic(err) } defer img.Close() b, _, err := img.Manifest(ctx) 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
|
|
blobinfocache/boltdb
Package boltdb implements a BlobInfoCache backed by BoltDB.
|
Package boltdb implements a BlobInfoCache backed by BoltDB. |
blobinfocache/internal/prioritize
Package prioritize provides utilities for prioritizing locations in types.BlobInfoCache.CandidateLocations.
|
Package prioritize provides utilities for prioritizing locations in types.BlobInfoCache.CandidateLocations. |
blobinfocache/internal/test
Package test provides generic BlobInfoCache test helpers.
|
Package test provides generic BlobInfoCache test helpers. |
blobinfocache/memory
Package memory implements an in-memory BlobInfoCache.
|
Package memory implements an in-memory BlobInfoCache. |
blobinfocache/none
Package none implements a dummy BlobInfoCache which records no data.
|
Package none implements a dummy BlobInfoCache which records no data. |
keyctl
Package keyctl is a Go interface to linux kernel keyrings (keyctl interface)
|
Package keyctl is a Go interface to linux kernel keyrings (keyctl interface) |
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.