search

package
Version: v0.0.0-...-51f9457 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 9, 2021 License: Apache-2.0 Imports: 22 Imported by: 0

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. Panics if any build.Proto.Builder is unspecified.

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL