kube

package
v0.0.0-...-10cedd8 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Configmap configmap
View Source
var DaemonSet daemonSet
View Source
var Deployment deployment
View Source
var Ingress ingress
View Source
var K8s k8s
View Source
var NameSpace namespace
View Source
var Node node
View Source
var PersistentVolume persistentVolume
View Source
var PersistentVolumeClaim persistentVolumeClaim
View Source
var Pod pod
View Source
var Secret secret
View Source
var Service service
View Source
var StatefulSet statefulSet

Functions

func NewPods

func NewPods(c *kubernetes.Clientset, cloud string, factory dao.ShareDaoFactory) *pods

Types

type ConfigmapNp

type ConfigmapNp struct {
	NameSpace    string `json:"namespace"`
	ConfigmapNum int    `json:"configmap_num"`
}

type ConfigmapResp

type ConfigmapResp struct {
	Total int                `json:"total"`
	Items []coreV1.ConfigMap `json:"items"`
}

type DaemonSetNp

type DaemonSetNp struct {
	NameSpace    string `json:"namespace"`
	DaemonSetNum int    `json:"daemonset_num"`
}

type DaemonSetResp

type DaemonSetResp struct {
	Total int                `json:"total"`
	Items []appsV1.DaemonSet `json:"items"`
}

type DataCell

type DataCell interface {
	GetCreation() time.Time
	GetName() string
}

DataCell 用于各种资源list的类型转化,转换后可以使用data-selector的自定义排序、过滤、分页方法

type DataSelectQuery

type DataSelectQuery struct {
	Filter     *FilterQuery
	Paginatite *PaginateQuery
}

DataSelectQuery 定义过滤和分页的结构体

type DeployNp

type DeployNp struct {
	NameSpace string `json:"namespace"`
	DeployNum int    `json:"deployment_num"`
}

type DeploymentResp

type DeploymentResp struct {
	Total int                 `json:"total"`
	Items []appsV1.Deployment `json:"items"`
}

type FilterQuery

type FilterQuery struct {
	Name string
}

type NameSpaceResp

type NameSpaceResp struct {
	Total int                `json:"total"`
	Items []coreV1.Namespace `json:"items"`
}

type NodeResp

type NodeResp struct {
	Total int           `json:"total"`
	Items []coreV1.Node `json:"items"`
}

type PaginateQuery

type PaginateQuery struct {
	Limit int
	Page  int
}

type PersistentVolumeClaimNp

type PersistentVolumeClaimNp struct {
	NameSpace                string `json:"namespace"`
	PersistentVolumeClaimNum int    `json:"PersistentVolumeClaim_num"`
}

type PersistentVolumeClaimResp

type PersistentVolumeClaimResp struct {
	Total int                            `json:"total"`
	Items []coreV1.PersistentVolumeClaim `json:"items"`
}

type PersistentVolumeResp

type PersistentVolumeResp struct {
	Total int                       `json:"total"`
	Items []coreV1.PersistentVolume `json:"items"`
}

type PodInterface

type PodInterface interface {
	WebShellHandler(webShellOptions *kubeDto.WebShellOptions, w http.ResponseWriter, r *http.Request) error
}

type PodsGetter

type PodsGetter interface {
	Pods(cloud string) PodInterface
}

type PodsNp

type PodsNp struct {
	Namespace string `json:"namespace"`
	PodNum    int    `json:"pod_num"`
}

type PodsResp

type PodsResp struct {
	Total int          `json:"total"`
	Items []coreV1.Pod `json:"items"`
}

type SecretNp

type SecretNp struct {
	NameSpace string `json:"namespace"`
	SecretNum int    `json:"secret_num"`
}

type SecretResp

type SecretResp struct {
	Total int             `json:"total"`
	Items []coreV1.Secret `json:"items"`
}

type StatefulSetNp

type StatefulSetNp struct {
	NameSpace    string `json:"namespace"`
	DaemonSetNum int    `json:"daemonset_num"`
}

Jump to

Keyboard shortcuts

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