registry

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Registry

type Registry interface {
	// FindExtensions finds all available extensions and returns their IDs.
	FindExtensions() ([]string, error)

	// ReadExtension loads and returns the extension content as a string.
	ReadExtension(id string) (string, error)
}

Registry allows listing and loading extension files.

func NewRegistry

func NewRegistry(extensionRegistryURL string) Registry

NewRegistry creates a new extension registry. The argument can be an HTTP(S) URL or the path of a local directory. This returns a matching registry implementation depending on the argument.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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