server

package
v0.4.59 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: GPL-3.0 Imports: 14 Imported by: 1

Documentation

Index

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 OutputRevisonRunStatus(renderedPipelineruns map[int][]string)

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 SetStage added in v0.4.1

func SetStage(stages map[string]int, stage string) (updatedValue int)

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

type StageStatus struct {
	StageID           string
	CountPipelineRuns int
	LastUpdated       string
	Status            string
}

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

type VolumeClaimTemplate struct {
	Name             string
	StorageClassName string
	AccessModes      string
	Storage          string
}

type Workspace

type Workspace struct {
	Name                   string
	WorkspaceKind          string
	WorkspaceRef           string
	WorkspaceKindShortName string
}

Jump to

Keyboard shortcuts

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