runners

package
v0.48.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2025 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