github.com/hustcat/docker@v1.3.3-0.20160314103604-901c67a8eeab/image/tarexport/tarexport.go (about) 1 package tarexport 2 3 import ( 4 "github.com/docker/docker/image" 5 "github.com/docker/docker/layer" 6 "github.com/docker/docker/reference" 7 ) 8 9 const ( 10 manifestFileName = "manifest.json" 11 legacyLayerFileName = "layer.tar" 12 legacyConfigFileName = "json" 13 legacyVersionFileName = "VERSION" 14 legacyRepositoriesFileName = "repositories" 15 ) 16 17 type manifestItem struct { 18 Config string 19 RepoTags []string 20 Layers []string 21 } 22 23 type tarexporter struct { 24 is image.Store 25 ls layer.Store 26 rs reference.Store 27 } 28 29 // NewTarExporter returns new ImageExporter for tar packages 30 func NewTarExporter(is image.Store, ls layer.Store, rs reference.Store) image.Exporter { 31 return &tarexporter{ 32 is: is, 33 ls: ls, 34 rs: rs, 35 } 36 }