Documentation
¶
Overview ¶
Package execution implements the `execution` commands on experiment runs.
Index ¶
- Variables
- func AddProperty(ctx context.Context, c *platform.Client, o PropertyOptions) error
- func Cancel(ctx context.Context, c *platform.Client, id int64) error
- func Download(ctx context.Context, c *platform.Client, o DownloadOptions) error
- func Fetch(ctx context.Context, c *platform.Client, id int64) (*output.Document, error)
- func Get(ctx context.Context, c *platform.Client, o GetOptions) error
- func Latest(ctx context.Context, c *platform.Client, key string) (int64, error)
- func List(ctx context.Context, c *platform.Client, o ListOptions) error
- func ListArtifacts(ctx context.Context, c *platform.Client, id int64, explicitType string) error
- func SetProperty(ctx context.Context, c *platform.Client, o PropertyOptions) error
- func Watch(ctx context.Context, c *platform.Client, o WatchOptions) error
- type Artifact
- type DownloadOptions
- type GetOptions
- type ListOptions
- type PropertyOptions
- type WatchOptions
Constants ¶
This section is empty.
Variables ¶
var States = []string{"CREATED", "PREPARED", "RUNNING", "FAILED", "CANCELED", "COMPLETED", "ERRORED"}
States are the ones the platform filters by; REQUESTED is a run not yet created, which the search does not know.
Functions ¶
func AddProperty ¶
func Cancel ¶
Cancel asks the platform to stop a run. A 202 means it is being stopped, a 200 that there was nothing left to cancel.
func Download ¶
Download writes every selected artifact to <directory>/<target execution>/<artifact>: two targets of one step usually produce files of the same name.
func Fetch ¶
Fetch gets a run with its steps. The platform leaves the steps out unless asked, and with them every target execution and artifact.
func List ¶ added in v6.1.0
List searches the runs of all experiments. With FailOnMatch it lets a pipeline stop when any run matches, such as a failed one of its team since the last deployment.
func ListArtifacts ¶
func SetProperty ¶
Types ¶
type Artifact ¶
type DownloadOptions ¶
type GetOptions ¶
type ListOptions ¶ added in v6.1.0
type ListOptions struct {
Name string
Teams, ExcludeTeams, Experiments, Environments, Services, States []string
// From and To bound when a run was created, the others when it was requested (queued
// to start) and when it ended.
From, To string
RequestedFrom, RequestedTo string
EndedFrom, EndedTo string
Limit int
FailOnMatch bool
Type string
}