Documentation ¶
Index ¶
- Constants
- type DepFlag
- type Query
- type Range
- type Term
- func TermArch(value string, mods ...uint8) *Term
- func TermBuildHost(value string, mods ...uint8) *Term
- func TermConflicts(value data.Dependency, mods ...uint8) *Term
- func TermDateAdd(from, to int64, mods ...uint8) *Term
- func TermDateBuild(from, to int64, mods ...uint8) *Term
- func TermEnhances(value data.Dependency, mods ...uint8) *Term
- func TermEpoch(value string, mods ...uint8) *Term
- func TermFile(value string, mods ...uint8) *Term
- func TermGroup(value string, mods ...uint8) *Term
- func TermLicense(value string, mods ...uint8) *Term
- func TermName(value string, mods ...uint8) *Term
- func TermObsoletes(value data.Dependency, mods ...uint8) *Term
- func TermPayload(value string, mods ...uint8) *Term
- func TermProvides(value data.Dependency, mods ...uint8) *Term
- func TermRecommends(value data.Dependency, mods ...uint8) *Term
- func TermRelease(value string, mods ...uint8) *Term
- func TermRequires(value data.Dependency, mods ...uint8) *Term
- func TermSize(from, to int64, mods ...uint8) *Term
- func TermSource(value string, mods ...uint8) *Term
- func TermSuggests(value data.Dependency, mods ...uint8) *Term
- func TermSupplements(value data.Dependency, mods ...uint8) *Term
- func TermVendor(value string, mods ...uint8) *Term
- func TermVersion(value string, mods ...uint8) *Term
Constants ¶
const ( TERM_UNKNOWN uint8 = iota TERM_NAME TERM_ARCH TERM_VERSION TERM_RELEASE TERM_EPOCH TERM_PROVIDES TERM_REQUIRES TERM_RECOMMENDS TERM_CONFLICTS TERM_OBSOLETES TERM_ENHANCES TERM_SUGGESTS TERM_SUPPLEMENTS TERM_FILE TERM_SOURCE TERM_LICENSE TERM_VENDOR TERM_GROUP TERM_DATE_ADD TERM_DATE_BUILD TERM_BUILD_HOST TERM_SIZE TERM_PAYLOAD )
const ( DEP_FLAG_ANY DepFlag = 0 DEP_FLAG_EQ = 1 // = DEP_FLAG_LT = 2 // < DEP_FLAG_LE = 3 // <= DEP_FLAG_GT = 4 // > DEP_FLAG_GE = 5 // >= )
const (
TERM_MOD_NEGATIVE uint8 = 1 << iota
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Query ¶
type Query []*Term
Query contains search terms
type Term ¶
type Term struct { Value interface{} Type uint8 Modificator uint8 // contains filtered or unexported fields }
Term is search term struct (part of search query)
func TermBuildHost ¶
TermBuildHost creates build host search term with given value and modificators
func TermConflicts ¶
func TermConflicts(value data.Dependency, mods ...uint8) *Term
TermConflicts creates conflicts search term with given value and modificators
func TermDateAdd ¶
TermDateAdd creates add date search term with given value and modificators
func TermDateBuild ¶
TermDateBuild creates build date search term with given value and modificators
func TermEnhances ¶
func TermEnhances(value data.Dependency, mods ...uint8) *Term
TermEnhances creates enhances search term with given value and modificators
func TermLicense ¶
TermLicense creates license search term with given value and modificators
func TermObsoletes ¶
func TermObsoletes(value data.Dependency, mods ...uint8) *Term
TermObsoletes creates obsoletes search term with given value and modificators
func TermPayload ¶
TermPayload creates payload search term with given value and modificators
func TermProvides ¶
func TermProvides(value data.Dependency, mods ...uint8) *Term
TermProvides creates provides search term with given value and modificators
func TermRecommends ¶
func TermRecommends(value data.Dependency, mods ...uint8) *Term
TermRecommends creates recommends search term with given value and modificators
func TermRelease ¶
TermRelease creates release search term with given value and modificators
func TermRequires ¶
func TermRequires(value data.Dependency, mods ...uint8) *Term
TermRequires creates requires search term with given value and modificators
func TermSource ¶
TermSource creates source search term with given value and modificators
func TermSuggests ¶
func TermSuggests(value data.Dependency, mods ...uint8) *Term
TermSuggests creates suggests search term with given value and modificators
func TermSupplements ¶
func TermSupplements(value data.Dependency, mods ...uint8) *Term
TermSupplements creates supplements search term with given value and modificators
func TermVendor ¶
TermVendor creates vendor search term with given value and modificators
func TermVersion ¶
TermVersion creates version search term with given value and modificators
func (*Term) IsNegative ¶
IsNegative returns true if is negative search term