Documentation
¶
Index ¶
- func NewClientSet(kubeconfig string, timeout int) (clientset *kubernetes.Clientset, err error)
- type ClusterRole
- func (c *ClusterRole) Create(namespace string) error
- func (c *ClusterRole) Delete(namespace, name string, gracePeriodSeconds *int64) error
- func (c *ClusterRole) DeleteList(namespace, string, nameList []string, gracePeriodSeconds *int64) error
- func (c *ClusterRole) Get(namespace, name string) (item interface{}, err error)
- func (c *ClusterRole) List(namespace, labelSelector, fieldSelector string) (items interface{}, err error)
- func (c *ClusterRole) Update(namespace string) error
- type ClusterRoleBinding
- func (c *ClusterRoleBinding) Create(namespace string) error
- func (c *ClusterRoleBinding) Delete(namespace, name string, gracePeriodSeconds *int64) error
- func (c *ClusterRoleBinding) DeleteList(namespace string, nameList []string, gracePeriodSeconds *int64) error
- func (c *ClusterRoleBinding) Get(namespace, name string) (item interface{}, err error)
- func (c *ClusterRoleBinding) List(namespace, labelSelector, fieldSelector string) (items interface{}, err error)
- func (c *ClusterRoleBinding) Update(namespace string) error
- type ConfigMap
- func (c *ConfigMap) Create(namespace string) error
- func (c *ConfigMap) Delete(namespace, name string, gracePeriodSeconds *int64) error
- func (c *ConfigMap) DeleteList(namespace string, nameList []string, gracePeriodSeconds *int64) error
- func (c *ConfigMap) Get(namespace, name string) (item interface{}, err error)
- func (c *ConfigMap) List(namespace, labelSelector, fieldSelector string) (items interface{}, err error)
- func (c *ConfigMap) Update(namespace string) error
- type CronJob
- func (c *CronJob) Create(namespace string) error
- func (c *CronJob) Delete(namespace, name string, gracePeriodSeconds *int64) error
- func (c *CronJob) DeleteList(namespace string, nameList []string, gracePeriodSeconds *int64) error
- func (c *CronJob) Get(namespace, name string) (item interface{}, err error)
- func (c *CronJob) List(namespace, labelSelector, fieldSelector string) (items interface{}, err error)
- func (c *CronJob) Update(namespace string) error
- type DaemonSet
- func (c *DaemonSet) Create(namespace string) error
- func (c *DaemonSet) Delete(namespace, name string, gracePeriodSeconds *int64) error
- func (c *DaemonSet) DeleteList(namespace string, nameList []string, gracePeriodSeconds *int64) error
- func (c *DaemonSet) Get(namespace, name string) (item interface{}, err error)
- func (c *DaemonSet) List(namespace, labelSelector, fieldSelector string) (items interface{}, err error)
- func (c *DaemonSet) Update(namespace string) error
- type Deployment
- func (c *Deployment) Create(namespace string) error
- func (c *Deployment) Delete(namespace, name string, gracePeriodSeconds *int64) error
- func (c *Deployment) DeleteList(namespace string, nameList []string, gracePeriodSeconds *int64) error
- func (c *Deployment) Get(namespace, name string) (item interface{}, err error)
- func (c *Deployment) List(namespace, labelSelector, fieldSelector string) (items interface{}, err error)
- func (c *Deployment) Update(namespace string) error
- type Ingress
- func (c *Ingress) Create(namespace string) error
- func (c *Ingress) Delete(namespace, name string, gracePeriodSeconds *int64) error
- func (c *Ingress) DeleteList(namespace string, nameList []string, gracePeriodSeconds *int64) error
- func (c *Ingress) Get(namespace, name string) (item interface{}, err error)
- func (c *Ingress) List(namespace, labelSelector, fieldSelector string) (items interface{}, err error)
- func (c *Ingress) Update(namespace string) error
- type IngressClass
- func (c *IngressClass) Create(namespace string) error
- func (c *IngressClass) Delete(namespace, name string, gracePeriodSeconds *int64) error
- func (c *IngressClass) DeleteList(namespace string, nameList []string, gracePeriodSeconds *int64) error
- func (c *IngressClass) Get(namespace, name string) (item interface{}, err error)
- func (c *IngressClass) List(namespace, labelSelector, fieldSelector string) (items interface{}, err error)
- func (c *IngressClass) Update(namespace string) error
- type KubeUtilser
- type Namespace
- func (c *Namespace) Create(namespace string) error
- func (c *Namespace) Delete(namespace string, name string, gracePeriodSeconds *int64) error
- func (c *Namespace) DeleteList(namespace string, nameList []string, gracePeriodSeconds *int64) error
- func (c *Namespace) Get(name string) (item interface{}, err error)
- func (c *Namespace) List(namespace, labelSelector, fieldSelector string) (items interface{}, err error)
- func (c *Namespace) Update(namespace string) error
- type Node
- func (c *Node) Create(namespace string) error
- func (c *Node) Delete(namespace string, name string, gracePeriodSeconds *int64) error
- func (c *Node) DeleteList(namespace string, nameList []string, gracePeriodSeconds *int64) error
- func (c *Node) Get(namespace, name string) (item interface{}, err error)
- func (c *Node) List(namespace string, labelSelector, fieldSelector string) (items interface{}, err error)
- func (c *Node) Update(namespace string) error
- type PersistentVolume
- func (c *PersistentVolume) Create(namespace string) error
- func (c *PersistentVolume) Delete(namespace, name string, gracePeriodSeconds *int64) error
- func (c *PersistentVolume) DeleteList(namespace string, nameList []string, gracePeriodSeconds *int64) error
- func (c *PersistentVolume) Get(namespace, name string) (item interface{}, err error)
- func (c *PersistentVolume) List(namespace, labelSelector, fieldSelector string) (items interface{}, err error)
- func (c *PersistentVolume) Update(namespace string) error
- type PersistentVolumeClaim
- func (c *PersistentVolumeClaim) Create(namespace string) error
- func (c *PersistentVolumeClaim) Delete(namespace, name string, gracePeriodSeconds *int64) error
- func (c *PersistentVolumeClaim) DeleteList(namespace string, nameList []string, gracePeriodSeconds *int64) error
- func (c *PersistentVolumeClaim) Get(namespace, name string) (item interface{}, err error)
- func (c *PersistentVolumeClaim) List(namespace, labelSelector, fieldSelector string) (items interface{}, err error)
- func (c *PersistentVolumeClaim) Update(namespace string) error
- type Pod
- func (c *Pod) Create(namespace string) error
- func (c *Pod) Delete(namespace, name string, gracePeriodSeconds *int64) error
- func (c *Pod) DeleteList(namespace string, nameList []string, gracePeriodSeconds *int64) error
- func (c *Pod) Get(namespace, name string) (item interface{}, err error)
- func (c *Pod) List(namespace, labelSelector, fieldSelector string) (items interface{}, err error)
- func (c *Pod) Update(namespace string) error
- type ReplicaSet
- func (c *ReplicaSet) Create(namespace string) error
- func (c *ReplicaSet) Delete(namespace, name string, gracePeriodSeconds *int64) error
- func (c *ReplicaSet) DeleteList(namespace string, nameList []string, gracePeriodSeconds *int64) error
- func (c *ReplicaSet) Get(namespace, name string) (item interface{}, err error)
- func (c *ReplicaSet) List(namespace, labelSelector, fieldSelector string) (items interface{}, err error)
- func (c *ReplicaSet) Update(namespace string) error
- type ResourceInstance
- type Role
- func (c *Role) Create(namespace string) error
- func (c *Role) Delete(namespace, name string, gracePeriodSeconds *int64) error
- func (c *Role) DeleteList(namespace string, nameList []string, gracePeriodSeconds *int64) error
- func (c *Role) Get(namespace, name string) (item interface{}, err error)
- func (c *Role) List(namespace, labelSelector, fieldSelector string) (items interface{}, err error)
- func (c *Role) Update(namespace string) error
- type RoleBinding
- func (c *RoleBinding) Create(namespace string) error
- func (c *RoleBinding) Delete(namespace, name string, gracePeriodSeconds *int64) error
- func (c *RoleBinding) DeleteList(namespace string, nameList []string, gracePeriodSeconds *int64) error
- func (c *RoleBinding) Get(namespace, name string) (item interface{}, err error)
- func (c *RoleBinding) List(namespace, labelSelector, fieldSelector string) (items interface{}, err error)
- func (c *RoleBinding) Update(namespace string) error
- type Secret
- func (c *Secret) Create(namespace string) error
- func (c *Secret) Delete(namespace, name string, gracePeriodSeconds *int64) error
- func (c *Secret) DeleteList(namespace string, nameList []string, gracePeriodSeconds *int64) error
- func (c *Secret) Get(namespace, name string) (item interface{}, err error)
- func (c *Secret) List(namespace, labelSelector, fieldSelector string) (items interface{}, err error)
- func (c *Secret) Update(namespace string) error
- type Service
- func (c *Service) Create(namespace string) error
- func (c *Service) Delete(namespace, name string, gracePeriodSeconds *int64) error
- func (c *Service) DeleteList(namespace string, nameList []string, gracePeriodSeconds *int64) error
- func (c *Service) Get(namespace, name string) (item interface{}, err error)
- func (c *Service) List(namespace, labelSelector, fieldSelector string) (items interface{}, err error)
- func (c *Service) Update(namespace string) error
- type StatefulSet
- func (c *StatefulSet) Create(namespace string) error
- func (c *StatefulSet) Delete(namespace, name string, gracePeriodSeconds *int64) error
- func (c *StatefulSet) DeleteList(namespace string, nameList []string, gracePeriodSeconds *int64) error
- func (c *StatefulSet) Get(namespace, name string) (item interface{}, err error)
- func (c *StatefulSet) List(namespace, labelSelector, fieldSelector string) (items interface{}, err error)
- func (c *StatefulSet) Update(namespace string) error
- type StorageClass
- func (c *StorageClass) Create(namespace string) error
- func (c *StorageClass) Delete(namespace, name string, gracePeriodSeconds *int64) error
- func (c *StorageClass) DeleteList(namespace string, nameList []string, gracePeriodSeconds *int64) error
- func (c *StorageClass) Get(namespace, name string) (item interface{}, err error)
- func (c *StorageClass) List(namespace, labelSelector, fieldSelector string) (items interface{}, err error)
- func (c *StorageClass) Update(namespace string) error
- type Tools
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClientSet ¶
func NewClientSet(kubeconfig string, timeout int) (clientset *kubernetes.Clientset, err error)
Types ¶
type ClusterRole ¶
type ClusterRole struct { InstanceInterface typedv1.RbacV1Interface Item *rbacv1.ClusterRole }
定义结构体
func NewClusterRole ¶
func NewClusterRole(kubeconfig string, item *rbacv1.ClusterRole) *ClusterRole
New函数可以用于配置一些默认值
func (*ClusterRole) Delete ¶
func (c *ClusterRole) Delete(namespace, name string, gracePeriodSeconds *int64) error
删除资源
func (*ClusterRole) DeleteList ¶
func (c *ClusterRole) DeleteList(namespace, string, nameList []string, gracePeriodSeconds *int64) error
删除多个
func (*ClusterRole) Get ¶
func (c *ClusterRole) Get(namespace, name string) (item interface{}, err error)
获取资源配置
func (*ClusterRole) List ¶
func (c *ClusterRole) List(namespace, labelSelector, fieldSelector string) (items interface{}, err error)
获取资源列表
type ClusterRoleBinding ¶
type ClusterRoleBinding struct { InstanceInterface typedv1.RbacV1Interface Item *rbacv1.ClusterRoleBinding }
定义结构体
func NewClusterRoleBinding ¶
func NewClusterRoleBinding(kubeconfig string, item *rbacv1.ClusterRoleBinding) *ClusterRoleBinding
New函数可以用于配置一些默认值
func (*ClusterRoleBinding) Create ¶
func (c *ClusterRoleBinding) Create(namespace string) error
创建资源
func (*ClusterRoleBinding) Delete ¶
func (c *ClusterRoleBinding) Delete(namespace, name string, gracePeriodSeconds *int64) error
删除资源
func (*ClusterRoleBinding) DeleteList ¶
func (c *ClusterRoleBinding) DeleteList(namespace string, nameList []string, gracePeriodSeconds *int64) error
删除多个
func (*ClusterRoleBinding) Get ¶
func (c *ClusterRoleBinding) Get(namespace, name string) (item interface{}, err error)
获取资源配置
func (*ClusterRoleBinding) List ¶
func (c *ClusterRoleBinding) List(namespace, labelSelector, fieldSelector string) (items interface{}, err error)
获取资源列表
func (*ClusterRoleBinding) Update ¶
func (c *ClusterRoleBinding) Update(namespace string) error
更新资源
type ConfigMap ¶
type ConfigMap struct { InstanceInterface typedv1.CoreV1Interface Item *corev1.ConfigMap }
定义结构体
func NewConfigMap ¶
New函数可以用于配置一些默认值
func (*ConfigMap) DeleteList ¶
func (c *ConfigMap) DeleteList(namespace string, nameList []string, gracePeriodSeconds *int64) error
删除多个
type CronJob ¶
type CronJob struct { InstanceInterface typedv1.BatchV1Interface Item *batchv1.CronJob }
定义结构体
func NewCronJob ¶
New函数可以用于配置一些默认值
func (*CronJob) DeleteList ¶
删除多个
type DaemonSet ¶
type DaemonSet struct { InstanceInterface typedv1.AppsV1Interface Item *appsv1.DaemonSet }
定义结构体
func NewDaemonSet ¶
New函数可以用于配置一些默认值
func (*DaemonSet) DeleteList ¶
func (c *DaemonSet) DeleteList(namespace string, nameList []string, gracePeriodSeconds *int64) error
删除多个
type Deployment ¶
type Deployment struct { InstanceInterface typedv1.AppsV1Interface Item *appsv1.Deployment }
定义结构体
func NewDeployment ¶
func NewDeployment(kubeconfig string, item *appsv1.Deployment) *Deployment
New函数可以用于配置一些默认值
func (*Deployment) Delete ¶
func (c *Deployment) Delete(namespace, name string, gracePeriodSeconds *int64) error
删除资源
func (*Deployment) DeleteList ¶
func (c *Deployment) DeleteList(namespace string, nameList []string, gracePeriodSeconds *int64) error
删除多个
func (*Deployment) Get ¶
func (c *Deployment) Get(namespace, name string) (item interface{}, err error)
获取资源配置
func (*Deployment) List ¶
func (c *Deployment) List(namespace, labelSelector, fieldSelector string) (items interface{}, err error)
获取资源列表
type Ingress ¶
type Ingress struct { InstanceInterface typedv1.NetworkingV1Interface Item *networkingv1.Ingress }
定义结构体
func NewIngress ¶
func NewIngress(kubeconfig string, item *networkingv1.Ingress) *Ingress
New函数可以用于配置一些默认值
func (*Ingress) DeleteList ¶
删除多个
type IngressClass ¶
type IngressClass struct { InstanceInterface typedv1.NetworkingV1Interface Item *networkingv1.IngressClass }
定义结构体
func NewIngressClass ¶
func NewIngressClass(kubeconfig string, item *networkingv1.IngressClass) *IngressClass
New函数可以用于配置一些默认值
func (*IngressClass) Delete ¶
func (c *IngressClass) Delete(namespace, name string, gracePeriodSeconds *int64) error
删除资源
func (*IngressClass) DeleteList ¶
func (c *IngressClass) DeleteList(namespace string, nameList []string, gracePeriodSeconds *int64) error
删除多个
func (*IngressClass) Get ¶
func (c *IngressClass) Get(namespace, name string) (item interface{}, err error)
获取资源配置
func (*IngressClass) List ¶
func (c *IngressClass) List(namespace, labelSelector, fieldSelector string) (items interface{}, err error)
获取资源列表
type KubeUtilser ¶
type KubeUtilser interface { // namespace, item Create(string) error // namespace, name, gracePeriodSeconds Delete(string, string, *int64) error // namespace, nameList, gracePeriodSeconds DeleteList(string, []string, *int64) error // namespace, item Update(string) error // namespace, labelSelector, fieldSelector List(string, string, string) (interface{}, error) // namespace name Get(string, string) (interface{}, error) }
定义kubeutils的接口
type Namespace ¶
type Namespace struct { InstanceInterface typedv1.CoreV1Interface Item *corev1.Namespace }
定义结构体
func NewNamespace ¶
New函数可以用于配置一些默认值
func (*Namespace) DeleteList ¶
func (c *Namespace) DeleteList(namespace string, nameList []string, gracePeriodSeconds *int64) error
删除多个
type Node ¶
type Node struct { InstanceInterface typedv1.CoreV1Interface Item *corev1.Node }
定义结构体
func (*Node) DeleteList ¶
删除多个
type PersistentVolume ¶
type PersistentVolume struct { InstanceInterface typedv1.CoreV1Interface Item *corev1.PersistentVolume }
定义结构体
func NewPersistentVolume ¶
func NewPersistentVolume(kubeconfig string, item *corev1.PersistentVolume) *PersistentVolume
New函数可以用于配置一些默认值
func (*PersistentVolume) Delete ¶
func (c *PersistentVolume) Delete(namespace, name string, gracePeriodSeconds *int64) error
删除资源
func (*PersistentVolume) DeleteList ¶
func (c *PersistentVolume) DeleteList(namespace string, nameList []string, gracePeriodSeconds *int64) error
删除多个
func (*PersistentVolume) Get ¶
func (c *PersistentVolume) Get(namespace, name string) (item interface{}, err error)
获取资源配置
func (*PersistentVolume) List ¶
func (c *PersistentVolume) List(namespace, labelSelector, fieldSelector string) (items interface{}, err error)
获取资源列表
type PersistentVolumeClaim ¶
type PersistentVolumeClaim struct { InstanceInterface typedv1.CoreV1Interface Item *corev1.PersistentVolumeClaim }
定义结构体
func NewPersistentVolumeClaim ¶
func NewPersistentVolumeClaim(kubeconfig string, item *corev1.PersistentVolumeClaim) *PersistentVolumeClaim
New函数可以用于配置一些默认值
func (*PersistentVolumeClaim) Create ¶
func (c *PersistentVolumeClaim) Create(namespace string) error
创建资源
func (*PersistentVolumeClaim) Delete ¶
func (c *PersistentVolumeClaim) Delete(namespace, name string, gracePeriodSeconds *int64) error
删除资源
func (*PersistentVolumeClaim) DeleteList ¶
func (c *PersistentVolumeClaim) DeleteList(namespace string, nameList []string, gracePeriodSeconds *int64) error
删除多个
func (*PersistentVolumeClaim) Get ¶
func (c *PersistentVolumeClaim) Get(namespace, name string) (item interface{}, err error)
获取资源配置
func (*PersistentVolumeClaim) List ¶
func (c *PersistentVolumeClaim) List(namespace, labelSelector, fieldSelector string) (items interface{}, err error)
获取资源列表
func (*PersistentVolumeClaim) Update ¶
func (c *PersistentVolumeClaim) Update(namespace string) error
更新资源
type Pod ¶
type Pod struct { InstanceInterface typedv1.CoreV1Interface Item *corev1.Pod }
定义结构体
func (*Pod) DeleteList ¶
删除多个
type ReplicaSet ¶
type ReplicaSet struct { InstanceInterface typedv1.AppsV1Interface Item *appsv1.ReplicaSet }
定义结构体
func NewReplicaSet ¶
func NewReplicaSet(kubeconfig string, item *appsv1.ReplicaSet) *ReplicaSet
New函数可以用于配置一些默认值
func (*ReplicaSet) Delete ¶
func (c *ReplicaSet) Delete(namespace, name string, gracePeriodSeconds *int64) error
删除资源
func (*ReplicaSet) DeleteList ¶
func (c *ReplicaSet) DeleteList(namespace string, nameList []string, gracePeriodSeconds *int64) error
删除多个
func (*ReplicaSet) Get ¶
func (c *ReplicaSet) Get(namespace, name string) (item interface{}, err error)
获取资源配置
func (*ReplicaSet) List ¶
func (c *ReplicaSet) List(namespace, labelSelector, fieldSelector string) (items interface{}, err error)
获取资源列表
type ResourceInstance ¶
type ResourceInstance struct { Kubeconfig string // Namespace string // Name string // NameList []string Clientset *kubernetes.Clientset }
func (*ResourceInstance) Init ¶
func (c *ResourceInstance) Init(kubeconfig string)
type Role ¶
type Role struct { InstanceInterface typedv1.RbacV1Interface Item *rbacv1.Role }
定义结构体
func (*Role) DeleteList ¶
删除多个
type RoleBinding ¶
type RoleBinding struct { InstanceInterface typedv1.RbacV1Interface Item *rbacv1.RoleBinding }
定义结构体
func NewRoleBinding ¶
func NewRoleBinding(kubeconfig string, item *rbacv1.RoleBinding) *RoleBinding
New函数可以用于配置一些默认值
func (*RoleBinding) Delete ¶
func (c *RoleBinding) Delete(namespace, name string, gracePeriodSeconds *int64) error
删除资源
func (*RoleBinding) DeleteList ¶
func (c *RoleBinding) DeleteList(namespace string, nameList []string, gracePeriodSeconds *int64) error
删除多个
func (*RoleBinding) Get ¶
func (c *RoleBinding) Get(namespace, name string) (item interface{}, err error)
获取资源配置
func (*RoleBinding) List ¶
func (c *RoleBinding) List(namespace, labelSelector, fieldSelector string) (items interface{}, err error)
获取资源列表
type Secret ¶
type Secret struct { InstanceInterface typedv1.CoreV1Interface Item *corev1.Secret }
定义结构体
func (*Secret) DeleteList ¶
删除多个
type Service ¶
type Service struct { InstanceInterface typedv1.CoreV1Interface Item *corev1.Service }
定义结构体
func NewService ¶
New函数可以用于配置一些默认值
func (*Service) DeleteList ¶
删除多个
type StatefulSet ¶
type StatefulSet struct { InstanceInterface typedv1.AppsV1Interface Item *appsv1.StatefulSet }
定义结构体
func NewStatefulSet ¶
func NewStatefulSet(kubeconfig string, item *appsv1.StatefulSet) *StatefulSet
New函数可以用于配置一些默认值
func (*StatefulSet) Delete ¶
func (c *StatefulSet) Delete(namespace, name string, gracePeriodSeconds *int64) error
删除资源
func (*StatefulSet) DeleteList ¶
func (c *StatefulSet) DeleteList(namespace string, nameList []string, gracePeriodSeconds *int64) error
删除多个
func (*StatefulSet) Get ¶
func (c *StatefulSet) Get(namespace, name string) (item interface{}, err error)
获取资源配置
func (*StatefulSet) List ¶
func (c *StatefulSet) List(namespace, labelSelector, fieldSelector string) (items interface{}, err error)
获取资源列表
type StorageClass ¶
type StorageClass struct { InstanceInterface typedv1.StorageV1Interface Item *storagev1.StorageClass }
定义结构体
func NewStorageClass ¶
func NewStorageClass(kubeconfig string, item *storagev1.StorageClass) *StorageClass
New函数可以用于配置一些默认值
func (*StorageClass) Delete ¶
func (c *StorageClass) Delete(namespace, name string, gracePeriodSeconds *int64) error
删除资源
func (*StorageClass) DeleteList ¶
func (c *StorageClass) DeleteList(namespace string, nameList []string, gracePeriodSeconds *int64) error
删除多个
func (*StorageClass) Get ¶
func (c *StorageClass) Get(namespace, name string) (item interface{}, err error)
获取资源配置
func (*StorageClass) List ¶
func (c *StorageClass) List(namespace, labelSelector, fieldSelector string) (items interface{}, err error)
获取资源列表