Documentation ¶
Index ¶
- type ConfigmapListInput
- type ConfigmapNameNS
- type ConfigmapUpdateInput
- type DaemonSetListInput
- type DaemonSetNameNS
- type DaemonSetUpdateInput
- type DeployCreateInput
- type DeployListInput
- type DeployScaleInput
- type DeploymentNameNS
- type HttpPath
- type ImageListInput
- type ImageListItem
- type ImageListOut
- type IngressCreteInput
- type IngressListInput
- type IngressNameNS
- type IngressUpdateInput
- type NameSpaceListInput
- type NameSpaceNameInput
- type NodeListInput
- type NodeNameInput
- type PersistentVolumeClaimListInput
- type PersistentVolumeClaimNameNS
- type PersistentVolumeClaimUpdateInput
- type PersistentVolumeListInput
- type PersistentVolumeNameInput
- type PodGetLogInput
- type PodListInput
- type PodNameNsInput
- type PodUpdateInput
- type SecretListInput
- type SecretNameNS
- type SecretUpdateInput
- type ServiceCreateInput
- type ServiceListInput
- type ServiceNameNS
- type ServiceUpdateInput
- type StatefulSetListInput
- type StatefulSetNameNS
- type StatefulSetUpdateInput
- type UpdateDeployInput
- type WebShellOptions
- type WorkFlowCreateInput
- type WorkFlowIDInput
- type WorkFlowListInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigmapListInput ¶
type ConfigmapListInput struct { FilterName string `json:"filter_name" form:"filter_name" validate:"" comment:"过滤名"` NameSpace string `json:"namespace" form:"namespace" validate:"" comment:"命名空间"` Limit int `json:"limit" form:"limit" validate:"" comment:"分页限制"` Page int `json:"page" form:"page" validate:"" comment:"页码"` }
func (*ConfigmapListInput) BindingValidParams ¶
func (params *ConfigmapListInput) BindingValidParams(c *gin.Context) error
type ConfigmapNameNS ¶
type ConfigmapNameNS struct { Name string `json:"name" form:"name" comment:"配置卷名称" validate:"required"` NameSpace string `json:"namespace" form:"namespace" comment:"命名空间" validate:"required"` }
func (*ConfigmapNameNS) BindingValidParams ¶
func (params *ConfigmapNameNS) BindingValidParams(c *gin.Context) error
type ConfigmapUpdateInput ¶
type ConfigmapUpdateInput struct { NameSpace string `json:"namespace" form:"namespace" comment:"命名空间" validate:"required"` Content string `json:"content" form:"content" validate:"required" comment:"更新内容"` }
func (*ConfigmapUpdateInput) BindingValidParams ¶
func (params *ConfigmapUpdateInput) BindingValidParams(c *gin.Context) error
type DaemonSetListInput ¶
type DaemonSetListInput struct { FilterName string `json:"filter_name" form:"filter_name" validate:"" comment:"过滤名"` NameSpace string `json:"namespace" form:"namespace" validate:"" comment:"命名空间"` Limit int `json:"limit" form:"limit" validate:"" comment:"分页限制"` Page int `json:"page" form:"page" validate:"" comment:"页码"` }
func (*DaemonSetListInput) BindingValidParams ¶
func (params *DaemonSetListInput) BindingValidParams(c *gin.Context) error
type DaemonSetNameNS ¶
type DaemonSetNameNS struct { Name string `json:"name" form:"name" comment:"有状态控制器名称" validate:"required"` NameSpace string `json:"namespace" form:"namespace" comment:"命名空间" validate:"required"` }
func (*DaemonSetNameNS) BindingValidParams ¶
func (params *DaemonSetNameNS) BindingValidParams(c *gin.Context) error
type DaemonSetUpdateInput ¶
type DaemonSetUpdateInput struct { NameSpace string `json:"namespace" form:"namespace" comment:"命名空间" validate:"required"` Content string `json:"content" validate:"required" comment:"更新内容"` }
func (*DaemonSetUpdateInput) BindingValidParams ¶
func (params *DaemonSetUpdateInput) BindingValidParams(c *gin.Context) error
type DeployCreateInput ¶
type DeployCreateInput struct { //DeploymentNameNS Name string `json:"name" form:"name" comment:"无状态控制器名称" validate:"required"` NameSpace string `json:"namespace" form:"namespace" comment:"命名空间" validate:"required"` Replicas int32 `json:"replicas" validate:"required" comment:"副本数"` Image string `json:"image" validate:"required" comment:"镜像名"` Labels map[string]string `json:"label" validate:"" comment:"标签"` Cpu string `json:"cpu" validate:"" comment:"Cpu限制"` Memory string `json:"memory" validate:"" comment:"内存限制"` ContainerPort int32 `json:"container_port" validate:"" comment:"容器端口"` HealthCheck bool `json:"health_check" validate:"" comment:"健康检查开关"` HealthPath string `json:"health_path" validate:"" comment:"Http健康检查路径"` }
func (*DeployCreateInput) BindingValidParams ¶
func (params *DeployCreateInput) BindingValidParams(c *gin.Context) error
type DeployListInput ¶
type DeployListInput struct { FilterName string `json:"filter_name" form:"filter_name" validate:"" comment:"过滤名"` NameSpace string `json:"namespace" form:"namespace" validate:"" comment:"命名空间"` Limit int `json:"limit" form:"limit" validate:"" comment:"分页限制"` Page int `json:"page" form:"page" validate:"" comment:"页码"` }
func (*DeployListInput) BindingValidParams ¶
func (params *DeployListInput) BindingValidParams(c *gin.Context) error
type DeployScaleInput ¶
type DeployScaleInput struct { Name string `json:"deployment_name" form:"deployment_name" comment:"无状态控制器名称" validate:"required"` NameSpace string `json:"namespace" form:"namespace" comment:"命名空间" validate:"required"` ScaleNum int `json:"scale_num" form:"scale_num" comment:"期望副本数" validate:"required"` }
func (*DeployScaleInput) BindingValidParams ¶
func (params *DeployScaleInput) BindingValidParams(c *gin.Context) error
type DeploymentNameNS ¶
type DeploymentNameNS struct { Name string `json:"deployment_name" form:"deployment_name" comment:"无状态控制器名称" validate:"required"` NameSpace string `json:"namespace" form:"namespace" comment:"命名空间" validate:"required"` }
func (*DeploymentNameNS) BindingValidParams ¶
func (params *DeploymentNameNS) BindingValidParams(c *gin.Context) error
type ImageListInput ¶
type ImageListInput struct {
ClusterName string `json:"cluster_name" form:"cluster_name" validate:"required"`
}
func (*ImageListInput) BindingValidParams ¶
func (params *ImageListInput) BindingValidParams(c *gin.Context) error
type ImageListItem ¶
type ImageListOut ¶
type ImageListOut struct { Total int `json:"total"` List []ImageListItem `json:"list"` }
type IngressCreteInput ¶
type IngressCreteInput struct { Name string `json:"name"` NameSpace string `json:"namespace"` Label map[string]string `json:"label"` Hosts map[string][]*HttpPath `json:"hosts"` }
func (*IngressCreteInput) BindingValidParams ¶
func (params *IngressCreteInput) BindingValidParams(c *gin.Context) error
type IngressListInput ¶
type IngressListInput struct { FilterName string `json:"filter_name" form:"filter_name" validate:"" comment:"过滤名"` NameSpace string `json:"namespace" form:"namespace" validate:"" comment:"命名空间"` Limit int `json:"limit" form:"limit" validate:"" comment:"分页限制"` Page int `json:"page" form:"page" validate:"" comment:"页码"` }
func (*IngressListInput) BindingValidParams ¶
func (params *IngressListInput) BindingValidParams(c *gin.Context) error
type IngressNameNS ¶
type IngressNameNS struct { Name string `json:"name" form:"name" comment:"服务名称" validate:"required"` NameSpace string `json:"namespace" form:"namespace" comment:"命名空间" validate:"required"` }
func (*IngressNameNS) BindingValidParams ¶
func (params *IngressNameNS) BindingValidParams(c *gin.Context) error
type IngressUpdateInput ¶
type IngressUpdateInput struct { Content string `json:"content" form:"content" validate:"required" comment:"更新内容"` NameSpace string `json:"namespace" form:"namespace" comment:"命名空间" validate:"required"` }
func (*IngressUpdateInput) BindingValidParams ¶
func (params *IngressUpdateInput) BindingValidParams(c *gin.Context) error
type NameSpaceListInput ¶
type NameSpaceListInput struct { FilterName string `json:"filter_name" form:"filter_name" validate:"" comment:"过滤名"` Limit int `json:"limit" form:"limit" validate:"" comment:"分页限制"` Page int `json:"page" form:"page" validate:"" comment:"页码"` }
func (*NameSpaceListInput) BindingValidParams ¶
func (params *NameSpaceListInput) BindingValidParams(c *gin.Context) error
type NameSpaceNameInput ¶
type NameSpaceNameInput struct {
Name string `json:"name" form:"name" comment:"命名空间名称" validate:"required"`
}
func (*NameSpaceNameInput) BindingValidParams ¶
func (params *NameSpaceNameInput) BindingValidParams(c *gin.Context) error
type NodeListInput ¶
type NodeListInput struct { FilterName string `json:"filter_name" form:"filter_name" validate:"" comment:"过滤名"` Limit int `json:"limit" form:"limit" validate:"" comment:"分页限制"` Page int `json:"page" form:"page" validate:"" comment:"页码"` }
func (*NodeListInput) BindingValidParams ¶
func (params *NodeListInput) BindingValidParams(c *gin.Context) error
type NodeNameInput ¶
type NodeNameInput struct {
Name string `json:"name" form:"name" comment:"Node名称" validate:"required"`
}
func (*NodeNameInput) BindingValidParams ¶
func (params *NodeNameInput) BindingValidParams(c *gin.Context) error
type PersistentVolumeClaimListInput ¶
type PersistentVolumeClaimListInput struct { FilterName string `json:"filter_name" form:"filter_name" validate:"" comment:"过滤名"` NameSpace string `json:"namespace" form:"namespace" validate:"" comment:"命名空间"` Limit int `json:"limit" form:"limit" validate:"" comment:"分页限制"` Page int `json:"page" form:"page" validate:"" comment:"页码"` }
func (*PersistentVolumeClaimListInput) BindingValidParams ¶
func (params *PersistentVolumeClaimListInput) BindingValidParams(c *gin.Context) error
type PersistentVolumeClaimNameNS ¶
type PersistentVolumeClaimNameNS struct { Name string `json:"name" form:"name" comment:"配置卷名称" validate:"required"` NameSpace string `json:"namespace" form:"namespace" comment:"命名空间" validate:"required"` }
func (*PersistentVolumeClaimNameNS) BindingValidParams ¶
func (params *PersistentVolumeClaimNameNS) BindingValidParams(c *gin.Context) error
type PersistentVolumeClaimUpdateInput ¶
type PersistentVolumeClaimUpdateInput struct { NameSpace string `json:"namespace" form:"namespace" comment:"命名空间" validate:"required"` Content string `json:"content" form:"content" validate:"required" comment:"更新内容"` }
func (*PersistentVolumeClaimUpdateInput) BindingValidParams ¶
func (params *PersistentVolumeClaimUpdateInput) BindingValidParams(c *gin.Context) error
type PersistentVolumeListInput ¶
type PersistentVolumeListInput struct { FilterName string `json:"filter_name" form:"filter_name" validate:"" comment:"过滤名"` Limit int `json:"limit" form:"limit" validate:"" comment:"分页限制"` Page int `json:"page" form:"page" validate:"" comment:"页码"` }
func (*PersistentVolumeListInput) BindingValidParams ¶
func (params *PersistentVolumeListInput) BindingValidParams(c *gin.Context) error
type PersistentVolumeNameInput ¶
type PersistentVolumeNameInput struct {
Name string `json:"name" form:"name" comment:"命名空间名称" validate:"required"`
}
func (*PersistentVolumeNameInput) BindingValidParams ¶
func (params *PersistentVolumeNameInput) BindingValidParams(c *gin.Context) error
type PodGetLogInput ¶
type PodGetLogInput struct { PodName string `json:"pod_name" form:"pod_name" comment:"POD名称" validate:"required"` NameSpace string `json:"name_space" form:"namespace" comment:"命名空间" validate:"required"` ContainerName string `json:"container_name" form:"container_name" comment:"容器名称" validate:"required"` }
func (*PodGetLogInput) BindingValidParams ¶
func (params *PodGetLogInput) BindingValidParams(c *gin.Context) error
type PodListInput ¶
type PodListInput struct { FilterName string `json:"filter_name" form:"filter_name" validate:"" comment:"过滤名"` NameSpace string `json:"namespace" form:"namespace" validate:"" comment:"命名空间"` Limit int `json:"limit" form:"limit" validate:"" comment:"分页限制"` Page int `json:"page" form:"page" validate:"" comment:"页码"` }
func (*PodListInput) BindingValidParams ¶
func (params *PodListInput) BindingValidParams(c *gin.Context) error
type PodNameNsInput ¶
type PodNameNsInput struct { PodName string `json:"pod_name" form:"pod_name" comment:"POD名称" validate:"required"` NameSpace string `json:"name_space" form:"namespace" comment:"命名空间" validate:"required"` }
func (*PodNameNsInput) BindingValidParams ¶
func (params *PodNameNsInput) BindingValidParams(c *gin.Context) error
type PodUpdateInput ¶
type PodUpdateInput struct { PodName string `json:"pod_name" form:"pod_name" comment:"POD名称" validate:"required"` NameSpace string `json:"name_space" form:"namespace" comment:"命名空间" validate:"required"` Content string `json:"content" form:"content" comment:"内容" validate:"required"` }
func (*PodUpdateInput) BindingValidParams ¶
func (params *PodUpdateInput) BindingValidParams(c *gin.Context) error
type SecretListInput ¶
type SecretListInput struct { FilterName string `json:"filter_name" form:"filter_name" validate:"" comment:"过滤名"` NameSpace string `json:"namespace" form:"namespace" validate:"" comment:"命名空间"` Limit int `json:"limit" form:"limit" validate:"" comment:"分页限制"` Page int `json:"page" form:"page" validate:"" comment:"页码"` }
func (*SecretListInput) BindingValidParams ¶
func (params *SecretListInput) BindingValidParams(c *gin.Context) error
type SecretNameNS ¶
type SecretNameNS struct { Name string `json:"name" form:"name" comment:"有状态控制器名称" validate:"required"` NameSpace string `json:"namespace" form:"namespace" comment:"命名空间" validate:"required"` }
func (*SecretNameNS) BindingValidParams ¶
func (params *SecretNameNS) BindingValidParams(c *gin.Context) error
type SecretUpdateInput ¶
type SecretUpdateInput struct { NameSpace string `json:"namespace" form:"namespace" comment:"命名空间" validate:"required"` Content string `json:"content" form:"content" validate:"required" comment:"更新内容"` }
func (*SecretUpdateInput) BindingValidParams ¶
func (params *SecretUpdateInput) BindingValidParams(c *gin.Context) error
type ServiceCreateInput ¶
type ServiceCreateInput struct { Name string `json:"name"` NameSpace string `json:"namespace"` Type string `json:"type"` ContainerPort int32 `json:"container_port"` Port int32 `json:"port"` NodePort int32 `json:"node_port"` Label map[string]string `json:"label"` }
func (*ServiceCreateInput) BindingValidParams ¶
func (params *ServiceCreateInput) BindingValidParams(c *gin.Context) error
type ServiceListInput ¶
type ServiceListInput struct { FilterName string `json:"filter_name" form:"filter_name" validate:"" comment:"过滤名"` NameSpace string `json:"namespace" form:"namespace" validate:"" comment:"命名空间"` Limit int `json:"limit" form:"limit" validate:"" comment:"分页限制"` Page int `json:"page" form:"page" validate:"" comment:"页码"` }
func (*ServiceListInput) BindingValidParams ¶
func (params *ServiceListInput) BindingValidParams(c *gin.Context) error
type ServiceNameNS ¶
type ServiceNameNS struct { Name string `json:"name" form:"name" comment:"服务名称" validate:"required"` NameSpace string `json:"namespace" form:"namespace" comment:"命名空间" validate:"required"` }
func (*ServiceNameNS) BindingValidParams ¶
func (params *ServiceNameNS) BindingValidParams(c *gin.Context) error
type ServiceUpdateInput ¶
type ServiceUpdateInput struct { Content string `json:"content" validate:"required" comment:"更新内容"` NameSpace string `json:"namespace" form:"namespace" comment:"命名空间" validate:"required"` }
func (*ServiceUpdateInput) BindingValidParams ¶
func (params *ServiceUpdateInput) BindingValidParams(c *gin.Context) error
type StatefulSetListInput ¶
type StatefulSetListInput struct { FilterName string `json:"filter_name" form:"filter_name" validate:"" comment:"过滤名"` NameSpace string `json:"namespace" form:"namespace" validate:"" comment:"命名空间"` Limit int `json:"limit" form:"limit" validate:"" comment:"分页限制"` Page int `json:"page" form:"page" validate:"" comment:"页码"` }
func (*StatefulSetListInput) BindingValidParams ¶
func (params *StatefulSetListInput) BindingValidParams(c *gin.Context) error
type StatefulSetNameNS ¶
type StatefulSetNameNS struct { Name string `json:"name" form:"name" comment:"有状态控制器名称" validate:"required"` NameSpace string `json:"namespace" form:"namespace" comment:"命名空间" validate:"required"` }
func (*StatefulSetNameNS) BindingValidParams ¶
func (params *StatefulSetNameNS) BindingValidParams(c *gin.Context) error
type StatefulSetUpdateInput ¶
type StatefulSetUpdateInput struct { NameSpace string `json:"namespace" form:"namespace" comment:"命名空间" validate:"required"` Content string `json:"content" form:"content" validate:"required" comment:"更新内容"` }
func (*StatefulSetUpdateInput) BindingValidParams ¶
func (params *StatefulSetUpdateInput) BindingValidParams(c *gin.Context) error
type UpdateDeployInput ¶
type UpdateDeployInput struct { NameSpace string `json:"namespace" form:"namespace" comment:"命名空间" validate:"required"` Content string `json:"content" form:"content" validate:"required" comment:"更新内容"` }
func (*UpdateDeployInput) BindingValidParams ¶
func (params *UpdateDeployInput) BindingValidParams(c *gin.Context) error
type WebShellOptions ¶
type WebShellOptions struct { Namespace string `form:"namespace"` Pod string `form:"pod_name"` Container string `form:"container_name"` }
WebShellOptions ws API 参数定义
func (*WebShellOptions) BindingValidParams ¶
func (params *WebShellOptions) BindingValidParams(c *gin.Context) error
type WorkFlowCreateInput ¶
type WorkFlowCreateInput struct { Name string `json:"name"` NameSpace string `json:"namespace"` Replicas int32 `json:"replicas"` Deployment string `json:"deployment"` Image string `json:"image"` Label map[string]string `json:"label"` Cpu string `json:"cpu"` Memory string `json:"memory"` ContainerPort int32 `json:"container_port"` HealthPath string `json:"health_path"` HealthCheck bool `json:"healthCheck"` Type string `json:"type"` Port int32 `json:"port"` NodePort int32 `json:"node_port"` Hosts map[string][]*HttpPath `json:"hosts"` }
func (*WorkFlowCreateInput) BindingValidParams ¶
func (params *WorkFlowCreateInput) BindingValidParams(c *gin.Context) error
type WorkFlowIDInput ¶
type WorkFlowIDInput struct {
ID int `json:"id" form:"id"`
}
func (*WorkFlowIDInput) BindingValidParams ¶
func (params *WorkFlowIDInput) BindingValidParams(c *gin.Context) error
type WorkFlowListInput ¶
type WorkFlowListInput struct { FilterName string `json:"filter_name" form:"filter_name" validate:"" comment:"过滤名"` Limit int `json:"limit" form:"limit" validate:"" comment:"分页限制"` Page int `json:"page" form:"page" validate:"" comment:"页码"` }
func (*WorkFlowListInput) BindingValidParams ¶
func (params *WorkFlowListInput) BindingValidParams(c *gin.Context) error
Click to show internal directories.
Click to hide internal directories.