dynamicquery

package
v1.20.11 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetApplication

func GetApplication(req *restful.Request, resp *restful.Response)

GetApplication get application

func GetConfigMap

func GetConfigMap(req *restful.Request, resp *restful.Response)

GetConfigMap get configmap

func GetConfigMapK8s

func GetConfigMapK8s(req *restful.Request, resp *restful.Response)

GetConfigMapK8s get configmap k8s

func GetDaemonSet

func GetDaemonSet(req *restful.Request, resp *restful.Response)

GetDaemonSet get daemonset

func GetDeployment

func GetDeployment(req *restful.Request, resp *restful.Response)

GetDeployment get deployment

func GetDeploymentK8s

func GetDeploymentK8s(req *restful.Request, resp *restful.Response)

GetDeploymentK8s get deployment k8s

func GetEndpoints

func GetEndpoints(req *restful.Request, resp *restful.Response)

GetEndpoints get endpoints

func GetEndpointsK8s

func GetEndpointsK8s(req *restful.Request, resp *restful.Response)

GetEndpointsK8s get endpoints k8s

func GetExportService

func GetExportService(req *restful.Request, resp *restful.Response)

GetExportService get export service

func GetIPPoolStatic

func GetIPPoolStatic(req *restful.Request, resp *restful.Response)

GetIPPoolStatic query netservice ip pool static resource data.

func GetIPPoolStaticDetail

func GetIPPoolStaticDetail(req *restful.Request, resp *restful.Response)

GetIPPoolStaticDetail query netservice ip pool static resource detail data.

func GetIngress

func GetIngress(req *restful.Request, resp *restful.Response)

GetIngress get ingress

func GetJob

func GetJob(req *restful.Request, resp *restful.Response)

GetJob get job

func GetNameSpace

func GetNameSpace(req *restful.Request, resp *restful.Response)

GetNameSpace get namespace

func GetNameSpaceK8s

func GetNameSpaceK8s(req *restful.Request, resp *restful.Response)

GetNameSpaceK8s get namespaces k8s

func GetNameSpaceK8sUsed

func GetNameSpaceK8sUsed(req *restful.Request, resp *restful.Response)

GetNameSpaceK8sUsed get namespace k8s used

func GetNode

func GetNode(req *restful.Request, resp *restful.Response)

GetNode get node

func GetPod

func GetPod(req *restful.Request, resp *restful.Response)

GetPod get pod

func GetProcess

func GetProcess(req *restful.Request, resp *restful.Response)

GetProcess get process

func GetReplicaSet

func GetReplicaSet(req *restful.Request, resp *restful.Response)

GetReplicaSet get replica

func GetSecret

func GetSecret(req *restful.Request, resp *restful.Response)

GetSecret get secret

func GetSecretK8s

func GetSecretK8s(req *restful.Request, resp *restful.Response)

GetSecretK8s get secret k8s

func GetService

func GetService(req *restful.Request, resp *restful.Response)

GetService get service

func GetServiceK8s

func GetServiceK8s(req *restful.Request, resp *restful.Response)

GetServiceK8s get service k8s

func GetStatefulSet

func GetStatefulSet(req *restful.Request, resp *restful.Response)

GetStatefulSet get statefulset

func GetTaskGroup

func GetTaskGroup(req *restful.Request, resp *restful.Response)

GetTaskGroup get taskgroup

Types

type ApplicationFilter

type ApplicationFilter struct {
	ClusterId           string `json:"clusterId" filter:"clusterId"`
	Kind                string `json:"kind,omitempty" filter:"data.kind,,allowNoExists"`
	Name                string `json:"name,omitempty" filter:"resourceName"`
	Namespace           string `json:"namespace,omitempty" filter:"namespace"`
	Instance            string `json:"instance,omitempty" filter:"data.instance,int"`
	BuildedInstance     string `json:"buildedInstance,omitempty" filter:"data.buildedInstance,int"`
	RunningInstance     string `json:"runningInstance,omitempty" filter:"data.runningInstance,int"`
	Status              string `json:"status,omitempty" filter:"data.status"`
	LastStatus          string `json:"lastStatus,omitempty" filter:"data.lastStatus"`
	PodIp               string `json:"podIp,omitempty" filter:"data.podIP"`
	CreateTimeBegin     string `json:"createTimeBegin,omitempty" filter:"data.createTime,timeL"`
	CreateTimeEnd       string `json:"createTimeEnd,omitempty" filter:"data.createTime,timeR"`
	LastUpdateTimeBegin string `json:"lastUpdateTimeBegin,omitempty" filter:"data.lastUpdateTime,timeL"`
	LastUpdateTimeEnd   string `json:"lastUpdateTimeEnd,omitempty" filter:"data.lastUpdateTime,timeR"`
}

ApplicationFilter application filter

type ConfigMapFilter

type ConfigMapFilter struct {
	ClusterId  string `json:"clusterId" filter:"clusterId"`
	Name       string `json:"name,omitempty" filter:"resourceName"`
	Namespace  string `json:"namespace,omitempty" filter:"namespace"`
	APIVersion string `json:"apiVersion,omitempty" filter:"data.apiVersion"`
}

ConfigMapFilter configmap filter

type ConfigMapK8sFilter

type ConfigMapK8sFilter struct {
	ClusterId       string `json:"clusterId" filter:"clusterId"`
	Name            string `json:"name,omitempty" filter:"resourceName"`
	Namespace       string `json:"namespace,omitempty" filter:"namespace"`
	CreateTimeBegin string `json:"createTimeBegin,omitempty" filter:"data.metadata.creationTimestamp,timeL"`
	CreateTimeEnd   string `json:"createTimeEnd,omitempty" filter:"data.metadata.creationTimestamp,timeR"`
}

ConfigMapK8sFilter configmap filter of k8s

type DaemonSetFilter

type DaemonSetFilter struct {
	ClusterId       string `json:"clusterId" filter:"clusterId"`
	Name            string `json:"name,omitempty" filter:"resourceName"`
	Namespace       string `json:"namespace,omitempty" filter:"namespace"`
	CreateTimeBegin string `json:"createTimeBegin,omitempty" filter:"data.metadata.creationTimestamp,timeL"`
	CreateTimeEnd   string `json:"createTimeEnd,omitempty" filter:"data.metadata.creationTimestamp,timeR"`
	ResourceVersion string `json:"resourceVersion,omitempty" filter:"data.metadata.resourceVersion"`
	Uid             string `json:"uid,omitempty" filter:"data.metadata.uid"`
	Generation      string `json:"generation,omitempty" filter:"data.metadata.generation,int"`
	TemplateGen     string `json:"templateGeneration,omitempty" filter:"data.spec.templateGeneration,int"`
	StrategyType    string `json:"updateStrategyType,omitempty" filter:"data.spec.updateStrategy.type"`
}

DaemonSetFilter daemonset filter

type DeploymentFilter

type DeploymentFilter struct {
	ClusterId            string `json:"clusterId" filter:"clusterId"`
	Name                 string `json:"name,omitempty" filter:"resourceName"`
	Namespace            string `json:"namespace,omitempty" filter:"namespace"`
	CheckTime            string `json:"checkTime,omitempty" filter:"data.check_time,int64"`
	Status               string `json:"status,omitempty" filter:"data.status"`
	ApplicationName      string `json:"applicationName,omitempty" filter:"data.application.name"`
	ApplicationExtName   string `json:"applicationExtName,omitempty" filter:"data.application_ext.name"`
	CurrRollingOp        string `json:"currRollingOperation,omitempty" filter:"data.curr_rolling_operation"`
	IsInRolling          string `json:"isInRolling,omitempty" filter:"data.is_in_rolling,bool"`
	LastRollingTimeBegin string `json:"lastRollingTimeBegin,omitempty" filter:"data.last_rolling_time,timeL"`
	LastRollingTimeEnd   string `json:"lastRollingTimeEnd,omitempty" filter:"data.last_rolling_time,timeR"`
}

DeploymentFilter deployment filter

type DeploymentK8sFilter

type DeploymentK8sFilter struct {
	ClusterId         string `json:"clusterId" filter:"clusterId"`
	Name              string `json:"name,omitempty" filter:"resourceName"`
	Namespace         string `json:"namespace,omitempty" filter:"namespace"`
	Replicas          string `json:"replicas,omitempty" filter:"data.status.replicas,int"`
	AvailableReplicas string `json:"availableReplicas,omitempty" filter:"data.status.availableReplicas,int"`
	UpdatedReplicas   string `json:"updatedReplicas,omitempty" filter:"data.status.updatedReplicas,int"`
	StrategyType      string `json:"strategyType,omitempty" filter:"data.spec.strategy.type"`
	DnsPolicy         string `json:"dnsPolicy,omitempty" filter:"data.spec.template.spec.dnsPolicy"`
	RestartPolicy     string `json:"restartPolicy,omitempty" filter:"data.spec.template.spec.restartPolicy"`
	CreateTimeBegin   string `json:"createTimeBegin,omitempty" filter:"data.metadata.creationTimestamp,timeL"`
	CreateTimeEnd     string `json:"createTimeEnd,omitempty" filter:"data.metadata.creationTimestamp,timeR"`
}

DeploymentK8sFilter deployment filter of k8s

type EndpointsFilter

type EndpointsFilter struct {
	ClusterId  string `json:"clusterId" filter:"clusterId"`
	Name       string `json:"name,omitempty" filter:"resourceName"`
	Namespace  string `json:"namespace,omitempty" filter:"namespace"`
	APIVersion string `json:"apiVersion,omitempty" filter:"data.apiVersion"`
}

EndpointsFilter filter of endpoints

type EndpointsK8sFilter

type EndpointsK8sFilter struct {
	ClusterId string `json:"clusterId" filter:"clusterId"`
	Name      string `json:"name,omitempty" filter:"resourceName"`
	Namespace string `json:"namespace,omitempty" filter:"namespace"`
}

EndpointsK8sFilter filter of k8s endpoints

type ExportServiceFilter

type ExportServiceFilter struct {
	ClusterId   string `json:"clusterId" filter:"clusterId"`
	Name        string `json:"name,omitempty" filter:"resourceName"`
	Namespace   string `json:"namespace,omitempty" filter:"namespace"`
	ServiceName string `json:"serviceName,omitempty" filter:"data.serviceName"`
	SSLCert     string `json:"sslCert,omitempty" filter:"data.sslcert,bool"`
	Balance     string `json:"balance,omitempty" filter:"data.balance"`
}

ExportServiceFilter filter of export service

type IPPoolStaticDetailFilter

type IPPoolStaticDetailFilter struct {
	ClusterId string `json:"clusterId" filter:"clusterId"`
}

IPPoolStaticDetailFilter filter of ip pool static detail

type IPPoolStaticFilter

type IPPoolStaticFilter struct {
	ClusterId string `json:"clusterId" filter:"clusterId"`
}

IPPoolStaticFilter filter of ip pool static

type IngressFilter

type IngressFilter struct {
	ClusterId       string `json:"clusterId" filter:"clusterId"`
	Name            string `json:"name,omitempty" filter:"resourceName"`
	Namespace       string `json:"namespace,omitempty" filter:"namespace"`
	CreateTimeBegin string `json:"createTimeBegin,omitempty" filter:"data.metadata.creationTimestamp,timeL"`
	CreateTimeEnd   string `json:"createTimeEnd,omitempty" filter:"data.metadata.creationTimestamp,timeR"`
}

IngressFilter filter of ingress

type JobFilter

type JobFilter struct {
	ClusterId       string `json:"clusterId" filter:"clusterId"`
	Name            string `json:"name,omitempty" filter:"resourceName"`
	Namespace       string `json:"namespace,omitempty" filter:"namespace"`
	CreateTimeBegin string `json:"createTimeBegin,omitempty" filter:"data.metadata.creationTimestamp,timeL"`
	CreateTimeEnd   string `json:"createTimeEnd,omitempty" filter:"data.metadata.creationTimestamp,timeR"`
	ResourceVersion string `json:"resourceVersion,omitempty" filter:"data.metadata.resourceVersion"`
	Uid             string `json:"uid,omitempty" filter:"data.metadata.uid"`
}

JobFilter filter of job

type NameSpaceFilter

type NameSpaceFilter struct {
	ClusterId       string `json:"clusterId" filter:"clusterId"`
	Name            string `json:"name,omitempty" filter:"resourceName"`
	Status          string `json:"status,omitempty" filter:"data.status.phase"`
	CreateTimeBegin string `json:"createTimeBegin,omitempty" filter:"data.metadata.creationTimestamp,timeL"`
	CreateTimeEnd   string `json:"createTimeEnd,omitempty" filter:"data.metadata.creationTimestamp,timeR"`
}

Filter of namespace

type NodeFilter

type NodeFilter struct {
	ClusterId       string `json:"clusterId" filter:"clusterId"`
	Name            string `json:"name,omitempty" filter:"resourceName"`
	ExternalID      string `json:"externalID,omitempty" filter:"data.spec.externalID"`
	CreateTimeBegin string `json:"createTimeBegin,omitempty" filter:"data.metadata.creationTimestamp,timeL"`
	CreateTimeEnd   string `json:"createTimeEnd,omitempty" filter:"data.metadata.creationTimestamp,timeR"`
}

NodeFilter filter of node

type PodFilter

type PodFilter struct {
	ClusterId      string `json:"clusterId" filter:"clusterId"`
	Name           string `json:"name,omitempty" filter:"resourceName"`
	Namespace      string `json:"namespace,omitempty" filter:"namespace"`
	HostIp         string `json:"hostIp,omitempty" filter:"data.status.hostIP"`
	PodIp          string `json:"podIp,omitempty" filter:"data.status.podIP"`
	Status         string `json:"status,omitempty" filter:"data.status.phase"`
	StartTimeBegin string `json:"startTimeBegin,omitempty" filter:"data.status.startTime,timeL"`
	StartTimeEnd   string `json:"startTimeEnd,omitempty" filter:"data.status.startTime,timeR"`
}

PodFilter filter of pod

type ProcessFilter

type ProcessFilter struct {
	ClusterId           string `json:"clusterId" filter:"clusterId"`
	Kind                string `json:"kind,omitempty" filter:"data.kind"`
	Name                string `json:"name,omitempty" filter:"resourceName"`
	Namespace           string `json:"namespace,omitempty" filter:"namespace"`
	Instance            string `json:"instance,omitempty" filter:"data.instance,int"`
	BuildedInstance     string `json:"buildedInstance,omitempty" filter:"data.buildedInstance,int"`
	RunningInstance     string `json:"runningInstance,omitempty" filter:"data.runningInstance,int"`
	Status              string `json:"status,omitempty" filter:"data.status"`
	LastStatus          string `json:"lastStatus,omitempty" filter:"data.lastStatus"`
	PodIp               string `json:"podIp,omitempty" filter:"data.podIP"`
	CreateTimeBegin     string `json:"createTimeBegin,omitempty" filter:"data.createTime,timeL"`
	CreateTimeEnd       string `json:"createTimeEnd,omitempty" filter:"data.createTime,timeR"`
	LastUpdateTimeBegin string `json:"lastUpdateTimeBegin,omitempty" filter:"data.lastUpdateTime,timeL"`
	LastUpdateTimeEnd   string `json:"lastUpdateTimeEnd,omitempty" filter:"data.lastUpdateTime,timeR"`
}

ProcessFilter filter of process

type ReplicaSetFilter

type ReplicaSetFilter struct {
	ClusterId         string `json:"clusterId" filter:"clusterId"`
	Name              string `json:"name,omitempty" filter:"resourceName"`
	Namespace         string `json:"namespace,omitempty" filter:"namespace"`
	Replicas          string `json:"replicas,omitempty" filter:"data.status.replicas,int"`
	AvailableReplicas string `json:"availableReplicas,omitempty" filter:"data.status.availableReplicas,int"`
	ReadyReplicas     string `json:"readyReplicas,omitempty" filter:"data.status.readyReplicas,int"`
	CreateTimeBegin   string `json:"createTimeBegin,omitempty" filter:"data.metadata.creationTimestamp,timeL"`
	CreateTimeEnd     string `json:"createTimeEnd,omitempty" filter:"data.metadata.creationTimestamp,timeR"`
}

ReplicaSetFilter filter of replica set

type SecretFilter

type SecretFilter struct {
	ClusterId  string `json:"clusterId" filter:"clusterId"`
	Name       string `json:"name,omitempty" filter:"resourceName"`
	Namespace  string `json:"namespace,omitempty" filter:"namespace"`
	APIVersion string `json:"apiVersion,omitempty" filter:"data.apiVersion"`
}

SecretFilter filter of secret

type SecretK8sFilter

type SecretK8sFilter struct {
	ClusterId       string `json:"clusterId" filter:"clusterId"`
	Name            string `json:"name,omitempty" filter:"resourceName"`
	Namespace       string `json:"namespace,omitempty" filter:"namespace"`
	CreateTimeBegin string `json:"createTimeBegin,omitempty" filter:"data.metadata.creationTimestamp,timeL"`
	CreateTimeEnd   string `json:"createTimeEnd,omitempty" filter:"data.metadata.creationTimestamp,timeR"`
}

SecretK8sFilter filter of k8s secret

type ServiceFilter

type ServiceFilter struct {
	ClusterId  string `json:"clusterId" filter:"clusterId"`
	Name       string `json:"name,omitempty" filter:"resourceName"`
	Namespace  string `json:"namespace,omitempty" filter:"namespace"`
	APIVersion string `json:"apiVersion,omitempty" filter:"data.apiVersion"`
}

ServiceFilter filter of service

type ServiceK8sFilter

type ServiceK8sFilter struct {
	ClusterId       string `json:"clusterId" filter:"clusterId"`
	Name            string `json:"name,omitempty" filter:"resourceName"`
	Namespace       string `json:"namespace,omitempty" filter:"namespace"`
	ClusterIP       string `json:"clusterIp,omitempty" filter:"data.spec.clusterIP"`
	Type            string `json:"type,omitempty" filter:"data.spec.type"`
	CreateTimeBegin string `json:"createTimeBegin,omitempty" filter:"data.metadata.creationTimestamp,timeL"`
	CreateTimeEnd   string `json:"createTimeEnd,omitempty" filter:"data.metadata.creationTimestamp,timeR"`
}

ServiceK8sFilter filter of k8s service

type StatefulSetFilter

type StatefulSetFilter struct {
	ClusterId       string `json:"clusterId" filter:"clusterId"`
	Name            string `json:"name,omitempty" filter:"resourceName"`
	Namespace       string `json:"namespace,omitempty" filter:"namespace"`
	CreateTimeBegin string `json:"createTimeBegin,omitempty" filter:"data.metadata.creationTimestamp,timeL"`
	CreateTimeEnd   string `json:"createTimeEnd,omitempty" filter:"data.metadata.creationTimestamp,timeR"`
	ResourceVersion string `json:"resourceVersion,omitempty" filter:"data.metadata.resourceVersion"`
	Uid             string `json:"uid,omitempty" filter:"data.metadata.uid"`
	Generation      string `json:"generation,omitempty" filter:"data.metadata.generation,int"`
	PodMPolicy      string `json:"podManagementPolicy,omitempty" filter:"data.spec.podManagementPolicy"`
	StrategyType    string `json:"updateStrategyType,omitempty" filter:"data.spec.updateStrategy.type"`
	ServiceName     string `json:"serviceName,omitempty" filter:"data.spec.serviceName"`
}

StatefulSetFilter filter fo statefulset

type TaskGroupFilter

type TaskGroupFilter struct {
	ClusterId           string `json:"clusterId" filter:"clusterId"`
	Name                string `json:"name,omitempty" filter:"resourceName"`
	Namespace           string `json:"namespace,omitempty" filter:"namespace"`
	RcName              string `json:"rcName,omitempty" filter:"data.rcname"`
	Status              string `json:"status,omitempty" filter:"data.status"`
	LastStatus          string `json:"lastStatus,omitempty" filter:"data.lastStatus"`
	HostIp              string `json:"hostIp,omitempty" filter:"data.hostIP"`
	HostName            string `json:"hostName,omitempty" filter:"data.hostName"`
	PodIp               string `json:"podIp,omitempty" filter:"data.podIP"`
	CreateTimeBegin     string `json:"createTimeBegin,omitempty" filter:"data.metadata.creationTimestamp,timeL"`
	CreateTimeEnd       string `json:"createTimeEnd,omitempty" filter:"data.metadata.creationTimestamp,timeR"`
	StartTimeBegin      string `json:"startTimeBegin,omitempty" filter:"data.startTime,timeL"`
	StartTimeEnd        string `json:"startTimeEnd,omitempty" filter:"data.startTime,timeR"`
	LastUpdateTimeBegin string `json:"lastUpdateTimeBegin,omitempty" filter:"data.lastUpdateTime,timeL"`
	LastUpdateTimeEnd   string `json:"lastUpdateTimeEnd,omitempty" filter:"data.lastUpdateTime,timeR"`
}

TaskGroupFilter filter of taskgroup

Jump to

Keyboard shortcuts

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