Documentation ¶
Index ¶
- type DeploymentMap
- func (this *DeploymentMap) Add(dep *v1.Deployment)
- func (this *DeploymentMap) Delete(dep *v1.Deployment)
- func (this *DeploymentMap) GetDeployment(ns string, depName string) (*v1.Deployment, error)
- func (this *DeploymentMap) ListByNs(ns string) ([]*v1.Deployment, error)
- func (this *DeploymentMap) Update(dep *v1.Deployment) error
- type NsMapStruct
- type PodMap
- func (this *PodMap) Add(pod *corev1.Pod)
- func (this *PodMap) DEBUGListByNS(ns string) []*corev1.Pod
- func (this *PodMap) Delete(pod *corev1.Pod)
- func (this *PodMap) Get(ns string, podName string) *corev1.Pod
- func (this *PodMap) ListByLabels(ns string, labels []map[string]string) ([]*corev1.Pod, error)
- func (this *PodMap) ListByNs(ns string) []*corev1.Pod
- func (this *PodMap) Update(pod *corev1.Pod) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeploymentMap ¶
type DeploymentMap struct {
// contains filtered or unexported fields
}
func (*DeploymentMap) Add ¶
func (this *DeploymentMap) Add(dep *v1.Deployment)
func (*DeploymentMap) Delete ¶
func (this *DeploymentMap) Delete(dep *v1.Deployment)
func (*DeploymentMap) GetDeployment ¶
func (this *DeploymentMap) GetDeployment(ns string, depName string) (*v1.Deployment, error)
func (*DeploymentMap) ListByNs ¶
func (this *DeploymentMap) ListByNs(ns string) ([]*v1.Deployment, error)
func (*DeploymentMap) Update ¶
func (this *DeploymentMap) Update(dep *v1.Deployment) error
type NsMapStruct ¶
type NsMapStruct struct {
// contains filtered or unexported fields
}
func (*NsMapStruct) Add ¶
func (this *NsMapStruct) Add(ns *corev1.Namespace)
func (*NsMapStruct) Delete ¶
func (this *NsMapStruct) Delete(ns *corev1.Namespace)
func (*NsMapStruct) ListAll ¶
func (this *NsMapStruct) ListAll() []*model.NsModel
ListAll 显示所有的 namespace
func (*NsMapStruct) Update ¶
func (this *NsMapStruct) Update(ns *corev1.Namespace)
type PodMap ¶
type PodMap struct {
// contains filtered or unexported fields
}
func (*PodMap) ListByLabels ¶
ListByLabels 根据标签获取 POD列表
Click to show internal directories.
Click to hide internal directories.