Documentation ¶
Index ¶
- type ClusterRole
- type ClusterRoleBinding
- type ConfigMaps
- type ContainerMetrics
- type CronJob
- type CustomResourceDefinition
- type DaemonSet
- type Deployment
- type Endpoint
- type Event
- type Field
- type Form
- type Generic
- type HorizontalPodAutoscaler
- type IP
- type Ingress
- type Injector
- type Job
- type Metrics
- func (m *Metrics) GetNodeMetricsList(nodes *metrics.NodeMetricsList) error
- func (m *Metrics) GetPodMetrics(namespace, name string, pods *PodMetrics) error
- func (m *Metrics) GetPodMetricsList(namespace string, pods *PodMetricsList) error
- func (m *Metrics) ProxyToPrometheus(params map[string]string, body []byte) (map[string]MetricsContentMap, error)
- type MetricsContentMap
- type Namespace
- type NetworkAttachmentDefinition
- type NetworkPolicy
- type Node
- type Page
- type PersistentVolume
- type PersistentVolumeClaims
- type Pipeline
- type PipelineResource
- type PipelineRun
- type Pod
- type PodMetrics
- type PodMetricsList
- type PodSecurityPolicies
- type ReplicaSet
- type ResourceQuota
- type Role
- type RoleBinding
- type Secrets
- type Service
- type ServiceAccount
- type StatefulSet
- type StatefulSet1
- type Stone
- type StorageClass
- type SubNet
- type Task
- type TaskRun
- type TektonGraph
- type TektonStore
- type TektonWebHook
- type Water
- type WorkloadsTemplate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterRole ¶
type ClusterRole struct {
common.WorkloadsResourceHandler
}
ClusterRole the kubernetes native resource ClusterRole
type ClusterRoleBinding ¶
type ClusterRoleBinding struct {
common.WorkloadsResourceHandler
}
ClusterRoleBinding the kubernetes native resource configmaps
func NewClusterRoleBinding ¶
func NewClusterRoleBinding() *ClusterRoleBinding
NewClusterRoleBinding exported
type ConfigMaps ¶
type ConfigMaps struct {
common.WorkloadsResourceHandler
}
ConfigMaps the kubernetes native resource configmaps
type ContainerMetrics ¶
type ContainerMetrics struct { // Container name corresponding to the one from pod.spec.containers. Name string `json:"name"` // The memory usage is the memory working set. Usage corev1.ResourceList `json:"usage"` }
resource usage metrics of a container.
type CronJob ¶
type CronJob struct {
common.WorkloadsResourceHandler // extended for workloadsResourceHandler
}
CronJob is kubernetes default resource cronjob
type CustomResourceDefinition ¶
type CustomResourceDefinition struct {
common.WorkloadsResourceHandler
}
CustomResourceDefinition the kubernetes native CustomResourceDefinition
func NewCustomResourceDefinition ¶
func NewCustomResourceDefinition() *CustomResourceDefinition
NewCustomResourceDefinition exported
type DaemonSet ¶
type DaemonSet struct {
common.WorkloadsResourceHandler
}
DaemonSet the kubernetes native resource daemonsets
type Deployment ¶
type Deployment struct {
common.WorkloadsResourceHandler // extended for workloadsResourceHandler
}
Deployment the kubernetes native resource deployments
func NewDeployment ¶
func NewDeployment() *Deployment
type Endpoint ¶
type Endpoint struct {
common.WorkloadsResourceHandler
}
type Event ¶
type Event struct {
common.WorkloadsResourceHandler
}
type Field ¶
type Field struct {
common.WorkloadsResourceHandler
}
Field the kubernetes native service account
type Form ¶
type Form struct {
common.WorkloadsResourceHandler
}
Form the kubernetes native service account
type Generic ¶
type Generic struct {
common.WorkloadsResourceHandler
}
func NewGeneric ¶
func NewGeneric() *Generic
type HorizontalPodAutoscaler ¶
type HorizontalPodAutoscaler struct {
common.WorkloadsResourceHandler
}
HorizontalPodAutoscaler the kubernetes native HorizontalPodAutoscaler
func NewHorizontalPodAutoscaler ¶
func NewHorizontalPodAutoscaler() *HorizontalPodAutoscaler
NewHorizontalPodAutoscaler exported
type IP ¶
type IP struct {
common.WorkloadsResourceHandler
}
type Ingress ¶
type Ingress struct {
common.WorkloadsResourceHandler
}
Ingress the kubernetes native resource ingress
type Injector ¶
type Injector struct {
common.WorkloadsResourceHandler
}
Injector is nuwa.nip.io resource Injector
type Job ¶
type Job struct {
common.WorkloadsResourceHandler
}
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
func NewMetrics ¶
func NewMetrics() *Metrics
func (*Metrics) GetNodeMetricsList ¶
func (m *Metrics) GetNodeMetricsList(nodes *metrics.NodeMetricsList) error
func (*Metrics) GetPodMetrics ¶
func (m *Metrics) GetPodMetrics(namespace, name string, pods *PodMetrics) error
func (*Metrics) GetPodMetricsList ¶
func (m *Metrics) GetPodMetricsList(namespace string, pods *PodMetricsList) error
func (*Metrics) ProxyToPrometheus ¶
type MetricsContentMap ¶
type MetricsContentMap map[string]interface{}
type Namespace ¶
type Namespace struct {
common.WorkloadsResourceHandler
}
type NetworkAttachmentDefinition ¶
type NetworkAttachmentDefinition struct {
common.WorkloadsResourceHandler
}
NetworkAttachmentDefinition the kubernetes native service account
func NewNetworkAttachmentDefinition ¶
func NewNetworkAttachmentDefinition() *NetworkAttachmentDefinition
NewNetworkAttachmentDefinition exported
type NetworkPolicy ¶
type NetworkPolicy struct {
common.WorkloadsResourceHandler
}
NetworkPolicy the kubernetes native resource network policy
type Node ¶
type Node struct {
common.WorkloadsResourceHandler
}
type Page ¶
type Page struct {
common.WorkloadsResourceHandler
}
Page the kubernetes native service account
type PersistentVolume ¶
type PersistentVolume struct {
common.WorkloadsResourceHandler
}
PersistentVolume the kubernetes native resource persistent volume
func NewPersistentVolume ¶
func NewPersistentVolume() *PersistentVolume
NewPersistentVolume exported
type PersistentVolumeClaims ¶
type PersistentVolumeClaims struct {
common.WorkloadsResourceHandler
}
PersistentVolumeClaims the kubernetes native resource persistent volume claims
func NewPersistentVolumeClaims ¶
func NewPersistentVolumeClaims() *PersistentVolumeClaims
NewPersistentVolumeClaims exported
type Pipeline ¶
type Pipeline struct {
common.WorkloadsResourceHandler
}
Pipeline the kubernetes Knative tekton pipeline resource
type PipelineResource ¶
type PipelineResource struct {
common.WorkloadsResourceHandler
}
PipelineResource the kubernetes Knative tekton PipelineResource resource
func NewPipelineResource ¶
func NewPipelineResource() *PipelineResource
NewPipelineResource exported
type PipelineRun ¶
type PipelineRun struct {
common.WorkloadsResourceHandler
}
PipelineRun the kubernetes Knative tekton pipeline run resource
type PodMetrics ¶
type PodMetrics struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // The following fields define time interval from which metrics were // collected from the interval [Timestamp-Window, Timestamp]. Timestamp metav1.Time `json:"timestamp"` Window metav1.Duration `json:"window"` // Metrics for all containers are collected within the same time window. Containers []ContainerMetrics `json:"containers"` }
type PodMetricsList ¶
type PodMetricsList struct { metav1.TypeMeta `json:",inline"` // Standard list metadata. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds metav1.ListMeta `json:"metadata,omitempty"` // List of pod metrics. Items []PodMetrics `json:"items"` }
type PodSecurityPolicies ¶
type PodSecurityPolicies struct {
common.WorkloadsResourceHandler
}
PodSecurityPolicies the kubernetes native role
func NewPodSecurityPolicies ¶
func NewPodSecurityPolicies() *PodSecurityPolicies
NewPodSecurityPolicies exported
type ReplicaSet ¶
type ReplicaSet struct {
common.WorkloadsResourceHandler // extended for workloadsResourceHandler
}
ReplicaSet is kubernetes default resource replicaset
type ResourceQuota ¶
type ResourceQuota struct {
common.WorkloadsResourceHandler
}
ResourceQuota the kubernetes native resource resource quota
type RoleBinding ¶
type RoleBinding struct {
common.WorkloadsResourceHandler
}
RoleBinding the kubernetes native role binding
type Secrets ¶
type Secrets struct {
common.WorkloadsResourceHandler
}
Secret the kubernetes native resource secret
type Service ¶
type Service struct {
common.WorkloadsResourceHandler
}
Service the kubernetes native resource services
type ServiceAccount ¶
type ServiceAccount struct {
common.WorkloadsResourceHandler
}
ServiceAccount the kubernetes native service account
type StatefulSet ¶
type StatefulSet struct {
common.WorkloadsResourceHandler
}
Statfulset is kubernetes default resource statfulsets
type StatefulSet1 ¶
type StatefulSet1 struct {
common.WorkloadsResourceHandler
}
Statfulset is nuwa.nip.io resource statfulsets
type Stone ¶
type Stone struct {
common.WorkloadsResourceHandler
}
Stone is nuwa.nip.io resource Stone
type StorageClass ¶
type StorageClass struct {
common.WorkloadsResourceHandler
}
StorageClass the kubernetes native resource storage class
type SubNet ¶
type SubNet struct {
common.WorkloadsResourceHandler
}
type Task ¶
type Task struct {
common.WorkloadsResourceHandler
}
Task the kubernetes Knative tekton Task resource
type TaskRun ¶
type TaskRun struct {
common.WorkloadsResourceHandler
}
TaskRun the kubernetes Knative tekton taskrun resource
type TektonGraph ¶
type TektonGraph struct {
common.WorkloadsResourceHandler // extended for workloadsResourceHandler
}
TektonGraph is kubernetes default resource tekton graph
type TektonStore ¶
type TektonStore struct {
common.WorkloadsResourceHandler // extended for workloadsResourceHandler
}
TektonStore is kubernetes default resource tekton graph
type TektonWebHook ¶
type TektonWebHook struct {
common.WorkloadsResourceHandler // extended for workloadsResourceHandler
}
TektonWebHook is kubernetes default resource tekton graph
type Water ¶
type Water struct {
common.WorkloadsResourceHandler
}
Water is nuwa.nip.io resource Water
type WorkloadsTemplate ¶
type WorkloadsTemplate struct {
common.WorkloadsResourceHandler
}
WorkloadsTemplate is fuxi.nip.io/v1 resource workloads
func NewWorkloadsTemplate ¶
func NewWorkloadsTemplate() *WorkloadsTemplate
NewWorkloadsTemplate exported
Source Files ¶
- clusterrole.go
- clusterrolebind.go
- configmap.go
- cronjob.go
- customresourcedefinition.go
- daemonset.go
- deployment.go
- endpoint.go
- event.go
- field.go
- form.go
- generic.go
- horizontalpodautoscaler.go
- ingress.go
- injector.go
- ip.go
- job.go
- metrics.go
- namespace.go
- networkattachmentdefinitions.go
- networkpolicies.go
- node.go
- page.go
- persistentvolume.go
- persistentvolumeclaims.go
- pipeline.go
- pipelineresource.go
- pipelinerun.go
- pod.go
- podsecuritypolicies.go
- replicaset.go
- role.go
- rolebinding.go
- rsourcequota.go
- secret.go
- service.go
- serviceaccount.go
- statefulset.go
- statefulset1.go
- stone.go
- storageclass.go
- subnet.go
- task.go
- taskrun.go
- tekton_store.go
- tektongraph.go
- tektonwebhook.go
- water.go
- workloadsTemplate.go