Documentation ¶
Index ¶
- func GetPackageNames(d Dependency) mapset.Set
- func GetRules(dependency []Dependency) map[string]mapset.Set
- func GetVersionNumbers(versions map[string]Dependency) mapset.Set
- func PrepVersionNumbers(versionNumbers mapset.Set) []string
- type Dependency
- type DependencyFetcher
- type DependencyRepo
- type Solver
- type VersionSlice
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPackageNames ¶
func GetPackageNames(d Dependency) mapset.Set
func GetRules ¶
func GetRules(dependency []Dependency) map[string]mapset.Set
func GetVersionNumbers ¶
func GetVersionNumbers(versions map[string]Dependency) mapset.Set
func PrepVersionNumbers ¶
func PrepVersionNumbers(versionNumbers mapset.Set) []string
Types ¶
type Dependency ¶
type Dependency struct { Name string Version string Requires map[string]string Replaces map[string]string }
func (Dependency) ReplaceSelfVersion ¶
func (d Dependency) ReplaceSelfVersion()
type DependencyFetcher ¶
type DependencyFetcher interface {
Get(dependencyName string) (map[string]Dependency, error)
}
type DependencyRepo ¶
type DependencyRepo struct { DependencyNames mapset.Set Replaces mapset.Set Dependencies map[string]map[string]Dependency Fetcher DependencyFetcher }
func GetNewRepo ¶
func GetNewRepo(fetcher DependencyFetcher) DependencyRepo
func (DependencyRepo) GetAll ¶
func (r DependencyRepo) GetAll(dependencies mapset.Set)
type Solver ¶
type Solver struct { Packages map[string]map[string]Dependency Required map[string]string Found map[string]string Replaced mapset.Set Rules map[string]mapset.Set RuleConstraints map[string]*version.ConstraintGroup }
type VersionSlice ¶
type VersionSlice []string
func (VersionSlice) Len ¶
func (p VersionSlice) Len() int
func (VersionSlice) Less ¶
func (p VersionSlice) Less(i, j int) bool
func (VersionSlice) Swap ¶
func (p VersionSlice) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.