Documentation ¶
Overview ¶
copied from clusternet.
Index ¶
- func AesDecrypt(decryptStr string, key []byte, iv string) (string, error)
- func AesEncrypt(encryptStr string, key []byte, iv string) (string, error)
- func CreateKubeConfigWithToken(serverURL, token string, caCert []byte) *clientcmdapi.Config
- func CreateSign(appKey, appSecret string) string
- func GenerateKubeConfigFromToken(serverURL, token string, caCert []byte, flowRate int) (*rest.Config, error)
- func Int64Addr(i int64) *int64
- func LoadsKubeConfig(kubeConfigPath string, flowRate int) (*rest.Config, error)
- func MD5(str string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AesEncrypt ¶
加密 aes_128_cbc
func CreateKubeConfigWithToken ¶
func CreateKubeConfigWithToken(serverURL, token string, caCert []byte) *clientcmdapi.Config
CreateKubeConfigWithToken creates a KubeConfig object with access to the API server with a token
func CreateSign ¶
func GenerateKubeConfigFromToken ¶
func GenerateKubeConfigFromToken(serverURL, token string, caCert []byte, flowRate int) (*rest.Config, error)
GenerateKubeConfigFromToken composes a kubeconfig from token
func LoadsKubeConfig ¶
LoadsKubeConfig tries to load kubeconfig from specified kubeconfig file or in-cluster config
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.