k8s

package
v0.0.0-...-413f389 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterHandler

type ClusterHandler struct {
	// contains filtered or unexported fields
}

func NewClusterHandler

func NewClusterHandler(clusterService *services.ClusterService) *ClusterHandler

func (*ClusterHandler) DeleteNode

func (h *ClusterHandler) DeleteNode(c *gin.Context)

DeleteNode handles deleting a specific node from the cluster

func (*ClusterHandler) GetClusterInfo

func (h *ClusterHandler) GetClusterInfo(c *gin.Context)

GetClusterInfo handles getting cluster information

func (*ClusterHandler) GetNode

func (h *ClusterHandler) GetNode(c *gin.Context)

GetNode handles getting a specific node's information

func (*ClusterHandler) ListNodes

func (h *ClusterHandler) ListNodes(c *gin.Context)

ListNodes handles listing all nodes in the cluster

type ConfigMapController

type ConfigMapController struct {
	Service *services.ConfigMapService
}

func NewConfigMapController

func NewConfigMapController(service *services.ConfigMapService) *ConfigMapController

func (*ConfigMapController) CreateConfigMap

func (ctrl *ConfigMapController) CreateConfigMap(c *gin.Context)

func (*ConfigMapController) DeleteConfigMap

func (ctrl *ConfigMapController) DeleteConfigMap(c *gin.Context)

func (*ConfigMapController) ListConfigMaps

func (ctrl *ConfigMapController) ListConfigMaps(c *gin.Context)

func (*ConfigMapController) UpdateConfigMap

func (ctrl *ConfigMapController) UpdateConfigMap(c *gin.Context)

type DaemonSetHandler

type DaemonSetHandler struct {
	// contains filtered or unexported fields
}

DaemonSetHandler 处理与 DaemonSet 相关的请求

func NewDaemonSetHandler

func NewDaemonSetHandler(daemonSetService *services.DaemonSetService) *DaemonSetHandler

NewDaemonSetHandler 创建一个新的 DaemonSetHandler 实例

func (*DaemonSetHandler) CreateDaemonSet

func (h *DaemonSetHandler) CreateDaemonSet(c *gin.Context)

CreateDaemonSet 处理创建 DaemonSet 的请求

func (*DaemonSetHandler) DeleteDaemonSet

func (h *DaemonSetHandler) DeleteDaemonSet(c *gin.Context)

DeleteDaemonSet 处理删除 DaemonSet 的请求

func (*DaemonSetHandler) GetDaemonSet

func (h *DaemonSetHandler) GetDaemonSet(c *gin.Context)

GetDaemonSet 处理获取指定 DaemonSet 的请求

func (*DaemonSetHandler) ListDaemonSets

func (h *DaemonSetHandler) ListDaemonSets(c *gin.Context)

ListDaemonSets 处理列出指定命名空间中的 DaemonSets 的请求

func (*DaemonSetHandler) UpdateDaemonSet

func (h *DaemonSetHandler) UpdateDaemonSet(c *gin.Context)

UpdateDaemonSet 处理更新 DaemonSet 的请求

type DeploymentHandler

type DeploymentHandler struct {
	DeploymentService *services.DeploymentService
}

DeploymentHandler handles Kubernetes Deployment related requests

func NewDeploymentHandler

func NewDeploymentHandler(deploymentService *services.DeploymentService) *DeploymentHandler

NewDeploymentHandler creates a new DeploymentHandler instance

func (*DeploymentHandler) CreateDeployment

func (h *DeploymentHandler) CreateDeployment(c *gin.Context)

CreateDeployment handles the POST /apis/v1/k8s/deployments request

func (*DeploymentHandler) DeleteDeployment

func (h *DeploymentHandler) DeleteDeployment(c *gin.Context)

DeleteDeployment handles the DELETE /apis/v1/k8s/deployments/:namespace/:name request

func (*DeploymentHandler) GetDeployment

func (h *DeploymentHandler) GetDeployment(c *gin.Context)

GetDeployment handles the GET /apis/v1/k8s/deployments/:namespace/:name request

func (*DeploymentHandler) ListDeployments

func (h *DeploymentHandler) ListDeployments(c *gin.Context)

ListDeployments handles the GET /apis/v1/k8s/deployments request

func (*DeploymentHandler) UpdateDeployment

func (h *DeploymentHandler) UpdateDeployment(c *gin.Context)

UpdateDeployment handles the PUT /apis/v1/k8s/deployments/:namespace/:name request

type IngressHandler

type IngressHandler struct {
	// contains filtered or unexported fields
}

func NewIngressHandler

func NewIngressHandler(ingressService *services.IngressService) *IngressHandler

NewIngressHandler creates a new IngressHandler

func (*IngressHandler) CreateIngress

func (h *IngressHandler) CreateIngress(c *gin.Context)

CreateIngress handles the creation of a new ingress

func (*IngressHandler) DeleteIngress

func (h *IngressHandler) DeleteIngress(c *gin.Context)

DeleteIngress handles the deletion of an ingress DeleteIngress handles the deletion of an ingress

func (*IngressHandler) GetIngress

func (h *IngressHandler) GetIngress(c *gin.Context)

GetIngress handles getting a specific ingress

func (*IngressHandler) ListIngresses

func (h *IngressHandler) ListIngresses(c *gin.Context)

ListIngresses handles the listing of ingresses

type NamespaceHandler

type NamespaceHandler struct {
	// contains filtered or unexported fields
}

func NewNamespaceHandler

func NewNamespaceHandler(service *services.NamespaceService) *NamespaceHandler

NewNamespaceHandler creates a new NamespaceHandler

func (*NamespaceHandler) CreateNamespace

func (h *NamespaceHandler) CreateNamespace(c *gin.Context)

CreateNamespace handles POST requests for creating a namespace

func (*NamespaceHandler) DeleteNamespace

func (h *NamespaceHandler) DeleteNamespace(c *gin.Context)

DeleteNamespace handles DELETE requests for deleting a namespace

func (*NamespaceHandler) GetNamespace

func (h *NamespaceHandler) GetNamespace(c *gin.Context)

GetNamespace handles GET requests for retrieving a single namespace

func (*NamespaceHandler) ListNamespaces

func (h *NamespaceHandler) ListNamespaces(c *gin.Context)

ListNamespaces handles GET requests for listing namespaces

type NodeHandler

type NodeHandler struct {
	// contains filtered or unexported fields
}

func NewNodeHandler

func NewNodeHandler(service *services.NodeService) *NodeHandler

NewNodeHandler creates a new NodeHandler

func (*NodeHandler) CreateNode

func (h *NodeHandler) CreateNode(c *gin.Context)

CreateNode handles the request to create a new Node Note: This is for demonstration purposes. Normally, Nodes are not created via API.

func (*NodeHandler) DeleteNode

func (h *NodeHandler) DeleteNode(c *gin.Context)

DeleteNode handles the request to delete a Node by name

func (*NodeHandler) GetNode

func (h *NodeHandler) GetNode(c *gin.Context)

GetNode handles the request to get a specific Node by name

func (*NodeHandler) ListNodes

func (h *NodeHandler) ListNodes(c *gin.Context)

ListNodes handles the request to list all Nodes

type PVCController

type PVCController struct {
	Service *services.PVCService
}

func NewPVCController

func NewPVCController(service *services.PVCService) *PVCController

func (*PVCController) CreatePVC

func (ctrl *PVCController) CreatePVC(c *gin.Context)

func (*PVCController) DeletePVC

func (ctrl *PVCController) DeletePVC(c *gin.Context)

func (*PVCController) GetPVC

func (ctrl *PVCController) GetPVC(c *gin.Context)

func (*PVCController) UpdatePVC

func (ctrl *PVCController) UpdatePVC(c *gin.Context)

type PVController

type PVController struct {
	Service *services.PVService
}

func NewPVController

func NewPVController(service *services.PVService) *PVController

func (*PVController) CreatePV

func (ctrl *PVController) CreatePV(c *gin.Context)

func (*PVController) DeletePV

func (ctrl *PVController) DeletePV(c *gin.Context)

func (*PVController) GetPV

func (ctrl *PVController) GetPV(c *gin.Context)

func (*PVController) UpdatePV

func (ctrl *PVController) UpdatePV(c *gin.Context)

type PodController

type PodController struct {
	PodService *services.PodService
}

func NewPodController

func NewPodController(podService *services.PodService) *PodController

func (*PodController) CreatePod

func (pc *PodController) CreatePod(c *gin.Context)

func (*PodController) DeletePod

func (pc *PodController) DeletePod(c *gin.Context)

func (*PodController) GetPod

func (pc *PodController) GetPod(c *gin.Context)

func (*PodController) ListPods

func (pc *PodController) ListPods(c *gin.Context)

type SecretController

type SecretController struct {
	Service *services.SecretService
}

func NewSecretController

func NewSecretController(service *services.SecretService) *SecretController

func (*SecretController) CreateSecret

func (ctrl *SecretController) CreateSecret(c *gin.Context)

func (*SecretController) DeleteSecret

func (ctrl *SecretController) DeleteSecret(c *gin.Context)

func (*SecretController) GetSecret

func (ctrl *SecretController) GetSecret(c *gin.Context)

func (*SecretController) UpdateSecret

func (ctrl *SecretController) UpdateSecret(c *gin.Context)

type ServiceHandler

type ServiceHandler struct {
	// contains filtered or unexported fields
}

ServiceHandler 处理与 Service 相关的请求

func NewServiceHandler

func NewServiceHandler(serviceService *services.ServiceService) *ServiceHandler

NewServiceHandler 创建一个新的 ServiceHandler 实例

func (*ServiceHandler) CreateService

func (h *ServiceHandler) CreateService(c *gin.Context)

CreateService 处理创建 Service 的请求

func (*ServiceHandler) DeleteService

func (h *ServiceHandler) DeleteService(c *gin.Context)

DeleteService 处理删除 Service 的请求

func (*ServiceHandler) GetService

func (h *ServiceHandler) GetService(c *gin.Context)

GetService 处理获取指定 Service 的请求

func (*ServiceHandler) ListAllServices

func (h *ServiceHandler) ListAllServices(c *gin.Context)

ListAllServices 处理列出所有 Services 的请求

func (*ServiceHandler) ListServices

func (h *ServiceHandler) ListServices(c *gin.Context)

ListServices 处理列出 Services 的请求

type StatefulSetHandler

type StatefulSetHandler struct {
	// contains filtered or unexported fields
}

func NewStatefulSetHandler

func NewStatefulSetHandler(service *services.StatefulSetService) *StatefulSetHandler

func (*StatefulSetHandler) CreateStatefulSet

func (h *StatefulSetHandler) CreateStatefulSet(c *gin.Context)

func (*StatefulSetHandler) DeleteStatefulSet

func (h *StatefulSetHandler) DeleteStatefulSet(c *gin.Context)

func (*StatefulSetHandler) GetStatefulSet

func (h *StatefulSetHandler) GetStatefulSet(c *gin.Context)

func (*StatefulSetHandler) ListStatefulSets

func (h *StatefulSetHandler) ListStatefulSets(c *gin.Context)

func (*StatefulSetHandler) UpdateStatefulSet

func (h *StatefulSetHandler) UpdateStatefulSet(c *gin.Context)

type StorageClassController

type StorageClassController struct {
	Service *services.StorageClassService
}

func NewStorageClassController

func NewStorageClassController(service *services.StorageClassService) *StorageClassController

func (*StorageClassController) CreateStorageClass

func (ctrl *StorageClassController) CreateStorageClass(c *gin.Context)

func (*StorageClassController) DeleteStorageClass

func (ctrl *StorageClassController) DeleteStorageClass(c *gin.Context)

func (*StorageClassController) GetStorageClass

func (ctrl *StorageClassController) GetStorageClass(c *gin.Context)

func (*StorageClassController) UpdateStorageClass

func (ctrl *StorageClassController) UpdateStorageClass(c *gin.Context)

Jump to

Keyboard shortcuts

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