bootstrap

package
v1.29.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TokenIDBytes is the length of the byte array to generate tokenID.
	TokenIDBytes = 3

	// TokenSecretBytes is the length of the byte array to generate tokenSecret.
	TokenSecretBytes = 8
)

Variables

This section is empty.

Functions

func GenerateTokenID added in v1.18.0

func GenerateTokenID() (string, error)

GenerateTokenID generates tokenID.

func GenerateTokenSecret

func GenerateTokenSecret() (string, error)

GenerateTokenSecret generates tokenSecret.

func TimeStringFromNow

func TimeStringFromNow(delta time.Duration) string

TimeStringFromNow returns the time as a string from now. e.g: 2019-12-03T06:30:40Z.

func WaitForBootstrapTokenSecretNotDisappear

func WaitForBootstrapTokenSecretNotDisappear(c clientset.Interface, tokenID string, t time.Duration) error

WaitForBootstrapTokenSecretNotDisappear waits for bootstrap token secret not to be disappeared and takes time for the specified timeout as success path.

func WaitForBootstrapTokenSecretToDisappear

func WaitForBootstrapTokenSecretToDisappear(c clientset.Interface, tokenID string) error

WaitForBootstrapTokenSecretToDisappear waits for bootstrap token secret to be disappeared.

func WaitForSignedClusterInfoByBootstrapTokenToDisappear

func WaitForSignedClusterInfoByBootstrapTokenToDisappear(c clientset.Interface, tokenID string) error

WaitForSignedClusterInfoByBootstrapTokenToDisappear waits for signed cluster info to be disappeared by bootstrap token.

func WaitForSignedClusterInfoGetUpdatedByBootstrapToken

func WaitForSignedClusterInfoGetUpdatedByBootstrapToken(c clientset.Interface, tokenID string, signedToken string) error

WaitForSignedClusterInfoGetUpdatedByBootstrapToken waits for signed cluster info to be updated by bootstrap token.

func WaitforSignedClusterInfoByBootStrapToken

func WaitforSignedClusterInfoByBootStrapToken(c clientset.Interface, tokenID string) error

WaitforSignedClusterInfoByBootStrapToken waits for signed cluster info by bootstrap token.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL