swagger:model ScaleSet
| 619 | |
| 620 | // swagger:model ScaleSet |
| 621 | type ScaleSet struct { |
| 622 | RunnerPrefix |
| 623 | |
| 624 | CreatedAt time.Time `json:"created_at,omitempty"` |
| 625 | UpdatedAt time.Time `json:"updated_at,omitempty"` |
| 626 | |
| 627 | ID uint `json:"id,omitempty"` |
| 628 | ScaleSetID int `json:"scale_set_id,omitempty"` |
| 629 | Name string `json:"name,omitempty"` |
| 630 | DisableUpdate bool `json:"disable_update"` |
| 631 | |
| 632 | State ScaleSetState `json:"state"` |
| 633 | ExtendedState string `json:"extended_state,omitempty"` |
| 634 | |
| 635 | ProviderName string `json:"provider_name,omitempty"` |
| 636 | MaxRunners uint `json:"max_runners,omitempty"` |
| 637 | MinIdleRunners uint `json:"min_idle_runners,omitempty"` |
| 638 | Image string `json:"image,omitempty"` |
| 639 | Flavor string `json:"flavor,omitempty"` |
| 640 | OSType commonParams.OSType `json:"os_type,omitempty"` |
| 641 | OSArch commonParams.OSArch `json:"os_arch,omitempty"` |
| 642 | Enabled bool `json:"enabled,omitempty"` |
| 643 | Instances []Instance `json:"instances,omitempty"` |
| 644 | DesiredRunnerCount int `json:"desired_runner_count,omitempty"` |
| 645 | EnableShell bool `json:"enable_shell"` |
| 646 | |
| 647 | // Generation holds the numeric generation of the scaleset. This number |
| 648 | // will be incremented, every time certain settings of the scaleset, which |
| 649 | // may influence how runners are created (flavor, specs, image) are changed. |
| 650 | // When a runner is created, this generation will be copied to the runners as |
| 651 | // well. That way if some settings diverge, we can target those runners |
| 652 | // to be recreated. |
| 653 | Generation uint64 `json:"generation"` |
| 654 | |
| 655 | Endpoint ForgeEndpoint `json:"endpoint,omitempty"` |
| 656 | |
| 657 | RunnerBootstrapTimeout uint `json:"runner_bootstrap_timeout,omitempty"` |
| 658 | // ExtraSpecs is an opaque raw json that gets sent to the provider |
| 659 | // as part of the bootstrap params for instances. It can contain |
| 660 | // any kind of data needed by providers. The contents of this field means |
| 661 | // nothing to garm itself. We don't act on the information in this field at |
| 662 | // all. We only validate that it's a proper json. |
| 663 | ExtraSpecs json.RawMessage `json:"extra_specs,omitempty"` |
| 664 | // GithubRunnerGroup is the github runner group in which the runners will be added. |
| 665 | // The runner group must be created by someone with access to the enterprise. |
| 666 | GitHubRunnerGroup string `json:"github-runner-group,omitempty"` |
| 667 | |
| 668 | Tags []Tag `json:"tags,omitempty"` |
| 669 | StatusMessages []StatusMessage `json:"status_messages"` |
| 670 | |
| 671 | RepoID string `json:"repo_id,omitempty"` |
| 672 | RepoName string `json:"repo_name,omitempty"` |
| 673 | |
| 674 | OrgID string `json:"org_id,omitempty"` |
| 675 | OrgName string `json:"org_name,omitempty"` |
| 676 | |
| 677 | EnterpriseID string `json:"enterprise_id,omitempty"` |
| 678 | EnterpriseName string `json:"enterprise_name,omitempty"` |
nothing calls this directly
no outgoing calls
no test coverage detected