Documentation ¶
Index ¶
- func GetClusterConfigInfo(clusterName string) (*gf_cluster.KubernetesInfo, error)
- func GetClustersSummary(clusterId int64) (*gf_cluster.ClusterSummary, error)
- func ListClusterNodeSummary(clusterId int64) (gf_cluster.ClusterNodeSummaryArray, error)
- func ListClusterPodsSummary(clusterId int64) (gf_cluster.ClusterPodsSummaryArray, error)
- func ListClustersSummary(id string, name string, pageNumber int, pageSize int) ([]*gf_cluster.ClusterSummary, int, error)
- func ListKubeSystemInstance(info *gf_cluster.KubernetesInfo) (map[string]*PodResources, error)
- type KubernetesClient
- type PodResources
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetClusterConfigInfo ¶ added in v0.4.0
func GetClusterConfigInfo(clusterName string) (*gf_cluster.KubernetesInfo, error)
GetClusterConfigInfo 根据集群名称获取集群配置信息
func GetClustersSummary ¶
func GetClustersSummary(clusterId int64) (*gf_cluster.ClusterSummary, error)
GetClustersSummary 获得集群概述
func ListClusterNodeSummary ¶
func ListClusterNodeSummary(clusterId int64) (gf_cluster.ClusterNodeSummaryArray, error)
ListClusterNodeSummary 获得集群下所有节点详情
func ListClusterPodsSummary ¶
func ListClusterPodsSummary(clusterId int64) (gf_cluster.ClusterPodsSummaryArray, error)
ListClusterPodsSummary 获得集群下所有Pod详情
func ListClustersSummary ¶
func ListClustersSummary(id string, name string, pageNumber int, pageSize int) ([]*gf_cluster.ClusterSummary, int, error)
ListClustersSummary 列出所有集群summary
func ListKubeSystemInstance ¶
func ListKubeSystemInstance(info *gf_cluster.KubernetesInfo) (map[string]*PodResources, error)
ListKubeSystemInstance 列出kuber-system所占用资源
Types ¶
type KubernetesClient ¶
type KubernetesClient struct {
ClientSet *kubernetes.Clientset
}
KubernetesClient 是k8s访问的client
func CreateKubernetesClusterClient ¶
func CreateKubernetesClusterClient(data []byte) (*KubernetesClient, error)
CreateKubernetesClusterClient 通过k8s 配置信息创建client
func GetKubeClient ¶
func GetKubeClient(kubernetesClusterId int64) (*KubernetesClient, error)
GetKubeClient 获取指定集群的client
Click to show internal directories.
Click to hide internal directories.