command

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New001ValidateGitState

func New001ValidateGitState() *_001

func New002PipelinesSourcesBranchSync

func New002PipelinesSourcesBranchSync() *_002

func New003PipelinesFindRun

func New003PipelinesFindRun() *_003

func New004PipelinesWaitRun

func New004PipelinesWaitRun() *_004

func New005PipelinesPrintRun

func New005PipelinesPrintRun() *_005

Types

type Command

type Command interface {
	ResolveState(ctx context.Context, state *PipedCommandState) Status
	TriggerOnFail(ctx context.Context, state *PipedCommandState) error
}

type PipedCommandState

type PipedCommandState struct {
	// git details
	HeadCommitSha string

	// pipelines details
	PipelinesSourceId int
	PipelineId        int
	RunId             int
	RunNumber         int
	RunStepIdsCsv     string
}

type Status

type Status struct {
	PipelinesStatus string
	Message         string
	DynamicMessage  func(size int)
	Type            StatusType
	Link            string
}

type StatusType

type StatusType string
const (
	InProgress    StatusType = "in-progress"
	Done          StatusType = "done"
	Unrecoverable StatusType = "unrecoverable"
)

Jump to

Keyboard shortcuts

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