func newTokenSecret(tokenID, tokenSecret string) *v1.Secret { … }
func GenerateTokenID() (string, error) { … }
func GenerateTokenSecret() (string, error) { … }
func randBytes(length int) (string, error) { … }
func addSecretExpiration(s *v1.Secret, expiration string) { … }
func TimeStringFromNow(delta time.Duration) string { … }
func WaitforSignedClusterInfoByBootStrapToken(c clientset.Interface, tokenID string) error { … }
func WaitForSignedClusterInfoGetUpdatedByBootstrapToken(c clientset.Interface, tokenID string, signedToken string) error { … }
func WaitForSignedClusterInfoByBootstrapTokenToDisappear(c clientset.Interface, tokenID string) error { … }
func WaitForBootstrapTokenSecretToDisappear(c clientset.Interface, tokenID string) error { … }
func WaitForBootstrapTokenSecretNotDisappear(c clientset.Interface, tokenID string, t time.Duration) error { … }