CenturyLinkLabs/docker-reg-client

Name: docker-reg-client

Owner: CenturyLink Labs

Description: Go Wrapper for the Docker Registry v1 API

Created: 2015-02-11 17:47:44.0

Updated: 2017-01-30 08:18:53.0

Pushed: 2016-04-27 20:23:38.0

Homepage: null

Size: 27

Language: Go

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

docker-reg-client

Circle CI GoDoc

docker-reg-client is an API wrapper for the Docker Registry v1 API written in Go.

For detailed documentation, see the GoDocs.

Example
package main

import (
  "fmt"
  "github.com/CenturyLinkLabs/docker-reg-client/registry"
)

func main() {
  c := registry.NewClient()

  auth, err := c.Hub.GetReadToken("ubuntu")
  if err != nil {
    panic(err)
  }

  tags, err := c.Repository.ListTags("ubuntu", auth)
  if err != nil {
    panic(err)
  }

  fmt.Printf("%#v", tags)
}
Write token caveat

Please note that the GetWriteToken() only works on non automated builds.


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.