Documentation ¶
Index ¶
- func GetRegionID() ([]string, error)
- type AWS
- type AliCloud
- type Azure
- func (a *Azure) GetAdminKubeConfig(clusterName, resourceGroupName string) ([]byte, error)
- func (a *Azure) GetKubeConfig(clusterName, resourceGroupName string) ([]byte, error)
- func (a *Azure) ListCluster(subscription AzureSubscription) (clusters []ClusterInfo, err error)
- func (a *Azure) ListSubscriptions() (subscription []AzureSubscription, err error)
- type AzureAuth
- type AzureSubscription
- type Cluster
- type ClusterInfo
- type Rancher
- type TencentCloud
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRegionID ¶ added in v0.24.0
GetRegionID get region id of aws
Types ¶
type AWS ¶ added in v0.24.0
AWS struct of aws cloud
func (*AWS) GetKubeConfigObj ¶ added in v0.24.0
func (a *AWS) GetKubeConfigObj(clusterID string) (*clientcmdapi.Config, error)
GetKubeConfigObj get aws eks kubeConfig file
func (*AWS) ListCluster ¶ added in v0.24.0
func (a *AWS) ListCluster() (clusters []ClusterInfo, err error)
ListCluster list cluster info of aws
type AliCloud ¶
AliCloud struct of alibaba cloud
func (*AliCloud) GetKubeConfig ¶
GetKubeConfig get kubeConfig file
func (*AliCloud) GetRegionID ¶ added in v0.16.1
GetRegionID get region id of ack cluster
func (*AliCloud) ListCluster ¶
func (a *AliCloud) ListCluster() (clusters []ClusterInfo, err error)
ListCluster list cluster info
type Azure ¶ added in v0.25.0
type Azure struct { AuthMode AzureAuth ClientID string ClientSecret string SubscriptionID string TenantID string ObjectID string // contains filtered or unexported fields }
Azure struct of azure cloud
func (*Azure) GetAdminKubeConfig ¶ added in v0.29.0
GetAdminKubeConfig get kubeConfig file
func (*Azure) GetKubeConfig ¶ added in v0.25.0
GetKubeConfig get kubeConfig file
func (*Azure) ListCluster ¶ added in v0.25.0
func (a *Azure) ListCluster(subscription AzureSubscription) (clusters []ClusterInfo, err error)
ListCluster list cluster info
func (*Azure) ListSubscriptions ¶ added in v0.29.0
func (a *Azure) ListSubscriptions() (subscription []AzureSubscription, err error)
ListSubscriptions list subscriptions
type AzureSubscription ¶ added in v0.29.0
type Cluster ¶
type Cluster interface { GetRegionID() ([]string, error) ListCluster() (clusters []ClusterInfo, err error) GetKubeConfig(clusterID string) (kubeconfig string, err error) }
Cluster interface of cloud k8s cluster
type ClusterInfo ¶
type ClusterInfo struct { Name string Account string ID string RegionID string K8sVersion string ConsoleURL string }
ClusterInfo ack cluster info
type Rancher ¶ added in v0.17.0
Rancher struct of rancher
func (*Rancher) GetKubeConfig ¶ added in v0.17.0
GetKubeConfig get kubeConfig file
func (*Rancher) GetRegionID ¶ added in v0.17.0
GetRegionID get region id of rancher cluster
func (*Rancher) ListCluster ¶ added in v0.17.0
func (r *Rancher) ListCluster() (clusters []ClusterInfo, err error)
ListCluster list cluster info
type TencentCloud ¶ added in v0.16.1
TencentCloud struct of tencent cloud
func (*TencentCloud) GetKubeConfig ¶ added in v0.16.1
func (t *TencentCloud) GetKubeConfig(clusterID string) (string, error)
GetKubeConfig get tke kubeConfig file
func (*TencentCloud) GetRegionID ¶ added in v0.16.1
func (t *TencentCloud) GetRegionID() ([]string, error)
GetRegionID get region id of tke cluster
func (*TencentCloud) ListCluster ¶ added in v0.16.1
func (t *TencentCloud) ListCluster() (clusters []ClusterInfo, err error)
ListCluster list tke cluster info