Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChatService ¶
func ChatService() *chatService
func ClusterService ¶ added in v0.0.19
func ClusterService() *clusterService
func DeploymentService ¶ added in v0.0.9
func DeploymentService() *deployService
func NodeService ¶ added in v0.0.9
func NodeService() *nodeService
func PVCService ¶ added in v0.0.31
func PVCService() *pvcService
func PodService ¶ added in v0.0.2
func PodService() *podService
func StorageClassService ¶ added in v0.0.30
func StorageClassService() *storageClassService
Types ¶
type ClusterConfig ¶ added in v0.0.19
type ClusterConfig struct { FileName string `json:"fileName,omitempty"` // kubeconfig 文件名称 ContextName string `json:"contextName,omitempty"` // context名称 ClusterName string `json:"clusterName,omitempty"` // 集群名称 Server string `json:"server,omitempty"` // 集群地址 ServerVersion string `json:"serverVersion,omitempty"` // 通过这个值来判断集群是否可用 UserName string `json:"userName,omitempty"` // 用户名 Namespace string `json:"namespace,omitempty"` // kubeconfig 限制Namespace Err string `json:"err,omitempty"` // 连接错误信息 NodeStatusAggregated bool `json:"nodeStatusAggregated,omitempty"` // 是否已聚合节点状态 PodStatusAggregated bool `json:"podStatusAggregated,omitempty"` // 是否已聚合容器组状态 StorageClassStatusAggregated bool `json:"storageClassStatusAggregated,omitempty"` // 是否已聚合容器组状态 IsInCluster bool `json:"isInCluster,omitempty"` // 是否为集群内运行获取到的配置 // contains filtered or unexported fields }
func (*ClusterConfig) GetClusterID ¶ added in v0.0.31
func (c *ClusterConfig) GetClusterID() string
GetClusterID 根据ClusterConfig,按照 文件名+context名称 获取clusterID
func (*ClusterConfig) GetClusterWatchStatus ¶ added in v0.0.30
func (c *ClusterConfig) GetClusterWatchStatus(watchType string) bool
GetClusterWatchStatus 获取集群Watch状态
func (*ClusterConfig) SetClusterWatchStarted ¶ added in v0.0.30
func (c *ClusterConfig) SetClusterWatchStarted(watchType string, watcher watch.Interface)
SetClusterWatchStarted 设置集群Watch启动状态
Click to show internal directories.
Click to hide internal directories.