image: github.com/containers/image Index | Files | Directories

package image

import "github.com/containers/image"

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)

Index

Package Files

doc.go

Directories

PathSynopsis
copy
directory
directory/explicitfilepath
docker
docker/archive
docker/daemon
docker/policyconfiguration
docker/referencePackage reference provides a general type to represent any way of referencing images within the registry.
docker/tarfilePackage tarfile is an internal implementation detail of some transports.
imagePackage 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-tmpdirPackage tmpdir is a TESTING-ONLY utility.
internal/testing/mocks
internal/tmpdir
manifest
oci
oci/archive
oci/internal
oci/layout
openshift
pkg/blobinfocache
pkg/blobinfocache/boltdbPackage boltdb implements a BlobInfoCache backed by BoltDB.
pkg/blobinfocache/internal/prioritizePackage prioritize provides utilities for prioritizing locations in types.BlobInfoCache.CandidateLocations.
pkg/blobinfocache/internal/testPackage test provides generic BlobInfoCache test helpers.
pkg/blobinfocache/memoryPackage memory implements an in-memory BlobInfoCache.
pkg/blobinfocache/nonePackage none implements a dummy BlobInfoCache which records no data.
pkg/compression
pkg/docker/config
pkg/keyctlPackage keyctl is a Go interface to linux kernel keyrings (keyctl interface)
pkg/strslice
pkg/sysregistriesv2
pkg/tlsclientconfig
signature
storage
tarballPackage tarball provides a way to generate images using one or more layer tarballs and an optional template configuration.
transports
transports/alltransports
types
version

Updated 2019-09-18. Refresh now. Tools for package owners.