Documentation
¶
Overview ¶
Package runnerinventory models the execution capacity exposed by the single-process git-ci service and performs provider-correct label matching.
Index ¶
Constants ¶
View Source
const ( ProviderGitHub = "github" ProviderGitLab = "gitlab" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Inventory ¶
type Inventory struct {
Runners []Runner `json:"items"`
}
func (Inventory) Match ¶
func (inventory Inventory) Match(requirement Requirement) Match
type Match ¶
type Match struct {
Evaluated bool `json:"evaluated"`
Available bool `json:"available"`
RunnerID string `json:"runnerId,omitempty"`
Runner string `json:"runner,omitempty"`
Required []string `json:"required,omitempty"`
Missing []string `json:"missing,omitempty"`
Group string `json:"group,omitempty"`
Reason string `json:"reason"`
}
type Requirement ¶
type Runner ¶
type Runner struct {
ID string `json:"id"`
Name string `json:"name"`
Status string `json:"status"`
Mode string `json:"mode"`
OS string `json:"os"`
Architecture string `json:"architecture"`
Group string `json:"group"`
Labels []string `json:"labels"`
Tags []string `json:"tags"`
DockerAvailable bool `json:"dockerAvailable"`
RunUntagged bool `json:"runUntagged"`
MaxParallel int `json:"maxParallel"`
}
Click to show internal directories.
Click to hide internal directories.