Documentation ¶
Index ¶
- func AddFinalizer(obj metav1.Object, finalizers ...string)
- func GenerateToken() string
- func HasAnyFinalizer(o metav1.Object, names ...string) bool
- func HasFinalizer(o metav1.Object, names ...string) bool
- func HasOnlyFinalizer(o metav1.Object, name string) bool
- func RemoveFinalizer(obj metav1.Object, toRemove string)
- func ValidateKubernetesToken(token string) error
- func ValidateSecretKeySelector(selector *providerconfig.GlobalSecretKeySelector, key string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFinalizer ¶
AddFinalizer will add the given finalizer to the object. It uses a StringSet to avoid duplicates
func GenerateToken ¶
func GenerateToken() string
GenerateToken generates a new, random token that can be used as an admin and kubelet token.
func HasFinalizer ¶
HasFinalizer tells if a object has all the given finalizers
func HasOnlyFinalizer ¶
HasOnlyFinalizer tells if an object has only the given finalizer
func RemoveFinalizer ¶
RemoveFinalizer removes the given finalizer from the object
func ValidateKubernetesToken ¶
ValidateKubernetesToken checks if a given token is syntactically correct.
func ValidateSecretKeySelector ¶
func ValidateSecretKeySelector(selector *providerconfig.GlobalSecretKeySelector, key string) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.