Versions in this module Expand all Collapse all v0 v0.3.1 Jul 30, 2021 Changes in this version + func CalculateSemverDistanceToZero(semversion string) (distance int) + func PrintPkgTree(tr *PkgTree) (output string) + type OutputMode int + const JSON + const Table + const YAML + type PkgDB struct + var PkgDBInstance *PkgDB + func CreatePkgDBInstance() *PkgDB + func GetPkgdDBInstance() *PkgDB + func (pkgdb *PkgDB) Add(p *pkg.Pkg) + func (pkgdb *PkgDB) DebugPrintDB(logger log.Logger) + func (pkgdb *PkgDB) GetMapOfVersionsByBaseFingerPrint(basefp string) map[string]string + func (pkgdb *PkgDB) GetOrderedPackageFingerprintsThatDifferOnVersionByPackage(p *pkg.Pkg) (fps []string, weights []int) + func (pkgdb *PkgDB) GetPackageByFingerprint(fp string) *pkg.Pkg + type PkgResultSet struct + Inconsistencies []string + PresentUnchanged []*pkg.Pkg + Status string + ToInstall *PkgTree + ToRemove []*pkg.Pkg + type PkgTree struct + Node *pkg.Pkg + Relations []*PkgTree + type Solver struct + PkgDB *PkgDB + PkgResultSet PkgResultSet + Strategy SolverStrategy + func New(strategy SolverStrategy, logger log.Logger) (s *Solver) + func (s *Solver) BuildConstraints(p *pkg.Pkg) (constrs []maxsat.Constr) + func (s *Solver) BuildWorldMock(pkgs []*pkg.Pkg) + func (s *Solver) FormatOutput(t OutputMode) (output string) + func (s *Solver) GeneratePkgSets(wantedPkg *pkg.Pkg) + func (s *Solver) IsSAT() bool + func (s *Solver) Solve(wantedPkg *pkg.Pkg) + func (s *Solver) SortPkgSets() + type SolverStrategy int + const InstallOne + const UpgradeOne v0.3.0 Jul 29, 2021