Versions in this module Expand all Collapse all v0 v0.1.0 May 27, 2017 Changes in this version + func HashingInputsAsString(s Solver) string + func IsAny(c Constraint) bool + func LocksAreEq(l1, l2 Lock, checkHash bool) bool + func SortForDowngrade(vl []Version) + func SortForUpgrade(vl []Version) + func SortLockedProjects(lps []LockedProject) + func SortPairedForDowngrade(vl []PairedVersion) + func SortPairedForUpgrade(vl []PairedVersion) + func VersionComponentStrings(v Version) (revision string, branch string, version string) + func WriteDepTree(basedir string, l Lock, sm SourceManager, sv bool) error + type Constraint interface + ImpliedCaretString func() string + Intersect func(Constraint) Constraint + Matches func(Version) bool + MatchesAny func(Constraint) bool + func Any() Constraint + func NewSemverConstraint(body string) (Constraint, error) + func NewSemverConstraintIC(body string) (Constraint, error) + type CouldNotCreateLockError struct + Err error + Path string + func (e CouldNotCreateLockError) Error() string + type Lock interface + InputHash func() []byte + Projects func() []LockedProject + type LockDiff struct + Add []LockedProjectDiff + HashDiff *StringDiff + Modify []LockedProjectDiff + Remove []LockedProjectDiff + func DiffLocks(l1 Lock, l2 Lock) *LockDiff + type LockedProject struct + func NewLockedProject(id ProjectIdentifier, v Version, pkgs []string) LockedProject + func (lp LockedProject) Eq(lp2 LockedProject) bool + func (lp LockedProject) Ident() ProjectIdentifier + func (lp LockedProject) Packages() []string + func (lp LockedProject) Version() Version + type LockedProjectDiff struct + Branch *StringDiff + Name ProjectRoot + Packages []StringDiff + Revision *StringDiff + Source *StringDiff + Version *StringDiff + func DiffProjects(lp1 LockedProject, lp2 LockedProject) *LockedProjectDiff + type Manifest interface + DependencyConstraints func() ProjectConstraints + TestDependencyConstraints func() ProjectConstraints + type PairedVersion interface + Underlying func() Revision + Unpair func() UnpairedVersion + type ProjectAnalyzer interface + DeriveManifestAndLock func(path string, importRoot ProjectRoot) (Manifest, Lock, error) + Info func() (name string, version int) + type ProjectConstraint struct + Constraint Constraint + Ident ProjectIdentifier + type ProjectConstraints map[ProjectRoot]ProjectProperties + type ProjectIdentifier struct + ProjectRoot ProjectRoot + Source string + type ProjectProperties struct + Constraint Constraint + Source string + type ProjectRoot string + type Revision string + func (r Revision) ImpliedCaretString() string + func (r Revision) Intersect(c Constraint) Constraint + func (r Revision) Matches(v Version) bool + func (r Revision) MatchesAny(c Constraint) bool + func (r Revision) String() string + func (r Revision) Type() VersionType + type RootManifest interface + IgnoredPackages func() map[string]bool + Overrides func() ProjectConstraints + RequiredPackages func() map[string]bool + type SimpleLock []LockedProject + func (SimpleLock) InputHash() []byte + func (l SimpleLock) Projects() []LockedProject + type SimpleManifest struct + Deps ProjectConstraints + TestDeps ProjectConstraints + func (m SimpleManifest) DependencyConstraints() ProjectConstraints + func (m SimpleManifest) TestDependencyConstraints() ProjectConstraints + type Solution interface + AnalyzerName func() string + AnalyzerVersion func() int + Attempts func() int + SolverName func() string + SolverVersion func() int + type SolveParameters struct + ChangeAll bool + Downgrade bool + Lock Lock + Manifest RootManifest + ProjectAnalyzer ProjectAnalyzer + RootDir string + RootPackageTree pkgtree.PackageTree + ToChange []ProjectRoot + TraceLogger *log.Logger + type Solver interface + HashInputs func() []byte + Name func() string + Solve func() (Solution, error) + Version func() int + func Prepare(params SolveParameters, sm SourceManager) (Solver, error) + type SourceManager interface + DeduceProjectRoot func(ip string) (ProjectRoot, error) + ExportProject func(ProjectIdentifier, Version, string) error + GetManifestAndLock func(ProjectIdentifier, Version, ProjectAnalyzer) (Manifest, Lock, error) + ListPackages func(ProjectIdentifier, Version) (pkgtree.PackageTree, error) + ListVersions func(ProjectIdentifier) ([]PairedVersion, error) + Release func() + RevisionPresentIn func(ProjectIdentifier, Revision) (bool, error) + SourceExists func(ProjectIdentifier) (bool, error) + SyncSourceFor func(ProjectIdentifier) error + type SourceMgr struct + func NewSourceManager(cachedir string) (*SourceMgr, error) + func (sm *SourceMgr) DeduceProjectRoot(ip string) (ProjectRoot, error) + func (sm *SourceMgr) ExportProject(id ProjectIdentifier, v Version, to string) error + func (sm *SourceMgr) GetManifestAndLock(id ProjectIdentifier, v Version, an ProjectAnalyzer) (Manifest, Lock, error) + func (sm *SourceMgr) HandleSignals(sigch chan os.Signal) + func (sm *SourceMgr) ListPackages(id ProjectIdentifier, v Version) (pkgtree.PackageTree, error) + func (sm *SourceMgr) ListVersions(id ProjectIdentifier) ([]PairedVersion, error) + func (sm *SourceMgr) Release() + func (sm *SourceMgr) RevisionPresentIn(id ProjectIdentifier, r Revision) (bool, error) + func (sm *SourceMgr) SourceExists(id ProjectIdentifier) (bool, error) + func (sm *SourceMgr) StopSignalHandling() + func (sm *SourceMgr) SyncSourceFor(id ProjectIdentifier) error + func (sm *SourceMgr) UseDefaultSignalHandling() + type StringDiff struct + Current string + Previous string + func (diff *StringDiff) String() string + type UnpairedVersion interface + Is func(Revision) PairedVersion + func NewBranch(body string) UnpairedVersion + func NewVersion(body string) UnpairedVersion + type Version interface + Type func() VersionType + type VersionType uint8 + const IsBranch + const IsRevision + const IsSemver + const IsVersion