Versions in this module Expand all Collapse all v1 v1.0.0 Jun 7, 2026 Changes in this version + func Evaluate(expression string, ctx Context, opts ...Option) (bool, error) + func IsErrorKind(err error, kind ErrorKind) bool + func Validate(expression string, ctx Context, opts ...Option) error + type Actor struct + Email *string + ID *string + Name *string + Teams []string + Verified *bool + type Build struct + Author Actor + BlockedState *string + Branch *string + Commit *string + Creator Actor + Fixed *bool + ID *string + MergeQueue MergeQueue + Message *string + Number *int + PullRequest PullRequest + RebuiltFrom RebuiltFrom + SCM SCM + Source *string + SourceAction *string + SourceEvent *string + State *string + Tag *string + TriggeredFrom TriggeredFrom + type Context struct + Build Build + BuildEnv map[string]string + EntryPoint EntryPoint + Organization Organization + Pipeline Pipeline + ProjectEnv map[string]string + Step *Step + type EntryPoint string + const EntryPointBuildCondition + const EntryPointBuildConditionWithStep + const EntryPointBuildNotification + const EntryPointStepNotification + type Error struct + Cause error + Kind ErrorKind + Message string + func (e *Error) Error() string + func (e *Error) Is(target error) bool + func (e *Error) Unwrap() error + type ErrorKind string + const ErrorKindEvaluation + const ErrorKindParse + const ErrorKindResult + const ErrorKindValidation + type Evaluator struct + func NewEvaluator(opts ...Option) (Evaluator, error) + func (e Evaluator) Evaluate(expression string, ctx Context) (bool, error) + func (e Evaluator) Validate(expression string, ctx Context) error + type Function struct + Args []ValueType + Eval func(args []Value) (Value, error) + Return ValueType + type MergeQueue struct + Active bool + BaseBranch *string + BaseCommit *string + type Option func(*optionSet) error + func WithFunction(name string, function Function) Option + type Organization struct + ID *string + Slug *string + type Pipeline struct + DefaultBranch *string + ID *string + Name *string + NextFinishedBuildExists *bool + Repository *string + Slug *string + StartedFailing *bool + StartedPassing *bool + UseMergeQueueBaseCommitForGitDiffBase *bool + type PullRequest struct + BaseBranch *string + Draft *bool + ID *string + Label *string + Labels []string + Repository *string + RepositoryFork *bool + UsingMergeRefspec *bool + type RebuiltFrom struct + BuildID *string + BuildNumber *int + type SCM struct + AuthorEmail *string + AuthorName *string + CommitterEmail *string + CommitterName *string + type Step struct + ID *string + Key *string + Label *string + Outcome *string + State *string + Type *string + type TriggeredFrom struct + BuildID *string + BuildNumber *int + JobID *string + PipelineSlug *string + type Value struct + func BoolValue(value bool) Value + func NullValue() Value + func NumberValue(value int64) Value + func RegexpValue(pattern string, flags string) (Value, error) + func StringArrayValue(values []string) Value + func StringValue(value string) Value + func (v Value) AsBool() (bool, bool) + func (v Value) AsNumber() (int64, bool) + func (v Value) AsRegexp() (pattern string, flags string, ok bool) + func (v Value) AsString() (string, bool) + func (v Value) AsStringArray() ([]string, bool) + func (v Value) IsNull() bool + func (v Value) String() string + func (v Value) Type() ValueType + type ValueType string + const BoolType + const NullType + const NumberType + const RegexpType + const StringArrayType + const StringType + func (t ValueType) String() string