Versions in this module Expand all Collapse all v0 v0.4.1 Jan 25, 2018 Changes in this version + type CascadingPruneOptions struct + DefaultOptions PruneOptions + PerProjectOptions map[ProjectRoot]PruneOptionSet + func (o CascadingPruneOptions) PruneOptionsFor(pr ProjectRoot) PruneOptions + type PruneOptionSet struct + GoTests uint8 + NestedVendor uint8 + NonGoFiles uint8 + UnusedPackages uint8 v0.4.0 Jan 24, 2018 Changes in this version + var ErrSourceManagerIsReleased = fmt.Errorf("this SourceManager has been released, its methods can no longer be called") + func HashingInputsAsString(s Solver) string + func IsAny(c Constraint) bool + func LocksAreEq(l1, l2 Lock, checkHash bool) bool + func PruneProject(baseDir string, lp LockedProject, options PruneOptions, logger *log.Logger) error + func SortForDowngrade(vl []Version) + func SortForUpgrade(vl []Version) + func SortPairedForDowngrade(vl []PairedVersion) + func SortPairedForUpgrade(vl []PairedVersion) + func ValidateParams(params SolveParameters, sm SourceManager) error + func VersionComponentStrings(v Version) (revision string, branch string, version string) + func WriteDepTree(basedir string, l Lock, sm SourceManager, rpo RootPruneOptions, ...) 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 DeductionErrs map[string]error + func (e DeductionErrs) Error() string + type Lock interface + InputsDigest 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) String() 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 + type PairedVersion interface + Revision func() Revision + Unpair func() UnpairedVersion + type ProjectAnalyzer interface + DeriveManifestAndLock func(path string, importRoot ProjectRoot) (Manifest, Lock, error) + Info func() ProjectAnalyzerInfo + type ProjectAnalyzerInfo struct + Name string + Version int + func (p ProjectAnalyzerInfo) String() string + type ProjectConstraint struct + Constraint Constraint + Ident ProjectIdentifier + type ProjectConstraints map[ProjectRoot]ProjectProperties + type ProjectIdentifier struct + ProjectRoot ProjectRoot + Source string + func (i ProjectIdentifier) Less(j ProjectIdentifier) bool + func (i ProjectIdentifier) String() string + type ProjectProperties struct + Constraint Constraint + Source string + type ProjectRoot string + type PruneOptions uint8 + const PruneGoTestFiles + const PruneNestedVendorDirs + const PruneNonGoFiles + const PruneUnusedPackages + type PruneProjectOptions map[ProjectRoot]PruneOptions + 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() *pkgtree.IgnoredRuleset + Overrides func() ProjectConstraints + RequiredPackages func() map[string]bool + type RootPruneOptions struct + ProjectOptions PruneProjectOptions + PruneOptions PruneOptions + func DefaultRootPruneOptions() RootPruneOptions + func (o *RootPruneOptions) PruneOptionsFor(pr ProjectRoot) PruneOptions + type SimpleLock []LockedProject + func (SimpleLock) InputsDigest() []byte + func (l SimpleLock) Projects() []LockedProject + type SimpleManifest struct + Deps ProjectConstraints + func (m SimpleManifest) DependencyConstraints() 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(context.Context) (Solution, error) + Version func() int + func Prepare(params SolveParameters, sm SourceManager) (Solver, error) + type SourceManager interface + DeduceProjectRoot func(ip string) (ProjectRoot, error) + ExportProject func(context.Context, ProjectIdentifier, Version, string) error + GetManifestAndLock func(ProjectIdentifier, Version, ProjectAnalyzer) (Manifest, Lock, error) + InferConstraint func(s string, pi ProjectIdentifier) (Constraint, 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) + SourceURLsForPath func(ip string) ([]*url.URL, error) + SyncSourceFor func(ProjectIdentifier) error + type SourceManagerConfig struct + Cachedir string + DisableLocking bool + Logger *log.Logger + type SourceMgr struct + func NewSourceManager(c SourceManagerConfig) (*SourceMgr, error) + func (sm *SourceMgr) Cachedir() string + func (sm *SourceMgr) DeduceProjectRoot(ip string) (ProjectRoot, error) + func (sm *SourceMgr) ExportProject(ctx context.Context, 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) InferConstraint(s string, pi ProjectIdentifier) (Constraint, error) + 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) SourceURLsForPath(ip string) ([]*url.URL, 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 + Pair func(Revision) PairedVersion + func NewBranch(body string) UnpairedVersion + func NewVersion(body string) UnpairedVersion + type Version interface + Type func() VersionType + func VCSVersion(path string) (Version, error) + type VersionType uint8 + const IsBranch + const IsRevision + const IsSemver + const IsVersion