modmux

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL