Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // GoalCheckerInterval is interval time of check deleting runner GoalCheckerInterval = 1 * time.Minute // MustGoalTime is hard limit for idle runner MustGoalTime = 1 * time.Hour // MustRunningTime is set time of instance create + download binaries + etc MustRunningTime = 5 * time.Minute // CheckPermissionInterval is interval time of check permission CheckPermissionInterval = 10 * time.Second )
View Source
var ( // StatusWillDelete will delete target in GitHub runners StatusWillDelete = "offline" // StatusSleep is sleeping runners StatusSleep = "online" )
View Source
var (
ErrNotWillDeleteRunner = fmt.Errorf("not will delete runner")
)
Error values
Functions ¶
func ToReason ¶ added in v1.3.0
func ToReason(status string) datastore.RunnerStatus
ToReason convert status from GitHub to datastore.RunnerStatus
Types ¶
Click to show internal directories.
Click to hide internal directories.