Skip to main content
Version: 1.1.0

Installation

Add blobber to your Go project.

Requirements

  • Go 1.21 or later
  • Docker credentials configured for authenticated registries

Install the Module

Add blobber to your Go module:

go get github.com/meigma/blobber@latest

Import

Import in your code:

import "github.com/meigma/blobber"

Verify Installation

Create a simple test file to verify the import works:

package main

import (
"fmt"
"github.com/meigma/blobber"
)

func main() {
client, err := blobber.NewClient()
if err != nil {
panic(err)
}
fmt.Printf("Client created: %T\n", client)
}

Run it:

go run main.go

Expected output:

Client created: *blobber.Client

Authentication

Blobber uses your existing Docker credentials from ~/.docker/config.json. If you can docker push to a registry from your machine, blobber can too.

For programmatic credential management, see WithCredentials.

Next Steps