reflect

package
v0.0.0-...-63be6c5 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package reflect is an SDK wrapper around the reflect HTTP API

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CookieOverride

type CookieOverride struct {
	Name     string `mapstructure:"name" json:"name"`
	Value    string `mapstructure:"value" json:"value"`
	Domain   string `mapstructure:"domain" json:"domain"`
	Expires  int32  `mapstructure:"expires" json:"expires"`
	HTTPOnly bool   `mapstructure:"httpOnly" json:"httpOnly"`
	MaxAge   int32  `mapstructure:"maxAge" json:"maxAge"`
	Path     string `mapstructure:"path" json:"path"`
	Secure   bool   `mapstructure:"secure" json:"secure"`
}

type CreateTagExecutionOutput

type CreateTagExecutionOutput struct {
	ExecutionID  int `json:"executionId"`
	NTestsQueued int `json:"NTestsQueued"`
}

type ExecuteSuiteOptions

type ExecuteSuiteOptions struct {
	Overrides *SuiteOverrides `json:"overrides"`
}

type ExecuteSuiteOutput

type ExecuteSuiteOutput struct {
	ExecutionID int `json:"executionId"`
}

type GetStatusOutput

type GetStatusOutput struct {
	ExecutionID int    `json:"executionId"`
	Tests       []Test `json:"tests"`
}

type ListSuiteOutput

type ListSuiteOutput struct {
	Suites Suites
}

type NewReflectInput

type NewReflectInput struct {
	APIKey string
}

type Overrides

type Overrides struct {
	Cookies []CookieOverride `mapstructure:"cookies" json:"cookies"`
}

type Reflect

type Reflect struct {
	APIKey  string
	BaseURL string
	Version string
}

func NewReflect

func NewReflect(p *NewReflectInput) *Reflect

func (*Reflect) CreateTagExecution

func (r *Reflect) CreateTagExecution(tag string, options *TestExecutionOptions) (*CreateTagExecutionOutput, error)

func (*Reflect) ExecuteSuite

func (r *Reflect) ExecuteSuite(id string, options *ExecuteSuiteOptions) (*ExecuteSuiteOutput, error)

func (*Reflect) GetStatus

func (r *Reflect) GetStatus(id string) (*GetStatusOutput, error)

func (*Reflect) ListSuites

func (r *Reflect) ListSuites() (*ListSuiteOutput, error)

func (*Reflect) URL

func (r *Reflect) URL() string

type SuiteCookieOverride

type SuiteCookieOverride struct {
	Name     string `mapstructure:"name" json:"name"`
	Value    string `mapstructure:"value" json:"value"`
	Domain   string `mapstructure:"domain" json:"domain"`
	Expires  int32  `mapstructure:"expires" json:"expires"`
	HTTPOnly bool   `mapstructure:"httpOnly" json:"httpOnly"`
	MaxAge   int32  `mapstructure:"maxAge" json:"maxAge"`
	Path     string `mapstructure:"path" json:"path"`
	Secure   bool   `mapstructure:"secure" json:"secure"`
}

type SuiteData

type SuiteData struct {
	Name    string `json:"name"`
	SuiteID string `json:"suiteId"`
	Created uint   `json:"created"`
}

type SuiteOverrides

type SuiteOverrides struct {
	Cookies []CookieOverride `mapstructure:"cookies" json:"cookies"`
}

type Suites

type Suites struct {
	Data []*SuiteData `json:"data"`
}

type Test

type Test struct {
	TestID    int    `json:"testId"`
	Status    string `json:"status"`
	Started   int    `json:"started"`
	Completed int    `json:"completed"`
	RunID     int    `json:"runId"`
}

type TestExecutionOptions

type TestExecutionOptions struct {
	Overrides *Overrides `json:"overrides"`
}

Jump to

Keyboard shortcuts

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