Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func IndexedTags

func IndexedTags(tags strpair.Map) []string

    IndexedTags returns the indexed tags.

    func UpdateTagIndex

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

      UpdateTagIndex updates the tag index for the given builds.

      Types

      type Query

      type Query struct {
      	Builder           *pb.BuilderID
      	Tags              strpair.Map
      	Status            pb.Status
      	CreatedBy         identity.Identity
      	StartTime         time.Time
      	EndTime           time.Time
      	ExperimentFilters stringset.Set
      	BuildIDHigh       int64
      	BuildIDLow        int64
      	PageSize          int32
      	PageToken         string
      }

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

        func NewQuery

        func NewQuery(req *pb.SearchBuildsRequest) *Query

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

          func (*Query) Fetch

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

            Fetch performs main build search logic.

            Source Files