status

package
v2.57.2 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetStatusColorCode

func GetStatusColorCode(status PipelineStatus) color.Color

GetStatusColorCode returns gokit/color.Color based on status input parameter

Types

type PipelineStatus

type PipelineStatus string
const (
	QUEUED           PipelineStatus = "queued"
	PROCESSING       PipelineStatus = "processing"
	SUCCESS          PipelineStatus = "success"
	FAILURE          PipelineStatus = "failure"
	ERROR            PipelineStatus = "error"
	CANCELLED        PipelineStatus = "cancelled"
	TIMEOUT          PipelineStatus = "timeout"
	WAITING          PipelineStatus = "waiting"
	SKIPPED          PipelineStatus = "skipped"
	UNSTABLE         PipelineStatus = "unstable"
	STOPPED          PipelineStatus = "stopped"
	DELETED          PipelineStatus = "deleted"
	CACHED           PipelineStatus = "cached"
	CANCELLING       PipelineStatus = "cancelling"
	TIMINGOUT        PipelineStatus = "timingOut"
	CREATING         PipelineStatus = "creating"
	READY            PipelineStatus = "ready"
	ONLINE           PipelineStatus = "online"
	OFFLINE          PipelineStatus = "offline"
	UNHEALTHY        PipelineStatus = "unhealthy"
	ONLINEREQUESTED  PipelineStatus = "onlineRequested"
	OFFLINEREQUESTED PipelineStatus = "offlineRequested"
	PENDINGAPPROVAL  PipelineStatus = "pendingApproval"
	NOTDEFINED       PipelineStatus = "notDefined"
)

func GetPipelineStatus

func GetPipelineStatus(statusCode int) PipelineStatus

GetPipelineStatus based on pipelines reStatus code returns respective reStatus in string format for eq:- 4002 return success

Jump to

Keyboard shortcuts

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