meteor/docker-registry-client

Name: docker-registry-client

Owner: Meteor

Description: A Go API client for the v2 Docker Registry API

Forked from: heroku/docker-registry-client

Created: 2016-04-04 18:49:13.0

Updated: 2016-04-04 18:49:14.0

Pushed: 2016-06-22 19:19:04.0

Homepage: null

Size: 144

Language: Go

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Fork of http://github.com/heroku/docker-registry-client/ with fewer features and dependencies

http://github.com/heroku/docker-registry-client/registry is a client for the V2 Docker Registry API. It currently depends on an old version of http://github.com/docker/distribution which makes it difficult to build.

For our project's needs, we don't actually need the parts of the upstream client that depend on Docker's library. So github.com/meteor/docker-registry-client/registry lacks the Layer and Manifest APIs of the upstream library; it only contains the Tags APIs. But it doesn't require you to vendor in an old version of http://github.com/docker/distribution using pre-core vendoring support!

Docker Registry Client

An API client for the V2 Docker Registry API, for Go applications.

Imports
rt (
"github.com/meteor/docker-registry-client/registry"

Creating A Client
     := "https://registry-1.docker.io/"
name := "" // anonymous
word := "" // anonymous
 err := registry.New(url, username, password)

Creating a registry will also ping it to verify that it supports the registry API, which may fail. Failures return non-nil err values.

Authentication supports both HTTP Basic authentication and OAuth2 token negotiation.

Listing Tags

Each Docker repository has a set of tags – named images that can be downloaded.

, err := hub.Tags("heroku/cedar")

The tags will be returned as a slice of strings.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.