Documentation
¶
Index ¶
- func GetVersionDiff(oldVersion, newVersion string) (left, right string)
- func RemoveInvalidTargets(logger *text.Logger, targets []string, mode parser.TargetMode) []string
- type AURWarnings
- type Builder
- type ErrAURSearch
- type ErrNoQuery
- type ErrTargetNotFound
- type Pkg
- type SearchVerbosity
- type SortFunc
- type SourceQueryBuilder
- func (s *SourceQueryBuilder) Execute(ctx context.Context, dbExecutor db.Executor, pkgS []string)
- func (s *SourceQueryBuilder) GetTargets(include, exclude intrange.IntRanges, otherExclude mapset.Set[string]) ([]string, error)
- func (s *SourceQueryBuilder) Len() int
- func (s *SourceQueryBuilder) Results(dbExecutor db.Executor, verboseSearch SearchVerbosity) error
- func (s *SourceQueryBuilder) SetLua(engine *settingslua.Engine)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetVersionDiff ¶
func RemoveInvalidTargets ¶
Types ¶
type AURWarnings ¶
type AURWarnings struct {
Orphans []string
OutOfDate []string
Missing []string
LocalNewer []string
// contains filtered or unexported fields
}
func NewWarnings ¶
func NewWarnings(logger *text.Logger) *AURWarnings
func (*AURWarnings) AddToWarnings ¶
func (*AURWarnings) CalculateMissing ¶
func (*AURWarnings) Print ¶
func (warnings *AURWarnings) Print()
type Builder ¶
type Builder interface {
Len() int
Execute(ctx context.Context, dbExecutor db.Executor, pkgS []string)
Results(dbExecutor db.Executor, verboseSearch SearchVerbosity) error
GetTargets(include, exclude intrange.IntRanges, otherExclude mapset.Set[string]) ([]string, error)
SetLua(engine *settingslua.Engine)
}
type ErrAURSearch ¶
type ErrAURSearch struct {
// contains filtered or unexported fields
}
ErrAURSearch means that it was not possible to connect to the AUR.
func (ErrAURSearch) Error ¶
func (e ErrAURSearch) Error() string
type ErrNoQuery ¶
type ErrNoQuery struct{}
ErrNoQuery means that query was not executed.
func (ErrNoQuery) Error ¶
func (e ErrNoQuery) Error() string
type ErrTargetNotFound ¶
type ErrTargetNotFound struct{}
func (ErrTargetNotFound) Error ¶
func (e ErrTargetNotFound) Error() string
type SearchVerbosity ¶
type SearchVerbosity int
const ( NumberMenu SearchVerbosity = iota Detailed Minimal )
Verbosity settings for search.
type SourceQueryBuilder ¶
type SourceQueryBuilder struct {
// contains filtered or unexported fields
}
func NewSourceQueryBuilder ¶
func NewSourceQueryBuilder( aurClient aur.QueryClient, logger *text.Logger, sortBy string, targetMode parser.TargetMode, searchBy string, bottomUp, singleLineResults bool, separateSources bool, ) *SourceQueryBuilder
func (*SourceQueryBuilder) GetTargets ¶
func (*SourceQueryBuilder) Len ¶
func (s *SourceQueryBuilder) Len() int
func (*SourceQueryBuilder) Results ¶
func (s *SourceQueryBuilder) Results(dbExecutor db.Executor, verboseSearch SearchVerbosity) error
func (*SourceQueryBuilder) SetLua ¶
func (s *SourceQueryBuilder) SetLua(engine *settingslua.Engine)
Click to show internal directories.
Click to hide internal directories.