Documentation
¶
Index ¶
- Constants
- Variables
- func ApprovePipelineRun(ctx context.Context, name, id string, stageNum int) error
- func ApprovePipelineRunUI(name, id string) error
- func CancelApprovePipelineRun(ctx context.Context, name, id string, stageNum int) error
- func CancelApprovePipelineRunUI(name, id string) error
- func CancelPipelineRun(ctx context.Context, name, id string) error
- func Command() *cli.Command
- func CreatePipeline(name, repoType string) error
- func DeletePipeline(ctx context.Context, name string) error
- func DeletePipelineRun(ctx context.Context, name, id string) error
- func GetPipelineCount(ctx context.Context) (uint64, error)
- func GetPipelineRunCount(ctx context.Context, name string) (uint64, error)
- func GetPipelineRunCountByState(ctx context.Context, name string) (map[string]int64, error)
- func GetRepos(repoType string) ([]string, error)
- func GetWorkflows(orgRepo string) ([]github.Workflow, error)
- func LockPipeline(ctx context.Context, name, reason string) error
- func LockPipelineUI(name, reason string) error
- func PausePipelineRun(ctx context.Context, name, id, reason string) error
- func PausePipelineRunUI(name, id, reason string) error
- func ResumePipelineRun(ctx context.Context, name, id, reason string) error
- func ResumePipelineRunUI(name, id, reason string) error
- func RunPipeline(ctx context.Context, name, runId string, inputs map[string]string, ...) error
- func RunPipelineUI(name, runId string, inputs map[string]string, force bool) error
- func SavePipeline(ctx context.Context, pipeline *Pipeline) error
- func ShowAllPipelineRuns(name string, limit int64) error
- func ShowAllPipelines() error
- func ShowPipeline(name string) error
- func ShowPipelineRun(name, id string) error
- func UnlockPipeline(ctx context.Context, name, reason string) error
- func UnlockPipelineUI(name, reason string) error
- func ValidateWorkflow(orgRepo string, workflow github.Workflow) error
- type DatadogInfo
- type MonitorInfo
- type MonitorState
- type MonitoringController
- type Pipeline
- type PipelineRun
- type Stage
- type StageRun
- type StageRunApproval
- type StageRunMetadata
- type State
- type TriggerMetadata
- type WorkflowInfo
Constants ¶
View Source
const ( AUDIT_APPROVED string = "Approved" AUDIT_CANCEL_APPROVAL string = "CancelApproval" )
View Source
const ( AUDIT_LOCKED string = "Locked" AUDIT_UNLOCKED string = "Unlocked" )
View Source
const ( AUDIT_PAUSED string = "Paused" AUDIT_RESUMED string = "Resumed" )
View Source
const ( PipelinePrefix = "pipeline:" PipelineRunPrefix = "pipelinerun:" )
Variables ¶
View Source
var ( ErrReachedTerminalState = errors.New("pipeline rollout reached terminal state") ErrStageInProgress = errors.New("pipeline stage still in progress") )
Functions ¶
func ApprovePipelineRun ¶
func ApprovePipelineRunUI ¶
func CreatePipeline ¶
func GetPipelineRunCount ¶
func LockPipelineUI ¶
func PausePipelineRunUI ¶
func ResumePipelineRunUI ¶
func RunPipeline ¶
func RunPipelineUI ¶
func ShowAllPipelineRuns ¶
func ShowAllPipelines ¶
func ShowAllPipelines() error
func ShowPipeline ¶
func ShowPipelineRun ¶
func UnlockPipelineUI ¶
Types ¶
type DatadogInfo ¶
type MonitorInfo ¶
type MonitorInfo struct {
// Monitor workflow state
Workflow WorkflowInfo `json:"workflow,omitempty"`
Datadog *DatadogInfo `json:"datadog,omitempty"`
}
type MonitorState ¶
type MonitoringController ¶
type MonitoringController struct {
*DatadogInfo
}
func (*MonitoringController) ExternalMonitoring ¶
func (m *MonitoringController) ExternalMonitoring(_ []*core.ClientState) error
type Pipeline ¶
type PipelineRun ¶
type PipelineRun struct {
Id string `json:"id"`
PipelineName string `json:"name"`
Stages []StageRun `json:"stages"`
State string `json:"state"`
Created time.Time `json:"created"`
Updated time.Time `json:"updated"`
Inputs map[string]string `json:"input"`
Paused bool `json:"paused"`
Version string `json:"version"`
Trigger TriggerMetadata `json:"trigger_metadata"`
}
func GetPipelineRun ¶
func GetPipelineRun(ctx context.Context, name, id string) (*PipelineRun, error)
func GetPipelineRuns ¶
func GetPipelineRuns(ctx context.Context, name string) ([]*PipelineRun, error)
func GetPipelineRunsN ¶
type StageRun ¶
type StageRun struct {
Name string `json:"name"`
State string `json:"state"`
Url string `json:"url"`
RunId string `json:"run_id"`
Started time.Time `json:"started"`
Completed time.Time `json:"completed"`
Title string `json:"title"`
Reason string `json:"reason"`
Input map[string]string `json:"input"`
Rollback *StageRun `json:"rollback,omitempty"`
Metadata StageRunMetadata `json:"metadata,omitempty"`
ConcurrentRunId string `json:"concurrent"`
}
type StageRunApproval ¶
type StageRunMetadata ¶
type StageRunMetadata struct {
Approval StageRunApproval `json:"approval,omitempty"`
}
type State ¶
type State string
const ( APP_NAME = "pippy" SUCCESS State = "Success" FAILED State = "Failed" IN_PROGRESS State = "InProgress" PENDING_APPROVAL State = "PendingApproval" PAUSED State = "Paused" ROLLBACK State = "Rollback" CONCURRENT_ERROR State = "ConcurrentError" CANCELED State = "Canceled" LOCKED State = "Locked" )
type TriggerMetadata ¶
type WorkflowInfo ¶
Click to show internal directories.
Click to hide internal directories.