e2e

package
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 12, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

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 DeleteInstance(name string, forceRemove bool)

func DeleteOrgPool

func DeleteOrgPool(orgID, orgPoolID string)

func DeleteRepoPool

func DeleteRepoPool(repoID, repoPoolID string)

func DisableRepoPool

func DisableRepoPool(repoID, repoPoolID string)

func FirstRun

func FirstRun(adminUsername, adminPassword, adminFullName, adminEmail string) *params.User

func GetControllerInfo

func GetControllerInfo() *params.ControllerInfo

func GetMetricsToken

func GetMetricsToken()

func GetOrgPool

func GetOrgPool(orgID, orgPoolID string) *params.Pool

func GetRepoPool

func GetRepoPool(repoID, repoPoolID string) *params.Pool

func GhOrgRunnersCleanup

func GhOrgRunnersCleanup(ghToken, orgName, controllerID string) error

func GhOrgWebhookCleanup

func GhOrgWebhookCleanup(ghToken, webhookURL, orgName string) error

func GhRepoRunnersCleanup

func GhRepoRunnersCleanup(ghToken, orgName, repoName, controllerID string) error

func GhRepoWebhookCleanup

func GhRepoWebhookCleanup(ghToken, webhookURL, orgName, repoName string) error

func GracefulCleanup

func GracefulCleanup()

func InitClient

func InitClient(baseURL string)

func InstallOrgWebhook

func InstallOrgWebhook(id string) *params.HookInfo

func InstallRepoWebhook

func InstallRepoWebhook(id string) *params.HookInfo

func ListCredentials

func ListCredentials() params.Credentials

func ListProviders

func ListProviders() params.Providers

func Login

func Login(username, password string)

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 UpdateOrgPool(orgID, orgPoolID string, maxRunners, minIdleRunners uint) *params.Pool

func UpdateRepo

func UpdateRepo(id, credentialsName string) *params.Repository

func UpdateRepoPool

func UpdateRepoPool(repoID, repoPoolID string, maxRunners, minIdleRunners uint) *params.Pool

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 WaitInstanceToBeRemoved(name string, timeout time.Duration) error

func WaitOrgRunningIdleInstances

func WaitOrgRunningIdleInstances(orgID string, timeout time.Duration)

func WaitPoolInstances

func WaitPoolInstances(poolID string, status commonParams.InstanceStatus, runnerStatus params.RunnerStatus, timeout time.Duration) error

func WaitRepoRunningIdleInstances

func WaitRepoRunningIdleInstances(repoID string, timeout time.Duration)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL