api

package
v0.0.0-...-0eca5ab Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRemoteRegistry

func NewRemoteRegistry() *registryApi

Types

type RegistryConnection

type RegistryConnection interface {
	Status() (Status, error)
	GetTags(string) (registry.TagMap, error)
	Search(string) (*registry.SearchResults, error)
	GetImageLayers(name, tag string) ([]*registry.ImageMetadata, error)
}

type Repo

type Repo struct {
	Name  string `json:"name"`
	Tag   string `json:"tag"`
	Size  int64  `json:"size"`
	Count int    `json:"count"`
}

type Request

type Request struct {
	Repos []Repo `json:"repos"`
}

type Response

type Response struct {
	Repo   *Repo                     `json:"repo"`
	Layers []*registry.ImageMetadata `json:"layers"`
	Status int                       `json:"status"`
}

type Status

type Status struct {
	Message string `json:"message"`
	Service string `json:"service"`
}

Jump to

Keyboard shortcuts

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