2017-02-01 00:45:59 +00:00
|
|
|
// Package image provides libraries and commands to interact with containers images.
|
|
|
|
//
|
2017-03-13 16:33:17 +00:00
|
|
|
// package main
|
2017-02-01 00:45:59 +00:00
|
|
|
//
|
2017-03-13 16:33:17 +00:00
|
|
|
// import (
|
|
|
|
// "fmt"
|
2017-02-01 00:45:59 +00:00
|
|
|
//
|
2017-03-13 16:33:17 +00:00
|
|
|
// "github.com/containers/image/docker"
|
|
|
|
// )
|
2017-02-01 00:45:59 +00:00
|
|
|
//
|
2017-03-13 16:33:17 +00:00
|
|
|
// 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))
|
|
|
|
// }
|
2017-02-01 00:45:59 +00:00
|
|
|
//
|
|
|
|
// TODO(runcom)
|
|
|
|
package image
|