Documentation
¶
Index ¶
- func ApplyPeerWithRetry(client clientset.Interface, peer *v1alpha1.Peer) error
- func ContainsPrefix(slice []string, s string) bool
- func ContainsString(slice []string, s string) bool
- func CopyStrings(s []string) []string
- func DeletePeerWithRetry(client clientset.Interface, name, namespace string) error
- func DerivedName(clusterID, namespace, seName string) string
- func MaxInt(a, b int) int
- func MaxInt32(a, b int32) int32
- func MinInt(a, b int) int
- func MinInt32(a, b int32) int32
- func RemoveString(slice []string, s string) []string
- func ResourceNeedResync(current pkgruntime.Object, modified pkgruntime.Object, ignoreAdd bool) bool
- func SortStrings(s []string) []string
- func SumArrayInt32(array []int32) (sum int32)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyPeerWithRetry ¶
ApplyEndPointSliceWithRetry create or update existed slices.
func ContainsPrefix ¶
ContainsPrefix checks if a given slice of strings start with the provided string.
func ContainsString ¶
ContainsString checks if a given slice of strings contains the provided string.
func CopyStrings ¶
CopyStrings copies the contents of the specified string slice into a new slice.
func DeletePeerWithRetry ¶
func DerivedName ¶
func RemoveString ¶
RemoveString returns a newly created []string that contains all items from slice that are not equal to s.
func ResourceNeedResync ¶
func ResourceNeedResync(current pkgruntime.Object, modified pkgruntime.Object, ignoreAdd bool) bool
current is deployed resource, modified is changed resource. ignoreAdd is true if you want to ignore add action. The function will return the bool value to indicate whether to sync back the current object.
func SortStrings ¶
SortStrings sorts the specified string slice in place. It returns the same slice that was provided in order to facilitate method chaining.
func SumArrayInt32 ¶
Types ¶
This section is empty.