types

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2020 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 GetRunsResponse

type GetRunsResponse struct {
	Runs                    []*rstypes.Run `json:"runs"`
	ChangeGroupsUpdateToken string         `json:"change_groups_update_tokens"`
}

type RunActionType

type RunActionType string
const (
	RunActionTypeChangePhase RunActionType = "changephase"
	RunActionTypeStop        RunActionType = "stop"
)

type RunActionsRequest

type RunActionsRequest struct {
	ActionType RunActionType `json:"action_type"`

	Phase                   rstypes.RunPhase `json:"phase"`
	ChangeGroupsUpdateToken string           `json:"change_groups_update_tokens"`
}

type RunCreateRequest

type RunCreateRequest struct {
	// new run fields
	RunConfigTasks    map[string]*rstypes.RunConfigTask `json:"run_config_tasks"`
	Name              string                            `json:"name"`
	Group             string                            `json:"group"`
	SetupErrors       []string                          `json:"setup_errors"`
	StaticEnvironment map[string]string                 `json:"static_environment"`
	CacheGroup        string                            `json:"cache_group"`

	// existing run fields
	RunID      string   `json:"run_id"`
	FromStart  bool     `json:"from_start"`
	ResetTasks []string `json:"reset_tasks"`

	// common fields
	Environment map[string]string `json:"environment"`
	Annotations map[string]string `json:"annotations"`

	ChangeGroupsUpdateToken string `json:"changeup_update_tokens"`
}

type RunResponse

type RunResponse struct {
	Run                     *rstypes.Run       `json:"run"`
	RunConfig               *rstypes.RunConfig `json:"run_config"`
	ChangeGroupsUpdateToken string             `json:"change_groups_update_tokens"`
}

type RunTaskActionType

type RunTaskActionType string
const (
	RunTaskActionTypeSetAnnotations RunTaskActionType = "setannotations"
	RunTaskActionTypeApprove        RunTaskActionType = "approve"
)

type RunTaskActionsRequest

type RunTaskActionsRequest struct {
	ActionType RunTaskActionType `json:"action_type"`

	// set Annotations fields
	Annotations map[string]string `json:"annotations,omitempty"`

	// global fields
	ChangeGroupsUpdateToken string `json:"change_groups_update_tokens"`
}

Jump to

Keyboard shortcuts

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