registry

package
v0.0.0-...-c8dad37 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2015 License: MIT Imports: 13 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractTar

func ExtractTar(r *Registry, in io.Reader) error

From a tar input, push it to the registry.Registry r

func ExtractTarWithoutTarsums

func ExtractTarWithoutTarsums(r *Registry, in io.Reader) error

func TagsMap

func TagsMap(tags []Tag) map[string]string

Types

type Image

type Image struct {
	Checksum string `json:"checksum,omitempty"`
	Id       string `json:"id"`
}

for the ./repositories file

type ImageMetadata

type ImageMetadata struct {
	Id     string `json:"id"`
	Parent string `json:"parent"`
}

for the ./images/ file

type Registry

type Registry struct {
	Version string
	Path    string
	Info    registry.RegistryInfo
}

func (Registry) AncestryFileName

func (r Registry) AncestryFileName(hashid string) string

func (Registry) CreateAncestry

func (r Registry) CreateAncestry(hashid string) error

func (Registry) EnsureRepoReady

func (r Registry) EnsureRepoReady(name string) error

func (Registry) HasImage

func (r Registry) HasImage(hashid string) bool

func (Registry) HasRepository

func (r Registry) HasRepository(name string) bool

func (Registry) ImagesFileName

func (r Registry) ImagesFileName(name string) string

func (*Registry) Init

func (r *Registry) Init() error

func (Registry) JsonFileName

func (r Registry) JsonFileName(hashid string) string

func (Registry) LayerFileName

func (r Registry) LayerFileName(hashid string) string

func (Registry) LayerTarsum

func (r Registry) LayerTarsum(hashid string) (string, error)

func (Registry) RepositoryPath

func (r Registry) RepositoryPath(name string) string

func (Registry) TagsFileName

func (r Registry) TagsFileName(name string) string

func (Registry) TarsumFileName

func (r Registry) TarsumFileName(hashid string) string

type Tag

type Tag struct {
	Layer string `json:"layer"`
	Name  string `json:"name"`
}

for the ./repositories file

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL