providers

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APT_NAME  = "apt"
	RPM_NAME  = "rpm"
	BREW_NAME = "brew"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Dependency

type Dependency struct {
	Name           string
	PackageManager string
	Suggestion     bool
}

Describes a Dependency to be parsed in the client application.

type DescriptionFile

type DescriptionFile struct {
	SystemRequirements []string `control:"SystemRequirements" delim:", " strip:"\n\r\t "`
}

type Provider

type Provider interface {
	// Parse the dependencies
	Parse(path string) ([]Dependency, error)
}

Describes what is a Provider.

func DefaultProviders

func DefaultProviders() []Provider

Returns a slice of DefaultProviders.

func NewAnticonf

func NewAnticonf() Provider

Returns a new instance of anticonf Provider.

func NewSystemRequirements

func NewSystemRequirements(mappingProviders ...mappings.MappingsProvider) Provider

Returns a new instance of plain Provider.

Jump to

Keyboard shortcuts

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