MCPcopy
hub / github.com/moby/moby / staticAuth

Function staticAuth

client/auth.go:10–14  ·  view source on GitHub ↗

staticAuth creates a privilegeFn from the given registryAuth.

(registryAuth string)

Source from the content-addressed store, hash-verified

8
9// staticAuth creates a privilegeFn from the given registryAuth.
10func staticAuth(registryAuth string) registry.RequestAuthConfig {
11 return func(ctx context.Context) (string, error) {
12 return registryAuth, nil
13 }
14}

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…