types

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

View Source
const (
	KeyJobID = key("job_id")
	KeyRunID = key("run_id")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type JobID

type JobID uint64

JobID represents a unique job identifier

func JobIDFromContext

func JobIDFromContext(ctx xcontext.Context) (JobID, bool)

JobIDFromContext is a helper to get the JobID, this is useful for plugins which need to know which job they are running. Not all context object everywhere have this set, but this is guaranteed to work in TargetManagers, TestSteps and Reporters

func (JobID) String

func (v JobID) String() string

type RunID

type RunID uint64

RunID represents the id of a run within the Job

func RunIDFromContext

func RunIDFromContext(ctx xcontext.Context) (RunID, bool)

RunIDFromContext is a helper to get the RunID. Not all context object everywhere have this set, but this is guaranteed to work in TargetManagers, TestSteps and RunReporters

func (RunID) String

func (v RunID) String() string

Jump to

Keyboard shortcuts

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