gocuelang.org/go/cue/load/internal/registrytest Index | Files

package registrytest

import "cuelang.org/go/cue/load/internal/registrytest"

Index

Types

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

func New

func New(ar *txtar.Archive) *Registry

New starts a registry instance that serves modules found inside the _registry path inside ar. The protocol that it serves is that of the Go proxy, documented here: https://go.dev/ref/mod#goproxy-protocol

Each module should be inside a directory named path_vers, where slashes in path have been replaced with underscores and should contain a cue.mod/module.cue file holding the module info.

The Registry should be closed after use.

func (*Registry) Close

func (r *Registry) Close()

func (*Registry) URL

func (r *Registry) URL() string

URL returns the base URL for the registry.

Source Files

registry.go

Version
v0.6.0-beta.1
Published
Jul 28, 2023
Platform
linux/amd64
Imports
15 packages
Last checked
11 minutes ago

Tools for package owners.