util

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 3 more Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CommitId                         = "COMMIT_ID"
	Tag                              = "TAG"
	Local                            = "LOCAL"
	KubeconfigPath                   = "KUBECONFIG_PATH"
	SecretId                         = "TKE_SECRET_ID"
	SecretKey                        = "TKE_SECRET_KEY"
	NocalhostVClusterHostForTest     = "NOCALHOST_VCLUSTER_HOST_FOR_TEST"
	NocalhostVClusterEmailForTest    = "NOCALHOST_VCLUSTER_EMAIL_FOR_TEST"
	NocalhostVClusterPasswordForTest = "NOCALHOST_VCLUSTER_PASSWORD_FOR_TEST"
	WebDevSpace                      = "/v1/dev_space"
	WebDevSpaceStatus                = "/v1/dev_space/status"
	WebDevSpaceDetail                = "/v1/dev_space/%v/detail"
	WebServerServiceAccountApi       = "/v1/plugin/service_accounts"
	TestcaseWebhook                  = "TESTCASE_WEBHOOK"
	TimeoutWebhook                   = "TIMEOUT_WEBHOOK"
	HelmRepoUsername                 = "HELM_REPO_USERNAME"
	HelmRepoPassword                 = "HELM_REPO_PASSWORD"
)

Variables

This section is empty.

Functions

func Retry

func Retry(suiteName string, funcs []func() error)

func RetryFunc

func RetryFunc(fun func() error) error

func TimeoutChecker

func TimeoutChecker(d time.Duration, cancanFunc func())

func TimeoutFunc

func TimeoutFunc(d time.Duration, do, compensating func() error) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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