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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
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!
An API client for the V2 Docker Registry API, for Go applications.
rt (
"github.com/meteor/docker-registry-client/registry"
:= "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.
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 string
s.