Versions in this module Expand all Collapse all v1 v1.0.0 Feb 17, 2026 Changes in this version + var ErrAuthFailed = errors.New("authentication failed") + var ErrTestNotFound = errors.New("test run not found") + var ErrTestTimeout = errors.New("test run timed out") + var ErrTriggerFailed = errors.New("failed to trigger test") + func IsTerminalError(err error) bool + func SubstituteVariables(params map[string]string, context SubstitutionContext) map[string]string + type ClientError struct + Err error + Operation string + Provider string + func NewClientError(provider, operation string, err error) *ClientError + func (e *ClientError) Error() string + func (e *ClientError) Unwrap() error + type PRContext struct + Author string + BaseBranch string + BaseSHA string + Branch string + HeadSHA string + Number int + Repository string + Title string + type Provider string + const ProviderGitHubActions + const ProviderGitLab + const ProviderJenkins + type ProviderConfig struct + Endpoint string + Extra map[string]string + Timeout time.Duration + Token string + Type string + Username string + type SubstitutionContext struct + Cluster string + Custom map[string]string + Environment string + Namespace string + PR PRContext + Version string + type TestConfig struct + JobName string + Parameters map[string]string + Provider Provider + ProviderConfig map[string]string + Ref string + Timeout time.Duration + type TestResult struct + Artifacts map[string]string + Duration time.Duration + FailureReason string + Passed bool + TestsFailed int + TestsPassed int + type TestRun struct + CompletedAt time.Time + ID string + JobName string + Message string + Provider Provider + StartedAt time.Time + Status TestStatus + URL string + type TestRunner interface + Cancel func(ctx context.Context, runID string) error + GetLogs func(ctx context.Context, runID string) (string, error) + GetStatus func(ctx context.Context, runID string) (TestStatus, error) + TriggerTest func(ctx context.Context, config TestConfig) (*TestRun, error) + type TestStatus string + const StatusCancelled + const StatusFailed + const StatusFailure + const StatusPending + const StatusRunning + const StatusSuccess + const StatusTimeout + const StatusUnknown + func (s TestStatus) IsFailure() bool + func (s TestStatus) IsSuccess() bool + func (s TestStatus) IsTerminal() bool + func (s TestStatus) String() string