registry

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 31, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BinPattern = regexp.MustCompile(`(.+2.+)|(ux-.+)`)

Functions

func AllOrDefault

func AllOrDefault(registries []plugin.Registry) plugin.Registry

func FilterErrors

func FilterErrors(registry plugin.Registry, filter func(error) bool) plugin.Registry

func IgnoreNotFound

func IgnoreNotFound(registry plugin.Registry) plugin.Registry

func IsNotFound

func IsNotFound(err error) bool

func List

func List(ctx context.Context, options ...ListOption) (plugin.List, error)

Types

type Aggregate

type Aggregate []plugin.Registry

func (Aggregate) List

func (registries Aggregate) List(ctx context.Context) (plugin.List, error)

type ErrorFilter

type ErrorFilter struct {
	Filter   func(error) bool
	Registry plugin.Registry
}

func (ErrorFilter) List

func (r ErrorFilter) List(ctx context.Context) (plugin.List, error)

type Filtered

type Filtered struct {
	Filter   func(string, ux.Plugin) bool
	Registry plugin.Registry
}

func (Filtered) List

func (r Filtered) List(ctx context.Context) (plugin.List, error)

type ListOption

type ListOption func(*ListOptions)

type ListOptions

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

type LocalDirectory

type LocalDirectory struct {
	Fs   afero.Fs
	Path string
}

func (LocalDirectory) List

Jump to

Keyboard shortcuts

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