Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InstalledPolicy ¶
type InstalledPolicy struct{}
func (*InstalledPolicy) PruneProvides ¶
func (i *InstalledPolicy) PruneProvides(packages ops.Headers) ops.Headers
func (*InstalledPolicy) SelectRequest ¶
func (i *InstalledPolicy) SelectRequest(packages ops.Headers) *ops.Header
func (*InstalledPolicy) SelectSolution ¶
func (i *InstalledPolicy) SelectSolution(solutions Solutions) *Solution
type Job ¶
type Job struct {
// contains filtered or unexported fields
}
func (*Job) Requirement ¶
func (j *Job) Requirement() *ops.Requirement
type Policy ¶
type Policy interface {
PruneProvides(packages ops.Headers) ops.Headers
SelectRequest(packages ops.Headers) *ops.Header
SelectSolution(solutions Solutions) *Solution
}
func NewPolicy ¶
func NewPolicy(method PolicyMethod) Policy
type PolicyMethod ¶
type PolicyMethod string
const ( Updated PolicyMethod = "updated" Installed PolicyMethod = "installed" )
type Request ¶
type Request struct {
// contains filtered or unexported fields
}
func NewRequest ¶
func NewRequest() *Request
func (*Request) Install ¶
func (r *Request) Install(requirement *ops.Requirement)
func (*Request) Remove ¶
func (r *Request) Remove(requirement *ops.Requirement)
func (*Request) Update ¶
func (r *Request) Update(requirement *ops.Requirement)
type Solution ¶
type Solution struct {
// contains filtered or unexported fields
}
func NewSolution ¶
func NewSolution() *Solution
func (*Solution) AddOperation ¶
func (*Solution) Operations ¶
type Solver ¶
type Solver struct {
// contains filtered or unexported fields
}
func (*Solver) SatSolutions ¶
type UpdatedPolicy ¶
type UpdatedPolicy struct{}
func (*UpdatedPolicy) PruneProvides ¶
func (u *UpdatedPolicy) PruneProvides(packages ops.Headers) ops.Headers
func (*UpdatedPolicy) SelectRequest ¶
func (u *UpdatedPolicy) SelectRequest(packages ops.Headers) *ops.Header
func (*UpdatedPolicy) SelectSolution ¶
func (u *UpdatedPolicy) SelectSolution(solutions Solutions) *Solution
Click to show internal directories.
Click to hide internal directories.