Versions in this module Expand all Collapse all v1 v1.6.1 Apr 2, 2026 Changes in this version + const LegacyCloudConfigKey + const MaxRetries + const RetryInterval + func CheckResponse(r *http.Response) error + func GetTemporaryCloudConfig(cloudConfig json.RawMessage, external map[string]json.RawMessage) (map[string]any, error) + func URLForResults(refID string, config Config) string + type Client struct + func NewClient(logger logrus.FieldLogger, token, host, version string, timeout time.Duration) *Client + func (c *Client) BaseURL() string + func (c *Client) CreateTestRun(testRun *TestRun) (*CreateTestRunResponse, error) + func (c *Client) Do(req *http.Request, v any) error + func (c *Client) GetTestProgress(referenceID string) (*TestProgressResponse, error) + func (c *Client) Login(email string, password string) (*LoginResponse, error) + func (c *Client) NewRequest(method, url string, data any) (*http.Request, error) + func (c *Client) SetStackID(stackID int64) + func (c *Client) StartCloudTestRun(name string, projectID int64, arc *lib.Archive) (*CreateTestRunResponse, error) + func (c *Client) StopCloudTestRun(referenceID string) error + func (c *Client) TestFinished(referenceID string, thresholds ThresholdResult, tained bool, ...) error + func (c *Client) UploadTestOnly(name string, projectID int64, arc *lib.Archive) (*CreateTestRunResponse, error) + func (c *Client) ValidateOptions(options lib.Options) error + func (c *Client) ValidateToken() (*ValidateTokenResponse, error) + type Config struct + APIVersion null.Int + AggregationPeriod types.NullDuration + AggregationWaitPeriod types.NullDuration + DefaultProjectID null.Int + Host null.String + Hostv6 null.String + LogsTailURL null.String + MaxTimeSeriesInBatch null.Int + MetricPushConcurrency null.Int + MetricPushInterval types.NullDuration + Name null.String + NoCompress null.Bool + ProjectID null.Int + PushRefID null.String + StackID null.Int + StackURL null.String + StopOnError null.Bool + TestRunDetails null.String + Timeout types.NullDuration + Token null.String + TracesEnabled null.Bool + TracesHost null.String + TracesPushConcurrency null.Int + TracesPushInterval types.NullDuration + WebAppURL null.String + func GetConsolidatedConfig(jsonRawConf json.RawMessage, env map[string]string, configArg string, ...) (Config, string, error) + func NewConfig() Config + func (c *Config) StreamLogsToLogger(ctx context.Context, logger logrus.FieldLogger, referenceID string, ...) error + func (c Config) Apply(cfg Config) Config + type CreateTestRunResponse struct + ConfigOverride *Config + Logs []LogEntry + ReferenceID string + type LogEntry struct + Level string + Message string + type LoginResponse struct + Token string + type ResponseError struct + Code int + Details map[string][]string + Errors []string + FieldErrors map[string][]string + Message string + Response *http.Response + func (e ResponseError) Error() string + type ResultStatus int + const ResultStatusFailed + const ResultStatusPassed + type RunStatus int + const RunStatusAbortedLimit + const RunStatusAbortedScriptError + const RunStatusAbortedSystem + const RunStatusAbortedThreshold + const RunStatusAbortedUser + const RunStatusArchived + const RunStatusCreated + const RunStatusFinished + const RunStatusInitializing + const RunStatusQueued + const RunStatusRunning + const RunStatusTimedOut + const RunStatusValidated + type TestProgressResponse struct + Progress float64 + ResultStatus ResultStatus + RunStatus RunStatus + RunStatusText string + type TestRun struct + Archive *lib.Archive + Duration int64 + Name string + ProjectID int64 + Thresholds map[string][]string + VUsMax int64 + type ThresholdResult map[string]map[string]bool + type ValidateTokenResponse struct + IsValid bool + Message string + Token string