Documentation ¶
Index ¶
- Variables
- func Close(c Closer)
- func DeleteFile(path string)
- func FirstNonEmpty(args ...string) string
- func MakeSignature(size int) ([]byte, error)
- func RetryUntilSucceed(action func() error, desc string, ctx context.Context, timeout time.Duration)
- func RunAllAsync(count int, action func(i int) error) (err error)
- func Wait(timeout uint, f func(chan<- bool)) bool
- type Closer
- type KeyLock
Constants ¶
This section is empty.
Variables ¶
var ( // location to use for generating temporary files, such as the kubeconfig needed by kubectl TempDir string NopCloser = NewCloser(func() error { return nil }) )
Functions ¶
func Close ¶
func Close(c Closer)
Close is a convenience function to close a object that has a Close() method, ignoring any errors Used to satisfy errcheck lint
func DeleteFile ¶ added in v0.11.0
func DeleteFile(path string)
DeleteFile is best effort deletion of a file
func FirstNonEmpty ¶ added in v0.11.0
func MakeSignature ¶ added in v0.6.0
MakeSignature generates a cryptographically-secure pseudo-random token, based on a given number of random bytes, for signing purposes.
func RetryUntilSucceed ¶ added in v0.11.0
func RetryUntilSucceed(action func() error, desc string, ctx context.Context, timeout time.Duration)
RetryUntilSucceed keep retrying given action with specified timeout until action succeed or specified context is done.
func RunAllAsync ¶ added in v0.11.0
func Wait ¶ added in v0.4.1
Wait takes a check interval and timeout and waits for a function to return `true`. Wait will return `true` on success and `false` on timeout. The passed function, in turn, should pass `true` (or anything, really) to the channel when it's done. Pass `0` as the timeout to run infinitely until completion.
Types ¶
Directories ¶
Path | Synopsis |
---|---|
app
|
|
normalizers
Code generated by github.com/argoproj/argo-cd/hack/known_types.
|
Code generated by github.com/argoproj/argo-cd/hack/known_types. |
Utility functions for managing HTTPS server certificates and SSH known host entries for ArgoCD
|
Utility functions for managing HTTPS server certificates and SSH known host entries for ArgoCD |
zjwt
The package provides a way to create compact JWTs, "zJWT".
|
The package provides a way to create compact JWTs, "zJWT". |
Package kube provides helper utilities common for kubernetes
|
Package kube provides helper utilities common for kubernetes |