structs

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PageInfo added in v0.18.0

type PageInfo struct {
	EndCursor       string `json:"endCursor"`
	HasNextPage     bool   `json:"hasNextPage"`
	HasPreviousPage bool   `json:"hasPreviousPage"`
}

PageInfo is the extra information about a searched page.

type QueryFieldConstraint added in v0.18.0

type QueryFieldConstraint struct {
	BooleanEquals *[]graphql.Boolean `json:"booleanEquals"`
	EnumEquals    *[]graphql.String  `json:"enumEquals"`
	StringMatches *[]graphql.String  `json:"stringMatches"`
}

QueryFieldConstraint is a constraint used in a search query.

type QueryPredicate added in v0.18.0

type QueryPredicate struct {
	Field      graphql.String       `json:"field"`
	Constraint QueryFieldConstraint `json:"constraint"`
}

QueryPredicate Field and Constraint pair for search input.

type RunState

type RunState string

RunState is the state of the run.

type RunStateTransition

type RunStateTransition struct {
	HasLogs   bool     `graphql:"hasLogs"`
	Note      *string  `graphql:"note"`
	State     RunState `graphql:"state"`
	Terminal  bool     `graphql:"terminal"`
	Timestamp int      `graphql:"timestamp"`
	Username  *string  `graphql:"username"`
}

RunStateTransition represents a single run state transition.

func (*RunStateTransition) About

func (r *RunStateTransition) About() string

About returns "header" information about the state transition.

func (*RunStateTransition) Error

func (r *RunStateTransition) Error() error

type RunType

type RunType string

RunType is the type of the run.

func NewRunType

func NewRunType(in string) *RunType

NewRunType takes a string and returns a pointer to a RunType.

type SearchInput added in v0.18.0

type SearchInput struct {
	First          *graphql.Int      `json:"first"`
	After          *graphql.String   `json:"after"`
	FullTextSearch *graphql.String   `json:"fullTextSearch"`
	Predicates     *[]QueryPredicate `json:"predicates"`
}

SearchInput is the main object provided to any search query.

Jump to

Keyboard shortcuts

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