usage

package
v0.139.1 Latest Latest
Warning

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

Go to latest
Published: May 4, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Properties

type Properties map[string]interface{}

Properties is a scoped data transfer object for usage reporting and contains usage event related data.

func (Properties) SetArtifacts

func (p Properties) SetArtifacts(art config.Artifacts) Properties

SetArtifacts reports artifact usage.

func (Properties) SetError added in v0.78.0

func (p Properties) SetError(errMessage string) Properties

SetError reports an error.

func (Properties) SetFVersion

func (p Properties) SetFVersion(f string) Properties

SetFVersion reports the framework version.

func (Properties) SetFlags

func (p Properties) SetFlags(flags *pflag.FlagSet) Properties

SetFlags reports CLI flags.

func (Properties) SetFramework

func (p Properties) SetFramework(f string) Properties

SetFramework reports the framework.

func (Properties) SetJobs

func (p Properties) SetJobs(jobs []report.TestResult) Properties

SetJobs reports job (aka test results).

func (Properties) SetLaunchOrder added in v0.105.0

func (p Properties) SetLaunchOrder(launchOrder config.LaunchOrder) Properties

SetLaunchOrder reports launch order of jobs

func (Properties) SetNPM

func (p Properties) SetNPM(npm config.Npm) Properties

SetNPM reports the npm usage.

func (Properties) SetNotificationsCount added in v0.78.0

func (p Properties) SetNotificationsCount(sent, failed int) Properties

SetNotificationsCount reports the number of notifications.

func (Properties) SetNumSuites

func (p Properties) SetNumSuites(n int) Properties

SetNumSuites reports the number of configured suites.

func (Properties) SetSauceConfig

func (p Properties) SetSauceConfig(c config.SauceConfig) Properties

SetSauceConfig reports key fields of the sauce config.

func (Properties) SetSharding added in v0.82.0

func (p Properties) SetSharding(sharded bool) Properties

func (Properties) SetSlack added in v0.78.0

func (p Properties) SetSlack(slack config.Slack) Properties

SetSlack reports the info relative to slack notifications.

type Tracker

type Tracker interface {
	io.Closer
	Collect(subject string, props Properties)
}

Tracker is an interface for providing usage tracking.

Jump to

Keyboard shortcuts

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