Documentation ¶
Index ¶
Constants ¶
View Source
const ( ResourceKindConfigMap = "configmaps" ResourceKindDaemonSet = "daemonsets" ResourceKindDeployment = "deployments" ResourceKindEvent = "events" ResourceKindHorizontalPodAutoscaler = "horizontalpodautoscalers" ResourceKindIngress = "ingresses" ResourceKindJob = "jobs" ResourceKindCronJob = "cronjobs" ResourceKindLimitRange = "limitranges" ResourceKindNamespace = "namespaces" ResourceKindNode = "nodes" ResourceKindPersistentVolumeClaim = "persistentvolumeclaims" ResourceKindPersistentVolume = "persistentvolumes" ResourceKindCustomResourceDefinition = "customresourcedefinitions" ResourceKindPod = "pods" ResourceKindReplicaSet = "replicasets" ResourceKindResourceQuota = "resourcequota" ResourceKindSecret = "secrets" ResourceKindService = "services" ResourceKindStatefulSet = "statefulsets" ResourceKindStorageClass = "storageclasses" ResourceKindClusterRole = "clusterroles" ResourceKindClusterRoleBinding = "clusterrolebindings" ResourceKindRole = "roles" ResourceKindRoleBinding = "rolebindings" ResourceKindWorkspace = "workspaces" ResourceKindS2iBinary = "s2ibinaries" ResourceKindStrategy = "strategy" ResourceKindServicePolicy = "servicepolicies" ResourceKindS2iBuilderTemplate = "s2ibuildertemplates" ResourceKindeS2iRun = "s2iruns" ResourceKindS2iBuilder = "s2ibuilders" ResourceKindApplication = "applications" WorkspaceNone = "" ClusterNone = "" )
List of all resource kinds supported by the UI.
Variables ¶
View Source
var SupportedGroupVersionResources = map[ClientType][]schema.GroupVersionResource{ ClientKubernetes: { {Group: "", Version: "v1", Resource: "namespaces"}, {Group: "", Version: "v1", Resource: "nodes"}, {Group: "", Version: "v1", Resource: "resourcequotas"}, {Group: "", Version: "v1", Resource: "pods"}, {Group: "", Version: "v1", Resource: "services"}, {Group: "", Version: "v1", Resource: "persistentvolumeclaims"}, {Group: "", Version: "v1", Resource: "secrets"}, {Group: "", Version: "v1", Resource: "configmaps"}, {Group: "", Version: "v1", Resource: "serviceaccounts"}, {Group: "rbac.authorization.k8s.io", Version: "v1", Resource: "roles"}, {Group: "rbac.authorization.k8s.io", Version: "v1", Resource: "rolebindings"}, {Group: "rbac.authorization.k8s.io", Version: "v1", Resource: "clusterroles"}, {Group: "rbac.authorization.k8s.io", Version: "v1", Resource: "clusterrolebindings"}, {Group: "apps", Version: "v1", Resource: "deployments"}, {Group: "apps", Version: "v1", Resource: "daemonsets"}, {Group: "apps", Version: "v1", Resource: "replicasets"}, {Group: "apps", Version: "v1", Resource: "statefulsets"}, {Group: "apps", Version: "v1", Resource: "controllerrevisions"}, {Group: "storage.k8s.io", Version: "v1", Resource: "storageclasses"}, {Group: "batch", Version: "v1", Resource: "jobs"}, {Group: "batch", Version: "v1beta1", Resource: "cronjobs"}, {Group: "networking.k8s.io", Version: "v1", Resource: "ingresses"}, {Group: "autoscaling", Version: "v2beta2", Resource: "horizontalpodautoscalers"}, }, ClientKubeSphere: {}, ClientIstio: {}, ClientApplication: { {Group: "app.k8s.io", Version: "v1beta1", Resource: "applications"}, }, }
Functions ¶
This section is empty.
Types ¶
type ClientType ¶
type ClientType string
const ( ClientKubernetes ClientType = "Kubernetes" ClientKubeSphere ClientType = "Kubesphere" ClientIstio ClientType = "Istio" ClientS2i ClientType = "S2i" ClientApplication ClientType = "Application" StatusOK = "ok" )
type GitCredential ¶
type GitCredential struct { RemoteUrl string `json:"remoteUrl" description:"git server url"` SecretRef *corev1.SecretReference `json:"secretRef,omitempty" description:"auth secret reference"` }
type ListResult ¶
type ListResult struct { Data []interface{} `json:"data"` Pagination Pagination `json:"pagination"` }
type NamespacedResourceQuota ¶
type NamespacedResourceQuota struct { Namespace string `json:"namespace,omitempty"` Data struct { corev1.ResourceQuotaStatus // quota left status, do the math on the side, cause it's // a lot easier with go-client library Left corev1.ResourceList `json:"left,omitempty"` } `json:"data,omitempty"` }
type Pagination ¶
type RegistryCredential ¶
type ResourceQuota ¶
type ResourceQuota struct { Namespace string `json:"namespace" description:"namespace"` Data corev1.ResourceQuotaStatus `json:"data" description:"resource quota status"` }
Click to show internal directories.
Click to hide internal directories.