job

package
v0.131.1-alpha3 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Job

type Job struct {
	ID          string `json:"id"`
	Name        string `json:"name"`
	Passed      bool   `json:"passed"`
	Status      string `json:"status"`
	Error       string `json:"error,omitempty"`
	Platform    string `json:"platform,omitempty"`
	Framework   string `json:"framework,omitempty"`
	Device      string `json:"device,omitempty"`
	BrowserName string `json:"browserName,omitempty"`
	Source      string `json:"source,omitempty"`
}

Job represents job info for saucectl jobs cmd

type List

type List struct {
	Jobs  []Job `json:"jobs"`
	Total int   `json:"total"`
	Page  int   `json:"page"`
	Size  int   `json:"size"`
}

List represents the job list structure

type QueryOption

type QueryOption struct {
	Page   int    `json:"page"`
	Size   int    `json:"size"`
	Status string `json:"status"`
}

QueryOption represents the query option for listing jobs

type Reader

type Reader interface {
	// ReadJob returns the job details.
	ReadJob(ctx context.Context, id string) (Job, error)
	// ListJobs returns job list
	ListJobs(ctx context.Context, jobSource string, queryOption QueryOption) (List, error)
}

Reader is the interface for saucectl jobs command to fetch jobs

Jump to

Keyboard shortcuts

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