search

package
v0.0.0-...-4a11b79 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2020 License: Apache-2.0 Imports: 26 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.

Types

type Query

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
	StartCursor         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 pb.SearchBuildsRequest. It assumes CreateTime in req is either unset or valid and will panic on any failures.

func (*Query) Fetch

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

Fetch performs main search builds logic.

Jump to

Keyboard shortcuts

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