Versions in this module Expand all Collapse all v1 v1.15.0 Jan 7, 2025 v1.14.1 Dec 25, 2024 v1.14.0 Oct 8, 2024 Changes in this version + var ErrDatastructure = errors.New("installation data structure is invalid") + func InstallationAsVariables[IM InstallationData, SM ScopeData, CM CandidateData](installation Installation[IM, SM, CM]) []deppy.Variable + type Candidate struct + Constrainers []CandidateConstrainer[IM, SM, CM] + Data CM + func Solve[IM InstallationData, SM ScopeData, CM CandidateData](installation Installation[IM, SM, CM]) ([]Candidate[IM, SM, CM], error) + func (c Candidate[IM, SM, CM]) CandidateScopeAccessor() ScopeAccessor[IM, SM, CM] + func (c Candidate[_, _, CM]) CandidateData() CM + func (v Candidate) Constraints() []deppy.Constraint + func (v Candidate) Identifier() deppy.Identifier + type CandidateAccessor interface + CandidateData func() CM + CandidateScopeAccessor func() ScopeAccessor[IM, SM, CM] + type CandidateConstrainer func(c CandidateAccessor[IM, SM, CM]) []deppy.Constraint + type CandidateData interface + CandidateIdentifier func() deppy.Identifier + type Installation struct + Constrainers []InstallationConstrainer[IM, SM, CM] + Data IM + Scopes []Scope[IM, SM, CM] + func (i Installation[IM, SM, CM]) InstallationScopes() []ScopeAccessor[IM, SM, CM] + func (i Installation[IM, _, _]) InstallationData() IM + func (v Installation) Constraints() []deppy.Constraint + func (v Installation) Identifier() deppy.Identifier + type InstallationAccessor interface + InstallationData func() IM + InstallationScopes func() []ScopeAccessor[IM, SM, CM] + type InstallationConstrainer func(i InstallationAccessor[IM, SM, CM]) []deppy.Constraint + type InstallationData any + type MockCandidateData struct + ID string + func (c MockCandidateData) CandidateIdentifier() deppy.Identifier + type MockScopeData struct + ID string + func (s MockScopeData) ScopeIdentifier() deppy.Identifier + type Scope struct + Candidates []Candidate[IM, SM, CM] + Constrainers []ScopeConstrainer[IM, SM, CM] + Data SM + func (s Scope[IM, SM, CM]) ScopeCandidateAccessors() []CandidateAccessor[IM, SM, CM] + func (s Scope[IM, SM, CM]) ScopeInstallationAccessor() InstallationAccessor[IM, SM, CM] + func (s Scope[_, SM, _]) ScopeData() SM + func (v Scope) Constraints() []deppy.Constraint + func (v Scope) Identifier() deppy.Identifier + type ScopeAccessor interface + ScopeCandidateAccessors func() []CandidateAccessor[IM, SM, CM] + ScopeData func() SM + ScopeInstallationAccessor func() InstallationAccessor[IM, SM, CM] + type ScopeConstrainer func(s ScopeAccessor[IM, SM, CM]) []deppy.Constraint + type ScopeData interface + ScopeIdentifier func() deppy.Identifier