testcomposer

package
v0.54.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrServerError is returned when the server was not able to correctly handle our request (status code >= 500).
	ErrServerError = errors.New("internal server error")
	// ErrJobNotFound is returned when the requested job was not found.
	ErrJobNotFound = errors.New("job was not found")
)

Functions

This section is empty.

Types

type Client

type Client struct {
	HTTPClient  *http.Client
	URL         string // e.g.) https://api.<region>.saucelabs.net
	Credentials credentials.Credentials
}

Client service

func (*Client) Frameworks added in v0.49.0

func (c *Client) Frameworks(ctx context.Context) ([]framework.Framework, error)

Frameworks returns the list of available frameworks.

func (*Client) Search added in v0.30.0

Search returns metadata for the given search options opts.

func (*Client) StartJob

func (c *Client) StartJob(ctx context.Context, opts job.StartOptions) (jobID string, isRDC bool, err error)

StartJob creates a new job in Sauce Labs.

func (*Client) UploadAsset added in v0.46.1

func (c *Client) UploadAsset(jobID string, fileName string, contentType string, content []byte) error

UploadAsset uploads an asset to the specified jobID.

func (*Client) Versions added in v0.49.0

func (c *Client) Versions(ctx context.Context, frameworkName string) ([]framework.Metadata, error)

Versions return the list of available versions for a specific framework and region.

type FrameworkResponse added in v0.27.0

type FrameworkResponse struct {
	Name      string     `json:"name"`
	Version   string     `json:"version"`
	Runner    runner     `json:"runner"`
	Platforms []platform `json:"platforms"`
}

FrameworkResponse represents the response body for framework information.

type Job

type Job struct {
	ID    string `json:"id"`
	Owner string `json:"owner"`
}

Job represents the sauce labs test job.

Jump to

Keyboard shortcuts

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