mirror of
https://github.com/mudler/luet.git
synced 2025-09-15 06:39:55 +00:00
update vendor
This commit is contained in:
2
vendor/github.com/google/go-containerregistry/pkg/authn/authn.go
generated
vendored
2
vendor/github.com/google/go-containerregistry/pkg/authn/authn.go
generated
vendored
@@ -15,7 +15,7 @@
|
||||
package authn
|
||||
|
||||
// AuthConfig contains authorization information for connecting to a Registry
|
||||
// Inlined what we use from github.com/cli/cli/config/types
|
||||
// Inlined what we use from github.com/docker/cli/cli/config/types
|
||||
type AuthConfig struct {
|
||||
Username string `json:"username,omitempty"`
|
||||
Password string `json:"password,omitempty"`
|
||||
|
7
vendor/github.com/google/go-containerregistry/pkg/authn/keychain.go
generated
vendored
7
vendor/github.com/google/go-containerregistry/pkg/authn/keychain.go
generated
vendored
@@ -16,6 +16,7 @@ package authn
|
||||
|
||||
import (
|
||||
"os"
|
||||
"sync"
|
||||
|
||||
"github.com/docker/cli/cli/config"
|
||||
"github.com/docker/cli/cli/config/types"
|
||||
@@ -42,7 +43,9 @@ type Keychain interface {
|
||||
|
||||
// defaultKeychain implements Keychain with the semantics of the standard Docker
|
||||
// credential keychain.
|
||||
type defaultKeychain struct{}
|
||||
type defaultKeychain struct {
|
||||
mu sync.Mutex
|
||||
}
|
||||
|
||||
var (
|
||||
// DefaultKeychain implements Keychain by interpreting the docker config file.
|
||||
@@ -57,6 +60,8 @@ const (
|
||||
|
||||
// Resolve implements Keychain.
|
||||
func (dk *defaultKeychain) Resolve(target Resource) (Authenticator, error) {
|
||||
dk.mu.Lock()
|
||||
defer dk.mu.Unlock()
|
||||
cf, err := config.Load(os.Getenv("DOCKER_CONFIG"))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
Reference in New Issue
Block a user