Documentation ¶
Index ¶
- type ClusterRole
- func (c *ClusterRole) Create(item *rbacv1.ClusterRole) error
- func (c *ClusterRole) Delete(name string, gracePeriodSeconds *int64) error
- func (c *ClusterRole) DeleteList(nameList []string, gracePeriodSeconds *int64) error
- func (c *ClusterRole) Get(name string) (item *rbacv1.ClusterRole, err error)
- func (c *ClusterRole) List(labelSelector, fieldSelector string) (items *rbacv1.ClusterRoleList, err error)
- func (c *ClusterRole) Update(item *rbacv1.ClusterRole) error
- type ClusterRoleBinding
- func (c *ClusterRoleBinding) Create(item *rbacv1.ClusterRoleBinding) error
- func (c *ClusterRoleBinding) Delete(name string, gracePeriodSeconds *int64) error
- func (c *ClusterRoleBinding) DeleteList(nameList []string, gracePeriodSeconds *int64) error
- func (c *ClusterRoleBinding) Get(name string) (item *rbacv1.ClusterRoleBinding, err error)
- func (c *ClusterRoleBinding) List(labelSelector, fieldSelector string) (items *rbacv1.ClusterRoleBindingList, err error)
- func (c *ClusterRoleBinding) Update(item *rbacv1.ClusterRoleBinding) error
- type ConfigMap
- func (c *ConfigMap) Create(namespace string, item *corev1.ConfigMap) 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 *corev1.ConfigMap, err error)
- func (c *ConfigMap) List(namespace, labelSelector, fieldSelector string) (items *corev1.ConfigMapList, err error)
- func (c *ConfigMap) Update(namespace string, item *corev1.ConfigMap) error
- type CronJob
- func (c *CronJob) Create(namespace string, item *batchv1.CronJob) 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 *batchv1.CronJob, err error)
- func (c *CronJob) List(namespace, labelSelector, fieldSelector string) (items *batchv1.CronJobList, err error)
- func (c *CronJob) Update(namespace string, item *batchv1.CronJob) error
- type DaemonSet
- func (c *DaemonSet) Create(namespace string, item *appsv1.DaemonSet) 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 *appsv1.DaemonSet, err error)
- func (c *DaemonSet) List(namespace, labelSelector, fieldSelector string) (items *appsv1.DaemonSetList, err error)
- func (c *DaemonSet) Update(namespace string, item *appsv1.DaemonSet) error
- type Deployment
- func (c *Deployment) Create(namespace string, item *appsv1.Deployment) 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 *appsv1.Deployment, err error)
- func (c *Deployment) List(namespace, labelSelector, fieldSelector string) (items *appsv1.DeploymentList, err error)
- func (c *Deployment) Update(namespace string, item *appsv1.Deployment) error
- type Ingress
- func (c *Ingress) Create(namespace string, item *networkingv1.Ingress) 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 *networkingv1.Ingress, err error)
- func (c *Ingress) List(namespace, labelSelector, fieldSelector string) (items *networkingv1.IngressList, err error)
- func (c *Ingress) Update(namespace string, item *networkingv1.Ingress) error
- type IngressClass
- type KubeUtilser
- type Namespace
- func (c *Namespace) Create(item *corev1.Namespace) error
- func (c *Namespace) Delete(name string, gracePeriodSeconds *int64) error
- func (c *Namespace) DeleteList(nameList []string, gracePeriodSeconds *int64) error
- func (c *Namespace) Get(name string) (item *corev1.Namespace, err error)
- func (c *Namespace) List(labelSelector, fieldSelector string) (items *corev1.NamespaceList, err error)
- func (c *Namespace) Update(item *corev1.Namespace) error
- type Node
- func (c *Node) Create(item *corev1.Node) error
- func (c *Node) Delete(name string, gracePeriodSeconds *int64) error
- func (c *Node) DeleteList(nameList []string, gracePeriodSeconds *int64) error
- func (c *Node) Get(name string) (item *corev1.Node, err error)
- func (c *Node) List(labelSelector, fieldSelector string) (items *corev1.NodeList, err error)
- func (c *Node) Update(item *corev1.Node) error
- type PersistentVolume
- func (c *PersistentVolume) Create(item *corev1.PersistentVolume) error
- func (c *PersistentVolume) Delete(name string, gracePeriodSeconds *int64) error
- func (c *PersistentVolume) DeleteList(nameList []string, gracePeriodSeconds *int64) error
- func (c *PersistentVolume) Get(name string) (item *corev1.PersistentVolume, err error)
- func (c *PersistentVolume) List(labelSelector, fieldSelector string) (items *corev1.PersistentVolumeList, err error)
- func (c *PersistentVolume) Update(item *corev1.PersistentVolume) error
- type PersistentVolumeClaim
- func (c *PersistentVolumeClaim) Create(namespace string, item *corev1.PersistentVolumeClaim) 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 *corev1.PersistentVolumeClaim, err error)
- func (c *PersistentVolumeClaim) List(namespace, labelSelector, fieldSelector string) (items *corev1.PersistentVolumeClaimList, err error)
- func (c *PersistentVolumeClaim) Update(namespace string, item *corev1.PersistentVolumeClaim) error
- type Pod
- func (c *Pod) Create(namespace string, item *corev1.Pod) 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 *corev1.Pod, err error)
- func (c *Pod) List(namespace, labelSelector, fieldSelector string) (items *corev1.PodList, err error)
- func (c *Pod) Update(namespace string, item *corev1.Pod) error
- type ReplicaSet
- func (c *ReplicaSet) Create(namespace string, item *appsv1.ReplicaSet) 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 *appsv1.ReplicaSet, err error)
- func (c *ReplicaSet) List(namespace, labelSelector, fieldSelector string) (items *appsv1.ReplicaSetList, err error)
- func (c *ReplicaSet) Update(namespace string, item *appsv1.ReplicaSet) error
- type ResourceInstance
- type Role
- func (c *Role) Create(namespace string, item *rbacv1.Role) 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 *rbacv1.Role, err error)
- func (c *Role) List(namespace, labelSelector, fieldSelector string) (items *rbacv1.RoleList, err error)
- func (c *Role) Update(namespace string, item *rbacv1.Role) error
- type RoleBinding
- func (c *RoleBinding) Create(namespace string, item *rbacv1.RoleBinding) 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 *rbacv1.RoleBinding, err error)
- func (c *RoleBinding) List(namespace, labelSelector, fieldSelector string) (items *rbacv1.RoleBindingList, err error)
- func (c *RoleBinding) Update(namespace string, item *rbacv1.RoleBinding) error
- type Secret
- func (c *Secret) Create(namespace string, item *corev1.Secret) 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 *corev1.Secret, err error)
- func (c *Secret) List(namespace, labelSelector, fieldSelector string) (items *corev1.SecretList, err error)
- func (c *Secret) Update(namespace string, item *corev1.Secret) error
- type Service
- func (c *Service) Create(namespace string, item *corev1.Service) 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 *corev1.Service, err error)
- func (c *Service) List(namespace, labelSelector, fieldSelector string) (items *corev1.ServiceList, err error)
- func (c *Service) Update(namespace string, item *corev1.Service) error
- type StatefulSet
- func (c *StatefulSet) Create(namespace string, item *appsv1.StatefulSet) 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 *appsv1.StatefulSet, err error)
- func (c *StatefulSet) List(namespace, labelSelector, fieldSelector string) (items *appsv1.StatefulSetList, err error)
- func (c *StatefulSet) Update(namespace string, item *appsv1.StatefulSet) error
- type StorageClass
- func (c *StorageClass) Create(item *storagev1.StorageClass) error
- func (c *StorageClass) Delete(name string, gracePeriodSeconds *int64) error
- func (c *StorageClass) DeleteList(nameList []string, gracePeriodSeconds *int64) error
- func (c *StorageClass) Get(name string) (item *storagev1.StorageClass, err error)
- func (c *StorageClass) List(labelSelector, fieldSelector string) (items *storagev1.StorageClassList, err error)
- func (c *StorageClass) Update(item *storagev1.StorageClass) error
- type Tools
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterRole ¶
type ClusterRole struct {
InstanceInterface typedv1.RbacV1Interface
}
定义结构体
func (*ClusterRole) Delete ¶
func (c *ClusterRole) Delete(name string, gracePeriodSeconds *int64) error
删除资源
func (*ClusterRole) DeleteList ¶
func (c *ClusterRole) DeleteList(nameList []string, gracePeriodSeconds *int64) error
删除多个
func (*ClusterRole) Get ¶
func (c *ClusterRole) Get(name string) (item *rbacv1.ClusterRole, err error)
获取资源配置
func (*ClusterRole) List ¶
func (c *ClusterRole) List(labelSelector, fieldSelector string) (items *rbacv1.ClusterRoleList, err error)
获取资源列表
type ClusterRoleBinding ¶
type ClusterRoleBinding struct {
InstanceInterface typedv1.RbacV1Interface
}
定义结构体
func NewClusterRoleBinding ¶
func NewClusterRoleBinding(kubeconfig string) *ClusterRoleBinding
New函数可以用于配置一些默认值
func (*ClusterRoleBinding) Create ¶
func (c *ClusterRoleBinding) Create(item *rbacv1.ClusterRoleBinding) error
创建资源
func (*ClusterRoleBinding) Delete ¶
func (c *ClusterRoleBinding) Delete(name string, gracePeriodSeconds *int64) error
删除资源
func (*ClusterRoleBinding) DeleteList ¶
func (c *ClusterRoleBinding) DeleteList(nameList []string, gracePeriodSeconds *int64) error
删除多个
func (*ClusterRoleBinding) Get ¶
func (c *ClusterRoleBinding) Get(name string) (item *rbacv1.ClusterRoleBinding, err error)
获取资源配置
func (*ClusterRoleBinding) List ¶
func (c *ClusterRoleBinding) List(labelSelector, fieldSelector string) (items *rbacv1.ClusterRoleBindingList, err error)
获取资源列表
func (*ClusterRoleBinding) Update ¶
func (c *ClusterRoleBinding) Update(item *rbacv1.ClusterRoleBinding) error
更新资源
type ConfigMap ¶
type ConfigMap struct {
InstanceInterface typedv1.CoreV1Interface
}
定义结构体
func (*ConfigMap) DeleteList ¶
func (c *ConfigMap) DeleteList(namespace string, nameList []string, gracePeriodSeconds *int64) error
删除多个
type CronJob ¶
type CronJob struct {
InstanceInterface typedv1.BatchV1Interface
}
定义结构体
func (*CronJob) DeleteList ¶
删除多个
type DaemonSet ¶
type DaemonSet struct {
InstanceInterface typedv1.AppsV1Interface
}
定义结构体
func (*DaemonSet) DeleteList ¶
func (c *DaemonSet) DeleteList(namespace string, nameList []string, gracePeriodSeconds *int64) error
删除多个
type Deployment ¶
type Deployment struct {
InstanceInterface typedv1.AppsV1Interface
}
定义结构体
func (*Deployment) Create ¶
func (c *Deployment) Create(namespace string, item *appsv1.Deployment) error
创建资源
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 *appsv1.Deployment, err error)
获取资源配置
func (*Deployment) List ¶
func (c *Deployment) List(namespace, labelSelector, fieldSelector string) (items *appsv1.DeploymentList, err error)
获取资源列表
func (*Deployment) Update ¶
func (c *Deployment) Update(namespace string, item *appsv1.Deployment) error
更新资源
type Ingress ¶
type Ingress struct {
InstanceInterface typedv1.NetworkingV1Interface
}
定义结构体
func (*Ingress) Create ¶
func (c *Ingress) Create(namespace string, item *networkingv1.Ingress) error
创建资源
func (*Ingress) DeleteList ¶
删除多个
func (*Ingress) Get ¶
func (c *Ingress) Get(namespace, name string) (item *networkingv1.Ingress, err error)
获取资源配置
func (*Ingress) List ¶
func (c *Ingress) List(namespace, labelSelector, fieldSelector string) (items *networkingv1.IngressList, err error)
获取资源列表
type IngressClass ¶
type IngressClass struct {
InstanceInterface typedv1.NetworkingV1Interface
}
定义结构体
func (*IngressClass) Get ¶
func (c *IngressClass) Get(name string) (item *networkingv1.IngressClass, err error)
获取资源配置
func (*IngressClass) List ¶
func (c *IngressClass) List(labelSelector, fieldSelector string) (items *networkingv1.IngressClassList, err error)
获取资源列表
type KubeUtilser ¶
type KubeUtilser interface { Create() error Delete(*int64) error DeleteList(*int64) error Update() error List(string, string) (interface{}, error) Get() (interface{}, error) }
定义kubeutils的接口,先不用接口
type Namespace ¶
type Namespace struct {
InstanceInterface typedv1.CoreV1Interface
}
定义结构体
func (*Namespace) DeleteList ¶
删除多个
type Node ¶
type Node struct {
InstanceInterface typedv1.CoreV1Interface
}
定义结构体
func (*Node) DeleteList ¶
删除多个
type PersistentVolume ¶
type PersistentVolume struct {
InstanceInterface typedv1.CoreV1Interface
}
定义结构体
func NewPersistentVolume ¶
func NewPersistentVolume(kubeconfig string) *PersistentVolume
New函数可以用于配置一些默认值
func (*PersistentVolume) Create ¶
func (c *PersistentVolume) Create(item *corev1.PersistentVolume) error
创建资源
func (*PersistentVolume) Delete ¶
func (c *PersistentVolume) Delete(name string, gracePeriodSeconds *int64) error
删除资源
func (*PersistentVolume) DeleteList ¶
func (c *PersistentVolume) DeleteList(nameList []string, gracePeriodSeconds *int64) error
删除多个
func (*PersistentVolume) Get ¶
func (c *PersistentVolume) Get(name string) (item *corev1.PersistentVolume, err error)
获取资源配置
func (*PersistentVolume) List ¶
func (c *PersistentVolume) List(labelSelector, fieldSelector string) (items *corev1.PersistentVolumeList, err error)
获取资源列表
func (*PersistentVolume) Update ¶
func (c *PersistentVolume) Update(item *corev1.PersistentVolume) error
更新资源
type PersistentVolumeClaim ¶
type PersistentVolumeClaim struct {
InstanceInterface typedv1.CoreV1Interface
}
定义结构体
func NewPersistentVolumeClaim ¶
func NewPersistentVolumeClaim(kubeconfig string) *PersistentVolumeClaim
New函数可以用于配置一些默认值
func (*PersistentVolumeClaim) Create ¶
func (c *PersistentVolumeClaim) Create(namespace string, item *corev1.PersistentVolumeClaim) 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 *corev1.PersistentVolumeClaim, err error)
获取资源配置
func (*PersistentVolumeClaim) List ¶
func (c *PersistentVolumeClaim) List(namespace, labelSelector, fieldSelector string) (items *corev1.PersistentVolumeClaimList, err error)
获取资源列表
func (*PersistentVolumeClaim) Update ¶
func (c *PersistentVolumeClaim) Update(namespace string, item *corev1.PersistentVolumeClaim) error
更新资源
type Pod ¶
type Pod struct {
InstanceInterface typedv1.CoreV1Interface
}
定义结构体
func (*Pod) DeleteList ¶
删除多个
type ReplicaSet ¶
type ReplicaSet struct {
InstanceInterface typedv1.AppsV1Interface
}
定义结构体
func (*ReplicaSet) Create ¶
func (c *ReplicaSet) Create(namespace string, item *appsv1.ReplicaSet) error
创建资源
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 *appsv1.ReplicaSet, err error)
获取资源配置
func (*ReplicaSet) List ¶
func (c *ReplicaSet) List(namespace, labelSelector, fieldSelector string) (items *appsv1.ReplicaSetList, err error)
获取资源列表
func (*ReplicaSet) Update ¶
func (c *ReplicaSet) Update(namespace string, item *appsv1.ReplicaSet) 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
}
定义结构体
func (*Role) DeleteList ¶
删除多个
type RoleBinding ¶
type RoleBinding struct {
InstanceInterface typedv1.RbacV1Interface
}
定义结构体
func (*RoleBinding) Create ¶
func (c *RoleBinding) Create(namespace string, item *rbacv1.RoleBinding) error
创建资源
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 *rbacv1.RoleBinding, err error)
获取资源配置
func (*RoleBinding) List ¶
func (c *RoleBinding) List(namespace, labelSelector, fieldSelector string) (items *rbacv1.RoleBindingList, err error)
获取资源列表
func (*RoleBinding) Update ¶
func (c *RoleBinding) Update(namespace string, item *rbacv1.RoleBinding) error
更新资源
type Secret ¶
type Secret struct {
InstanceInterface typedv1.CoreV1Interface
}
定义结构体
func (*Secret) DeleteList ¶
删除多个
type Service ¶
type Service struct {
InstanceInterface typedv1.CoreV1Interface
}
定义结构体
func (*Service) DeleteList ¶
删除多个
type StatefulSet ¶
type StatefulSet struct {
InstanceInterface typedv1.AppsV1Interface
}
定义结构体
func (*StatefulSet) Create ¶
func (c *StatefulSet) Create(namespace string, item *appsv1.StatefulSet) error
创建资源
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 *appsv1.StatefulSet, err error)
获取资源配置
func (*StatefulSet) List ¶
func (c *StatefulSet) List(namespace, labelSelector, fieldSelector string) (items *appsv1.StatefulSetList, err error)
获取资源列表
func (*StatefulSet) Update ¶
func (c *StatefulSet) Update(namespace string, item *appsv1.StatefulSet) error
更新资源
type StorageClass ¶
type StorageClass struct {
InstanceInterface typedv1.StorageV1Interface
}
定义结构体
func (*StorageClass) Create ¶
func (c *StorageClass) Create(item *storagev1.StorageClass) error
创建资源
func (*StorageClass) Delete ¶
func (c *StorageClass) Delete(name string, gracePeriodSeconds *int64) error
删除资源
func (*StorageClass) DeleteList ¶
func (c *StorageClass) DeleteList(nameList []string, gracePeriodSeconds *int64) error
删除多个
func (*StorageClass) Get ¶
func (c *StorageClass) Get(name string) (item *storagev1.StorageClass, err error)
获取资源配置
func (*StorageClass) List ¶
func (c *StorageClass) List(labelSelector, fieldSelector string) (items *storagev1.StorageClassList, err error)
获取资源列表
func (*StorageClass) Update ¶
func (c *StorageClass) Update(item *storagev1.StorageClass) error
更新资源
Source Files ¶
- clusterrole.go
- clusterrolebinding.go
- configmap.go
- cronjob.go
- daemonset.go
- deployment.go
- ingress.go
- ingressclass.go
- kubernetesutils.go
- namespace.go
- node.go
- persistentvolume.go
- persistentvolumeclaim.go
- pod.go
- replicaset.go
- role.go
- rolebinding.go
- secret.go
- service.go
- statefulset.go
- storageclass.go
- tools.go
Click to show internal directories.
Click to hide internal directories.