dependencies

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dependencies

type Dependencies map[string]string

type DependencyHandler

type DependencyHandler interface {
	FetchDeps(request PackageRequest) (Dependencies, error)
	PreAct(request PackageRequest) error
	PostAct(request PackageRequest) error
}

type PackageRequest

type PackageRequest struct {
	Name    string
	Version string
}

type Packages

type Packages map[string]map[string]struct{}

Packages is a map from names to the list of versions. The versions are represented as a map of string over struct{} to use the speed and uniqueness of map keys.

func Install

func Install(r PackageRequest, depHandler DependencyHandler) (Packages, error)

func (Packages) Find

func (ps Packages) Find(name, version string) bool

func (Packages) String

func (ps Packages) String() string

Jump to

Keyboard shortcuts

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