workload

package
v0.0.0-...-9be0976 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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

func NewClusterRole

func NewClusterRole() *ClusterRole

NewClusterRole exported

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

func NewConfigMaps

func NewConfigMaps() *ConfigMaps

NewConfigMaps exported

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

func NewCronJob

func NewCronJob() *CronJob

NewCronJob exported

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

func NewDaemonSet

func NewDaemonSet() *DaemonSet

NewDaemonSet exported

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
}

func NewEndpoint

func NewEndpoint() *Endpoint

NewEvent exported

type Event

type Event struct {
	common.WorkloadsResourceHandler
}

func NewEvent

func NewEvent() *Event

NewEvent exported

type Field

type Field struct {
	common.WorkloadsResourceHandler
}

Field the kubernetes native service account

func NewField

func NewField() *Field

NewField exported

type Form

type Form struct {
	common.WorkloadsResourceHandler
}

Form the kubernetes native service account

func NewForm

func NewForm() *Form

NewField exported

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
}

func NewIP

func NewIP() *IP

NewIP exported

type Ingress

type Ingress struct {
	common.WorkloadsResourceHandler
}

Ingress the kubernetes native resource ingress

func NewIngress

func NewIngress() *Ingress

NewIngress exported

type Injector

type Injector struct {
	common.WorkloadsResourceHandler
}

Injector is nuwa.nip.io resource Injector

func NewInjector

func NewInjector() *Injector

NewInjector exported

type Job

type Job struct {
	common.WorkloadsResourceHandler
}

func NewJob

func NewJob() *Job

NewJob exported

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

func (m *Metrics) ProxyToPrometheus(params map[string]string, body []byte) (map[string]MetricsContentMap, error)

type MetricsContentMap

type MetricsContentMap map[string]interface{}

type Namespace

type Namespace struct {
	common.WorkloadsResourceHandler
}

func NewNamespace

func NewNamespace() *Namespace

NewNode exported

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

func NewNetworkPolicy

func NewNetworkPolicy() *NetworkPolicy

NewNetworkPolicy exported

type Node

type Node struct {
	common.WorkloadsResourceHandler
}

func NewNode

func NewNode() *Node

NewNode exported

type Page

type Page struct {
	common.WorkloadsResourceHandler
}

Page the kubernetes native service account

func NewPage

func NewPage() *Page

NewPage exported

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

func NewPipeline

func NewPipeline() *Pipeline

NewPipeline exported

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

func NewPipelineRun

func NewPipelineRun() *PipelineRun

NewPipelineRun exported

type Pod

type Pod struct {
	common.WorkloadsResourceHandler
}

Pod doc kubernetes

func NewPod

func NewPod() *Pod

func (*Pod) Logs

func (p *Pod) Logs(
	namespace, name, container string,
	follow bool, previous bool, timestamps bool,
	sinceSeconds int64,
	sinceTime *time.Time,
	limitBytes int64,
	tailLines int64,
	out io.Writer,
) error

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

func NewReplicaSet

func NewReplicaSet() *ReplicaSet

NewReplicaSet exported

type ResourceQuota

type ResourceQuota struct {
	common.WorkloadsResourceHandler
}

ResourceQuota the kubernetes native resource resource quota

func NewResourceQuota

func NewResourceQuota() *ResourceQuota

NewResourceQuota exported

type Role

type Role struct {
	common.WorkloadsResourceHandler
}

Role the kubernetes native role

func NewRole

func NewRole() *Role

NewRole exported

type RoleBinding

type RoleBinding struct {
	common.WorkloadsResourceHandler
}

RoleBinding the kubernetes native role binding

func NewRoleBinding

func NewRoleBinding() *RoleBinding

NewRoleBinding exported

type Secrets

type Secrets struct {
	common.WorkloadsResourceHandler
}

Secret the kubernetes native resource secret

func NewSecrets

func NewSecrets() *Secrets

NewSecret exported

type Service

type Service struct {
	common.WorkloadsResourceHandler
}

Service the kubernetes native resource services

func NewService

func NewService() *Service

NewService exported

type ServiceAccount

type ServiceAccount struct {
	common.WorkloadsResourceHandler
}

ServiceAccount the kubernetes native service account

func NewServiceAccount

func NewServiceAccount() *ServiceAccount

NewServiceAccount exported

type StatefulSet

type StatefulSet struct {
	common.WorkloadsResourceHandler
}

Statfulset is kubernetes default resource statfulsets

func NewStatefulSet

func NewStatefulSet() *StatefulSet

NewStatfulset exported

type StatefulSet1

type StatefulSet1 struct {
	common.WorkloadsResourceHandler
}

Statfulset is nuwa.nip.io resource statfulsets

func NewStatefulSet1

func NewStatefulSet1() *StatefulSet1

NewStatfulset1 exported

type Stone

type Stone struct {
	common.WorkloadsResourceHandler
}

Stone is nuwa.nip.io resource Stone

func NewStone

func NewStone() *Stone

NewStone exported

type StorageClass

type StorageClass struct {
	common.WorkloadsResourceHandler
}

StorageClass the kubernetes native resource storage class

func NewStorageClass

func NewStorageClass() *StorageClass

NewStorageClass exported

type SubNet

type SubNet struct {
	common.WorkloadsResourceHandler
}

func NewSubNet

func NewSubNet() *SubNet

NewSubNet exported

type Task

type Task struct {
	common.WorkloadsResourceHandler
}

Task the kubernetes Knative tekton Task resource

func NewTask

func NewTask() *Task

NewTask exported

type TaskRun

type TaskRun struct {
	common.WorkloadsResourceHandler
}

TaskRun the kubernetes Knative tekton taskrun resource

func NewTaskRun

func NewTaskRun() *TaskRun

NewTaskRun exported

type TektonGraph

type TektonGraph struct {
	common.WorkloadsResourceHandler // extended for workloadsResourceHandler
}

TektonGraph is kubernetes default resource tekton graph

func NewTektonGraph

func NewTektonGraph() *TektonGraph

NewTektonGraph exported

type TektonStore

type TektonStore struct {
	common.WorkloadsResourceHandler // extended for workloadsResourceHandler
}

TektonStore is kubernetes default resource tekton graph

func NewTektonStore

func NewTektonStore() *TektonStore

NewTektonStore exported

type TektonWebHook

type TektonWebHook struct {
	common.WorkloadsResourceHandler // extended for workloadsResourceHandler
}

TektonWebHook is kubernetes default resource tekton graph

func NewTektonWebHook

func NewTektonWebHook() *TektonWebHook

NewTektonWebHook exported

type Water

type Water struct {
	common.WorkloadsResourceHandler
}

Water is nuwa.nip.io resource Water

func NewWater

func NewWater() *Water

NewWater exported

type WorkloadsTemplate

type WorkloadsTemplate struct {
	common.WorkloadsResourceHandler
}

WorkloadsTemplate is fuxi.nip.io/v1 resource workloads

func NewWorkloadsTemplate

func NewWorkloadsTemplate() *WorkloadsTemplate

NewWorkloadsTemplate exported

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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