docker-reg-client

module
v0.0.0-...-b642de1 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2020 License: Apache-2.0

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.

NOTE

This repo is no longer being maintained. Users are welcome to fork it, but we make no warranty of its functionality.

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.

Directories

Path Synopsis
examples
dockerfile
Uses the Docker Registry API to reverse engineer a Dockerfile from a named image.
Uses the Docker Registry API to reverse engineer a Dockerfile from a named image.
Package registry is an API wrapper for the Docker Registry v1 API and supports all of the documented operations, including: getting/putting images, retrieving repository tags, and executing searches.
Package registry is an API wrapper for the Docker Registry v1 API and supports all of the documented operations, including: getting/putting images, retrieving repository tags, and executing searches.

Jump to

Keyboard shortcuts

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