Documentation ¶
Index ¶
- func CreateOrg(orgName, credentialsName, orgWebhookSecret string) *params.Organization
- func CreateOrgPool(orgID string, poolParams params.CreatePoolParams) *params.Pool
- func CreateRepo(orgName, repoName, credentialsName, repoWebhookSecret string) *params.Repository
- func CreateRepoPool(repoID string, poolParams params.CreatePoolParams) *params.Pool
- func DeleteInstance(name string, forceRemove bool)
- func DeleteOrgPool(orgID, orgPoolID string)
- func DeleteRepoPool(repoID, repoPoolID string)
- func DisableRepoPool(repoID, repoPoolID string)
- func FirstRun(adminUsername, adminPassword, adminFullName, adminEmail string) *params.User
- func GetControllerInfo() *params.ControllerInfo
- func GetMetricsToken()
- func GetOrgPool(orgID, orgPoolID string) *params.Pool
- func GetRepoPool(repoID, repoPoolID string) *params.Pool
- func GhOrgRunnersCleanup(ghToken, orgName, controllerID string) error
- func GhOrgWebhookCleanup(ghToken, webhookURL, orgName string) error
- func GhRepoRunnersCleanup(ghToken, orgName, repoName, controllerID string) error
- func GhRepoWebhookCleanup(ghToken, webhookURL, orgName, repoName string) error
- func GracefulCleanup()
- func InitClient(baseURL string)
- func InstallOrgWebhook(id string) *params.HookInfo
- func InstallRepoWebhook(id string) *params.HookInfo
- func ListCredentials() params.Credentials
- func ListProviders() params.Providers
- func Login(username, password string)
- func TriggerWorkflow(ghToken, orgName, repoName, workflowFileName, labelName string)
- func UninstallOrgWebhook(id string)
- func UninstallRepoWebhook(id string)
- func UpdateOrg(id, credentialsName string) *params.Organization
- func UpdateOrgPool(orgID, orgPoolID string, maxRunners, minIdleRunners uint) *params.Pool
- func UpdateRepo(id, credentialsName string) *params.Repository
- func UpdateRepoPool(repoID, repoPoolID string, maxRunners, minIdleRunners uint) *params.Pool
- func ValidateJobLifecycle(label string)
- func ValidateOrgWebhookInstalled(ghToken, url, orgName string)
- func ValidateOrgWebhookUninstalled(ghToken, url, orgName string)
- func ValidateRepoWebhookInstalled(ghToken, url, orgName, repoName string)
- func ValidateRepoWebhookUninstalled(ghToken, url, orgName, repoName string)
- func WaitInstanceToBeRemoved(name string, timeout time.Duration) error
- func WaitOrgRunningIdleInstances(orgID string, timeout time.Duration)
- func WaitPoolInstances(poolID string, status commonParams.InstanceStatus, ...) error
- func WaitRepoRunningIdleInstances(repoID string, timeout time.Duration)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateOrg ¶
func CreateOrg(orgName, credentialsName, orgWebhookSecret string) *params.Organization
func CreateOrgPool ¶
func CreateOrgPool(orgID string, poolParams params.CreatePoolParams) *params.Pool
func CreateRepo ¶
func CreateRepo(orgName, repoName, credentialsName, repoWebhookSecret string) *params.Repository
func CreateRepoPool ¶
func CreateRepoPool(repoID string, poolParams params.CreatePoolParams) *params.Pool
func DeleteInstance ¶
func DeleteOrgPool ¶
func DeleteOrgPool(orgID, orgPoolID string)
func DeleteRepoPool ¶
func DeleteRepoPool(repoID, repoPoolID string)
func DisableRepoPool ¶
func DisableRepoPool(repoID, repoPoolID string)
func GetControllerInfo ¶
func GetControllerInfo() *params.ControllerInfo
func GetMetricsToken ¶
func GetMetricsToken()
func GetOrgPool ¶
func GetRepoPool ¶
func GhOrgRunnersCleanup ¶
func GhOrgWebhookCleanup ¶
func GhRepoRunnersCleanup ¶
func GhRepoWebhookCleanup ¶
func GracefulCleanup ¶
func GracefulCleanup()
func InitClient ¶
func InitClient(baseURL string)
func InstallOrgWebhook ¶
func InstallRepoWebhook ¶
func ListCredentials ¶
func ListCredentials() params.Credentials
func ListProviders ¶
func TriggerWorkflow ¶
func TriggerWorkflow(ghToken, orgName, repoName, workflowFileName, labelName string)
func UninstallOrgWebhook ¶
func UninstallOrgWebhook(id string)
func UninstallRepoWebhook ¶
func UninstallRepoWebhook(id string)
func UpdateOrg ¶
func UpdateOrg(id, credentialsName string) *params.Organization
func UpdateOrgPool ¶
func UpdateRepo ¶
func UpdateRepo(id, credentialsName string) *params.Repository
func UpdateRepoPool ¶
func ValidateJobLifecycle ¶
func ValidateJobLifecycle(label string)
func ValidateOrgWebhookInstalled ¶
func ValidateOrgWebhookInstalled(ghToken, url, orgName string)
func ValidateOrgWebhookUninstalled ¶
func ValidateOrgWebhookUninstalled(ghToken, url, orgName string)
func ValidateRepoWebhookInstalled ¶
func ValidateRepoWebhookInstalled(ghToken, url, orgName, repoName string)
func ValidateRepoWebhookUninstalled ¶
func ValidateRepoWebhookUninstalled(ghToken, url, orgName, repoName string)
func WaitInstanceToBeRemoved ¶
func WaitPoolInstances ¶
func WaitPoolInstances(poolID string, status commonParams.InstanceStatus, runnerStatus params.RunnerStatus, timeout time.Duration) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.