Documentation ¶
Index ¶
- func AddMultipleFilters(argType string, params []string, args map[string]interface{}) (inClause string, arg map[string]interface{})
- func Chunk(chunkSize, total int, fn func(start int, end int) error) error
- func CreateRunnerLabels(id, buildID, jobID, mode, repo string) map[string]string
- func EncodeCursor(value string) string
- func EncodeOffset(value int) string
- func GenerateUUID() string
- func GetAuthorName(author *scm.Signature) string
- func GetBuildHashKey(buildID string) string
- func GetFileNameFromTestLocator(testLocator string) (fileName string)
- func GetFlakyComment(flakyTestCount int, frontendURL, gitProvider, repoSlug, buildID string) string
- func GetNucleusPodName(taskID string) string
- func GetOrgHashKey(orgID string) string
- func GetRepoSecretName(buildID string) string
- func GetRunnerNamespaceFromOrgID(orgID string) string
- func GetSpawnedPodsMapKey(buildID, taskID string) string
- func GetTokenSecretName(buildID string) string
- func Max(x, y int) int
- func Min(x, y int) int
- func QueueJobFinshed(status core.QueueStatus) bool
- func QueueStatus(status core.Status) core.QueueStatus
- func RandString(n int) string
- func Reverse(list [][]int) (reversedList [][]int)
- func TaskFinished(status core.Status) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddMultipleFilters ¶
func AddMultipleFilters(argType string, params []string, args map[string]interface{}) (inClause string, arg map[string]interface{})
AddMultipleFilters forms the IN query statements
func CreateRunnerLabels ¶
CreateRunnerLabels returns runner label
func EncodeCursor ¶
EncodeCursor base64 encode the cursor value
func GetAuthorName ¶
GetAuthorName utility function to identify name in a more reliable manner from scm
func GetBuildHashKey ¶
GetBuildHashKey generates the redis hash from buildID
func GetFileNameFromTestLocator ¶
GetFileNameFromTestLocator extracts the file name from the test locator
func GetFlakyComment ¶
func GetNucleusPodName ¶
GetNucleusPodName generates the nucleus pod name from taskID
func GetOrgHashKey ¶
GetOrgHashKey generates the redis hash from orgID
func GetRepoSecretName ¶
GetRepoSecretName returns the repo secret name for k8s resource
func GetRunnerNamespaceFromOrgID ¶
GetRunnerNamespaceFromOrgID generates the namespace from orgID
func GetSpawnedPodsMapKey ¶
GetSpawnedPodsMapKey returns the key for spawned pods map for build abort service
func GetTokenSecretName ¶
GetTokenSecretName returns the token secret name for k8s resource
func QueueJobFinshed ¶
func QueueJobFinshed(status core.QueueStatus) bool
QueueJobFinshed utility function to check if queue job finished.
func QueueStatus ¶
func QueueStatus(status core.Status) core.QueueStatus
QueueStatus utility function to map task status to queue status
func TaskFinished ¶
TaskFinished utility function to check if task finished.
Types ¶
This section is empty.