Documentation ¶
Index ¶
- Constants
- func CreateBasicClientConfig(clusterName string, serverURL string, caCert []byte) *clientcmdapi.Config
- func GenerateToken(s *kubeadmapi.Secrets) error
- func MakeClientConfigWithCerts(config *clientcmdapi.Config, clusterName string, userName string, ...) *clientcmdapi.Config
- func MakeClientConfigWithToken(config *clientcmdapi.Config, clusterName string, userName string, token string) *clientcmdapi.Config
- func RandBytes(length int) ([]byte, string, error)
- func UseGivenTokenIfValid(s *kubeadmapi.Secrets) (bool, error)
- func WriteKubeconfigIfNotExists(name string, kubeconfig *clientcmdapi.Config) error
Constants ¶
View Source
const ( TokenIDLen = 6 TokenBytes = 8 )
Variables ¶
This section is empty.
Functions ¶
func CreateBasicClientConfig ¶
func CreateBasicClientConfig(clusterName string, serverURL string, caCert []byte) *clientcmdapi.Config
func GenerateToken ¶
func GenerateToken(s *kubeadmapi.Secrets) error
func MakeClientConfigWithCerts ¶
func MakeClientConfigWithCerts(config *clientcmdapi.Config, clusterName string, userName string, clientKey []byte, clientCert []byte) *clientcmdapi.Config
func MakeClientConfigWithToken ¶
func MakeClientConfigWithToken(config *clientcmdapi.Config, clusterName string, userName string, token string) *clientcmdapi.Config
func UseGivenTokenIfValid ¶
func UseGivenTokenIfValid(s *kubeadmapi.Secrets) (bool, error)
func WriteKubeconfigIfNotExists ¶
func WriteKubeconfigIfNotExists(name string, kubeconfig *clientcmdapi.Config) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.