registry

package
v0.0.0-...-551b004 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Registries map[string]*registry

Registries contains a map of all active registries identified by their name

Functions

func AddRegistry

func AddRegistry(scheme, host string, port int) error

func NewRegistry

func NewRegistry(scheme, host string, port int) (registry, error)

Create a new registry from URI parts

Types

type Image

type Image struct {
	client.Image
}

func (*Image) LastModified

func (i *Image) LastModified() time.Time

func (*Image) LastModifiedTimeAgo

func (i *Image) LastModifiedTimeAgo() string

func (*Image) LayerCount

func (i *Image) LayerCount() int

func (*Image) Size

func (i *Image) Size() string

type Repository

type Repository struct {
	Name string
	Tags map[string]*Tag
}

func (*Repository) LastModified

func (r *Repository) LastModified() time.Time

func (*Repository) LastModifiedTimeAgo

func (r *Repository) LastModifiedTimeAgo() string

type Tag

type Tag struct {
	Image

	ID   string
	Name string
}

func (*Tag) LastModified

func (t *Tag) LastModified() time.Time

func (*Tag) LastModifiedTimeAgo

func (t *Tag) LastModifiedTimeAgo() string

func (*Tag) LayerCount

func (t *Tag) LayerCount() int

func (*Tag) Size

func (t *Tag) Size() string

Jump to

Keyboard shortcuts

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