types

package
v0.0.0-...-1ae172a Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PodType                      = "pod"
	ClusterType                  = "cluster"
	EventType                    = "event"
	NodeType                     = "node"
	DeploymentType               = "deployment"
	StatefulsetType              = "statefulset"
	DaemonsetType                = "daemonset"
	CronjobType                  = "cronjob"
	JobType                      = "job"
	NamespaceType                = "namespace"
	ServiceType                  = "service"
	IngressType                  = "ingress"
	NetworkPolicyType            = "networkpolicy"
	EndpointType                 = "endpoints"
	ServiceAccountType           = "serviceaccount"
	RoleBindingType              = "rolebinding"
	ClusterRoleBindingType       = "clusterrolebinding"
	RoleType                     = "role"
	ClusterRoleType              = "clusterrole"
	ConfigMapType                = "configmap"
	SecretType                   = "secret"
	HpaType                      = "horizontalPodAutoscaler"
	PersistentVolumeClaimType    = "persistentVolumeClaim"
	PersistentVolumeType         = "persistentVolume"
	StorageClassType             = "storageclass"
	HelmType                     = "helm"
	CustomResourceDefinitionType = "crd"
	CustomResourceType           = "cr"
)
View Source
const (
	WatchAction  = "watch"
	ListAction   = "list"
	GetAction    = "get"
	CreateAction = "create"
	DeleteAction = "delete"
	UpdateAction = "update"
	ApplyAction  = "apply"
	PatchAction  = "patch"

	ExecAction   = "exec"
	StdinAction  = "stdin"
	LogAction    = "log"
	CloseSession = "close_session"
)
View Source
const ServerVersion16 = "v1.16.0"
View Source
const ServerVersion17 = "v1.17.0"
View Source
const ServerVersion19 = "v1.19.0"
View Source
const ServerVersion21 = "v1.21.0"
View Source
const ServerVersion22 = "v1.22.0"

Variables

View Source
var ProjectLabelSelector = &metav1.LabelSelector{
	MatchLabels: map[string]string{"kubespace.cn/belong-to": "project"},
}

Functions

This section is empty.

Types

type Request

type Request struct {
	TraceId  string      `json:"trace_id"`
	Resource string      `json:"resource"`
	Action   string      `json:"action"`
	Params   interface{} `json:"params"`
}

func (*Request) Unmarshal

func (r *Request) Unmarshal(data []byte) (interface{}, error)

type Response

type Response struct {
	TraceId string      `json:"trace_id"`
	Data    interface{} `json:"data"`
}

Jump to

Keyboard shortcuts

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