Documentation ¶
Index ¶
- func CheckDuplicate(list []string) []string
- func ContainsString(slice []string, s string) bool
- func DumpJSON(o interface{}) string
- func GetPodNames(pods []*v1.Pod) sets.String
- func MergePods(pods1, pods2 []*v1.Pod) []*v1.Pod
- func RemoveString(slice []string, s string) (result []string)
- func SlowStartBatch(count int, initialBatchSize int, fn func(index int) error) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckDuplicate ¶
CheckDuplicate finds if there are duplicated items in a list.
func ContainsString ¶
func GetPodNames ¶
GetPodNames returns names of the given Pods array
func RemoveString ¶
func SlowStartBatch ¶
SlowStartBatch tries to call the provided function a total of 'count' times, starting slow to check for errors, then speeding up if calls succeed.
It groups the calls into batches, starting with a group of initialBatchSize. Within each batch, it may call the function multiple times concurrently with its index.
If a whole batch succeeds, the next batch may get exponentially larger. If there are any failures in a batch, all remaining batches are skipped after waiting for the current batch to complete.
It returns the number of successful calls to the function.
Types ¶
This section is empty.