luci: Index | Files

package search

import ""


Package Files



var (
    PageTokenRegex = regexp.MustCompile(`^id>\d+$`)

func IndexedTags Uses

func IndexedTags(tags strpair.Map) []string

IndexedTags returns the indexed tags.

func UpdateTagIndex Uses

func UpdateTagIndex(ctx context.Context, builds []*model.Build) error

UpdateTagIndex updates the tag index for the given builds.

type Query Uses

type Query struct {
    Builder             *pb.BuilderID
    Tags                strpair.Map
    Status              pb.Status
    CreatedBy           identity.Identity
    StartTime           time.Time
    EndTime             time.Time
    IncludeExperimental bool
    BuildIDHigh         int64
    BuildIDLow          int64
    Canary              *bool
    PageSize            int32
    PageToken           string

Query is the intermediate to store the arguments for ds search query.

func NewQuery Uses

func NewQuery(req *pb.SearchBuildsRequest) *Query

NewQuery builds a Query from pb.SearchBuildsRequest. It assumes req is valid, otherwise may panic.

func (*Query) Fetch Uses

func (q *Query) Fetch(ctx context.Context) (*pb.SearchBuildsResponse, error)

Fetch performs main build search logic.

Package search imports 24 packages (graph) and is imported by 1 packages. Updated 2021-01-26. Refresh now. Tools for package owners.