Documentation ¶
Index ¶
- func CreateCluster(host, token string, httpClient http.Client, cluster *v1alpha1.RKE1Cluster, ...) (string, error)
- func CreateKubeconfigSecret(ctx context.Context, kubeconfig []byte, clusterName string, namespace string, ...) error
- func CreateNodePool(host, token, clusterId string, httpClient http.Client, ...) error
- func CreateNodeTemplate(host, token string, httpClient http.Client, ...) (string, error)
- func DeleteCluster(host, token, clusterID string, httpClient http.Client, ctx context.Context) error
- func DeleteNodeTemplate(host, token, nodeTemplateID string, httpClient http.Client, ...) error
- func GenerateKubeconfig(ctx context.Context, host, clusterID, token, crName, crNamespace string, ...) error
- func GenerateKubeconfigSecret(kubeconfig []byte, clusterName string, namespace string) corev1.Secret
- func GetClusters(host, token string, httpClient http.Client, ctx context.Context) (v1alpha1.ClusterResponse, error)
- func GetNodeTemplateByName(host, token, name string, httpClient http.Client, ctx context.Context) (string, error)
- func GetNodeTemplates(host, token string, httpClient http.Client, ctx context.Context) (v1alpha1.ClusterResponse, error)
- func GetSubnetIdByTags(tags map[string]string, region string, credentials *credentials.Credentials) (string, error)
- func GetVpcIdByTags(tags map[string]string, region string, credentials *credentials.Credentials) (string, error)
- func KubeconfigSecretExist(ctx context.Context, clusterName string, namespace string, ...) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCluster ¶
func CreateKubeconfigSecret ¶
func CreateNodePool ¶
func CreateNodeTemplate ¶
func DeleteCluster ¶
func DeleteNodeTemplate ¶
func GenerateKubeconfig ¶
func GetClusters ¶
func GetNodeTemplateByName ¶
func GetNodeTemplates ¶
func GetSubnetIdByTags ¶
func GetSubnetIdByTags(tags map[string]string, region string, credentials *credentials.Credentials) (string, error)
func GetVpcIdByTags ¶
func GetVpcIdByTags(tags map[string]string, region string, credentials *credentials.Credentials) (string, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.