Versions in this module Expand all Collapse all v0 v0.7.0 Nov 25, 2015 Changes in this version + const DEFAULTTAG + const MaxImageDepth + var ErrDigestNotSet = errors.New("digest is not set for layer") + func NewV2Repository(repoInfo *registry.RepositoryInfo, endpoint registry.APIEndpoint, ...) (distribution.Repository, error) + func SetupInitLayer(initLayer string) error + func WriteStatus(requestedTag string, out io.Writer, sf *streamformatter.StreamFormatter, ...) + type ByCreated []*types.Image + func (r ByCreated) Len() int + func (r ByCreated) Less(i, j int) bool + func (r ByCreated) Swap(i, j int) + type Graph struct + func NewGraph(root string, driver graphdriver.Driver) (*Graph, error) + func (graph *Graph) ByParent() map[string][]*image.Image + func (graph *Graph) CheckDepth(img *image.Image) error + func (graph *Graph) Create(layerData archive.ArchiveReader, ...) (*image.Image, error) + func (graph *Graph) Delete(name string) error + func (graph *Graph) Exists(id string) bool + func (graph *Graph) GenerateV1CompatibilityChain(id string) ([]byte, error) + func (graph *Graph) Get(name string) (*image.Image, error) + func (graph *Graph) GetLayerDigest(id string) (digest.Digest, error) + func (graph *Graph) GetParent(img *image.Image) (*image.Image, error) + func (graph *Graph) GetParentsSize(img *image.Image, size int64) int64 + func (graph *Graph) GetV1CompatibilityConfig(id string) ([]byte, error) + func (graph *Graph) Heads() map[string]*image.Image + func (graph *Graph) IsHeld(layerID string) bool + func (graph *Graph) IsNotExist(err error, id string) bool + func (graph *Graph) Map() map[string]*image.Image + func (graph *Graph) ParentLayerIds(img *image.Image) (ids []string, err error) + func (graph *Graph) RawJSON(id string) ([]byte, error) + func (graph *Graph) Register(im image.ImageDescriptor, layerData archive.ArchiveReader) (err error) + func (graph *Graph) Release(sessionID string, layerIDs ...string) + func (graph *Graph) Retain(sessionID string, layerIDs ...string) + func (graph *Graph) SetLayerDigest(id string, dgst digest.Digest) error + func (graph *Graph) SetV1CompatibilityConfig(id string, data []byte) error + func (graph *Graph) TarLayer(img *image.Image) (arch archive.Archive, err error) + func (graph *Graph) TempLayerArchive(id string, sf *streamformatter.StreamFormatter, output io.Writer) (*archive.TempArchive, error) + func (graph *Graph) WalkHistory(img *image.Image, handler func(image.Image) error) (err error) + type ImageExportConfig struct + Names []string + Outstream io.Writer + type ImageImportConfig struct + Changes []string + ContainerConfig *runconfig.Config + InConfig io.ReadCloser + OutStream io.Writer + type ImagePullConfig struct + AuthConfig *cliconfig.AuthConfig + MetaHeaders map[string][]string + OutStream io.Writer + type ImagePushConfig struct + AuthConfig *cliconfig.AuthConfig + MetaHeaders map[string][]string + OutStream io.Writer + Tag string + type ImagesConfig struct + All bool + Filter string + Filters string + type Puller interface + Pull func(tag string) (fallback bool, err error) + func NewPuller(s *TagStore, endpoint registry.APIEndpoint, repoInfo *registry.RepositoryInfo, ...) (Puller, error) + type Pusher interface + Push func() (fallback bool, err error) + type Repository map[string]string + func (r Repository) Contains(u Repository) bool + func (r Repository) Update(u Repository) + type TagStore struct + Repositories map[string]Repository + func NewTagStore(path string, cfg *TagStoreConfig) (*TagStore, error) + func (s *TagStore) History(name string) ([]*types.ImageHistory, error) + func (s *TagStore) ImageExport(imageExportConfig *ImageExportConfig) error + func (s *TagStore) ImageTarLayer(name string, dest io.Writer) error + func (s *TagStore) Images(config *ImagesConfig) ([]*types.Image, error) + func (s *TagStore) Import(src string, repo string, tag string, imageImportConfig *ImageImportConfig) error + func (s *TagStore) Load(inTar io.ReadCloser, outStream io.Writer) error + func (s *TagStore) Lookup(name string) (*types.ImageInspect, error) + func (s *TagStore) NewPusher(endpoint registry.APIEndpoint, localRepo Repository, ...) (Pusher, error) + func (s *TagStore) Pull(image string, tag string, imagePullConfig *ImagePullConfig) error + func (s *TagStore) Push(localName string, imagePushConfig *ImagePushConfig) error + func (store *TagStore) ByID() map[string][]string + func (store *TagStore) Delete(repoName, ref string) (bool, error) + func (store *TagStore) DeleteAll(id string) error + func (store *TagStore) Get(repoName string) (Repository, error) + func (store *TagStore) GetImage(repoName, refOrID string) (*image.Image, error) + func (store *TagStore) GetRepoRefs() map[string][]string + func (store *TagStore) ImageName(id string) string + func (store *TagStore) LookupImage(name string) (*image.Image, error) + func (store *TagStore) SetDigest(repoName, digest, imageName string) error + func (store *TagStore) SetLoad(repoName, tag, imageName string, force bool, out io.Writer) error + func (store *TagStore) Tag(repoName, tag, imageName string, force bool) error + type TagStoreConfig struct + Events *events.Events + Graph *Graph + Key libtrust.PrivateKey + Registry *registry.Service