Versions in this module Expand all Collapse all v0 v0.1.4 Feb 22, 2024 Changes in this version + type ClusterRole struct + InstanceInterface typedv1.RbacV1Interface + func NewClusterRole(kubeconfig string) *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 struct + InstanceInterface typedv1.RbacV1Interface + func NewClusterRoleBinding(kubeconfig string) *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 struct + InstanceInterface typedv1.CoreV1Interface + func NewConfigMap(kubeconfig string) *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 struct + InstanceInterface typedv1.BatchV1Interface + func NewCronJob(kubeconfig string) *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 struct + InstanceInterface typedv1.AppsV1Interface + func NewDaemonSet(kubeconfig string) *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 struct + InstanceInterface typedv1.AppsV1Interface + func NewDeployment(kubeconfig string) *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 struct + InstanceInterface typedv1.NetworkingV1Interface + func NewIngress(kubeconfig string) *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 struct + InstanceInterface typedv1.NetworkingV1Interface + func NewIngressClass(kubeconfig string) *IngressClass + func (c *IngressClass) Get(name string) (item *networkingv1.IngressClass, err error) + func (c *IngressClass) List(labelSelector, fieldSelector string) (items *networkingv1.IngressClassList, err error) + type KubeUtilser interface + Create func() error + Delete func(*int64) error + DeleteList func(*int64) error + Get func() (interface{}, error) + List func(string, string) (interface{}, error) + Update func() error + type Namespace struct + InstanceInterface typedv1.CoreV1Interface + func NewNamespace(kubeconfig string) *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 struct + InstanceInterface typedv1.CoreV1Interface + func NewNode(kubeconfig string) *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 struct + InstanceInterface typedv1.CoreV1Interface + func NewPersistentVolume(kubeconfig string) *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 struct + InstanceInterface typedv1.CoreV1Interface + func NewPersistentVolumeClaim(kubeconfig string) *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 struct + InstanceInterface typedv1.CoreV1Interface + func NewPod(kubeconfig string) *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 struct + InstanceInterface typedv1.AppsV1Interface + func NewReplicaSet(kubeconfig string) *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 struct + Clientset *kubernetes.Clientset + Kubeconfig string + func (c *ResourceInstance) Init(kubeconfig string) + type Role struct + InstanceInterface typedv1.RbacV1Interface + func NewRole(kubeconfig string) *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 struct + InstanceInterface typedv1.RbacV1Interface + func NewRoleBinding(kubeconfig string) *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 struct + InstanceInterface typedv1.CoreV1Interface + func NewSecret(kubeconfig string) *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 struct + InstanceInterface typedv1.CoreV1Interface + func NewService(kubeconfig string) *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 struct + InstanceInterface typedv1.AppsV1Interface + func NewStatefulSet(kubeconfig string) *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 struct + InstanceInterface typedv1.StorageV1Interface + func NewStorageClass(kubeconfig string) *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 struct + ClusterId string + DynamicClient *dynamic.DynamicClient + func NewTools(kubeconfig string) (tools *Tools, err error) + func (c *Tools) Apply(yamlContent string) (msg string, err error) + func (c *Tools) Create(yamlContent string) (msg string, err error) + func (c *Tools) Delete(yamlContent string) (msg string, err error) + func (c *Tools) Update(yamlContent string) (msg string, err error)