Documentation
¶
Index ¶
- type InstalledPolicy
- type Job
- type Operation
- type OsArch
- type OsArches
- type Pkg
- func (p *Pkg) Arch() string
- func (p *Pkg) Channels() []string
- func (p *Pkg) Columns() string
- func (p *Pkg) Description() string
- func (p *Pkg) FileName() string
- func (p *Pkg) Id() string
- func (p *Pkg) Location() int
- func (p *Pkg) Name() string
- func (p *Pkg) Os() string
- func (p *Pkg) Priority() int
- func (p *Pkg) Publisher() string
- func (p *Pkg) Requirements() []*Requirement
- func (p *Pkg) Satisfies(req *Requirement) bool
- func (p *Pkg) SetChannels(channels ...string)
- func (p *Pkg) SetLocation(location int)
- func (p *Pkg) SetPriority(priority int)
- func (p *Pkg) Summary() string
- func (p *Pkg) ToEntry() *PkgEntry
- func (p *Pkg) Version() *Version
- type PkgEntry
- type Policy
- type Pool
- func (p *Pool) Contains(pkg *Pkg) bool
- func (p *Pool) Frozen(id string) bool
- func (p *Pool) Image() Solvables
- func (p *Pool) Installed(req *Requirement) Solvable
- func (p *Pool) Location(index int) *Repo
- func (p *Pool) RepoCount() int
- func (p *Pool) WhatDepends(name string) Solvables
- func (p *Pool) WhatProvides(req *Requirement) Solvables
- type Repo
- type Repos
- type Request
- type Requirement
- func (r *Requirement) ANY() *Requirement
- func (r *Requirement) Conflicts() *Requirement
- func (r *Requirement) Depends() *Requirement
- func (r *Requirement) EQ() *Requirement
- func (r *Requirement) EXQ() *Requirement
- func (r *Requirement) GTE() *Requirement
- func (r *Requirement) LTE() *Requirement
- func (r *Requirement) Op(op string) *Requirement
- func (r *Requirement) OpInt(op string) int
- func (r *Requirement) OpString() string
- func (r *Requirement) Provides() *Requirement
- func (r *Requirement) String() string
- type Solution
- type Solutions
- type Solvable
- type Solvables
- type Solver
- type UpdatedPolicy
- type Version
- func (v *Version) Compare(ve *Version) int
- func (v *Version) EQ(ve *Version) bool
- func (v *Version) EXQ(ve *Version) bool
- func (v *Version) GT(ve *Version) bool
- func (v *Version) GTE(ve *Version) bool
- func (v *Version) LT(ve *Version) bool
- func (v *Version) LTE(ve *Version) bool
- func (v *Version) NEQ(ve *Version) bool
- func (v *Version) Parse(version string) error
- func (v *Version) Short() string
- func (v *Version) String() string
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(solvables Solvables) Solvables
func (*InstalledPolicy) SelectRequest ¶
func (i *InstalledPolicy) SelectRequest(solvables Solvables) Solvable
func (*InstalledPolicy) SelectSolution ¶
func (i *InstalledPolicy) SelectSolution(solutions Solutions) *Solution
type Job ¶
type Job struct {
// contains filtered or unexported fields
}
func NewJob ¶
func NewJob(op string, requirement *Requirement) *Job
func (*Job) Requirement ¶
func (j *Job) Requirement() *Requirement
type Operation ¶
func NewOperation ¶
type Pkg ¶
type Pkg struct {
// contains filtered or unexported fields
}
func (*Pkg) Description ¶
func (*Pkg) Requirements ¶
func (p *Pkg) Requirements() []*Requirement
func (*Pkg) Satisfies ¶
func (p *Pkg) Satisfies(req *Requirement) bool
func (*Pkg) SetChannels ¶
func (*Pkg) SetLocation ¶
func (*Pkg) SetPriority ¶
type PkgEntry ¶
type Policy ¶
type Pool ¶
type Pool struct { Solvables Solvables // contains filtered or unexported fields }
func (*Pool) Installed ¶
func (p *Pool) Installed(req *Requirement) Solvable
func (*Pool) WhatDepends ¶
func (*Pool) WhatProvides ¶
func (p *Pool) WhatProvides(req *Requirement) Solvables
type Repo ¶
type Repo struct { Uri string Priority int Enabled bool Updated time.Time // contains filtered or unexported fields }
type Request ¶
type Request struct {
// contains filtered or unexported fields
}
func NewRequest ¶
func NewRequest() *Request
func (*Request) Install ¶
func (r *Request) Install(requirement *Requirement)
func (*Request) Remove ¶
func (r *Request) Remove(requirement *Requirement)
func (*Request) Update ¶
func (r *Request) Update(requirement *Requirement)
type Requirement ¶
func NewRequirement ¶
func NewRequirement(name string, version *Version) *Requirement
func NewRequirementFromSimpleString ¶
func NewRequirementFromSimpleString(id string) (*Requirement, error)
func (*Requirement) ANY ¶
func (r *Requirement) ANY() *Requirement
func (*Requirement) Conflicts ¶
func (r *Requirement) Conflicts() *Requirement
func (*Requirement) Depends ¶
func (r *Requirement) Depends() *Requirement
func (*Requirement) EQ ¶
func (r *Requirement) EQ() *Requirement
func (*Requirement) EXQ ¶
func (r *Requirement) EXQ() *Requirement
func (*Requirement) GTE ¶
func (r *Requirement) GTE() *Requirement
func (*Requirement) LTE ¶
func (r *Requirement) LTE() *Requirement
func (*Requirement) Op ¶
func (r *Requirement) Op(op string) *Requirement
func (*Requirement) OpInt ¶
func (r *Requirement) OpInt(op string) int
func (*Requirement) OpString ¶
func (r *Requirement) OpString() string
func (*Requirement) Provides ¶
func (r *Requirement) Provides() *Requirement
func (*Requirement) String ¶
func (r *Requirement) String() string
type Solution ¶
type Solution struct {
// contains filtered or unexported fields
}
func NewSolution ¶
func NewSolution() *Solution
func (*Solution) AddOperation ¶
func (*Solution) Operations ¶
type Solvable ¶
type Solvable interface { Id() string Name() string Version() *Version Requirements() []*Requirement Arch() string Os() string FileName() string Location() int SetLocation(location int) Priority() int SetPriority(priority int) SetChannels(...string) Channels() []string Satisfies(*Requirement) bool }
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(solvables Solvables) Solvables
func (*UpdatedPolicy) SelectRequest ¶
func (u *UpdatedPolicy) SelectRequest(solvables Solvables) Solvable
func (*UpdatedPolicy) SelectSolution ¶
func (u *UpdatedPolicy) SelectSolution(solutions Solutions) *Solution
Click to show internal directories.
Click to hide internal directories.