package modmux
import "cuelang.org/go/internal/mod/modmux"
Index ¶
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).
Source Files ¶
mux.go
- Version
- v0.7.1
- Published
- Feb 12, 2024
- Platform
- linux/amd64
- Imports
- 6 packages
- Last checked
- 2 minutes ago –
Tools for package owners.