package
Version:
v0.0.0-...-2dfab7d
Opens a new window with list of versions in this module.
Published: Apr 12, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 29
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
This package is mostly copy pasted from buildkit main branch
https://github.com/moby/buildkit/tree/master/session/auth/authprovider
We need it for 2 reasons:
- Pass a custom config (instead of loading the default one)
- AuthProvider takes a struct instead of an interface which makes it challenging
to customize even if we pulled the main branch as a dependency.
Changes:
- NewDockerAuthProvider takes interface instead of struct
- Seed is hard coded to temp directory instead of config file path
- Everything in config.go is our code (not from docker)
- Added some error handling in tokenseed to satisfy GolangCI linter
From Docker:
- All logic in tokenseed
- Everything in authprovider.go except the Config interface and NewDockerAuthProvider changes mentioned above
Documentation
¶
func NewConfig(host, username, password string) *config
Source Files
¶
Click to show internal directories.
Click to hide internal directories.