Registry / config / cpuguy83-dockercfg

cpuguy83-dockercfg

JSON →
library0.3.2gogounverified

A Go library for reading Docker configuration files, including credentials and authentication.

go get github.com/cpuguy83/dockercfg
INSTALL
IMPORT
SIG · CPUGUY83-DOCKERCFG
C
cpuguy83-dockercfg
configgov0.3.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

dockercfg
github.com/cpuguy83/dockercfg

Loads the default Docker configuration and prints the number of auth entries.

package main import ( "fmt" "github.com/cpuguy83/dockercfg" ) func main() { cfg, err := dockercfg.LoadDefaultConfig() if err != nil { panic(err) } fmt.Printf("Loaded config with %d auth entries\n", len(cfg.AuthConfigs)) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.3.2latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
45 hits · last 30 days
node
40
Resources
cpuguy83-dockercfg — go get cpuguy83-dockercfg · libregistry