Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 947 Bytes

README.md

File metadata and controls

31 lines (21 loc) · 947 Bytes

dockerhub-go Build Status GoDoc

A Dockerhub client for Go

Usage

import "github.com/charliekenney23/dockerhub-go"

Construct a new DockerHub client, then use various services on the client to access different parts of the DockerHub API.

client := dockerhub.NewClient(nil)

// login to Dockerhub
err := client.Auth.Login(context.Background(), "username", "password")

// or set an auth token directly
client.SetAuthToken(os.Getenv("DOCKERHUB_API_TOKEN"))

License

MIT © 2019 Charles Kenney