search

package
v0.0.0-...-d3da680 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 24 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) errors.MultiError

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
	DescendantOf      int64
	ChildOf           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.

Jump to

Keyboard shortcuts

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