Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(resolver modresolve.Resolver, newRegistry func(host string, insecure bool) (ociregistry.Interface, error)) ociregistry.Interface
New returns a registry implementation that uses the given resolver to multiplex between different registries.
The newRegistry function will be used to create the registries for the hosts in the [modresolver.Location] values returned by the resolver.
The returned registry always returns an error for Repositories and MountBlob (neither of these capabilities are required or used by the module fetching/pushing logic).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.