github.com/akerouanton/docker@v1.11.0-rc3/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  	Parent   image.ID `json:",omitempty"`
    22  }
    23  
    24  type tarexporter struct {
    25  	is image.Store
    26  	ls layer.Store
    27  	rs reference.Store
    28  }
    29  
    30  // NewTarExporter returns new ImageExporter for tar packages
    31  func NewTarExporter(is image.Store, ls layer.Store, rs reference.Store) image.Exporter {
    32  	return &tarexporter{
    33  		is: is,
    34  		ls: ls,
    35  		rs: rs,
    36  	}
    37  }