maps

package
v1.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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) Get

func (this *NsMapStruct) Get(ns string) *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) Add

func (this *PodMap) Add(pod *corev1.Pod)

func (*PodMap) DEBUGListByNS

func (this *PodMap) DEBUGListByNS(ns string) []*corev1.Pod

func (*PodMap) Delete

func (this *PodMap) Delete(pod *corev1.Pod)

func (*PodMap) Get

func (this *PodMap) Get(ns string, podName string) *corev1.Pod

func (*PodMap) ListByLabels

func (this *PodMap) ListByLabels(ns string, labels []map[string]string) ([]*corev1.Pod, error)

ListByLabels 根据标签获取 POD列表

func (*PodMap) ListByNs

func (this *PodMap) ListByNs(ns string) []*corev1.Pod

func (*PodMap) Update

func (this *PodMap) Update(pod *corev1.Pod) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL