Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 482 Bytes

README.md

File metadata and controls

35 lines (26 loc) · 482 Bytes

distribution-client

distribution-client is the Go client library for the OCI Distribution Specification.

Install

go get github.com/atlaskerr/distribution-client

Usage

package main

import "log"

func main() {
	cfg := client.Config{
		Host: "http://127.0.0.1:84832",
		Auth: client.BasicAuth{
			Username: "user",
			Password: "pass",
		},
	}
	c, err := client.New(cfg)
	if err != nil {
		log.Fatal(err)
	}

	api := client.NewDistributionAPI(c)
}