registry

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

Registry represent registry client

func New

func New(registryURL string) *Registry

New will create new Registry client

func (*Registry) DeleteImageDigest

func (r *Registry) DeleteImageDigest(path, tag string) error

DeleteImageDigest delete digest from repository

func (*Registry) GetImageDigestList

func (r *Registry) GetImageDigestList(path string) (*RepositoryDigestList, error)

GetImageDigestList return image information (tags are grouped by digest)

func (*Registry) GetTree

func (r *Registry) GetTree(path string) (*RepositoryLeaf, error)

GetTree returns tree of repositories and images registered in registry

func (*Registry) IsValidURL added in v0.2.0

func (r *Registry) IsValidURL() bool

IsValidURL checks that provided registryURL is pointed to a registry v2

type RepositoryDigest

type RepositoryDigest struct {
	Path    string   `json:"path"`
	Name    string   `json:"name"`
	TagList []string `json:"tags"`
}

RepositoryDigest represent repository image digest

type RepositoryDigestList

type RepositoryDigestList struct {
	Children []*RepositoryDigest `json:"children"`
}

RepositoryDigestList represent list of RepositoryDigest

type RepositoryImage

type RepositoryImage struct {
	Path   string          `json:"path"`
	Name   string          `json:"name"`
	Parent *RepositoryLeaf `json:"-"`
}

RepositoryImage represent repository image

type RepositoryLeaf

type RepositoryLeaf struct {
	Name     string             `json:"name"`
	Path     string             `json:"path"`
	Images   []*RepositoryImage `json:"images"`
	Children []*RepositoryLeaf  `json:"children"`
	Parent   *RepositoryLeaf    `json:"-"`
}

RepositoryLeaf represent any look-like-a-folder structure within Registry

Jump to

Keyboard shortcuts

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