Documentation
¶
Index ¶
Constants ¶
const Version = "0.2.3"
Version is the application version.
Variables ¶
var Revision = "HEAD"
Revision is the source revision, set at build time.
Functions ¶
func RunRunnerGuard ¶ added in v0.2.3
RunRunnerGuard supervises a runner using the inherited controller-liveness and exit-report descriptors and the process's standard streams.
func RunRunnerUser ¶ added in v0.2.3
RunRunnerUser executes a delegated runner operation using the process's standard streams. A non-empty runner selects the launch protocol.
Types ¶
type ApplyResult ¶ added in v0.0.2
type ApplyResult struct {
Status *Status
Results []OperationResult
}
ApplyResult includes the applied snapshot and individual reconciliation results.
type DaemonInfo ¶ added in v0.0.2
type DaemonInfo struct {
UID int `json:"uid"`
Socket string `json:"socket"`
Status Status `json:"status"`
}
DaemonInfo identifies an accessible daemon and its running snapshot.
func ListDaemons ¶ added in v0.0.2
func ListDaemons(ctx context.Context, config string) ([]DaemonInfo, error)
ListDaemons finds responsive daemons accessible to the management user. A nonempty config path limits discovery to that configuration.
type OperationError ¶
type OperationError string
OperationError reports a management failure returned with the daemon's results.
func (OperationError) Error ¶
func (e OperationError) Error() string
type OperationResult ¶
type RunState ¶
type RunState struct {
Schema int `json:"schema"`
RunID string `json:"runId"`
TargetID string `json:"targetId"`
// Retained for existing state files, not used to identify registrations.
ScopeRef string `json:"scopeRef,omitempty"`
ScopeURL string `json:"scopeUrl"`
GroupName string `json:"groupName"`
GroupID int `json:"groupId"`
ScaleSetName string `json:"scaleSetName"`
ScaleSetID int `json:"scaleSetId"`
RunnerName string `json:"runnerName"`
RunnerID int `json:"runnerId,omitempty"`
User string `json:"user"`
UID int `json:"uid"`
Home string `json:"home"`
RunnerDir string `json:"runnerDir"`
Workspace string `json:"workspace"`
Phase string `json:"phase"`
Process procgroup.ProcessIdentity `json:"process"`
Members []procgroup.ProcessIdentity `json:"members,omitempty"`
UpdatedAt time.Time `json:"updatedAt"`
StartedAt time.Time `json:"startedAt,omitempty"`
Ready bool `json:"ready"`
Busy bool `json:"busy"`
ProcessDone bool `json:"processDone"`
Error string `json:"error,omitempty"`
}
type Status ¶
type Status struct {
Config string `json:"config"`
Capacity int `json:"capacity"`
Occupied int `json:"occupied"`
Targets []TargetStatus `json:"targets"`
Runs []*RunState `json:"runs"`
Problems []Problem `json:"problems"`
}
type TargetStatus ¶
type TargetStatus struct {
ID string `json:"id"`
Scope string `json:"scope"`
RunnerGroup string `json:"runnerGroup"`
ScaleSet string `json:"scaleSet"`
Assigned int `json:"assignedJobs"`
Pending int `json:"pendingAcquisitions"`
Active int `json:"activeRunners"`
Draining bool `json:"draining"`
Forced bool `json:"forced"`
Fault string `json:"fault,omitempty"`
ScaleSetID int `json:"scaleSetId,omitempty"`
}
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package appsetup creates a private GitHub App from a Manifest and configures one GitHub.com target without starting or reconfiguring the daemon.
|
Package appsetup creates a private GitHub App from a Manifest and configures one GitHub.com target without starting or reconfiguring the daemon. |
|
ghalet
command
|
|
|
Package config loads and validates ghalet settings and storage policy.
|
Package config loads and validates ghalet settings and storage policy. |
|
Package credentialstore manages encrypted systemd credentials for ghalet.
|
Package credentialstore manages encrypted systemd credentials for ghalet. |
|
Package fshelper provides directory validation and atomic file writes for ghalet's managed files.
|
Package fshelper provides directory validation and atomic file writes for ghalet's managed files. |
|
Package logreduct masks registered secrets in log text and slog attributes.
|
Package logreduct masks registered secrets in log text and slog attributes. |
|
Package procgroup verifies and terminates process groups using kernel identities.
|
Package procgroup verifies and terminates process groups using kernel identities. |
|
Package runnerdist downloads, verifies, caches, and extracts GitHub Actions runner distributions.
|
Package runnerdist downloads, verifies, caches, and extracts GitHub Actions runner distributions. |
|
Package runnerlog collects, redacts, archives, and expires runner logs.
|
Package runnerlog collects, redacts, archives, and expires runner logs. |
