Documentation ¶
Index ¶
- Constants
- Variables
- func OutputRevisonRunStatus(renderedPipelineruns map[int][]string)
- func PrintTable(printObject interface{})
- func RenderPipelineRun(PipelineRunTemplate string, pr PipelineRun) (string, error)
- func RenderPipelineRuns(gRPCRequest *revisionrun.CreateRevisionRunRequest) (renderedPipelineruns map[int][]string)
- func SendStageToMessageQueue(stageID string)
- func SetRevisionRunStatusInRedis(redisJSONHandler *rejson.Handler, revisionRunStatusID, updatedMessage string, ...)
- func SetStage(stages map[string]int, stage string) (updatedValue int)
- func SetStageStatusInRedis(redisJSONHandler *rejson.Handler, stageID, updatedMessage string, ...)
- type PipelineRun
- type PipelineRunStatus
- type RevisionRunStatus
- type StageStatus
- type TaskRunTemplate
- type VariableDelimiter
- type VolumeClaimTemplate
- type Workspace
Constants ¶
View Source
const PipelineRunTemplate = `` /* 1617-byte string literal not displayed */
View Source
const RevisionRunTemplate = `` /* 194-byte string literal not displayed */
Variables ¶
View Source
var Patterns = map[string]VariableDelimiter{ "curly": VariableDelimiter{"{{", "}}", `\{\{(.*?)\}\}`}, "square": VariableDelimiter{"[[", "]]", `\[\[(.*?)\]\]`}, }
Functions ¶
func OutputRevisonRunStatus ¶
func PrintTable ¶
func PrintTable(printObject interface{})
func RenderPipelineRun ¶ added in v0.4.8
func RenderPipelineRun(PipelineRunTemplate string, pr PipelineRun) (string, error)
func RenderPipelineRuns ¶
func RenderPipelineRuns(gRPCRequest *revisionrun.CreateRevisionRunRequest) (renderedPipelineruns map[int][]string)
func SendStageToMessageQueue ¶
func SendStageToMessageQueue(stageID string)
func SetRevisionRunStatusInRedis ¶ added in v0.4.49
func SetRevisionRunStatusInRedis(redisJSONHandler *rejson.Handler, revisionRunStatusID, updatedMessage string, revisionRun RevisionRunStatus, print bool)
SET REVISIONRUN STATUS IN REDIS
func SetStageStatusInRedis ¶ added in v0.4.47
func SetStageStatusInRedis(redisJSONHandler *rejson.Handler, stageID, updatedMessage string, stageStatus StageStatus, print bool)
SET STAGE STATUS IN REDIS
Types ¶
type PipelineRun ¶
type PipelineRun struct { Name string RevisionRunAuthor string RevisionRunRepoName string RevisionRunRepoUrl string RevisionRunCommitId string RevisionRunCreation string RevisionRunDate string CanFail bool ResolverParams map[string]string Namespace string PipelineRef string TimeoutPipeline string Params map[string]string ListParams map[string][]string Workspaces []Workspace NamePrefix string NameSuffix string Stage string TaskRunTemplate TaskRunTemplate VolumeClaimTemplates []VolumeClaimTemplate }
type PipelineRunStatus ¶
type PipelineRunStatus struct { Stage int PipelineRunName string CanFail bool LastUpdated string Status string }
func GetPipelineRunStatus ¶ added in v0.4.28
func GetPipelineRunStatus(jsonKey string, redisJSONHandler *rejson.Handler) (pipelineRunStatus PipelineRunStatus)
type RevisionRunStatus ¶
type RevisionRunStatus struct { RevisionRun string CountStages int CountPipelineRuns int LastUpdated string Status string }
func GetRevisionRunFromRedis ¶ added in v0.4.44
func GetRevisionRunFromRedis(redisJSONHandler *rejson.Handler, revisionRunStatusID string, print bool) (revisionRunFromRedis RevisionRunStatus)
GET REVISIONRUN STATUS FROM REDIS
type StageStatus ¶
func GetStageFromRedis ¶ added in v0.4.49
func GetStageFromRedis(redisJSONHandler *rejson.Handler, stageID string, print bool) (stageStatus StageStatus)
GET STAGE STATUS FROM REDIS
func GetStageStatus ¶ added in v0.4.30
func GetStageStatus(jsonKey string, redisJSONHandler *rejson.Handler) (stageStatus StageStatus)
type TaskRunTemplate ¶ added in v0.4.8
type TaskRunTemplate struct {
// contains filtered or unexported fields
}
type VariableDelimiter ¶
type VariableDelimiter struct {
// contains filtered or unexported fields
}
type VolumeClaimTemplate ¶
Click to show internal directories.
Click to hide internal directories.