Documentation ¶
Index ¶
- func ClearCluster(clusterList []*models.Cluster)
- type ClusterService
- type ContainerService
- type DeploymentService
- type K8sClearService
- func (this *K8sClearService) Check(cluster *models.Cluster) *models.Cluster
- func (this *K8sClearService) ClearAll()
- func (this *K8sClearService) ClearCluster()
- func (this *K8sClearService) ClearContainer()
- func (this *K8sClearService) ClearDeployment()
- func (this *K8sClearService) ClearNetworkPolicy()
- func (this *K8sClearService) ClearNode()
- func (this *K8sClearService) ClearNs()
- func (this *K8sClearService) ClearPod()
- func (this *K8sClearService) ClearService()
- func (this *K8sClearService) ClearTask(cluster *models.Cluster)
- type K8sWatchService
- type NameSpaceService
- type NetworkPolicyService
- func (this *NetworkPolicyService) Create() (*v1.NetworkPolicy, error)
- func (this *NetworkPolicyService) Delete() error
- func (this *NetworkPolicyService) List() (*v1.NetworkPolicyList, error)
- func (this *NetworkPolicyService) Update() (*v1.NetworkPolicy, error)
- func (this *NetworkPolicyService) Wtach()
- type NodeService
- type PodService
- type SVCService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearCluster ¶
Types ¶
type ClusterService ¶
func (*ClusterService) ListCluster ¶
func (this *ClusterService) ListCluster(from, limit int) *models.Result
func (*ClusterService) UpdateCluster ¶
func (this *ClusterService) UpdateCluster() *models.Result
type ContainerService ¶
func (*ContainerService) AddContainer ¶
func (this *ContainerService) AddContainer()
func (*ContainerService) DeleteContainer ¶
func (this *ContainerService) DeleteContainer()
func (*ContainerService) InitContainer ¶
func (this *ContainerService) InitContainer(EventType watch.EventType)
type DeploymentService ¶
func (*DeploymentService) List ¶
func (this *DeploymentService) List() (*v1.DeploymentList, error)
func (*DeploymentService) Wtach ¶
func (this *DeploymentService) Wtach()
type K8sClearService ¶
type K8sClearService struct { ClusterList []*models.Cluster DropCluster bool CurrentCluster *models.Cluster }
func (*K8sClearService) Check ¶
func (this *K8sClearService) Check(cluster *models.Cluster) *models.Cluster
func (*K8sClearService) ClearCluster ¶
func (this *K8sClearService) ClearCluster()
func (*K8sClearService) ClearContainer ¶
func (this *K8sClearService) ClearContainer()
func (*K8sClearService) ClearDeployment ¶
func (this *K8sClearService) ClearDeployment()
func (*K8sClearService) ClearNetworkPolicy ¶
func (this *K8sClearService) ClearNetworkPolicy()
func (*K8sClearService) ClearNode ¶
func (this *K8sClearService) ClearNode()
func (*K8sClearService) ClearNs ¶
func (this *K8sClearService) ClearNs()
func (*K8sClearService) ClearPod ¶
func (this *K8sClearService) ClearPod()
func (*K8sClearService) ClearService ¶
func (this *K8sClearService) ClearService()
func (*K8sClearService) ClearTask ¶
func (this *K8sClearService) ClearTask(cluster *models.Cluster)
todo clear container and host task
type K8sWatchService ¶
func (*K8sWatchService) WatchAll ¶
func (this *K8sWatchService) WatchAll()
*
- watch 集群下所有的资源
- namespace、pod、node
func (*K8sWatchService) WatchCluster ¶
func (this *K8sWatchService) WatchCluster() models.Result
type NameSpaceService ¶
func (*NameSpaceService) List ¶
func (this *NameSpaceService) List() (*v1.NamespaceList, error)
func (*NameSpaceService) Wtach ¶
func (this *NameSpaceService) Wtach()
type NetworkPolicyService ¶
type NetworkPolicyService struct { ClientGo models.ClientGo Cluster *models.Cluster Close chan bool NetworkPolicy *models.NetworkPolicy }
func (*NetworkPolicyService) Create ¶
func (this *NetworkPolicyService) Create() (*v1.NetworkPolicy, error)
func (*NetworkPolicyService) Delete ¶
func (this *NetworkPolicyService) Delete() error
func (*NetworkPolicyService) List ¶
func (this *NetworkPolicyService) List() (*v1.NetworkPolicyList, error)
func (*NetworkPolicyService) Update ¶
func (this *NetworkPolicyService) Update() (*v1.NetworkPolicy, error)
func (*NetworkPolicyService) Wtach ¶
func (this *NetworkPolicyService) Wtach()
type NodeService ¶
func (*NodeService) Wtach ¶
func (this *NodeService) Wtach()
type PodService ¶
func (*PodService) Wtach ¶
func (this *PodService) Wtach()
type SVCService ¶
func (*SVCService) List ¶
func (this *SVCService) List() (*v1.ServiceList, error)
func (*SVCService) Wtach ¶
func (this *SVCService) Wtach()
Click to show internal directories.
Click to hide internal directories.