image

package module
Version: v0.0.0-...-dc298f6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2016 License: Apache-2.0 Imports: 0 Imported by: 0

README

GoDoc Build Status

image is a set of Go libraries aimed at working in various way with containers' images.

License

ASL 2.0

Contact

  • Mailing list: containers-dev
  • IRC: #container-projects on freenode.org

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)

Source Files

Directories

Path Synopsis
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.
oci

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL