runners

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: AGPL-3.0 Imports: 4 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CountRunnersBySource

func CountRunnersBySource(runnerMap map[int64]RunnerResult) (projectCount, groupCount int)

CountRunnersBySource counts runners by their source type (project or group).

func ExtractUniqueTags

func ExtractUniqueTags(runners []*gitlab.RunnerDetails) []string

ExtractUniqueTags extracts all unique tags from a list of runner details.

func FormatTagsString

func FormatTagsString(tags []string) string

FormatTagsString formats a slice of tags as a comma-separated string.

func ListAllAvailableRunners

func ListAllAvailableRunners(gitlabUrl string, apiToken string)

func MergeRunnerMaps

func MergeRunnerMaps(projectRunners, groupRunners map[int64]RunnerResult) map[int64]RunnerResult

MergeRunnerMaps merges project and group runner maps with deduplication. Project runners take precedence over group runners.

Types

type RunnerInfo

type RunnerInfo struct {
	ID          int
	Name        string
	Description string
	Type        string
	Paused      bool
	Tags        []string
	SourceType  string
	SourceName  string
}

func FormatRunnerInfo

func FormatRunnerInfo(result RunnerResult, details *gitlab.RunnerDetails) *RunnerInfo

FormatRunnerInfo formats a RunnerResult and RunnerDetails into a RunnerInfo struct.

type RunnerResult

type RunnerResult struct {
	Runner  *gitlab.Runner
	Project *gitlab.Project
	Group   *gitlab.Group
}

Jump to

Keyboard shortcuts

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