mappings

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const REGISTRY_URL = "https://raw.githubusercontent.com/CREDOProject/package-suggestions/main/registry.json"

Variables

This section is empty.

Functions

func NewRegistryMappingProvider

func NewRegistryMappingProvider() *registryMappingProvider

Types

type Dependency

type Dependency struct {
	Name           string `json:"name"`
	PackageManager string `json:"manager"`
}

Describes a Dependency to be parsed in the client application.

type MappingsProvider

type MappingsProvider interface {
	// Retrieves a dependency from a MappingsProvider.
	Get(string) []Dependency
}

type Matcher

type Matcher struct {
	Matcher  string       `json:"matcher"`
	Packages []Dependency `json:"packages"`
}

Jump to

Keyboard shortcuts

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