Help us shape the future of Go! Take the 2026 Go Developer Survey

runners

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

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